assayo/build/static/js/main.9af297c4.js.map
2023-10-13 14:19:38 +03:00

1 line
1.6 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"file":"static/js/main.9af297c4.js","mappings":";ifAAA,SAASA,YAAYC,EAAcC,GACjC,IAAMC,EAAW,CAAC,EAClBF,EAAKG,MAAM,MAAMC,SAAQ,SAAAC,GACvB,MAA4CA,EAAIF,MAAM,KAAI,gHAAnDG,EAAM,KAAEC,EAAI,KAAEC,EAAY,KAC3BC,EADkC,KAClBD,EAAe,GACrCN,EAASI,GAAU,CAAEC,KAAAA,EAAME,MAAAA,EAC7B,IACAR,EAAS,OAAQ,CAAEC,SAAAA,GACrB,CAEA,SAASQ,WAAWV,KAAcC,UAEhC,IAAIU,KAAOC,OAAOC,OAClBD,OAAOC,OAAS,GAChB,IAAMC,UAAYd,KAAKe,MAAM,EAAG,IAChC,GAAkB,iBAAdD,UACF,IACEE,KAAKhB,KAMP,CALE,MAAOiB,GAIP,YADAL,OAAOC,OAASF,KAElB,MAEAC,OAAOC,OAASb,KAAKG,MAAM,MAI7BF,SAAS,OAAQW,OAAOC,OAC1B,CAEO,SAASK,UAAUC,EAAsBlB,GAC9C,OAAO,SAAkBmB,GAAmB,IAAD,EACzCA,EAAMC,iBACND,EAAME,kBAEN,IAAMC,GAAY,6GAAU,OAALH,QAAK,IAALA,GAAmB,QAAd,EAALA,EAAOI,oBAAY,WAAd,EAAL,EAAqBC,QAAS,IAClDC,KAAI,SAACC,GAAS,MAAmB,SAAdA,EAAKC,KAAsB,OAAJD,QAAI,IAAJA,OAAI,EAAJA,EAAME,YAAc,IAAI,IAClEC,QAAO,SAAAH,GAAI,OAAIA,CAAI,IAEtBR,GAAW,GACNI,EAAUQ,SAEW,qBAAtBR,EAAU,GAAGhB,KAajByB,QAAQC,IACNV,EAAUG,KAAI,SAACC,GAAS,OAAKA,EAAK3B,MAAM,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AQ23C,gBAKnB,ECNA,GAfsB3H,IAAS,WAC7B,IAAMltE,EAAQkqF,GAAAA,SAAAA,KAAgC,SAAChtD,GAAiB,OAC9D,UAACuvE,GAAO,CAENvvE,QAASA,GADJA,EAAQ5jB,GAEb,IAGJ,OAAO+tE,GAAAA,cACL,iBAAK1d,UAAW76D,GAAoB,SACjC9O,IAEFsC,SAAS2G,KACd,ICAA,SAASyjG,GAAwBnuG,GAC/B,OAAOkE,OAAO84E,aAAah9E,GAAQ,IAChCqC,UAAU,EAAGqlC,KACbvnC,MAAM,KACNuB,KAAI,SAACirE,GAAa,OAAKA,EAAMxsE,MAAM,IAAI,IAC5C,CAEA,SAASiuG,KAA0B,IAAD,IAEhCrvE,QAAQjoB,IAAU,QAAP,EAAClW,cAAM,OAAQ,QAAR,EAAN,EAAQC,cAAM,WAAR,EAAN,EAAgBkB,QAC5BnB,OAAOytG,aAAe,WACpBlhB,GAAAA,UACF,GACAnkF,EAAAA,GAAAA,SACE,UAAC,aAAgB,WACf,WAACo/C,GAAU,YACT,UAAC,GAAa,KACd,UAAC,GAAa,SAGlBrkD,SAASuqG,eAAe,QAE5B,CAxBAvvE,QAAQuoD,I3TmmBR,CAAiB,E2TnmBA,IA4CjB5M,GAAAA,mBAAgCx4E,MAAK,YAlBrC,WACE,IAAM2yF,EAAU,OACXsZ,GAAwBrtF,SAASiD,SACjCoqF,GAAwBrtF,SAASy5B,OAGtC,IAAKs6C,EAAWxN,KACd,OAAO+mB,KAGT,IAAMG,EAASxqG,SAASC,cAAc,UACtCuqG,EAAO3nE,IAAMiuD,EAAWxN,KACxBknB,EAAOpc,OAAQ,EACfoc,EAAOC,OAASJ,GAChBG,EAAOE,QAAUL,GACjBrqG,SAAS2G,KAAKuC,YAAYshG,EAC5B,CAGEG,EACF","sources":["ts/components/DropZone/helpers/index.ts","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/react-dom/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react/index.js","../node_modules/react/jsx-runtime.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/index.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../webpack/bootstrap","../webpack/runtime/create fake namespace object","../webpack/runtime/define property getters","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/make namespace object","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../node_modules/@babel/runtime/helpers/esm/createSuper.js","../node_modules/@babel/runtime/helpers/esm/construct.js","../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","../node_modules/@remix-run/router/history.ts","../node_modules/@remix-run/router/utils.ts","../node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","../node_modules/@babel/runtime/helpers/esm/toArray.js","../node_modules/@remix-run/router/router.ts","../node_modules/react-router/lib/use-sync-external-store-shim/useSyncExternalStoreShimClient.ts","../node_modules/react-router/lib/use-sync-external-store-shim/index.ts","../node_modules/react-router/lib/context.ts","../node_modules/react-router/lib/hooks.tsx","../node_modules/react-router/lib/components.tsx","../node_modules/react-router-dom/index.tsx","../node_modules/react-router-dom/dom.ts","../node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js","../node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js","ts/helpers/Localization/index.ts","ts/config/translations/ru.ts","../node_modules/mobx/src/errors.ts","../node_modules/mobx/src/utils/global.ts","../node_modules/mobx/src/utils/utils.ts","../node_modules/mobx/src/api/decorators.ts","../node_modules/mobx/src/types/overrideannotation.ts","../node_modules/mobx/src/core/atom.ts","../node_modules/mobx/src/api/become-observed.ts","../node_modules/mobx/src/utils/comparer.ts","../node_modules/mobx/src/types/modifiers.ts","../node_modules/mobx/src/types/actionannotation.ts","../node_modules/mobx/src/types/flowannotation.ts","../node_modules/mobx/src/types/computedannotation.ts","../node_modules/mobx/src/types/observableannotation.ts","../node_modules/mobx/src/types/autoannotation.ts","../node_modules/mobx/src/api/observable.ts","../node_modules/mobx/src/types/dynamicobject.ts","../node_modules/mobx/src/api/computed.ts","../node_modules/mobx/src/core/action.ts","../node_modules/mobx/src/types/observablevalue.ts","../node_modules/mobx/src/core/computedvalue.ts","../node_modules/mobx/src/core/derivation.ts","../node_modules/mobx/src/core/observable.ts","../node_modules/mobx/src/core/globalstate.ts","../node_modules/mobx/src/core/reaction.ts","../node_modules/mobx/src/api/trace.ts","../node_modules/mobx/src/api/action.ts","../node_modules/mobx/src/api/autorun.ts","../node_modules/mobx/src/api/configure.ts","../node_modules/mobx/src/api/extendobservable.ts","../node_modules/mobx/src/api/extras.ts","../node_modules/mobx/src/api/flow.ts","../node_modules/mobx/src/api/isobservable.ts","../node_modules/mobx/src/api/transaction.ts","../node_modules/mobx/src/types/intercept-utils.ts","../node_modules/mobx/src/types/listen-utils.ts","../node_modules/mobx/src/api/makeObservable.ts","../node_modules/mobx/src/types/observablearray.ts","../node_modules/mobx/src/core/spy.ts","../node_modules/mobx/src/types/observablemap.ts","../node_modules/mobx/src/types/observableset.ts","../node_modules/mobx/src/types/observableobject.ts","../node_modules/mobx/src/types/legacyobservablearray.ts","../node_modules/mobx/src/types/type-utils.ts","../node_modules/mobx/src/utils/eq.ts","../node_modules/mobx/src/utils/iterable.ts","../node_modules/mobx-react-lite/src/utils/assertEnvironment.ts","../node_modules/mobx/src/mobx.ts","../node_modules/mobx-react-lite/src/utils/observerBatching.ts","../node_modules/mobx-react-lite/src/utils/printDebugValue.ts","../node_modules/mobx-react-lite/src/utils/FinalizationRegistryWrapper.ts","../node_modules/mobx-react-lite/src/utils/reactionCleanupTrackingCommon.ts","../node_modules/mobx-react-lite/src/utils/reactionCleanupTracking.ts","../node_modules/mobx-react-lite/src/utils/createReactionCleanupTrackingUsingFinalizationRegister.ts","../node_modules/mobx-react-lite/src/utils/createTimerBasedReactionCleanupTracking.ts","../node_modules/mobx-react-lite/src/staticRendering.ts","../node_modules/mobx-react-lite/src/useObserver.ts","../node_modules/mobx-react-lite/src/observer.ts","../node_modules/mobx-react-lite/src/index.ts","ts/pages/Authorization/store/AuthorizationStore.ts","ts/store/Settings.ts","ts/helpers/formatter.ts","ts/helpers/Recommendations/components/PersonByTimestamp.ts","ts/helpers/Recommendations/components/PersonByWeek.ts","ts/helpers/Recommendations/components/TeamByAuthor.ts","ts/helpers/Recommendations/components/TeamByHour.ts","ts/helpers/Recommendations/components/TeamByScope.ts","ts/helpers/Recommendations/components/TeamByTimestamp.ts","ts/helpers/Recommendations/components/TeamByType.ts","ts/helpers/Recommendations/components/TeamByWeek.ts","ts/helpers/Recommendations/index.ts","ts/pages/Settings/helpers/getEmptySettings.ts","ts/api/settings.ts","ts/store/UserSettings.ts","ts/helpers/DataGrip/components/author.ts","ts/helpers/DataGrip/components/team.ts","ts/helpers/DataGrip/components/scope.ts","ts/helpers/DataGrip/components/type.ts","ts/helpers/DataGrip/components/counter.ts","ts/helpers/DataGrip/components/timestamp.ts","ts/helpers/DataGrip/components/week.ts","ts/helpers/DataGrip/components/extension.ts","ts/helpers/DataGrip/components/get.ts","ts/interfaces/Commit.ts","ts/helpers/Math.ts","ts/helpers/DataGrip/components/pr.ts","ts/helpers/DataGrip/index.ts","ts/helpers/achievement/byCompetition.ts","ts/helpers/DataGrip/helpers/tree.ts","ts/helpers/Parser/getTypeAndScope.ts","ts/helpers/Parser/user_info.ts","ts/helpers/Parser/files.ts","ts/helpers/Parser/file_info.ts","ts/helpers/Parser/index.ts","ts/helpers/ParserTelegramm/user_info.ts","ts/helpers/ParserTelegramm/index.ts","ts/store/DataGrip.ts","webpack://Assayo/./src/ts/components/DropZone/index.module.scss?17df","ts/components/DropZone/index.tsx","webpack://Assayo/./src/ts/pages/PageWrapper/styles/logo.module.scss?283a","ts/pages/PageWrapper/components/sidebar/Logo.tsx","webpack://Assayo/./src/ts/components/SplashScreen/index.module.scss?f5f9","webpack://Assayo/./src/ts/components/SplashScreen/progress.module.scss?c606","ts/components/SplashScreen/index.tsx","webpack://Assayo/./src/ts/components/UiKit/styles/index.module.scss?5c69","ts/components/UiKit/components/Button.tsx","webpack://Assayo/./src/ts/components/ModalWindow/styles/index.module.scss?7a88","ts/components/ModalWindow/components/Header.tsx","ts/components/ModalWindow/components/Body.tsx","ts/components/ModalWindow/components/Footer.tsx","ts/components/ModalWindow/index.tsx","ts/components/ModalWindow/store/Confirm.ts","ts/components/ModalWindow/Confirm.tsx","webpack://Assayo/./src/ts/pages/PageWrapper/styles/switch.module.scss?7f0e","ts/pages/PageWrapper/components/sidebar/Switch.tsx","ts/helpers/FormData.ts","ts/store/Form.ts","ts/components/Notifications/store/index.ts","ts/pages/Settings/store/Form.ts","webpack://Assayo/./src/ts/pages/PageWrapper/styles/sidebar.module.scss?92d8","ts/pages/PageWrapper/components/sidebar/MenuItem.tsx","ts/pages/PageWrapper/components/sidebar/MenuGap.tsx","ts/pages/PageWrapper/components/sidebar/Person.tsx","ts/pages/PageWrapper/components/sidebar/Team.tsx","ts/pages/PageWrapper/components/sidebar/index.tsx","webpack://Assayo/./src/ts/pages/Settings/styles/index.module.scss?63a1","ts/pages/Settings/components/Buttons.tsx","webpack://Assayo/./src/ts/pages/PageWrapper/styles/header.module.scss?7b6f","ts/pages/PageWrapper/components/header/Title.tsx","webpack://Assayo/./src/ts/pages/PageWrapper/styles/filters.module.scss?8f9c","ts/pages/PageWrapper/components/header/Button.tsx","ts/pages/PageWrapper/components/header/Input.tsx","ts/pages/PageWrapper/components/header/Filters.tsx","ts/pages/PageWrapper/store/Print.tsx","ts/pages/PageWrapper/components/header/index.tsx","webpack://Assayo/./src/ts/pages/PageWrapper/styles/print.module.scss?3789","ts/pages/PageWrapper/components/Print.tsx","webpack://Assayo/./src/ts/pages/PageWrapper/styles/index.module.scss?a72c","ts/pages/PageWrapper/index.tsx","webpack://Assayo/./src/ts/components/Page/index.module.scss?740e","ts/components/Page/wrapper.tsx","ts/components/Page/Box.tsx","ts/components/Page/column.tsx","webpack://Assayo/./src/ts/components/NothingFound/index.module.scss?5635","ts/components/NothingFound/components/CommitFormat.tsx","ts/components/NothingFound/index.tsx","webpack://Assayo/./src/ts/components/Loading/index.module.scss?8fed","ts/components/Loading/index.tsx","../node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js","../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","ts/components/DataLoader/store/index.ts","ts/components/DataLoader/ErrorDescription.tsx","ts/components/DataLoader/index.tsx","ts/components/UiKit/components/Wrapper.tsx","ts/components/UiKit/components/InputString.tsx","webpack://Assayo/./src/ts/components/DataLoader/styles/paginator.module.scss?cdbf","ts/components/DataLoader/components/Pagination.tsx","ts/components/DataLoader/helpers/formatter.ts","webpack://Assayo/./src/ts/components/Title/index.module.scss?deaf","ts/components/Title/index.tsx","webpack://Assayo/./src/ts/components/Table/styles/header.module.scss?7518","webpack://Assayo/./src/ts/components/Table/styles/index.module.scss?d354","ts/components/Table/components/Header.tsx","ts/components/Table/components/cells/CellDefault.tsx","ts/components/Table/components/Body.tsx","ts/components/Table/helpers/getColumnConfigs.ts","ts/components/Table/interfaces/Column.ts","ts/components/Table/index.tsx","ts/components/Table/helpers/getDefaultProps.ts","ts/components/Table/helpers/getAdaptiveColumnWidth.ts","ts/components/Table/components/Column.tsx","ts/components/LineChart/helpers/getSubLines.ts","ts/components/LineChart/components/Line.tsx","webpack://Assayo/./src/ts/components/LineChart/styles/index.module.scss?0dcb","ts/components/LineChart/index.tsx","ts/helpers/ColorGenerator.ts","ts/components/LineChart/helpers/getOptions.ts","webpack://Assayo/./src/ts/components/Description/index.module.scss?ef9c","ts/components/Description/index.tsx","webpack://Assayo/./src/ts/components/Recommendations/styles/card.module.scss?3d66","ts/components/Recommendations/components/Card.tsx","webpack://Assayo/./src/ts/components/Recommendations/styles/index.module.scss?682f","ts/components/Recommendations/index.tsx","ts/components/Recommendations/wrapper.tsx","ts/pages/Common/helpers/getMax.ts","ts/pages/Team/components/Author.tsx","webpack://Assayo/./src/ts/components/BarChart/index.module.scss?116a","ts/components/BarChart/index.tsx","webpack://Assayo/./src/ts/components/ExternalLink/index.module.scss?8b82","ts/components/ExternalLink/index.tsx","webpack://Assayo/./src/ts/components/DayInfo/index.module.scss?47cc","ts/components/DayInfo/index.tsx","ts/pages/Common/components/Commits.tsx","ts/pages/Team/components/Commits.tsx","ts/pages/Common/components/Changes.tsx","ts/pages/Team/components/Changes.tsx","webpack://Assayo/./src/ts/components/HoursChart/index.module.scss?ee94","ts/components/HoursChart/components/Header.tsx","ts/components/HoursChart/components/Columns.tsx","webpack://Assayo/./src/ts/components/HoursChart/styles/legend.module.scss?3ebe","ts/components/HoursChart/components/Legend.tsx","ts/components/HoursChart/index.tsx","ts/pages/Team/components/Hours.tsx","webpack://Assayo/./src/ts/components/CandyChart/index.module.scss?52e0","ts/components/CandyChart/index.tsx","ts/pages/Common/components/PopularWords.tsx","ts/pages/Team/components/PopularWords.tsx","ts/pages/Team/components/Scope.tsx","ts/components/UiKit/components/Select.tsx","webpack://Assayo/./src/ts/components/Tempo/styles/index.module.scss?c767","ts/components/Tempo/components/Header.tsx","ts/components/Tempo/components/Author.tsx","webpack://Assayo/./src/ts/components/Tempo/styles/task.module.scss?e18b","ts/components/Tempo/components/Tasks.tsx","webpack://Assayo/./src/ts/components/Tempo/styles/chart.module.scss?391a","ts/components/Tempo/components/Chart.tsx","ts/components/Tempo/components/Column.tsx","ts/components/Tempo/index.tsx","webpack://Assayo/./src/ts/pages/Team/styles/filters.module.scss?79f7","ts/pages/Team/components/Tempo.tsx","webpack://Assayo/./src/ts/components/CardWithIcon/index.module.scss?9e5a","ts/components/CardWithIcon/index.tsx","ts/pages/Team/components/Total.tsx","ts/components/UiKit/components/SelectWithButtons.tsx","ts/components/UiKit/components/InputNumber.tsx","ts/pages/Team/store/Tree.ts","ts/pages/Team/components/TreeFilters.tsx","ts/pages/Team/helpers/tree.ts","ts/pages/Team/components/Tree.tsx","ts/pages/Team/components/Type.tsx","ts/pages/Team/components/Week.tsx","ts/components/YearChart/helpers/getCommitsByMonth.ts","webpack://Assayo/./src/ts/components/YearChart/styles/index.module.scss?2ed5","ts/components/YearChart/components/Header.tsx","ts/components/YearChart/helpers/day.ts","ts/components/YearChart/components/Day.tsx","ts/components/YearChart/components/Body.tsx","webpack://Assayo/./src/ts/components/YearChart/styles/line.module.scss?1b93","ts/components/YearChart/components/Month.tsx","ts/components/YearChart/index.tsx","ts/components/YearChart/helpers/getAuthorByDate.ts","ts/pages/Team/components/Month.tsx","ts/helpers/achievement/constants/type.ts","ts/helpers/achievement/constants/list.ts","webpack://Assayo/./src/ts/components/Achievement/styles/index.module.scss?bab2","ts/components/Achievement/components/Item.tsx","webpack://Assayo/./src/ts/components/Extension/styles/index.module.scss?0c7b","ts/components/Extension/components/Icon.tsx","ts/components/Extension/components/Line.tsx","ts/components/Extension/index.tsx","webpack://Assayo/./src/ts/components/Races/index.module.scss?54e7","ts/components/Races/Info.tsx","ts/components/Races/Track.tsx","ts/components/Races/index.tsx","webpack://Assayo/./src/ts/components/Tv100And1/styles/index.module.scss?9d22","ts/components/Tv100And1/components/Title.tsx","ts/components/Tv100And1/index.tsx","ts/helpers/achievement/byAuthor.ts","webpack://Assayo/./src/ts/pages/Team/styles/quiz.module.scss?23ad","ts/pages/Team/components/Top.tsx","ts/pages/Common/components/PageBreak.tsx","ts/pages/Team/components/PR/Total.tsx","ts/pages/Team/components/PR/Authors.tsx","ts/pages/Team/components/PR/All.tsx","ts/pages/Team/components/PR/index.tsx","ts/pages/Team/components/Print.tsx","ts/pages/Team/index.tsx","webpack://Assayo/./src/ts/pages/Person/styles/index.module.scss?a3c4","ts/pages/Person/components/UserSelect.tsx","ts/pages/Person/components/Changes.tsx","ts/pages/Person/components/Commits.tsx","ts/pages/Person/components/Hours.tsx","ts/components/NothingFound/components/IsStaff.tsx","ts/pages/Person/components/Money.tsx","ts/pages/Person/components/PopularWords.tsx","ts/pages/Person/components/Speed.tsx","ts/components/Achievement/index.tsx","webpack://Assayo/./src/ts/components/Character/styles/index.module.scss?6906","ts/components/Character/components/Halo.tsx","ts/components/Character/helpers/index.ts","ts/components/Character/components/Layers.tsx","ts/components/Character/index.tsx","webpack://Assayo/./src/ts/components/GetList/styles/index.module.scss?a136","ts/components/GetList/components/Item.tsx","ts/components/GetList/index.tsx","ts/pages/Person/components/Total.tsx","ts/pages/Person/components/Week.tsx","ts/pages/Person/components/Month.tsx","ts/pages/Person/components/Tempo.tsx","webpack://Assayo/./src/ts/pages/Person/styles/print.module.scss?5360","ts/pages/Person/components/print/Total.tsx","ts/pages/Person/components/print/Achievements.tsx","ts/pages/Person/components/Print.tsx","ts/pages/Person/index.tsx","webpack://Assayo/./src/ts/components/Console/index.module.scss?669d","ts/components/Console/index.tsx","webpack://Assayo/./src/ts/pages/Welcome/styles/index.module.scss?8747","ts/pages/Welcome/index.tsx","ts/components/UiKit/components/ButtonMenu.tsx","ts/components/UiKit/components/Columns.tsx","webpack://Assayo/./src/ts/components/UiKit/styles/switch.module.scss?5db9","ts/components/UiKit/components/Switch.tsx","ts/components/UiKit/components/Date.tsx","ts/pages/Settings/components/UserSalary.tsx","ts/pages/Settings/components/User.tsx","ts/pages/Settings/components/Salary.tsx","ts/pages/Settings/components/Common.tsx","ts/pages/Settings/components/MailMap.tsx","ts/pages/Settings/components/Form.tsx","ts/pages/Settings/index.tsx","ts/pages/Authorization/components/Success.tsx","ts/pages/Authorization/index.tsx","webpack://Assayo/./src/ts/components/Notifications/styles/index.module.scss?1137","ts/components/Notifications/components/Message.tsx","ts/components/Notifications/index.tsx","index.tsx"],"sourcesContent":["function evalCsvFile(text: string, onChange: Function) {\n const byTaskId = {};\n text.split('\\n').forEach(row => {\n const [taskId, type, scopeOrTitle, title] = row.split('|');\n const scope = title ? scopeOrTitle : '';\n byTaskId[taskId] = { type, scope };\n });\n onChange('meta', { byTaskId });\n}\n\nfunction evalJsFile(text: string, onChange: Function) {\n // @ts-ignore\n let temp = window.report; // @ts-ignore\n window.report = [];\n const firstText = text.slice(0, 12);\n if (firstText === 'report.push(') {\n try {\n eval(text);\n } catch (e) {\n // error(`Файл отчёта содержит запрещенный символ.\\nОткройте его в редакторе и проверьте.\\n${e.stack}`)\n // @ts-ignore\n window.report = temp;\n return;\n }\n } else { // @ts-ignore\n window.report = text.split('\\n');\n }\n\n // @ts-ignore\n onChange('dump', window.report);\n}\n\nexport function getOnDrop(setLoading: Function, onChange: Function) {\n return function dropFile(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n const dropItems = [...(event?.dataTransfer?.items || [])]\n .map((file: any) => file.kind === 'file' ? file?.getAsFile() : null)\n .filter(file => file);\n\n setLoading(false);\n if (!dropItems.length) return;\n\n if (dropItems[0].type === 'application/json') {\n Promise.all(\n dropItems.map((file: any) => file.text()),\n ).then((text: string[]) => {\n const telegrammMessages = text\n .map(file => JSON.parse(file)?.messages)\n .flat(1);\n // @ts-ignore\n onChange('telegramm', telegrammMessages);\n });\n return;\n }\n\n Promise.all(\n dropItems.map((file: any) => file.text()),\n ).then((text: string[]) => {\n const sortedText = text\n .filter(file => file)\n .map((item: string) => ({ key: item.substring(13, 32), text: item }))\n .sort((a: any, b: any) => (a.key || '').localeCompare(b.key || ''))\n .map(item => item.text)\n .join('\\n');\n\n evalJsFile(sortedText, onChange);\n return; // file.type\n if (text[0] === 'text/csv') evalCsvFile(text[0], onChange);\n });\n };\n}\n\nexport function getShowDropZone(setLoading: Function) {\n return function showDropZone(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n setLoading(true);\n };\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;c<arguments.length;c++)b+=\"&args[]=\"+encodeURIComponent(arguments[c]);return\"Minified React error #\"+a+\"; visit \"+b+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var da=new Set,ea={};function fa(a,b){ha(a,b);ha(a+\"Capture\",b)}\nfunction ha(a,b){ea[a]=b;for(a=0;a<b.length;a++)da.add(b[a])}\nvar ia=!(\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement),ja=Object.prototype.hasOwnProperty,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]*$/,la=\n{},ma={};function oa(a){if(ja.call(ma,a))return!0;if(ja.call(la,a))return!1;if(ka.test(a))return ma[a]=!0;la[a]=!0;return!1}function pa(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case \"function\":case \"symbol\":return!0;case \"boolean\":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return\"data-\"!==a&&\"aria-\"!==a;default:return!1}}\nfunction qa(a,b,c,d){if(null===b||\"undefined\"===typeof b||pa(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"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(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"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(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2<b.length)||\"o\"!==b[0]&&\"O\"!==b[0]||\"n\"!==b[1]&&\"N\"!==b[1])qa(b,c,e,d)&&(c=null),d||null===e?oa(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,\"\"+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:\"\":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?\"\":\"\"+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)))}\nvar ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for(\"react.element\"),wa=Symbol.for(\"react.portal\"),ya=Symbol.for(\"react.fragment\"),za=Symbol.for(\"react.strict_mode\"),Aa=Symbol.for(\"react.profiler\"),Ba=Symbol.for(\"react.provider\"),Ca=Symbol.for(\"react.context\"),Da=Symbol.for(\"react.forward_ref\"),Ea=Symbol.for(\"react.suspense\"),Fa=Symbol.for(\"react.suspense_list\"),Ga=Symbol.for(\"react.memo\"),Ha=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\");Symbol.for(\"react.debug_trace_mode\");\nvar 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(a){if(null===a||\"object\"!==typeof a)return null;a=Ja&&a[Ja]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}var A=Object.assign,La;function Ma(a){if(void 0===La)try{throw Error();}catch(c){var b=c.stack.trim().match(/\\n( *(at )?)/);La=b&&b[1]||\"\"}return\"\\n\"+La+a}var Na=!1;\nfunction Oa(a,b){if(!a||Na)return\"\";Na=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,\"props\",{set:function(){throw Error();}}),\"object\"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[])}catch(l){var d=l}Reflect.construct(a,[],b)}else{try{b.call()}catch(l){d=l}a.call(b.prototype)}else{try{throw Error();}catch(l){d=l}a()}}catch(l){if(l&&d&&\"string\"===typeof l.stack){for(var e=l.stack.split(\"\\n\"),\nf=d.stack.split(\"\\n\"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h){do if(g--,h--,0>h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"<anonymous>\")&&(k=k.replace(\"<anonymous>\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){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 a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 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 b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b[\"$\"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty(\"$\"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=\"\"+Sa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}\nfunction gb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(p(91));return A({},b,{value:void 0,defaultValue:void 0,children:\"\"+a._wrapperState.initialValue})}function hb(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(p(92));if(eb(c)){if(1<c.length)throw Error(p(93));c=c[0]}b=c}null==b&&(b=\"\");c=b}a._wrapperState={initialValue:Sa(c)}}\nfunction ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=\"\"+d)}function jb(a){var b=a.textContent;b===a._wrapperState.initialValue&&\"\"!==b&&null!==b&&(a.value=b)}function kb(a){switch(a){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\"}}\nfunction lb(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?kb(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar mb,nb=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(\"http://www.w3.org/2000/svg\"!==a.namespaceURI||\"innerHTML\"in a)a.innerHTML=b;else{mb=mb||document.createElement(\"div\");mb.innerHTML=\"<svg>\"+b.valueOf().toString()+\"</svg>\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){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!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a<b.length;a++)Bb(b[a])}}function Gb(a,b){return a(b)}function Hb(){}var Ib=!1;function Jb(a,b,c){if(Ib)return a(b,c);Ib=!0;try{return Gb(a,b,c)}finally{if(Ib=!1,null!==zb||null!==Ab)Hb(),Fb()}}\nfunction Kb(a,b){var c=a.stateNode;if(null===c)return null;var d=Db(c);if(null===d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":case \"onMouseEnter\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&\"function\"!==\ntypeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,\"passive\",{get:function(){Lb=!0}});window.addEventListener(\"test\",Mb,Mb);window.removeEventListener(\"test\",Mb,Mb)}catch(a){Lb=!1}function Nb(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(m){this.onError(m)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0;Pb=a}};function Tb(a,b,c,d,e,f,g,h,k){Ob=!1;Pb=null;Nb.apply(Sb,arguments)}\nfunction Ub(a,b,c,d,e,f,g,h,k){Tb.apply(this,arguments);if(Ob){if(Ob){var l=Pb;Ob=!1;Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=l)}}function Vb(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.flags&4098)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Wb(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p(188));}\nfunction Yb(a){var b=a.alternate;if(!b){b=Vb(a);if(null===b)throw Error(p(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Xb(e),a;if(f===d)return Xb(e),b;f=f.sibling}throw Error(p(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===\nc){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(p(189));}}if(c.alternate!==d)throw Error(p(190));}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}function Zb(a){a=Yb(a);return null!==a?$b(a):null}function $b(a){if(5===a.tag||6===a.tag)return a;for(a=a.child;null!==a;){var b=$b(a);if(null!==b)return b;a=a.sibling}return null}\nvar ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a){if(lc&&\"function\"===typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,a,void 0,128===(a.current.flags&128))}catch(b){}}\nvar oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){a>>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-oc(b),e=1<<c,d|=a[c],b&=~e;return d}\nfunction vc(a,b){switch(a){case 1:case 2:case 4:return b+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 b+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}}\nfunction wc(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTimes,f=a.pendingLanes;0<f;){var g=31-oc(f),h=1<<g,k=e[g];if(-1===k){if(0===(h&c)||0!==(h&d))e[g]=vc(h,b)}else k<=b&&(a.expiredLanes|=h);f&=~h}}function xc(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function yc(){var a=rc;rc<<=1;0===(rc&4194240)&&(rc=64);return a}function zc(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0<c;){var e=31-oc(c),f=1<<e;b[e]=0;d[e]=-1;a[e]=-1;c&=~f}}\nfunction Cc(a,b){var c=a.entangledLanes|=b;for(a=a.entanglements;c;){var d=31-oc(c),e=1<<d;e&b|a[d]&b&&(a[d]|=b);c&=~e}}var C=0;function Dc(a){a&=-a;return 1<a?4<a?0!==(a&268435455)?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],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(\" \");\nfunction Sc(a,b){switch(a){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(b.pointerId);break;case \"gotpointercapture\":case \"lostpointercapture\":Pc.delete(b.pointerId)}}\nfunction Tc(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a={blockedOn:b,domEventName:c,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},null!==b&&(b=Cb(b),null!==b&&Fc(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}\nfunction Uc(a,b,c,d,e){switch(b){case \"focusin\":return Lc=Tc(Lc,a,b,c,d,e),!0;case \"dragenter\":return Mc=Tc(Mc,a,b,c,d,e),!0;case \"mouseover\":return Nc=Tc(Nc,a,b,c,d,e),!0;case \"pointerover\":var f=e.pointerId;Oc.set(f,Tc(Oc.get(f)||null,a,b,c,d,e));return!0;case \"gotpointercapture\":return f=e.pointerId,Pc.set(f,Tc(Pc.get(f)||null,a,b,c,d,e)),!0}return!1}\nfunction Vc(a){var b=Wc(a.target);if(null!==b){var c=Vb(b);if(null!==c)if(b=c.tag,13===b){if(b=Wb(c),null!==b){a.blockedOn=b;Ic(a.priority,function(){Gc(c)});return}}else if(3===b&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}\nfunction Xc(a){if(null!==a.blockedOn)return!1;for(var b=a.targetContainers;0<b.length;){var c=Yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null===c){c=a.nativeEvent;var d=new c.constructor(c.type,c);wb=d;c.target.dispatchEvent(d);wb=null}else return b=Cb(c),null!==b&&Fc(b),a.blockedOn=c,!1;b.shift()}return!0}function Zc(a,b,c){Xc(a)&&c.delete(b)}function $c(){Jc=!1;null!==Lc&&Xc(Lc)&&(Lc=null);null!==Mc&&Xc(Mc)&&(Mc=null);null!==Nc&&Xc(Nc)&&(Nc=null);Oc.forEach(Zc);Pc.forEach(Zc)}\nfunction ad(a,b){a.blockedOn===b&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}\nfunction bd(a){function b(b){return ad(b,a)}if(0<Kc.length){ad(Kc[0],a);for(var c=1;c<Kc.length;c++){var d=Kc[c];d.blockedOn===a&&(d.blockedOn=null)}}null!==Lc&&ad(Lc,a);null!==Mc&&ad(Mc,a);null!==Nc&&ad(Nc,a);Oc.forEach(b);Pc.forEach(b);for(c=0;c<Qc.length;c++)d=Qc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<Qc.length&&(c=Qc[0],null===c.blockedOn);)Vc(c),null===c.blockedOn&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;\nfunction ed(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=1,fd(a,b,c,d)}finally{C=e,cd.transition=f}}function gd(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=4,fd(a,b,c,d)}finally{C=e,cd.transition=f}}\nfunction fd(a,b,c,d){if(dd){var e=Yc(a,b,c,d);if(null===e)hd(a,b,d,id,c),Sc(a,d);else if(Uc(e,a,b,c,d))d.stopPropagation();else if(Sc(a,d),b&4&&-1<Rc.indexOf(a)){for(;null!==e;){var f=Cb(e);null!==f&&Ec(f);f=Yc(a,b,c,d);null===f&&hd(a,b,d,id,c);if(f===e)break;e=f}null!==e&&d.stopPropagation()}else hd(a,b,d,null,c)}}var id=null;\nfunction Yc(a,b,c,d){id=null;a=xb(d);a=Wc(a);if(null!==a)if(b=Vb(a),null===b)a=null;else if(c=b.tag,13===c){a=Wb(b);if(null!==a)return a;a=null}else if(3===c){if(b.stateNode.current.memoizedState.isDehydrated)return 3===b.tag?b.stateNode.containerInfo:null;a=null}else b!==a&&(a=null);id=a;return null}\nfunction jd(a){switch(a){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;\ncase \"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,ld=null,md=null;function nd(){if(md)return md;var a,b=ld,c=b.length,d,e=\"value\"in kd?kd.value:kd.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md=e.slice(a,1<d?1-d:void 0)}\nfunction od(a){var b=a.keyCode;\"charCode\"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function pd(){return!0}function qd(){return!1}\nfunction rd(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd:qd;this.isPropagationStopped=qd;return this}A(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():\"unknown\"!==typeof a.returnValue&&\n(a.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():\"unknown\"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd});return b}\nvar sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,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(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if(\"movementX\"in\na)return a.movementX;a!==yd&&(yd&&\"mousemove\"===a.type?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a);return wd},movementY:function(a){return\"movementY\"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:\"Escape\",\nSpacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},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\",\n119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},Od={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function Pd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Od[a])?!!b[a]:!1}function zd(){return Pd}\nvar Qd=A({},ud,{key:function(a){if(a.key){var b=Md[a.key]||a.key;if(\"Unidentified\"!==b)return b}return\"keypress\"===a.type?(a=od(a),13===a?\"Enter\":String.fromCharCode(a)):\"keydown\"===a.type||\"keyup\"===a.type?Nd[a.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return\"keypress\"===a.type?od(a):0},keyCode:function(a){return\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0},which:function(a){return\"keypress\"===\na.type?od(a):\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(a){return\"deltaX\"in a?a.deltaX:\"wheelDeltaX\"in a?-a.wheelDeltaX:0},\ndeltaY:function(a){return\"deltaY\"in a?a.deltaY:\"wheelDeltaY\"in a?-a.wheelDeltaY:\"wheelDelta\"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&\"CompositionEvent\"in window,be=null;ia&&\"documentMode\"in document&&(be=document.documentMode);var ce=ia&&\"TextEvent\"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case \"compositionend\":return de&&\"ko\"!==b.locale?null:b.data;default:return null}}\nvar le={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return\"input\"===b?!!le[a.type]:\"textarea\"===b?!0:!1}function ne(a,b,c,d){Eb(d);b=oe(b,\"onChange\");0<b.length&&(c=new td(\"onChange\",\"change\",null,c,d),a.push({event:c,listeners:b}))}var pe=null,qe=null;function re(a){se(a,0)}function te(a){var b=ue(a);if(Wa(b))return a}\nfunction ve(a,b){if(\"change\"===a)return b}var we=!1;if(ia){var xe;if(ia){var ye=\"oninput\"in document;if(!ye){var ze=document.createElement(\"div\");ze.setAttribute(\"oninput\",\"return;\");ye=\"function\"===typeof ze.oninput}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent(\"onpropertychange\",Be),qe=pe=null)}function Be(a){if(\"value\"===a.propertyName&&te(qe)){var b=[];ne(b,qe,a,xb(a));Jb(re,b)}}\nfunction Ce(a,b,c){\"focusin\"===a?(Ae(),pe=b,qe=c,pe.attachEvent(\"onpropertychange\",Be)):\"focusout\"===a&&Ae()}function De(a){if(\"selectionchange\"===a||\"keyup\"===a||\"keydown\"===a)return te(qe)}function Ee(a,b){if(\"click\"===a)return te(b)}function Fe(a,b){if(\"input\"===a||\"change\"===a)return te(b)}function Ge(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var He=\"function\"===typeof Object.is?Object.is:Ge;\nfunction Ie(a,b){if(He(a,b))return!0;if(\"object\"!==typeof a||null===a||\"object\"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var e=c[d];if(!ja.call(b,e)||!He(a[e],b[e]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}\nfunction Ke(a,b){var c=Je(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c<b.length;c++)a=b[c],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}\nvar Pe=ia&&\"documentMode\"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0<d.length&&(b=new td(\"onSelect\",\"select\",null,b,c),a.push({event:b,listeners:d}),b.target=Qe)))}\nfunction Ve(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;return c}var We={animationend:Ve(\"Animation\",\"AnimationEnd\"),animationiteration:Ve(\"Animation\",\"AnimationIteration\"),animationstart:Ve(\"Animation\",\"AnimationStart\"),transitionend:Ve(\"Transition\",\"TransitionEnd\")},Xe={},Ye={};\nia&&(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(a){if(Xe[a])return Xe[a];if(!We[a])return a;var b=We[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Ye)return Xe[a]=b[c];return a}var $e=Ze(\"animationend\"),af=Ze(\"animationiteration\"),bf=Ze(\"animationstart\"),cf=Ze(\"transitionend\"),df=new Map,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(\" \");\nfunction ff(a,b){df.set(a,b);fa(b,[a])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,\"on\"+kf)}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\"]);\nha(\"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(\" \"));\nfa(\"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(\" \"),mf=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(lf));\nfunction nf(a,b,c){var d=a.type||\"unknown-event\";a.currentTarget=c;Ub(d,b,void 0,a);a.currentTarget=null}\nfunction se(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a;}\nfunction D(a,b){var c=b[of];void 0===c&&(c=b[of]=new Set);var d=a+\"__bubble\";c.has(d)||(pf(b,a,2,!1),c.add(d))}function qf(a,b,c){var d=0;b&&(d|=4);pf(c,a,d,b)}var rf=\"_reactListening\"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0;da.forEach(function(b){\"selectionchange\"!==b&&(mf.has(b)||qf(b,!1,a),qf(b,!0,a))});var b=9===a.nodeType?a:a.ownerDocument;null===b||b[rf]||(b[rf]=!0,qf(\"selectionchange\",!1,b))}}\nfunction pf(a,b,c,d){switch(jd(b)){case 1:var e=ed;break;case 4:e=gd;break;default:e=fd}c=e.bind(null,b,c,a);e=void 0;!Lb||\"touchstart\"!==b&&\"touchmove\"!==b&&\"wheel\"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1)}\nfunction hd(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&k.parentNode===e)return;g=g.return}for(;null!==h;){g=Wc(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode}}d=d.return}Jb(function(){var d=f,e=xb(c),g=[];\na:{var h=df.get(a);if(void 0!==h){var k=td,n=a;switch(a){case \"keypress\":if(0===od(c))break a;case \"keydown\":case \"keyup\":k=Rd;break;case \"focusin\":n=\"focus\";k=Fd;break;case \"focusout\":n=\"blur\";k=Fd;break;case \"beforeblur\":case \"afterblur\":k=Fd;break;case \"click\":if(2===c.button)break a;case \"auxclick\":case \"dblclick\":case \"mousedown\":case \"mousemove\":case \"mouseup\":case \"mouseout\":case \"mouseover\":case \"contextmenu\":k=Bd;break;case \"drag\":case \"dragend\":case \"dragenter\":case \"dragexit\":case \"dragleave\":case \"dragover\":case \"dragstart\":case \"drop\":k=\nDd;break;case \"touchcancel\":case \"touchend\":case \"touchmove\":case \"touchstart\":k=Vd;break;case $e:case af:case bf:k=Hd;break;case cf:k=Xd;break;case \"scroll\":k=vd;break;case \"wheel\":k=Zd;break;case \"copy\":case \"cut\":case \"paste\":k=Jd;break;case \"gotpointercapture\":case \"lostpointercapture\":case \"pointercancel\":case \"pointerdown\":case \"pointermove\":case \"pointerout\":case \"pointerover\":case \"pointerup\":k=Td}var t=0!==(b&4),J=!t&&\"scroll\"===a,x=t?null!==h?h+\"Capture\":null:h;t=[];for(var w=d,u;null!==\nw;){u=w;var F=u.stateNode;5===u.tag&&null!==F&&(u=F,null!==x&&(F=Kb(w,x),null!=F&&t.push(tf(w,F,u))));if(J)break;w=w.return}0<t.length&&(h=new k(h,n,null,c,e),g.push({event:h,listeners:t}))}}if(0===(b&7)){a:{h=\"mouseover\"===a||\"pointerover\"===a;k=\"mouseout\"===a||\"pointerout\"===a;if(h&&c!==wb&&(n=c.relatedTarget||c.fromElement)&&(Wc(n)||n[uf]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window;if(k){if(n=c.relatedTarget||c.toElement,k=d,n=n?Wc(n):null,null!==\nn&&(J=Vb(n),n!==J||5!==n.tag&&6!==n.tag))n=null}else k=null,n=d;if(k!==n){t=Bd;F=\"onMouseLeave\";x=\"onMouseEnter\";w=\"mouse\";if(\"pointerout\"===a||\"pointerover\"===a)t=Td,F=\"onPointerLeave\",x=\"onPointerEnter\",w=\"pointer\";J=null==k?h:ue(k);u=null==n?h:ue(n);h=new t(F,w+\"leave\",k,c,e);h.target=J;h.relatedTarget=u;F=null;Wc(e)===d&&(t=new t(x,w+\"enter\",n,c,e),t.target=u,t.relatedTarget=J,F=t);J=F;if(k&&n)b:{t=k;x=n;w=0;for(u=t;u;u=vf(u))w++;u=0;for(F=x;F;F=vf(F))u++;for(;0<w-u;)t=vf(t),w--;for(;0<u-w;)x=\nvf(x),u--;for(;w--;){if(t===x||null!==x&&t===x.alternate)break b;t=vf(t);x=vf(x)}t=null}else t=null;null!==k&&wf(g,h,k,t,!1);null!==n&&null!==J&&wf(g,J,n,t,!0)}}}a:{h=d?ue(d):window;k=h.nodeName&&h.nodeName.toLowerCase();if(\"select\"===k||\"input\"===k&&\"file\"===h.type)var na=ve;else if(me(h))if(we)na=Fe;else{na=De;var xa=Ce}else(k=h.nodeName)&&\"input\"===k.toLowerCase()&&(\"checkbox\"===h.type||\"radio\"===h.type)&&(na=Ee);if(na&&(na=na(a,d))){ne(g,na,c,e);break a}xa&&xa(a,h,d);\"focusout\"===a&&(xa=h._wrapperState)&&\nxa.controlled&&\"number\"===h.type&&cb(h,\"number\",h.value)}xa=d?ue(d):window;switch(a){case \"focusin\":if(me(xa)||\"true\"===xa.contentEditable)Qe=xa,Re=d,Se=null;break;case \"focusout\":Se=Re=Qe=null;break;case \"mousedown\":Te=!0;break;case \"contextmenu\":case \"mouseup\":case \"dragend\":Te=!1;Ue(g,c,e);break;case \"selectionchange\":if(Pe)break;case \"keydown\":case \"keyup\":Ue(g,c,e)}var $a;if(ae)b:{switch(a){case \"compositionstart\":var ba=\"onCompositionStart\";break b;case \"compositionend\":ba=\"onCompositionEnd\";\nbreak b;case \"compositionupdate\":ba=\"onCompositionUpdate\";break b}ba=void 0}else ie?ge(a,c)&&(ba=\"onCompositionEnd\"):\"keydown\"===a&&229===c.keyCode&&(ba=\"onCompositionStart\");ba&&(de&&\"ko\"!==c.locale&&(ie||\"onCompositionStart\"!==ba?\"onCompositionEnd\"===ba&&ie&&($a=nd()):(kd=e,ld=\"value\"in kd?kd.value:kd.textContent,ie=!0)),xa=oe(d,ba),0<xa.length&&(ba=new Ld(ba,a,null,c,e),g.push({event:ba,listeners:xa}),$a?ba.data=$a:($a=he(c),null!==$a&&(ba.data=$a))));if($a=ce?je(a,c):ke(a,c))d=oe(d,\"onBeforeInput\"),\n0<d.length&&(e=new Ld(\"onBeforeInput\",\"beforeinput\",null,c,e),g.push({event:e,listeners:d}),e.data=$a)}se(g,b)})}function tf(a,b,c){return{instance:a,listener:b,currentTarget:c}}function oe(a,b){for(var c=b+\"Capture\",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Kb(a,c),null!=f&&d.unshift(tf(a,f,e)),f=Kb(a,b),null!=f&&d.push(tf(a,f,e)));a=a.return}return d}function vf(a){if(null===a)return null;do a=a.return;while(a&&5!==a.tag);return a?a:null}\nfunction wf(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?(k=Kb(c,f),null!=k&&g.unshift(tf(c,k,h))):e||(k=Kb(c,f),null!=k&&g.push(tf(c,k,h))));c=c.return}0!==g.length&&a.push({event:b,listeners:g})}var xf=/\\r\\n?/g,yf=/\\u0000|\\uFFFD/g;function zf(a){return(\"string\"===typeof a?a:\"\"+a).replace(xf,\"\\n\").replace(yf,\"\")}function Af(a,b,c){b=zf(b);if(zf(a)!==b&&c)throw Error(p(425));}function Bf(){}\nvar Cf=null,Df=null;function Ef(a,b){return\"textarea\"===a||\"noscript\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}\nvar Ff=\"function\"===typeof setTimeout?setTimeout:void 0,Gf=\"function\"===typeof clearTimeout?clearTimeout:void 0,Hf=\"function\"===typeof Promise?Promise:void 0,Jf=\"function\"===typeof queueMicrotask?queueMicrotask:\"undefined\"!==typeof Hf?function(a){return Hf.resolve(null).then(a).catch(If)}:Ff;function If(a){setTimeout(function(){throw a;})}\nfunction Kf(a,b){var c=b,d=0;do{var e=c.nextSibling;a.removeChild(c);if(e&&8===e.nodeType)if(c=e.data,\"/$\"===c){if(0===d){a.removeChild(e);bd(b);return}d--}else\"$\"!==c&&\"$?\"!==c&&\"$!\"!==c||d++;c=e}while(c);bd(b)}function Lf(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break;if(8===b){b=a.data;if(\"$\"===b||\"$!\"===b||\"$?\"===b)break;if(\"/$\"===b)return null}}return a}\nfunction Mf(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(\"$\"===c||\"$!\"===c||\"$?\"===c){if(0===b)return a;b--}else\"/$\"===c&&b++}a=a.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of=\"__reactFiber$\"+Nf,Pf=\"__reactProps$\"+Nf,uf=\"__reactContainer$\"+Nf,of=\"__reactEvents$\"+Nf,Qf=\"__reactListeners$\"+Nf,Rf=\"__reactHandles$\"+Nf;\nfunction Wc(a){var b=a[Of];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf]||c[Of]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Mf(a);null!==a;){if(c=a[Of])return c;a=Mf(a)}return b}a=c;c=a.parentNode}return null}function Cb(a){a=a[Of]||a[uf];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p(33));}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return{current:a}}\nfunction E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a<c.length;a++){var d=c[a];do d=d(!0);while(null!==d)}eg=null;fg=!1}catch(e){throw null!==eg&&(eg=eg.slice(a+1)),ac(fc,jg),e;}finally{C=b,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg=\"\";function tg(a,b){kg[lg++]=ng;kg[lg++]=mg;mg=a;ng=b}\nfunction ug(a,b,c){og[pg++]=rg;og[pg++]=sg;og[pg++]=qg;qg=a;var d=rg;a=sg;var e=32-oc(d)-1;d&=~(1<<e);c+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;rg=1<<32-oc(b)+e|c<<e|d;sg=f+a}else rg=1<<f|c<<e|d,sg=a}function vg(a){null!==a.return&&(tg(a,1),ug(a,1,0))}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;\nfunction Ag(a,b){var c=Bg(5,null,null,0);c.elementType=\"DELETED\";c.stateNode=b;c.return=a;b=a.deletions;null===b?(a.deletions=[c],a.flags|=16):b.push(c)}\nfunction Cg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,xg=a,yg=Lf(b.firstChild),!0):!1;case 6:return b=\"\"===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,xg=a,yg=null,!0):!1;case 13:return b=8!==b.nodeType?null:b,null!==b?(c=null!==qg?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:b,treeContext:c,retryLane:1073741824},c=Bg(18,null,null,0),c.stateNode=b,c.return=a,a.child=c,xg=a,yg=\nnull,!0):!1;default:return!1}}function Dg(a){return 0!==(a.mode&1)&&0===(a.flags&128)}function Eg(a){if(I){var b=yg;if(b){var c=b;if(!Cg(a,b)){if(Dg(a))throw Error(p(418));b=Lf(c.nextSibling);var d=xg;b&&Cg(a,b)?Ag(d,c):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p(418));a.flags=a.flags&-4097|2;I=!1;xg=a}}}function Fg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg=a}\nfunction Gg(a){if(a!==xg)return!1;if(!I)return Fg(a),I=!0,!1;var b;(b=3!==a.tag)&&!(b=5!==a.tag)&&(b=a.type,b=\"head\"!==b&&\"body\"!==b&&!Ef(a.type,a.memoizedProps));if(b&&(b=yg)){if(Dg(a))throw Hg(),Error(p(418));for(;b;)Ag(a,b),b=Lf(b.nextSibling)}Fg(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(p(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(\"/$\"===c){if(0===b){yg=Lf(a.nextSibling);break a}b--}else\"$\"!==c&&\"$!\"!==c&&\"$?\"!==c||b++}a=a.nextSibling}yg=\nnull}}else yg=xg?Lf(a.stateNode.nextSibling):null;return!0}function Hg(){for(var a=yg;a;)a=Lf(a.nextSibling)}function Ig(){yg=xg=null;I=!1}function Jg(a){null===zg?zg=[a]:zg.push(a)}var Kg=ua.ReactCurrentBatchConfig;function Lg(a,b){if(a&&a.defaultProps){b=A({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(a){var b=Mg.current;E(Mg);a._currentValue=b}\nfunction Sg(a,b,c){for(;null!==a;){var d=a.alternate;(a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b);if(a===c)break;a=a.return}}function Tg(a,b){Ng=a;Pg=Og=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(Ug=!0),a.firstContext=null)}\nfunction Vg(a){var b=a._currentValue;if(Pg!==a)if(a={context:a,memoizedValue:b,next:null},null===Og){if(null===Ng)throw Error(p(308));Og=a;Ng.dependencies={lanes:0,firstContext:a}}else Og=Og.next=a;return b}var Wg=null;function Xg(a){null===Wg?Wg=[a]:Wg.push(a)}function Yg(a,b,c,d){var e=b.interleaved;null===e?(c.next=c,Xg(b)):(c.next=e.next,e.next=c);b.interleaved=c;return Zg(a,d)}\nfunction Zg(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var $g=!1;function ah(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}\nfunction bh(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ch(a,b){return{eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}\nfunction dh(a,b,c){var d=a.updateQueue;if(null===d)return null;d=d.shared;if(0!==(K&2)){var e=d.pending;null===e?b.next=b:(b.next=e.next,e.next=b);d.pending=b;return Zg(a,c)}e=d.interleaved;null===e?(b.next=b,Xg(d)):(b.next=e.next,e.next=b);d.interleaved=b;return Zg(a,c)}function eh(a,b,c){b=b.updateQueue;if(null!==b&&(b=b.shared,0!==(c&4194240))){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nfunction fh(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next}while(null!==c);null===f?e=f=b:f=f.next=b}else e=f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=\nb;c.lastBaseUpdate=b}\nfunction gh(a,b,c,d){var e=a.updateQueue;$g=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var m=a.alternate;null!==m&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k))}if(null!==f){var q=e.baseState;g=0;m=l=k=null;h=f;do{var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,\nnext:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if(\"function\"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r=\"function\"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A({},q,r);break a;case 2:$g=!0}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h))}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;\nh=h.next;if(null===h)if(h=e.shared.pending,null===h)break;else r=h,h=r.next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null}while(1);null===m&&(k=q);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=m;b=e.shared.interleaved;if(null!==b){e=b;do g|=e.lane,e=e.next;while(e!==b)}else null===f&&(e.shared.lanes=0);hh|=g;a.lanes=g;a.memoizedState=q}}\nfunction ih(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if(\"function\"!==typeof e)throw Error(p(191,e));e.call(d)}}}var jh=(new aa.Component).refs;function kh(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:A({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c)}\nvar nh={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=L(),e=lh(a),f=ch(d,e);f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=dh(a,f,e);null!==b&&(mh(b,a,e,d),eh(b,a,e))},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=L(),e=lh(a),f=ch(d,e);f.tag=1;f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=dh(a,f,e);null!==b&&(mh(b,a,e,d),eh(b,a,e))},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=L(),d=\nlh(a),e=ch(c,d);e.tag=2;void 0!==b&&null!==b&&(e.callback=b);b=dh(a,e,d);null!==b&&(mh(b,a,d,c),eh(b,a,d))}};function oh(a,b,c,d,e,f,g){a=a.stateNode;return\"function\"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Ie(c,d)||!Ie(e,f):!0}\nfunction ph(a,b,c){var d=!1,e=Vf;var f=b.contextType;\"object\"===typeof f&&null!==f?f=Vg(f):(e=Zf(b)?Xf:H.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?Yf(a,e):Vf);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=nh;a.stateNode=b;b._reactInternals=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}\nfunction qh(a,b,c,d){a=b.state;\"function\"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);\"function\"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&nh.enqueueReplaceState(b,b.state,null)}\nfunction rh(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs=jh;ah(a);var f=b.contextType;\"object\"===typeof f&&null!==f?e.context=Vg(f):(f=Zf(b)?Xf:H.current,e.context=Yf(a,f));e.state=a.memoizedState;f=b.getDerivedStateFromProps;\"function\"===typeof f&&(kh(a,b,f,c),e.state=a.memoizedState);\"function\"===typeof b.getDerivedStateFromProps||\"function\"===typeof e.getSnapshotBeforeUpdate||\"function\"!==typeof e.UNSAFE_componentWillMount&&\"function\"!==typeof e.componentWillMount||(b=e.state,\n\"function\"===typeof e.componentWillMount&&e.componentWillMount(),\"function\"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&nh.enqueueReplaceState(e,e.state,null),gh(a,c,e,d),e.state=a.memoizedState);\"function\"===typeof e.componentDidMount&&(a.flags|=4194308)}\nfunction sh(a,b,c){a=c.ref;if(null!==a&&\"function\"!==typeof a&&\"object\"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(p(309));var d=c.stateNode}if(!d)throw Error(p(147,a));var e=d,f=\"\"+a;if(null!==b&&null!==b.ref&&\"function\"===typeof b.ref&&b.ref._stringRef===f)return b.ref;b=function(a){var b=e.refs;b===jh&&(b=e.refs={});null===a?delete b[f]:b[f]=a};b._stringRef=f;return b}if(\"string\"!==typeof a)throw Error(p(284));if(!c._owner)throw Error(p(290,a));}return a}\nfunction th(a,b){a=Object.prototype.toString.call(b);throw Error(p(31,\"[object Object]\"===a?\"object with keys {\"+Object.keys(b).join(\", \")+\"}\":a));}function uh(a){var b=a._init;return b(a._payload)}\nfunction vh(a){function b(b,c){if(a){var d=b.deletions;null===d?(b.deletions=[c],b.flags|=16):d.push(c)}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=wh(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return b.flags|=1048576,c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags|=2,c):d;b.flags|=2;return c}function g(b){a&&\nnull===b.alternate&&(b.flags|=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=xh(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){var f=c.type;if(f===ya)return m(a,b,c.props.children,d,c.key);if(null!==b&&(b.elementType===f||\"object\"===typeof f&&null!==f&&f.$$typeof===Ha&&uh(f)===b.type))return d=e(b,c.props),d.ref=sh(a,b,c),d.return=a,d;d=yh(c.type,c.key,c.props,null,a.mode,d);d.ref=sh(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||\nb.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=zh(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function m(a,b,c,d,f){if(null===b||7!==b.tag)return b=Ah(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function q(a,b,c){if(\"string\"===typeof b&&\"\"!==b||\"number\"===typeof b)return b=xh(\"\"+b,a.mode,c),b.return=a,b;if(\"object\"===typeof b&&null!==b){switch(b.$$typeof){case va:return c=yh(b.type,b.key,b.props,null,a.mode,c),\nc.ref=sh(a,null,b),c.return=a,c;case wa:return b=zh(b,a.mode,c),b.return=a,b;case Ha:var d=b._init;return q(a,d(b._payload),c)}if(eb(b)||Ka(b))return b=Ah(b,a.mode,c,null),b.return=a,b;th(a,b)}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if(\"string\"===typeof c&&\"\"!==c||\"number\"===typeof c)return null!==e?null:h(a,b,\"\"+c,d);if(\"object\"===typeof c&&null!==c){switch(c.$$typeof){case va:return c.key===e?k(a,b,c,d):null;case wa:return c.key===e?l(a,b,c,d):null;case Ha:return e=c._init,r(a,\nb,e(c._payload),d)}if(eb(c)||Ka(c))return null!==e?null:m(a,b,c,d,null);th(a,c)}return null}function y(a,b,c,d,e){if(\"string\"===typeof d&&\"\"!==d||\"number\"===typeof d)return a=a.get(c)||null,h(b,a,\"\"+d,e);if(\"object\"===typeof d&&null!==d){switch(d.$$typeof){case va:return a=a.get(null===d.key?c:d.key)||null,k(b,a,d,e);case wa:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e);case Ha:var f=d._init;return y(a,b,c,f(d._payload),e)}if(eb(d)||Ka(d))return a=a.get(c)||null,m(b,a,d,e,null);th(b,d)}return null}\nfunction n(e,g,h,k){for(var l=null,m=null,u=g,w=g=0,x=null;null!==u&&w<h.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;w<h.length;w++)u=q(e,h[w],k),null!==u&&(g=f(u,g,w),null===m?l=u:m.sibling=u,m=u);I&&tg(e,w);return l}for(u=d(e,u);w<h.length;w++)x=y(u,e,w,h[w],k),null!==x&&(a&&null!==x.alternate&&u.delete(null===\nx.key?w:x.key),g=f(x,g,w),null===m?l=x:m.sibling=x,m=x);a&&u.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function t(e,g,h,k){var l=Ka(h);if(\"function\"!==typeof l)throw Error(p(150));h=l.call(h);if(null==h)throw Error(p(151));for(var u=l=null,m=g,w=g=0,x=null,n=h.next();null!==m&&!n.done;w++,n=h.next()){m.index>w?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;a<Nh.length;a++)Nh[a]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p(321));}function Wh(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!He(a[c],b[c]))return!1;return!0}\nfunction Xh(a,b,c,d,e,f){Rh=f;N=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Ph.current=null===a||null===a.memoizedState?Yh:Zh;a=c(d,e);if(Th){f=0;do{Th=!1;Uh=0;if(25<=f)throw Error(p(301));f+=1;P=O=null;b.updateQueue=null;Ph.current=$h;a=c(d,e)}while(Th)}Ph.current=ai;b=null!==O&&null!==O.next;Rh=0;P=O=N=null;Sh=!1;if(b)throw Error(p(300));return a}function bi(){var a=0!==Uh;Uh=0;return a}\nfunction ci(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function di(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(p(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P}\nfunction ei(a,b){return\"function\"===typeof b?b(a):b}\nfunction fi(a){var b=di(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){f=e.next;d=d.baseState;var h=g=null,k=null,l=f;do{var m=l.lane;if((Rh&m)===m)null!==k&&(k=k.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a(d,l.action);else{var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,\neagerState:l.eagerState,next:null};null===k?(h=k=q,g=d):k=k.next=q;N.lanes|=m;hh|=m}l=l.next}while(null!==l&&l!==f);null===k?g=d:k.next=h;He(d,b.memoizedState)||(Ug=!0);b.memoizedState=d;b.baseState=g;b.baseQueue=k;c.lastRenderedState=d}a=c.interleaved;if(null!==a){e=a;do f=e.lane,N.lanes|=f,hh|=f,e=e.next;while(e!==a)}else null===e&&(c.lanes=0);return[b.memoizedState,c.dispatch]}\nfunction gi(a){var b=di(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He(f,b.memoizedState)||(Ug=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function hi(){}\nfunction ii(a,b){var c=N,d=di(),e=b(),f=!He(d.memoizedState,e);f&&(d.memoizedState=e,Ug=!0);d=d.queue;ji(ki.bind(null,c,d,a),[a]);if(d.getSnapshot!==b||f||null!==P&&P.memoizedState.tag&1){c.flags|=2048;li(9,mi.bind(null,c,d,e,b),void 0,null);if(null===R)throw Error(p(349));0!==(Rh&30)||ni(c,b,e)}return e}function ni(a,b,c){a.flags|=16384;a={getSnapshot:b,value:c};b=N.updateQueue;null===b?(b={lastEffect:null,stores:null},N.updateQueue=b,b.stores=[a]):(c=b.stores,null===c?b.stores=[a]:c.push(a))}\nfunction mi(a,b,c,d){b.value=c;b.getSnapshot=d;oi(b)&&pi(a)}function ki(a,b,c){return c(function(){oi(b)&&pi(a)})}function oi(a){var b=a.getSnapshot;a=a.value;try{var c=b();return!He(a,c)}catch(d){return!0}}function pi(a){var b=Zg(a,1);null!==b&&mh(b,a,1,-1)}\nfunction qi(a){var b=ci();\"function\"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:a};b.queue=a;a=a.dispatch=ri.bind(null,N,a);return[b.memoizedState,a]}\nfunction li(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null,stores:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function si(){return di().memoizedState}function ti(a,b,c,d){var e=ci();N.flags|=a;e.memoizedState=li(1|b,c,void 0,void 0===d?null:d)}\nfunction ui(a,b,c,d){var e=di();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&Wh(d,g.deps)){e.memoizedState=li(b,c,f,d);return}}N.flags|=a;e.memoizedState=li(1|b,c,f,d)}function vi(a,b){return ti(8390656,8,a,b)}function ji(a,b){return ui(2048,8,a,b)}function wi(a,b){return ui(4,2,a,b)}function xi(a,b){return ui(4,4,a,b)}\nfunction yi(a,b){if(\"function\"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function zi(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ui(4,4,yi.bind(null,b,a),c)}function Ai(){}function Bi(a,b){var c=di();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Wh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}\nfunction Ci(a,b){var c=di();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Wh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Di(a,b,c){if(0===(Rh&21))return a.baseState&&(a.baseState=!1,Ug=!0),a.memoizedState=c;He(c,b)||(c=yc(),N.lanes|=c,hh|=c,a.baseState=!0);return b}function Ei(a,b){var c=C;C=0!==c&&4>c?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0<c&&(b+=\"H\"+c.toString(32));b+=\":\"}else c=Vh++,b=\":\"+b+\"r\"+c.toString(32)+\":\";return a.memoizedState=b},unstable_isNewReconciler:!1},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)},\nuseDebugValue:Ai,useDeferredValue:function(a){var b=di();return Di(b,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],b=di().memoizedState;return[a,b]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$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(a){var b=di();return null===\nO?b.memoizedState=a:Di(b,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],b=di().memoizedState;return[a,b]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,b){try{var c=\"\",d=b;do c+=Pa(d),d=d.return;while(d);var e=c}catch(f){e=\"\\nError generating stack: \"+f.message+\"\\n\"+f.stack}return{value:a,source:b,stack:e,digest:null}}function Li(a,b,c){return{value:a,source:null,stack:null!=c?c:null,digest:null!=b?b:null}}\nfunction Mi(a,b){try{console.error(b.value)}catch(c){setTimeout(function(){throw c;})}}var Ni=\"function\"===typeof WeakMap?WeakMap:Map;function Oi(a,b,c){c=ch(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){Pi||(Pi=!0,Qi=d);Mi(a,b)};return c}\nfunction Ri(a,b,c){c=ch(-1,c);c.tag=3;var d=a.type.getDerivedStateFromError;if(\"function\"===typeof d){var e=b.value;c.payload=function(){return d(e)};c.callback=function(){Mi(a,b)}}var f=a.stateNode;null!==f&&\"function\"===typeof f.componentDidCatch&&(c.callback=function(){Mi(a,b);\"function\"!==typeof d&&(null===Si?Si=new Set([this]):Si.add(this));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:\"\"})});return c}\nfunction Ti(a,b,c){var d=a.pingCache;if(null===d){d=a.pingCache=new Ni;var e=new Set;d.set(b,e)}else e=d.get(b),void 0===e&&(e=new Set,d.set(b,e));e.has(c)||(e.add(c),a=Ui.bind(null,a,b,c),b.then(a,a))}function Vi(a){do{var b;if(b=13===a.tag)b=a.memoizedState,b=null!==b?null!==b.dehydrated?!0:!1:!0;if(b)return a;a=a.return}while(null!==a);return null}\nfunction Wi(a,b,c,d,e){if(0===(a.mode&1))return a===b?a.flags|=65536:(a.flags|=128,c.flags|=131072,c.flags&=-52805,1===c.tag&&(null===c.alternate?c.tag=17:(b=ch(-1,1),b.tag=2,dh(c,b,1))),c.lanes|=1),a;a.flags|=65536;a.lanes=e;return a}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,b,c,d){b.child=null===a?Ch(b,null,c,d):Bh(b,a.child,c,d)}\nfunction Zi(a,b,c,d,e){c=c.render;var f=b.ref;Tg(b,e);d=Xh(a,b,c,d,f,e);c=bi();if(null!==a&&!Ug)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,$i(a,b,e);I&&c&&vg(b);b.flags|=1;Yi(a,b,d,e);return b.child}\nfunction aj(a,b,c,d,e){if(null===a){var f=c.type;if(\"function\"===typeof f&&!bj(f)&&void 0===f.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=f,cj(a,b,f,d,e);a=yh(c.type,null,d,b,b.mode,e);a.ref=b.ref;a.return=b;return b.child=a}f=a.child;if(0===(a.lanes&e)){var g=f.memoizedProps;c=c.compare;c=null!==c?c:Ie;if(c(g,d)&&a.ref===b.ref)return $i(a,b,e)}b.flags|=1;a=wh(f,d);a.ref=b.ref;a.return=b;return b.child=a}\nfunction cj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie(f,d)&&a.ref===b.ref)if(Ug=!1,b.pendingProps=d=f,0!==(a.lanes&e))0!==(a.flags&131072)&&(Ug=!0);else return b.lanes=a.lanes,$i(a,b,e)}return dj(a,b,c,d,e)}\nfunction ej(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if(\"hidden\"===d.mode)if(0===(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=c;else{if(0===(c&1073741824))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G(fj,gj),gj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null};d=null!==f?f.baseLanes:c;G(fj,gj);gj|=d}else null!==\nf?(d=f.baseLanes|c,b.memoizedState=null):d=c,G(fj,gj),gj|=d;Yi(a,b,e,c);return b.child}function hj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152}function dj(a,b,c,d,e){var f=Zf(c)?Xf:H.current;f=Yf(b,f);Tg(b,e);c=Xh(a,b,c,d,f,e);d=bi();if(null!==a&&!Ug)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,$i(a,b,e);I&&d&&vg(b);b.flags|=1;Yi(a,b,c,e);return b.child}\nfunction ij(a,b,c,d,e){if(Zf(c)){var f=!0;cg(b)}else f=!1;Tg(b,e);if(null===b.stateNode)jj(a,b),ph(b,c,d),rh(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;\"object\"===typeof l&&null!==l?l=Vg(l):(l=Zf(c)?Xf:H.current,l=Yf(b,l));var m=c.getDerivedStateFromProps,q=\"function\"===typeof m||\"function\"===typeof g.getSnapshotBeforeUpdate;q||\"function\"!==typeof g.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof g.componentWillReceiveProps||\n(h!==d||k!==l)&&qh(b,g,d,l);$g=!1;var r=b.memoizedState;g.state=r;gh(b,d,g,e);k=b.memoizedState;h!==d||r!==k||Wf.current||$g?(\"function\"===typeof m&&(kh(b,c,m,d),k=b.memoizedState),(h=$g||oh(b,c,h,d,r,k,l))?(q||\"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&&(b.flags|=4194308)):\n(\"function\"===typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):(\"function\"===typeof g.componentDidMount&&(b.flags|=4194308),d=!1)}else{g=b.stateNode;bh(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:Lg(b.type,h);g.props=l;q=b.pendingProps;r=g.context;k=c.contextType;\"object\"===typeof k&&null!==k?k=Vg(k):(k=Zf(c)?Xf:H.current,k=Yf(b,k));var y=c.getDerivedStateFromProps;(m=\"function\"===typeof y||\"function\"===typeof g.getSnapshotBeforeUpdate)||\n\"function\"!==typeof g.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof g.componentWillReceiveProps||(h!==q||r!==k)&&qh(b,g,d,k);$g=!1;r=b.memoizedState;g.state=r;gh(b,d,g,e);var n=b.memoizedState;h!==q||r!==n||Wf.current||$g?(\"function\"===typeof y&&(kh(b,c,y,d),n=b.memoizedState),(l=$g||oh(b,c,l,d,r,n,k)||!1)?(m||\"function\"!==typeof g.UNSAFE_componentWillUpdate&&\"function\"!==typeof g.componentWillUpdate||(\"function\"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,n,k),\"function\"===typeof g.UNSAFE_componentWillUpdate&&\ng.UNSAFE_componentWillUpdate(d,n,k)),\"function\"===typeof g.componentDidUpdate&&(b.flags|=4),\"function\"===typeof g.getSnapshotBeforeUpdate&&(b.flags|=1024)):(\"function\"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),\"function\"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),b.memoizedProps=d,b.memoizedState=n),g.props=d,g.state=n,g.context=k,d=l):(\"function\"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===\na.memoizedState||(b.flags|=4),\"function\"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),d=!1)}return kj(a,b,c,d,f,e)}\nfunction kj(a,b,c,d,e,f){hj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg(b,c,!1),$i(a,b,f);d=b.stateNode;Xi.current=b;var h=g&&\"function\"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Bh(b,a.child,null,f),b.child=Bh(b,null,h,f)):Yi(a,b,h,f);b.memoizedState=d.state;e&&dg(b,c,!0);return b.child}function lj(a){var b=a.stateNode;b.pendingContext?ag(a,b.pendingContext,b.pendingContext!==b.context):b.context&&ag(a,b.context,!1);Ih(a,b.containerInfo)}\nfunction mj(a,b,c,d,e){Ig();Jg(e);b.flags|=256;Yi(a,b,c,d);return b.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}\nfunction pj(a,b,c){var d=b.pendingProps,e=M.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G(M,e&1);if(null===a){Eg(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:\"$!\"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:\"hidden\",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=\ng):f=qj(g,d,0,null),a=Ah(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=oj(c),b.memoizedState=nj,a):rj(b,g)}e=a.memoizedState;if(null!==e&&(h=e.dehydrated,null!==h))return sj(a,b,g,d,h,e,c);if(f){f=d.fallback;g=b.mode;e=a.child;h=e.sibling;var k={mode:\"hidden\",children:d.children};0===(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k,b.deletions=null):(d=wh(e,k),d.subtreeFlags=e.subtreeFlags&14680064);null!==h?f=wh(h,f):(f=Ah(f,g,c,null),f.flags|=2);f.return=\nb;d.return=b;d.sibling=f;b.child=d;d=f;f=b.child;g=a.child.memoizedState;g=null===g?oj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions};f.memoizedState=g;f.childLanes=a.childLanes&~c;b.memoizedState=nj;return d}f=a.child;a=f.sibling;d=wh(f,{mode:\"visible\",children:d.children});0===(b.mode&1)&&(d.lanes=c);d.return=b;d.sibling=null;null!==a&&(c=b.deletions,null===c?(b.deletions=[a],b.flags|=16):c.push(a));b.child=d;b.memoizedState=null;return d}\nfunction rj(a,b){b=qj({mode:\"visible\",children:b},a.mode,0,null);b.return=a;return a.child=b}function tj(a,b,c,d){null!==d&&Jg(d);Bh(b,a.child,null,c);a=rj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}\nfunction sj(a,b,c,d,e,f,g){if(c){if(b.flags&256)return b.flags&=-257,d=Li(Error(p(422))),tj(a,b,g,d);if(null!==b.memoizedState)return b.child=a.child,b.flags|=128,null;f=d.fallback;e=b.mode;d=qj({mode:\"visible\",children:d.children},e,0,null);f=Ah(f,e,g,null);f.flags|=2;d.return=b;f.return=b;d.sibling=f;b.child=d;0!==(b.mode&1)&&Bh(b,a.child,null,g);b.child.memoizedState=oj(g);b.memoizedState=nj;return f}if(0===(b.mode&1))return tj(a,b,g,null);if(\"$!\"===e.data){d=e.nextSibling&&e.nextSibling.dataset;\nif(d)var h=d.dgst;d=h;f=Error(p(419));d=Li(f,d,void 0);return tj(a,b,g,d)}h=0!==(g&a.childLanes);if(Ug||h){d=R;if(null!==d){switch(g&-g){case 4:e=2;break;case 16:e=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:e=32;break;case 536870912:e=268435456;break;default:e=0}e=0!==(e&(d.suspendedLanes|g))?0:e;\n0!==e&&e!==f.retryLane&&(f.retryLane=e,Zg(a,e),mh(d,a,e,-1))}uj();d=Li(Error(p(421)));return tj(a,b,g,d)}if(\"$?\"===e.data)return b.flags|=128,b.child=a.child,b=vj.bind(null,a),e._reactRetry=b,null;a=f.treeContext;yg=Lf(e.nextSibling);xg=b;I=!0;zg=null;null!==a&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=b);b=rj(b,d.children);b.flags|=4096;return b}function wj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b);Sg(a.return,b,c)}\nfunction xj(a,b,c,d,e){var f=a.memoizedState;null===f?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c,f.tailMode=e)}\nfunction yj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Yi(a,b,d.children,c);d=M.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else{if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&wj(a,c,b);else if(19===a.tag)wj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return;a=a.sibling}d&=1}G(M,d);if(0===(b.mode&1))b.memoizedState=\nnull;else switch(e){case \"forwards\":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===Mh(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);xj(b,!1,e,c,f);break;case \"backwards\":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===Mh(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a}xj(b,!0,c,null,f);break;case \"together\":xj(b,!1,null,null,void 0);break;default:b.memoizedState=null}return b.child}\nfunction jj(a,b){0===(b.mode&1)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2)}function $i(a,b,c){null!==a&&(b.dependencies=a.dependencies);hh|=b.lanes;if(0===(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p(153));if(null!==b.child){a=b.child;c=wh(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=wh(a,a.pendingProps),c.return=b;c.sibling=null}return b.child}\nfunction zj(a,b,c){switch(b.tag){case 3:lj(b);Ig();break;case 5:Kh(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:Ih(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G(Mg,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G(M,M.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return pj(a,b,c);G(M,M.current&1);a=$i(a,b,c);return null!==a?a.sibling:null}G(M,M.current&1);break;case 19:d=0!==(c&\nb.childLanes);if(0!==(a.flags&128)){if(d)return yj(a,b,c);b.flags|=128}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G(M,M.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,ej(a,b,c)}return $i(a,b,c)}var Aj,Bj,Cj,Dj;\nAj=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};Bj=function(){};\nCj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;Hh(Eh.current);var f=null;switch(c){case \"input\":e=Ya(a,e);d=Ya(a,d);f=[];break;case \"select\":e=A({},e,{value:void 0});d=A({},d,{value:void 0});f=[];break;case \"textarea\":e=gb(a,e);d=gb(a,d);f=[];break;default:\"function\"!==typeof e.onClick&&\"function\"===typeof d.onClick&&(a.onclick=Bf)}ub(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if(\"style\"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&\n(c||(c={}),c[g]=\"\")}else\"dangerouslySetInnerHTML\"!==l&&\"children\"!==l&&\"suppressContentEditableWarning\"!==l&&\"suppressHydrationWarning\"!==l&&\"autoFocus\"!==l&&(ea.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];h=null!=e?e[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if(\"style\"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]=\"\");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g])}else c||(f||(f=[]),f.push(l,\nc)),c=k;else\"dangerouslySetInnerHTML\"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(l,k)):\"children\"===l?\"string\"!==typeof k&&\"number\"!==typeof k||(f=f||[]).push(l,\"\"+k):\"suppressContentEditableWarning\"!==l&&\"suppressHydrationWarning\"!==l&&(ea.hasOwnProperty(l)?(null!=k&&\"onScroll\"===l&&D(\"scroll\",a),f||h===k||(f=[])):(f=f||[]).push(l,k))}c&&(f=f||[]).push(\"style\",c);var l=f;if(b.updateQueue=l)b.flags|=4}};Dj=function(a,b,c,d){c!==d&&(b.flags|=4)};\nfunction Ej(a,b){if(!I)switch(a.tailMode){case \"hidden\":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case \"collapsed\":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}\nfunction S(a){var b=null!==a.alternate&&a.alternate.child===a.child,c=0,d=0;if(b)for(var e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags&14680064,d|=e.flags&14680064,e.return=a,e=e.sibling;else for(e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags,d|=e.flags,e.return=a,e=e.sibling;a.subtreeFlags|=d;a.childLanes=c;return b}\nfunction Fj(a,b,c){var d=b.pendingProps;wg(b);switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(b),null;case 1:return Zf(b.type)&&$f(),S(b),null;case 3:d=b.stateNode;Jh();E(Wf);E(H);Oh();d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Gg(b)?b.flags|=4:null===a||a.memoizedState.isDehydrated&&0===(b.flags&256)||(b.flags|=1024,null!==zg&&(Gj(zg),zg=null));Bj(a,b);S(b);return null;case 5:Lh(b);var e=Hh(Gh.current);\nc=b.type;if(null!==a&&null!=b.stateNode)Cj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else{if(!d){if(null===b.stateNode)throw Error(p(166));S(b);return null}a=Hh(Eh.current);if(Gg(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[Of]=b;d[Pf]=f;a=0!==(b.mode&1);switch(c){case \"dialog\":D(\"cancel\",d);D(\"close\",d);break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",d);break;case \"video\":case \"audio\":for(e=0;e<lf.length;e++)D(lf[e],d);break;case \"source\":D(\"error\",d);break;case \"img\":case \"image\":case \"link\":D(\"error\",\nd);D(\"load\",d);break;case \"details\":D(\"toggle\",d);break;case \"input\":Za(d,f);D(\"invalid\",d);break;case \"select\":d._wrapperState={wasMultiple:!!f.multiple};D(\"invalid\",d);break;case \"textarea\":hb(d,f),D(\"invalid\",d)}ub(c,f);e=null;for(var g in f)if(f.hasOwnProperty(g)){var h=f[g];\"children\"===g?\"string\"===typeof h?d.textContent!==h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,h,a),e=[\"children\",h]):\"number\"===typeof h&&d.textContent!==\"\"+h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,\nh,a),e=[\"children\",\"\"+h]):ea.hasOwnProperty(g)&&null!=h&&\"onScroll\"===g&&D(\"scroll\",d)}switch(c){case \"input\":Va(d);db(d,f,!0);break;case \"textarea\":Va(d);jb(d);break;case \"select\":case \"option\":break;default:\"function\"===typeof f.onClick&&(d.onclick=Bf)}d=e;b.updateQueue=d;null!==d&&(b.flags|=4)}else{g=9===e.nodeType?e:e.ownerDocument;\"http://www.w3.org/1999/xhtml\"===a&&(a=kb(c));\"http://www.w3.org/1999/xhtml\"===a?\"script\"===c?(a=g.createElement(\"div\"),a.innerHTML=\"<script>\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;e<lf.length;e++)D(lf[e],a);e=d;break;case \"source\":D(\"error\",a);e=d;break;case \"img\":case \"image\":case \"link\":D(\"error\",\na);D(\"load\",a);e=d;break;case \"details\":D(\"toggle\",a);e=d;break;case \"input\":Za(a,d);e=Ya(a,d);D(\"invalid\",a);break;case \"option\":e=d;break;case \"select\":a._wrapperState={wasMultiple:!!d.multiple};e=A({},d,{value:void 0});D(\"invalid\",a);break;case \"textarea\":hb(a,d);e=gb(a,d);D(\"invalid\",a);break;default:e=d}ub(c,e);h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];\"style\"===f?sb(a,k):\"dangerouslySetInnerHTML\"===f?(k=k?k.__html:void 0,null!=k&&nb(a,k)):\"children\"===f?\"string\"===typeof k?(\"textarea\"!==\nc||\"\"!==k)&&ob(a,k):\"number\"===typeof k&&ob(a,\"\"+k):\"suppressContentEditableWarning\"!==f&&\"suppressHydrationWarning\"!==f&&\"autoFocus\"!==f&&(ea.hasOwnProperty(f)?null!=k&&\"onScroll\"===f&&D(\"scroll\",a):null!=k&&ta(a,f,k,g))}switch(c){case \"input\":Va(a);db(a,d,!1);break;case \"textarea\":Va(a);jb(a);break;case \"option\":null!=d.value&&a.setAttribute(\"value\",\"\"+Sa(d.value));break;case \"select\":a.multiple=!!d.multiple;f=d.value;null!=f?fb(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb(a,!!d.multiple,d.defaultValue,\n!0);break;default:\"function\"===typeof e.onClick&&(a.onclick=Bf)}switch(c){case \"button\":case \"input\":case \"select\":case \"textarea\":d=!!d.autoFocus;break a;case \"img\":d=!0;break a;default:d=!1}}d&&(b.flags|=4)}null!==b.ref&&(b.flags|=512,b.flags|=2097152)}S(b);return null;case 6:if(a&&null!=b.stateNode)Dj(a,b,a.memoizedProps,d);else{if(\"string\"!==typeof d&&null===b.stateNode)throw Error(p(166));c=Hh(Gh.current);Hh(Eh.current);if(Gg(b)){d=b.stateNode;c=b.memoizedProps;d[Of]=b;if(f=d.nodeValue!==c)if(a=\nxg,null!==a)switch(a.tag){case 3:Af(d.nodeValue,c,0!==(a.mode&1));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af(d.nodeValue,c,0!==(a.mode&1))}f&&(b.flags|=4)}else d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Of]=b,b.stateNode=d}S(b);return null;case 13:E(M);d=b.memoizedState;if(null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I&&null!==yg&&0!==(b.mode&1)&&0===(b.flags&128))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),null!==d&&null!==d.dehydrated){if(null===\na){if(!f)throw Error(p(318));f=b.memoizedState;f=null!==f?f.dehydrated:null;if(!f)throw Error(p(317));f[Of]=b}else Ig(),0===(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S(b);f=!1}else null!==zg&&(Gj(zg),zg=null),f=!0;if(!f)return b.flags&65536?b:null}if(0!==(b.flags&128))return b.lanes=c,b;d=null!==d;d!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,0!==(b.mode&1)&&(null===a||0!==(M.current&1)?0===T&&(T=3):uj()));null!==b.updateQueue&&(b.flags|=4);S(b);return null;case 4:return Jh(),\nBj(a,b),null===a&&sf(b.stateNode.containerInfo),S(b),null;case 10:return Rg(b.type._context),S(b),null;case 17:return Zf(b.type)&&$f(),S(b),null;case 19:E(M);f=b.memoizedState;if(null===f)return S(b),null;d=0!==(b.flags&128);g=f.rendering;if(null===g)if(d)Ej(f,!1);else{if(0!==T||null!==a&&0!==(a.flags&128))for(a=b.child;null!==a;){g=Mh(a);if(null!==g){b.flags|=128;Ej(f,!1);d=g.updateQueue;null!==d&&(b.updateQueue=d,b.flags|=4);b.subtreeFlags=0;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=14680066,\ng=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G(M,M.current&1|2);return b.child}a=\na.sibling}null!==f.tail&&B()>Hj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;d<c.length;d++){var e=c[d];try{var f=a,g=b,h=g;a:for(;null!==h;){switch(h.tag){case 5:X=h.stateNode;Yj=!1;break a;case 3:X=h.stateNode.containerInfo;Yj=!0;break a;case 4:X=h.stateNode.containerInfo;Yj=!0;break a}h=h.return}if(null===X)throw Error(p(160));ak(f,g,e);X=null;Yj=!1;var k=e.alternate;null!==k&&(k.return=null);e.return=null}catch(l){W(e,b,l)}}if(b.subtreeFlags&12854)for(b=b.child;null!==b;)ek(b,a),b=b.sibling}\nfunction ek(a,b){var c=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:dk(b,a);fk(a);if(d&4){try{Qj(3,a,a.return),Rj(3,a)}catch(t){W(a,a.return,t)}try{Qj(5,a,a.return)}catch(t){W(a,a.return,t)}}break;case 1:dk(b,a);fk(a);d&512&&null!==c&&Mj(c,c.return);break;case 5:dk(b,a);fk(a);d&512&&null!==c&&Mj(c,c.return);if(a.flags&32){var e=a.stateNode;try{ob(e,\"\")}catch(t){W(a,a.return,t)}}if(d&4&&(e=a.stateNode,null!=e)){var f=a.memoizedProps,g=null!==c?c.memoizedProps:f,h=a.type,k=a.updateQueue;\na.updateQueue=null;if(null!==k)try{\"input\"===h&&\"radio\"===f.type&&null!=f.name&&ab(e,f);vb(h,g);var l=vb(h,f);for(g=0;g<k.length;g+=2){var m=k[g],q=k[g+1];\"style\"===m?sb(e,q):\"dangerouslySetInnerHTML\"===m?nb(e,q):\"children\"===m?ob(e,q):ta(e,m,q,l)}switch(h){case \"input\":bb(e,f);break;case \"textarea\":ib(e,f);break;case \"select\":var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;null!=y?fb(e,!!f.multiple,y,!1):r!==!!f.multiple&&(null!=f.defaultValue?fb(e,!!f.multiple,\nf.defaultValue,!0):fb(e,!!f.multiple,f.multiple?[]:\"\",!1))}e[Pf]=f}catch(t){W(a,a.return,t)}}break;case 6:dk(b,a);fk(a);if(d&4){if(null===a.stateNode)throw Error(p(162));e=a.stateNode;f=a.memoizedProps;try{e.nodeValue=f}catch(t){W(a,a.return,t)}}break;case 3:dk(b,a);fk(a);if(d&4&&null!==c&&c.memoizedState.isDehydrated)try{bd(b.containerInfo)}catch(t){W(a,a.return,t)}break;case 4:dk(b,a);fk(a);break;case 13:dk(b,a);fk(a);e=a.child;e.flags&8192&&(f=null!==e.memoizedState,e.stateNode.isHidden=f,!f||\nnull!==e.alternate&&null!==e.alternate.memoizedState||(gk=B()));d&4&&bk(a);break;case 22:m=null!==c&&null!==c.memoizedState;a.mode&1?(U=(l=U)||m,dk(b,a),U=l):dk(b,a);fk(a);if(d&8192){l=null!==a.memoizedState;if((a.stateNode.isHidden=l)&&!m&&0!==(a.mode&1))for(V=a,m=a.child;null!==m;){for(q=V=m;null!==V;){r=V;y=r.child;switch(r.tag){case 0:case 11:case 14:case 15:Qj(4,r,r.return);break;case 1:Mj(r,r.return);var n=r.stateNode;if(\"function\"===typeof n.componentWillUnmount){d=r;c=r.return;try{b=d,n.props=\nb.memoizedProps,n.state=b.memoizedState,n.componentWillUnmount()}catch(t){W(d,c,t)}}break;case 5:Mj(r,r.return);break;case 22:if(null!==r.memoizedState){hk(q);continue}}null!==y?(y.return=r,V=y):hk(q)}m=m.sibling}a:for(m=null,q=a;;){if(5===q.tag){if(null===m){m=q;try{e=q.stateNode,l?(f=e.style,\"function\"===typeof f.setProperty?f.setProperty(\"display\",\"none\",\"important\"):f.display=\"none\"):(h=q.stateNode,k=q.memoizedProps.style,g=void 0!==k&&null!==k&&k.hasOwnProperty(\"display\")?k.display:null,h.style.display=\nrb(\"display\",g))}catch(t){W(a,a.return,t)}}}else if(6===q.tag){if(null===m)try{q.stateNode.nodeValue=l?\"\":q.memoizedProps}catch(t){W(a,a.return,t)}}else if((22!==q.tag&&23!==q.tag||null===q.memoizedState||q===a)&&null!==q.child){q.child.return=q;q=q.child;continue}if(q===a)break a;for(;null===q.sibling;){if(null===q.return||q.return===a)break a;m===q&&(m=null);q=q.return}m===q&&(m=null);q.sibling.return=q.return;q=q.sibling}}break;case 19:dk(b,a);fk(a);d&4&&bk(a);break;case 21:break;default:dk(b,\na),fk(a)}}function fk(a){var b=a.flags;if(b&2){try{a:{for(var c=a.return;null!==c;){if(Uj(c)){var d=c;break a}c=c.return}throw Error(p(160));}switch(d.tag){case 5:var e=d.stateNode;d.flags&32&&(ob(e,\"\"),d.flags&=-33);var f=Vj(a);Xj(a,f,e);break;case 3:case 4:var g=d.stateNode.containerInfo,h=Vj(a);Wj(a,h,g);break;default:throw Error(p(161));}}catch(k){W(a,a.return,k)}a.flags&=-3}b&4096&&(a.flags&=-4097)}function ik(a,b,c){V=a;jk(a,b,c)}\nfunction jk(a,b,c){for(var d=0!==(a.mode&1);null!==V;){var e=V,f=e.child;if(22===e.tag&&d){var g=null!==e.memoizedState||Kj;if(!g){var h=e.alternate,k=null!==h&&null!==h.memoizedState||U;h=Kj;var l=U;Kj=g;if((U=k)&&!l)for(V=e;null!==V;)g=V,k=g.child,22===g.tag&&null!==g.memoizedState?kk(e):null!==k?(k.return=g,V=k):kk(e);for(;null!==f;)V=f,jk(f,b,c),f=f.sibling;V=e;Kj=h;U=l}lk(a,b,c)}else 0!==(e.subtreeFlags&8772)&&null!==f?(f.return=e,V=f):lk(a,b,c)}}\nfunction lk(a){for(;null!==V;){var b=V;if(0!==(b.flags&8772)){var c=b.alternate;try{if(0!==(b.flags&8772))switch(b.tag){case 0:case 11:case 15:U||Rj(5,b);break;case 1:var d=b.stateNode;if(b.flags&4&&!U)if(null===c)d.componentDidMount();else{var e=b.elementType===b.type?c.memoizedProps:Lg(b.type,c.memoizedProps);d.componentDidUpdate(e,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var f=b.updateQueue;null!==f&&ih(b,f,d);break;case 3:var g=b.updateQueue;if(null!==g){c=null;if(null!==b.child)switch(b.child.tag){case 5:c=\nb.child.stateNode;break;case 1:c=b.child.stateNode}ih(b,g,c)}break;case 5:var h=b.stateNode;if(null===c&&b.flags&4){c=h;var k=b.memoizedProps;switch(b.type){case \"button\":case \"input\":case \"select\":case \"textarea\":k.autoFocus&&c.focus();break;case \"img\":k.src&&(c.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(null===b.memoizedState){var l=b.alternate;if(null!==l){var m=l.memoizedState;if(null!==m){var q=m.dehydrated;null!==q&&bd(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;\ndefault:throw Error(p(163));}U||b.flags&512&&Sj(b)}catch(r){W(b,b.return,r)}}if(b===a){V=null;break}c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}function hk(a){for(;null!==V;){var b=V;if(b===a){V=null;break}var c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}\nfunction kk(a){for(;null!==V;){var b=V;try{switch(b.tag){case 0:case 11:case 15:var c=b.return;try{Rj(4,b)}catch(k){W(b,c,k)}break;case 1:var d=b.stateNode;if(\"function\"===typeof d.componentDidMount){var e=b.return;try{d.componentDidMount()}catch(k){W(b,e,k)}}var f=b.return;try{Sj(b)}catch(k){W(b,f,k)}break;case 5:var g=b.return;try{Sj(b)}catch(k){W(b,g,k)}}}catch(k){W(b,b.return,k)}if(b===a){V=null;break}var h=b.sibling;if(null!==h){h.return=b.return;V=h;break}V=b.return}}\nvar mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=Infinity,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L(){return 0!==(K&6)?B():-1!==Bk?Bk:Bk=B()}\nfunction lh(a){if(0===(a.mode&1))return 1;if(0!==(K&2)&&0!==Z)return Z&-Z;if(null!==Kg.transition)return 0===Ck&&(Ck=yc()),Ck;a=C;if(0!==a)return a;a=window.event;a=void 0===a?16:jd(a.type);return a}function mh(a,b,c,d){if(50<zk)throw zk=0,Ak=null,Error(p(185));Ac(a,c,d);if(0===(K&2)||a!==R)a===R&&(0===(K&2)&&(rk|=c),4===T&&Dk(a,Z)),Ek(a,d),1===c&&0===K&&0===(b.mode&1)&&(Hj=B()+500,fg&&jg())}\nfunction Ek(a,b){var c=a.callbackNode;wc(a,b);var d=uc(a,a===R?Z:0);if(0===d)null!==c&&bc(c),a.callbackNode=null,a.callbackPriority=0;else if(b=d&-d,a.callbackPriority!==b){null!=c&&bc(c);if(1===b)0===a.tag?ig(Fk.bind(null,a)):hg(Fk.bind(null,a)),Jf(function(){0===(K&6)&&jg()}),c=null;else{switch(Dc(d)){case 1:c=fc;break;case 4:c=gc;break;case 16:c=hc;break;case 536870912:c=jc;break;default:c=hc}c=Gk(c,Hk.bind(null,a))}a.callbackPriority=b;a.callbackNode=c}}\nfunction Hk(a,b){Bk=-1;Ck=0;if(0!==(K&6))throw Error(p(327));var c=a.callbackNode;if(Ik()&&a.callbackNode!==c)return null;var d=uc(a,a===R?Z:0);if(0===d)return null;if(0!==(d&30)||0!==(d&a.expiredLanes)||b)b=Jk(a,d);else{b=d;var e=K;K|=2;var f=Kk();if(R!==a||Z!==b)vk=null,Hj=B()+500,Lk(a,b);do try{Mk();break}catch(h){Nk(a,h)}while(1);Qg();nk.current=f;K=e;null!==Y?b=0:(R=null,Z=0,b=T)}if(0!==b){2===b&&(e=xc(a),0!==e&&(d=e,b=Ok(a,e)));if(1===b)throw c=qk,Lk(a,0),Dk(a,d),Ek(a,B()),c;if(6===b)Dk(a,d);\nelse{e=a.current.alternate;if(0===(d&30)&&!Pk(e)&&(b=Jk(a,d),2===b&&(f=xc(a),0!==f&&(d=f,b=Ok(a,f))),1===b))throw c=qk,Lk(a,0),Dk(a,d),Ek(a,B()),c;a.finishedWork=e;a.finishedLanes=d;switch(b){case 0:case 1:throw Error(p(345));case 2:Qk(a,uk,vk);break;case 3:Dk(a,d);if((d&130023424)===d&&(b=gk+500-B(),10<b)){if(0!==uc(a,0))break;e=a.suspendedLanes;if((e&d)!==d){L();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),b);break}Qk(a,uk,vk);break;case 4:Dk(a,d);if((d&4194240)===\nd)break;b=a.eventTimes;for(e=-1;0<d;){var g=31-oc(d);f=1<<g;g=b[g];g>e&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10<d){a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),d);break}Qk(a,uk,vk);break;case 5:Qk(a,uk,vk);break;default:throw Error(p(329));}}}Ek(a,B());return a.callbackNode===c?Hk.bind(null,a):null}\nfunction Ok(a,b){var c=tk;a.current.memoizedState.isDehydrated&&(Lk(a,b).flags|=256);a=Jk(a,b);2!==a&&(b=uk,uk=c,null!==b&&Gj(b));return a}function Gj(a){null===uk?uk=a:uk.push.apply(uk,a)}\nfunction Pk(a){for(var b=a;;){if(b.flags&16384){var c=b.updateQueue;if(null!==c&&(c=c.stores,null!==c))for(var d=0;d<c.length;d++){var e=c[d],f=e.getSnapshot;e=e.value;try{if(!He(f(),e))return!1}catch(g){return!1}}}c=b.child;if(b.subtreeFlags&16384&&null!==c)c.return=b,b=c;else{if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return!0;b=b.return}b.sibling.return=b.return;b=b.sibling}}return!0}\nfunction Dk(a,b){b&=~sk;b&=~rk;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-oc(b),d=1<<c;a[c]=-1;b&=~d}}function Fk(a){if(0!==(K&6))throw Error(p(327));Ik();var b=uc(a,0);if(0===(b&1))return Ek(a,B()),null;var c=Jk(a,b);if(0!==a.tag&&2===c){var d=xc(a);0!==d&&(b=d,c=Ok(a,d))}if(1===c)throw c=qk,Lk(a,0),Dk(a,b),Ek(a,B()),c;if(6===c)throw Error(p(345));a.finishedWork=a.current.alternate;a.finishedLanes=b;Qk(a,uk,vk);Ek(a,B());return null}\nfunction Rk(a,b){var c=K;K|=1;try{return a(b)}finally{K=c,0===K&&(Hj=B()+500,fg&&jg())}}function Sk(a){null!==xk&&0===xk.tag&&0===(K&6)&&Ik();var b=K;K|=1;var c=pk.transition,d=C;try{if(pk.transition=null,C=1,a)return a()}finally{C=d,pk.transition=c,K=b,0===(K&6)&&jg()}}function Ij(){gj=fj.current;E(fj)}\nfunction Lk(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,Gf(c));if(null!==Y)for(c=Y.return;null!==c;){var d=c;wg(d);switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&$f();break;case 3:Jh();E(Wf);E(H);Oh();break;case 5:Lh(d);break;case 4:Jh();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(d.type._context);break;case 22:case 23:Ij()}c=c.return}R=a;Y=a=wh(a.current,null);Z=gj=b;T=0;qk=null;sk=rk=hh=0;uk=tk=null;if(null!==Wg){for(b=\n0;b<Wg.length;b++)if(c=Wg[b],d=c.interleaved,null!==d){c.interleaved=null;var e=d.next,f=c.pending;if(null!==f){var g=f.next;f.next=e;d.next=g}c.pending=d}Wg=null}return a}\nfunction Nk(a,b){do{var c=Y;try{Qg();Ph.current=ai;if(Sh){for(var d=N.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next}Sh=!1}Rh=0;P=O=N=null;Th=!1;Uh=0;ok.current=null;if(null===c||null===c.return){T=1;qk=b;Y=null;break}a:{var f=a,g=c.return,h=c,k=b;b=Z;h.flags|=32768;if(null!==k&&\"object\"===typeof k&&\"function\"===typeof k.then){var l=k,m=h,q=m.tag;if(0===(m.mode&1)&&(0===q||11===q||15===q)){var r=m.alternate;r?(m.updateQueue=r.updateQueue,m.memoizedState=r.memoizedState,\nm.lanes=r.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Vi(g);if(null!==y){y.flags&=-257;Wi(y,g,h,f,b);y.mode&1&&Ti(f,l,b);b=y;k=l;var n=b.updateQueue;if(null===n){var t=new Set;t.add(k);b.updateQueue=t}else n.add(k);break a}else{if(0===(b&1)){Ti(f,l,b);uj();break a}k=Error(p(426))}}else if(I&&h.mode&1){var J=Vi(g);if(null!==J){0===(J.flags&65536)&&(J.flags|=256);Wi(J,g,h,f,b);Jg(Ki(k,h));break a}}f=k=Ki(k,h);4!==T&&(T=2);null===tk?tk=[f]:tk.push(f);f=g;do{switch(f.tag){case 3:f.flags|=65536;\nb&=-b;f.lanes|=b;var x=Oi(f,k,b);fh(f,x);break a;case 1:h=k;var w=f.type,u=f.stateNode;if(0===(f.flags&128)&&(\"function\"===typeof w.getDerivedStateFromError||null!==u&&\"function\"===typeof u.componentDidCatch&&(null===Si||!Si.has(u)))){f.flags|=65536;b&=-b;f.lanes|=b;var F=Ri(f,h,b);fh(f,F);break a}}f=f.return}while(null!==f)}Tk(c)}catch(na){b=na;Y===c&&null!==c&&(Y=c=c.return);continue}break}while(1)}function Kk(){var a=nk.current;nk.current=ai;return null===a?ai:a}\nfunction uj(){if(0===T||3===T||2===T)T=4;null===R||0===(hh&268435455)&&0===(rk&268435455)||Dk(R,Z)}function Jk(a,b){var c=K;K|=2;var d=Kk();if(R!==a||Z!==b)vk=null,Lk(a,b);do try{Uk();break}catch(e){Nk(a,e)}while(1);Qg();K=c;nk.current=d;if(null!==Y)throw Error(p(261));R=null;Z=0;return T}function Uk(){for(;null!==Y;)Vk(Y)}function Mk(){for(;null!==Y&&!cc();)Vk(Y)}function Vk(a){var b=Wk(a.alternate,a,gj);a.memoizedProps=a.pendingProps;null===b?Tk(a):Y=b;ok.current=null}\nfunction Tk(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&32768)){if(c=Fj(c,b,gj),null!==c){Y=c;return}}else{c=Jj(c,b);if(null!==c){c.flags&=32767;Y=c;return}if(null!==a)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{T=6;Y=null;return}}b=b.sibling;if(null!==b){Y=b;return}Y=b=a}while(null!==b);0===T&&(T=5)}function Qk(a,b,c){var d=C,e=pk.transition;try{pk.transition=null,C=1,Xk(a,b,c,d)}finally{pk.transition=e,C=d}return null}\nfunction Xk(a,b,c,d){do Ik();while(null!==xk);if(0!==(K&6))throw Error(p(327));c=a.finishedWork;var e=a.finishedLanes;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(p(177));a.callbackNode=null;a.callbackPriority=0;var f=c.lanes|c.childLanes;Bc(a,f);a===R&&(Y=R=null,Z=0);0===(c.subtreeFlags&2064)&&0===(c.flags&2064)||wk||(wk=!0,Gk(hc,function(){Ik();return null}));f=0!==(c.flags&15990);if(0!==(c.subtreeFlags&15990)||f){f=pk.transition;pk.transition=null;\nvar g=C;C=1;var h=K;K|=4;ok.current=null;Pj(a,c);ek(c,a);Oe(Df);dd=!!Cf;Df=Cf=null;a.current=c;ik(c,a,e);dc();K=h;C=g;pk.transition=f}else a.current=c;wk&&(wk=!1,xk=a,yk=e);f=a.pendingLanes;0===f&&(Si=null);mc(c.stateNode,d);Ek(a,B());if(null!==b)for(d=a.onRecoverableError,c=0;c<b.length;c++)e=b[c],d(e.value,{componentStack:e.stack,digest:e.digest});if(Pi)throw Pi=!1,a=Qi,Qi=null,a;0!==(yk&1)&&0!==a.tag&&Ik();f=a.pendingLanes;0!==(f&1)?a===Ak?zk++:(zk=0,Ak=a):zk=0;jg();return null}\nfunction Ik(){if(null!==xk){var a=Dc(yk),b=pk.transition,c=C;try{pk.transition=null;C=16>a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;k<h.length;k++){var l=h[k];for(V=l;null!==V;){var m=V;switch(m.tag){case 0:case 11:case 15:Qj(8,m,f)}var q=m.child;if(null!==q)q.return=m,V=q;else for(;null!==V;){m=V;var r=m.sibling,y=m.return;Tj(m);if(m===\nl){V=null;break}if(null!==r){r.return=y;V=r;break}V=y}}}var n=f.alternate;if(null!==n){var t=n.child;if(null!==t){n.child=null;do{var J=t.sibling;t.sibling=null;t=J}while(null!==t)}}V=f}}if(0!==(f.subtreeFlags&2064)&&null!==g)g.return=f,V=g;else b:for(;null!==V;){f=V;if(0!==(f.flags&2048))switch(f.tag){case 0:case 11:case 15:Qj(9,f,f.return)}var x=f.sibling;if(null!==x){x.return=f.return;V=x;break b}V=f.return}}var w=a.current;for(V=w;null!==V;){g=V;var u=g.child;if(0!==(g.subtreeFlags&2064)&&null!==\nu)u.return=g,V=u;else b:for(g=w;null!==V;){h=V;if(0!==(h.flags&2048))try{switch(h.tag){case 0:case 11:case 15:Rj(9,h)}}catch(na){W(h,h.return,na)}if(h===g){V=null;break b}var F=h.sibling;if(null!==F){F.return=h.return;V=F;break b}V=h.return}}K=e;jg();if(lc&&\"function\"===typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,a)}catch(na){}d=!0}return d}finally{C=c,pk.transition=b}}return!1}function Yk(a,b,c){b=Ki(c,b);b=Oi(a,b,1);a=dh(a,b,1);b=L();null!==a&&(Ac(a,1,b),Ek(a,b))}\nfunction W(a,b,c){if(3===a.tag)Yk(a,a,c);else for(;null!==b;){if(3===b.tag){Yk(b,a,c);break}else if(1===b.tag){var d=b.stateNode;if(\"function\"===typeof b.type.getDerivedStateFromError||\"function\"===typeof d.componentDidCatch&&(null===Si||!Si.has(d))){a=Ki(c,a);a=Ri(b,a,1);b=dh(b,a,1);a=L();null!==b&&(Ac(b,1,a),Ek(b,a));break}}b=b.return}}\nfunction Ui(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=L();a.pingedLanes|=a.suspendedLanes&c;R===a&&(Z&c)===c&&(4===T||3===T&&(Z&130023424)===Z&&500>B()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wa,key:null==d?null:\"\"+d,children:a,containerInfo:b,implementation:c}}\nfunction el(a){if(!a)return Vf;a=a._reactInternals;a:{if(Vb(a)!==a||1!==a.tag)throw Error(p(170));var b=a;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return}while(null!==b);throw Error(p(171));}if(1===a.tag){var c=a.type;if(Zf(c))return bg(a,c,b)}return b}\nfunction fl(a,b,c,d,e,f,g,h,k){a=cl(c,d,!0,a,e,f,g,h,k);a.context=el(null);c=a.current;d=L();e=lh(c);f=ch(d,e);f.callback=void 0!==b&&null!==b?b:null;dh(c,f,e);a.current.lanes=e;Ac(a,e,d);Ek(a,d);return a}function gl(a,b,c,d){var e=b.current,f=L(),g=lh(e);c=el(c);null===b.context?b.context=c:b.pendingContext=c;b=ch(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);a=dh(e,b,g);null!==a&&(mh(a,e,g,f),eh(a,e,g));return g}\nfunction hl(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function il(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b}}function jl(a,b){il(a,b);(a=a.alternate)&&il(a,b)}function kl(){return null}var ll=\"function\"===typeof reportError?reportError:function(a){console.error(a)};function ml(a){this._internalRoot=a}\nnl.prototype.render=ml.prototype.render=function(a){var b=this._internalRoot;if(null===b)throw Error(p(409));gl(a,b,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Sk(function(){gl(null,a,null,null)});b[uf]=null}};function nl(a){this._internalRoot=a}\nnl.prototype.unstable_scheduleHydration=function(a){if(a){var b=Hc();a={blockedOn:null,target:a,priority:b};for(var c=0;c<Qc.length&&0!==b&&b<Qc[c].priority;c++);Qc.splice(c,0,a);0===c&&Vc(a)}};function ol(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType)}function pl(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||\" react-mount-point-unstable \"!==a.nodeValue))}function ql(){}\nfunction rl(a,b,c,d,e){if(e){if(\"function\"===typeof d){var f=d;d=function(){var a=hl(g);f.call(a)}}var g=fl(b,d,a,0,null,!1,!1,\"\",ql);a._reactRootContainer=g;a[uf]=g.current;sf(8===a.nodeType?a.parentNode:a);Sk();return g}for(;e=a.lastChild;)a.removeChild(e);if(\"function\"===typeof d){var h=d;d=function(){var a=hl(k);h.call(a)}}var k=cl(a,0,!1,null,null,!1,!1,\"\",ql);a._reactRootContainer=k;a[uf]=k.current;sf(8===a.nodeType?a.parentNode:a);Sk(function(){gl(b,k,c,d)});return k}\nfunction sl(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if(\"function\"===typeof e){var h=e;e=function(){var a=hl(g);h.call(a)}}gl(b,g,a,e)}else g=rl(c,b,a,e,d);return hl(g)}Ec=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc(b.pendingLanes);0!==c&&(Cc(b,c|1),Ek(b,B()),0===(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var b=Zg(a,1);if(null!==b){var c=L();mh(b,a,1,c)}}),jl(a,1)}};\nFc=function(a){if(13===a.tag){var b=Zg(a,134217728);if(null!==b){var c=L();mh(b,a,134217728,c)}jl(a,134217728)}};Gc=function(a){if(13===a.tag){var b=lh(a),c=Zg(a,b);if(null!==c){var d=L();mh(c,a,b,d)}jl(a,b)}};Hc=function(){return C};Ic=function(a,b){var c=C;try{return C=a,b()}finally{C=c}};\nyb=function(a,b,c){switch(b){case \"input\":bb(a,c);b=c.name;if(\"radio\"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+b)+'][type=\"radio\"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(p(90));Wa(d);bb(d,e)}}}break;case \"textarea\":ib(a,c);break;case \"select\":b=c.value,null!=b&&fb(a,!!c.multiple,b,!1)}};Gb=Rk;Hb=Sk;\nvar tl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:\"18.2.0\",rendererPackageName:\"react-dom\"};\nvar vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Zb(a);return null===a?null:a.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||\nkl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.2.0-next-9e3b772b8-20220608\"};if(\"undefined\"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch(a){}}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;\nexports.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(b))throw Error(p(200));return dl(a,b,null,c)};exports.createRoot=function(a,b){if(!ol(a))throw Error(p(299));var c=!1,d=\"\",e=ll;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=cl(a,1,!1,null,null,c,!1,d,e);a[uf]=b.current;sf(8===a.nodeType?a.parentNode:a);return new ml(b)};\nexports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if(\"function\"===typeof a.render)throw Error(p(188));a=Object.keys(a).join(\",\");throw Error(p(268,a));}a=Zb(b);a=null===a?null:a.stateNode;return a};exports.flushSync=function(a){return Sk(a)};exports.hydrate=function(a,b,c){if(!pl(b))throw Error(p(200));return sl(null,a,b,!0,c)};\nexports.hydrateRoot=function(a,b,c){if(!ol(a))throw Error(p(405));var d=null!=c&&c.hydratedSources||null,e=!1,f=\"\",g=ll;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=fl(b,null,a,1,null!=c?c:null,e,!1,f,g);a[uf]=b.current;sf(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,\ne);return new nl(b)};exports.render=function(a,b,c){if(!pl(b))throw Error(p(200));return sl(null,a,b,!1,c)};exports.unmountComponentAtNode=function(a){if(!pl(a))throw Error(p(40));return a._reactRootContainer?(Sk(function(){sl(null,null,a,!1,function(){a._reactRootContainer=null;a[uf]=null})}),!0):!1};exports.unstable_batchedUpdates=Rk;\nexports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!pl(c))throw Error(p(200));if(null==a||void 0===a._reactInternals)throw Error(p(38));return sl(a,b,c,!1,d)};exports.version=\"18.2.0-next-9e3b772b8-20220608\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)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,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};exports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;\nexports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=function(){throw Error(\"act(...) is not supported in production builds of React.\");};\nexports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};\nexports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};\nexports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.2.0\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<g(e,b))a[d]=b,a[c]=e,c=d;else break a}}function h(a){return 0===a.length?null:a[0]}function k(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a[m],n=m+1,x=a[n];if(0>g(C,c))n<e&&0>g(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(n<e&&0>g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Q<P?!1:!0}function R(){if(null!==O){var a=exports.unstable_now();Q=a;var b=!0;try{b=O(!0,a)}finally{b?S():(N=!1,O=null)}}else N=!1}var S;if(\"function\"===typeof F)S=function(){F(R)};else if(\"undefined\"!==typeof MessageChannel){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R;S=function(){U.postMessage(null)}}else S=function(){D(R,0)};function I(a){O=a;N||(N=!0,S())}function K(a,b){L=D(function(){a(exports.unstable_now())},b)}\nexports.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(a){a.callback=null};exports.unstable_continueExecution=function(){A||z||(A=!0,I(J))};\nexports.unstable_forceFrameRate=function(a){0>a||125<a?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):P=0<a?Math.floor(1E3/a):5};exports.unstable_getCurrentPriorityLevel=function(){return y};exports.unstable_getFirstCallbackNode=function(){return h(r)};exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y}var c=y;y=b;try{return a()}finally{y=c}};exports.unstable_pauseExecution=function(){};\nexports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=y;y=a;try{return b()}finally{y=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();\"object\"===typeof c&&null!==c?(c=c.delay,c=\"number\"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport possibleConstructorReturn from \"./possibleConstructorReturn.js\";\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nexport default function _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n _construct = Reflect.construct.bind();\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n return _construct.apply(null, arguments);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeFunction from \"./isNativeFunction.js\";\nimport construct from \"./construct.js\";\nexport default function _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}","export default function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}","////////////////////////////////////////////////////////////////////////////////\n//#region Types and Constants\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Actions represent the type of change to a location value.\n */\nexport enum Action {\n /**\n * A POP indicates a change to an arbitrary index in the history stack, such\n * as a back or forward navigation. It does not describe the direction of the\n * navigation, only that the current index changed.\n *\n * Note: This is the default action for newly created history objects.\n */\n Pop = \"POP\",\n\n /**\n * A PUSH indicates a new entry being added to the history stack, such as when\n * a link is clicked and a new page loads. When this happens, all subsequent\n * entries in the stack are lost.\n */\n Push = \"PUSH\",\n\n /**\n * A REPLACE indicates the entry at the current index in the history stack\n * being replaced by a new one.\n */\n Replace = \"REPLACE\",\n}\n\n/**\n * The pathname, search, and hash values of a URL.\n */\nexport interface Path {\n /**\n * A URL pathname, beginning with a /.\n */\n pathname: string;\n\n /**\n * A URL search string, beginning with a ?.\n */\n search: string;\n\n /**\n * A URL fragment identifier, beginning with a #.\n */\n hash: string;\n}\n\n/**\n * An entry in a history stack. A location contains information about the\n * URL path, as well as possibly some arbitrary state and a key.\n */\nexport interface Location extends Path {\n /**\n * A value of arbitrary data associated with this location.\n */\n state: any;\n\n /**\n * A unique string associated with this location. May be used to safely store\n * and retrieve data in some other storage API, like `localStorage`.\n *\n * Note: This value is always \"default\" on the initial location.\n */\n key: string;\n}\n\n/**\n * A change to the current location.\n */\nexport interface Update {\n /**\n * The action that triggered the change.\n */\n action: Action;\n\n /**\n * The new location.\n */\n location: Location;\n\n /**\n * The delta between this location and the former location in the history stack\n */\n delta: number | null;\n}\n\n/**\n * A function that receives notifications about location changes.\n */\nexport interface Listener {\n (update: Update): void;\n}\n\n/**\n * Describes a location that is the destination of some navigation, either via\n * `history.push` or `history.replace`. May be either a URL or the pieces of a\n * URL path.\n */\nexport type To = string | Partial<Path>;\n\n/**\n * A history is an interface to the navigation stack. The history serves as the\n * source of truth for the current location, as well as provides a set of\n * methods that may be used to change it.\n *\n * It is similar to the DOM's `window.history` object, but with a smaller, more\n * focused API.\n */\nexport interface History {\n /**\n * The last action that modified the current location. This will always be\n * Action.Pop when a history instance is first created. This value is mutable.\n */\n readonly action: Action;\n\n /**\n * The current location. This value is mutable.\n */\n readonly location: Location;\n\n /**\n * Returns a valid href for the given `to` value that may be used as\n * the value of an <a href> attribute.\n *\n * @param to - The destination URL\n */\n createHref(to: To): string;\n\n /**\n * Returns a URL for the given `to` value\n *\n * @param to - The destination URL\n */\n createURL(to: To): URL;\n\n /**\n * Encode a location the same way window.history would do (no-op for memory\n * history) so we ensure our PUSH/REPLACE navigations for data routers\n * behave the same as POP\n *\n * @param to Unencoded path\n */\n encodeLocation(to: To): Path;\n\n /**\n * Pushes a new location onto the history stack, increasing its length by one.\n * If there were any entries in the stack after the current one, they are\n * lost.\n *\n * @param to - The new URL\n * @param state - Data to associate with the new location\n */\n push(to: To, state?: any): void;\n\n /**\n * Replaces the current location in the history stack with a new one. The\n * location that was replaced will no longer be available.\n *\n * @param to - The new URL\n * @param state - Data to associate with the new location\n */\n replace(to: To, state?: any): void;\n\n /**\n * Navigates `n` entries backward/forward in the history stack relative to the\n * current index. For example, a \"back\" navigation would use go(-1).\n *\n * @param delta - The delta in the stack index\n */\n go(delta: number): void;\n\n /**\n * Sets up a listener that will be called whenever the current location\n * changes.\n *\n * @param listener - A function that will be called when the location changes\n * @returns unlisten - A function that may be used to stop listening\n */\n listen(listener: Listener): () => void;\n}\n\ntype HistoryState = {\n usr: any;\n key?: string;\n idx: number;\n};\n\nconst PopStateEventType = \"popstate\";\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Memory History\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * A user-supplied object that describes a location. Used when providing\n * entries to `createMemoryHistory` via its `initialEntries` option.\n */\nexport type InitialEntry = string | Partial<Location>;\n\nexport type MemoryHistoryOptions = {\n initialEntries?: InitialEntry[];\n initialIndex?: number;\n v5Compat?: boolean;\n};\n\n/**\n * A memory history stores locations in memory. This is useful in stateful\n * environments where there is no web browser, such as node tests or React\n * Native.\n */\nexport interface MemoryHistory extends History {\n /**\n * The current index in the history stack.\n */\n readonly index: number;\n}\n\n/**\n * Memory history stores the current location in memory. It is designed for use\n * in stateful non-browser environments like tests and React Native.\n */\nexport function createMemoryHistory(\n options: MemoryHistoryOptions = {}\n): MemoryHistory {\n let { initialEntries = [\"/\"], initialIndex, v5Compat = false } = options;\n let entries: Location[]; // Declare so we can access from createMemoryLocation\n entries = initialEntries.map((entry, index) =>\n createMemoryLocation(\n entry,\n typeof entry === \"string\" ? null : entry.state,\n index === 0 ? \"default\" : undefined\n )\n );\n let index = clampIndex(\n initialIndex == null ? entries.length - 1 : initialIndex\n );\n let action = Action.Pop;\n let listener: Listener | null = null;\n\n function clampIndex(n: number): number {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n function getCurrentLocation(): Location {\n return entries[index];\n }\n function createMemoryLocation(\n to: To,\n state: any = null,\n key?: string\n ): Location {\n let location = createLocation(\n entries ? getCurrentLocation().pathname : \"/\",\n to,\n state,\n key\n );\n warning(\n location.pathname.charAt(0) === \"/\",\n `relative pathnames are not supported in memory history: ${JSON.stringify(\n to\n )}`\n );\n return location;\n }\n\n function createHref(to: To) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n let history: MemoryHistory = {\n get index() {\n return index;\n },\n get action() {\n return action;\n },\n get location() {\n return getCurrentLocation();\n },\n createHref,\n createURL(to) {\n return new URL(createHref(to), \"http://localhost\");\n },\n encodeLocation(to: To) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\",\n };\n },\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n if (v5Compat && listener) {\n listener({ action, location: nextLocation, delta: 1 });\n }\n },\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n if (v5Compat && listener) {\n listener({ action, location: nextLocation, delta: 0 });\n }\n },\n go(delta) {\n action = Action.Pop;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n if (listener) {\n listener({ action, location: nextLocation, delta });\n }\n },\n listen(fn: Listener) {\n listener = fn;\n return () => {\n listener = null;\n };\n },\n };\n\n return history;\n}\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Browser History\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * A browser history stores the current location in regular URLs in a web\n * browser environment. This is the standard for most web apps and provides the\n * cleanest URLs the browser's address bar.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#browserhistory\n */\nexport interface BrowserHistory extends UrlHistory {}\n\nexport type BrowserHistoryOptions = UrlHistoryOptions;\n\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\nexport function createBrowserHistory(\n options: BrowserHistoryOptions = {}\n): BrowserHistory {\n function createBrowserLocation(\n window: Window,\n globalHistory: Window[\"history\"]\n ) {\n let { pathname, search, hash } = window.location;\n return createLocation(\n \"\",\n { pathname, search, hash },\n // state defaults to `null` because `window.history.state` does\n (globalHistory.state && globalHistory.state.usr) || null,\n (globalHistory.state && globalHistory.state.key) || \"default\"\n );\n }\n\n function createBrowserHref(window: Window, to: To) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n return getUrlBasedHistory(\n createBrowserLocation,\n createBrowserHref,\n null,\n options\n );\n}\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Hash History\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * A hash history stores the current location in the fragment identifier portion\n * of the URL in a web browser environment.\n *\n * This is ideal for apps that do not control the server for some reason\n * (because the fragment identifier is never sent to the server), including some\n * shared hosting environments that do not provide fine-grained controls over\n * which pages are served at which URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#hashhistory\n */\nexport interface HashHistory extends UrlHistory {}\n\nexport type HashHistoryOptions = UrlHistoryOptions;\n\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\nexport function createHashHistory(\n options: HashHistoryOptions = {}\n): HashHistory {\n function createHashLocation(\n window: Window,\n globalHistory: Window[\"history\"]\n ) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\",\n } = parsePath(window.location.hash.substr(1));\n return createLocation(\n \"\",\n { pathname, search, hash },\n // state defaults to `null` because `window.history.state` does\n (globalHistory.state && globalHistory.state.usr) || null,\n (globalHistory.state && globalHistory.state.key) || \"default\"\n );\n }\n\n function createHashHref(window: Window, to: To) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n\n function validateHashLocation(location: Location, to: To) {\n warning(\n location.pathname.charAt(0) === \"/\",\n `relative pathnames are not supported in hash history.push(${JSON.stringify(\n to\n )})`\n );\n }\n\n return getUrlBasedHistory(\n createHashLocation,\n createHashHref,\n validateHashLocation,\n options\n );\n}\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region UTILS\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * @private\n */\nexport function invariant(value: boolean, message?: string): asserts value;\nexport function invariant<T>(\n value: T | null | undefined,\n message?: string\n): asserts value is T;\nexport function invariant(value: any, message?: string) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\n\nfunction warning(cond: any, message: string) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message);\n // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n\n/**\n * For browser-based histories, we combine the state and key into an object\n */\nfunction getHistoryState(location: Location, index: number): HistoryState {\n return {\n usr: location.state,\n key: location.key,\n idx: index,\n };\n}\n\n/**\n * Creates a Location object with a unique key from the given Path\n */\nexport function createLocation(\n current: string | Location,\n to: To,\n state: any = null,\n key?: string\n): Readonly<Location> {\n let location: Readonly<Location> = {\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\",\n ...(typeof to === \"string\" ? parsePath(to) : to),\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: (to && (to as Location).key) || key || createKey(),\n };\n return location;\n}\n\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\nexport function createPath({\n pathname = \"/\",\n search = \"\",\n hash = \"\",\n}: Partial<Path>) {\n if (search && search !== \"?\")\n pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\")\n pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\nexport function parsePath(path: string): Partial<Path> {\n let parsedPath: Partial<Path> = {};\n\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n\n let searchIndex = path.indexOf(\"?\");\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n\n if (path) {\n parsedPath.pathname = path;\n }\n }\n\n return parsedPath;\n}\n\nexport interface UrlHistory extends History {}\n\nexport type UrlHistoryOptions = {\n window?: Window;\n v5Compat?: boolean;\n};\n\nfunction getUrlBasedHistory(\n getLocation: (window: Window, globalHistory: Window[\"history\"]) => Location,\n createHref: (window: Window, to: To) => string,\n validateLocation: ((location: Location, to: To) => void) | null,\n options: UrlHistoryOptions = {}\n): UrlHistory {\n let { window = document.defaultView!, v5Compat = false } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener: Listener | null = null;\n\n let index = getIndex()!;\n // Index should only be null when we initialize. If not, it's because the\n // user called history.pushState or history.replaceState directly, in which\n // case we should log a warning as it will result in bugs.\n if (index == null) {\n index = 0;\n globalHistory.replaceState({ ...globalHistory.state, idx: index }, \"\");\n }\n\n function getIndex(): number {\n let state = globalHistory.state || { idx: null };\n return state.idx;\n }\n\n function handlePop() {\n action = Action.Pop;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n if (listener) {\n listener({ action, location: history.location, delta });\n }\n }\n\n function push(to: To, state?: any) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n\n // try...catch because iOS limits us to 100 pushState calls :/\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n if (v5Compat && listener) {\n listener({ action, location: history.location, delta: 1 });\n }\n }\n\n function replace(to: To, state?: any) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n\n if (v5Compat && listener) {\n listener({ action, location: history.location, delta: 0 });\n }\n }\n\n function createURL(to: To): URL {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base =\n window.location.origin !== \"null\"\n ? window.location.origin\n : window.location.href;\n\n let href = typeof to === \"string\" ? to : createPath(to);\n invariant(\n base,\n `No window.location.(origin|href) available to create URL for href: ${href}`\n );\n return new URL(href, base);\n }\n\n let history: History = {\n get action() {\n return action;\n },\n get location() {\n return getLocation(window, globalHistory);\n },\n listen(fn: Listener) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n createHref(to) {\n return createHref(window, to);\n },\n createURL,\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash,\n };\n },\n push,\n replace,\n go(n) {\n return globalHistory.go(n);\n },\n };\n\n return history;\n}\n\n//#endregion\n","import type { Location, Path, To } from \"./history\";\nimport { invariant, parsePath } from \"./history\";\n\n/**\n * Map of routeId -> data returned from a loader/action/error\n */\nexport interface RouteData {\n [routeId: string]: any;\n}\n\nexport enum ResultType {\n data = \"data\",\n deferred = \"deferred\",\n redirect = \"redirect\",\n error = \"error\",\n}\n\n/**\n * Successful result from a loader or action\n */\nexport interface SuccessResult {\n type: ResultType.data;\n data: any;\n statusCode?: number;\n headers?: Headers;\n}\n\n/**\n * Successful defer() result from a loader or action\n */\nexport interface DeferredResult {\n type: ResultType.deferred;\n deferredData: DeferredData;\n statusCode?: number;\n headers?: Headers;\n}\n\n/**\n * Redirect result from a loader or action\n */\nexport interface RedirectResult {\n type: ResultType.redirect;\n status: number;\n location: string;\n revalidate: boolean;\n}\n\n/**\n * Unsuccessful result from a loader or action\n */\nexport interface ErrorResult {\n type: ResultType.error;\n error: any;\n headers?: Headers;\n}\n\n/**\n * Result from a loader or action - potentially successful or unsuccessful\n */\nexport type DataResult =\n | SuccessResult\n | DeferredResult\n | RedirectResult\n | ErrorResult;\n\nexport type MutationFormMethod = \"post\" | \"put\" | \"patch\" | \"delete\";\nexport type FormMethod = \"get\" | MutationFormMethod;\n\nexport type FormEncType =\n | \"application/x-www-form-urlencoded\"\n | \"multipart/form-data\";\n\n/**\n * @private\n * Internal interface to pass around for action submissions, not intended for\n * external consumption\n */\nexport interface Submission {\n formMethod: FormMethod;\n formAction: string;\n formEncType: FormEncType;\n formData: FormData;\n}\n\n/**\n * @private\n * Arguments passed to route loader/action functions. Same for now but we keep\n * this as a private implementation detail in case they diverge in the future.\n */\ninterface DataFunctionArgs {\n request: Request;\n params: Params;\n context?: any;\n}\n\n/**\n * Arguments passed to loader functions\n */\nexport interface LoaderFunctionArgs extends DataFunctionArgs {}\n\n/**\n * Arguments passed to action functions\n */\nexport interface ActionFunctionArgs extends DataFunctionArgs {}\n\n/**\n * Route loader function signature\n */\nexport interface LoaderFunction {\n (args: LoaderFunctionArgs): Promise<Response> | Response | Promise<any> | any;\n}\n\n/**\n * Route action function signature\n */\nexport interface ActionFunction {\n (args: ActionFunctionArgs): Promise<Response> | Response | Promise<any> | any;\n}\n\n/**\n * Route shouldRevalidate function signature. This runs after any submission\n * (navigation or fetcher), so we flatten the navigation/fetcher submission\n * onto the arguments. It shouldn't matter whether it came from a navigation\n * or a fetcher, what really matters is the URLs and the formData since loaders\n * have to re-run based on the data models that were potentially mutated.\n */\nexport interface ShouldRevalidateFunction {\n (args: {\n currentUrl: URL;\n currentParams: AgnosticDataRouteMatch[\"params\"];\n nextUrl: URL;\n nextParams: AgnosticDataRouteMatch[\"params\"];\n formMethod?: Submission[\"formMethod\"];\n formAction?: Submission[\"formAction\"];\n formEncType?: Submission[\"formEncType\"];\n formData?: Submission[\"formData\"];\n actionResult?: DataResult;\n defaultShouldRevalidate: boolean;\n }): boolean;\n}\n\n/**\n * Base RouteObject with common props shared by all types of routes\n */\ntype AgnosticBaseRouteObject = {\n caseSensitive?: boolean;\n path?: string;\n id?: string;\n loader?: LoaderFunction;\n action?: ActionFunction;\n hasErrorBoundary?: boolean;\n shouldRevalidate?: ShouldRevalidateFunction;\n handle?: any;\n};\n\n/**\n * Index routes must not have children\n */\nexport type AgnosticIndexRouteObject = AgnosticBaseRouteObject & {\n children?: undefined;\n index: true;\n};\n\n/**\n * Non-index routes may have children, but cannot have index\n */\nexport type AgnosticNonIndexRouteObject = AgnosticBaseRouteObject & {\n children?: AgnosticRouteObject[];\n index?: false;\n};\n\n/**\n * A route object represents a logical route, with (optionally) its child\n * routes organized in a tree-like structure.\n */\nexport type AgnosticRouteObject =\n | AgnosticIndexRouteObject\n | AgnosticNonIndexRouteObject;\n\nexport type AgnosticDataIndexRouteObject = AgnosticIndexRouteObject & {\n id: string;\n};\n\nexport type AgnosticDataNonIndexRouteObject = AgnosticNonIndexRouteObject & {\n children?: AgnosticDataRouteObject[];\n id: string;\n};\n\n/**\n * A data route object, which is just a RouteObject with a required unique ID\n */\nexport type AgnosticDataRouteObject =\n | AgnosticDataIndexRouteObject\n | AgnosticDataNonIndexRouteObject;\n\n// Recursive helper for finding path parameters in the absence of wildcards\ntype _PathParam<Path extends string> =\n // split path into individual path segments\n Path extends `${infer L}/${infer R}`\n ? _PathParam<L> | _PathParam<R>\n : // find params after `:`\n Path extends `:${infer Param}`\n ? Param extends `${infer Optional}?`\n ? Optional\n : Param\n : // otherwise, there aren't any params present\n never;\n\n/**\n * Examples:\n * \"/a/b/*\" -> \"*\"\n * \":a\" -> \"a\"\n * \"/a/:b\" -> \"b\"\n * \"/a/blahblahblah:b\" -> \"b\"\n * \"/:a/:b\" -> \"a\" | \"b\"\n * \"/:a/b/:c/*\" -> \"a\" | \"c\" | \"*\"\n */\ntype PathParam<Path extends string> =\n // check if path is just a wildcard\n Path extends \"*\"\n ? \"*\"\n : // look for wildcard at the end of the path\n Path extends `${infer Rest}/*`\n ? \"*\" | _PathParam<Rest>\n : // look for params in the absence of wildcards\n _PathParam<Path>;\n\n// Attempt to parse the given string segment. If it fails, then just return the\n// plain string type as a default fallback. Otherwise return the union of the\n// parsed string literals that were referenced as dynamic segments in the route.\nexport type ParamParseKey<Segment extends string> =\n // if could not find path params, fallback to `string`\n [PathParam<Segment>] extends [never] ? string : PathParam<Segment>;\n\n/**\n * The parameters that were parsed from the URL path.\n */\nexport type Params<Key extends string = string> = {\n readonly [key in Key]: string | undefined;\n};\n\n/**\n * A RouteMatch contains info about how a route matched a URL.\n */\nexport interface AgnosticRouteMatch<\n ParamKey extends string = string,\n RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject\n> {\n /**\n * The names and values of dynamic parameters in the URL.\n */\n params: Params<ParamKey>;\n /**\n * The portion of the URL pathname that was matched.\n */\n pathname: string;\n /**\n * The portion of the URL pathname that was matched before child routes.\n */\n pathnameBase: string;\n /**\n * The route object that was used to match.\n */\n route: RouteObjectType;\n}\n\nexport interface AgnosticDataRouteMatch\n extends AgnosticRouteMatch<string, AgnosticDataRouteObject> {}\n\nfunction isIndexRoute(\n route: AgnosticRouteObject\n): route is AgnosticIndexRouteObject {\n return route.index === true;\n}\n\n// Walk the route tree generating unique IDs where necessary so we are working\n// solely with AgnosticDataRouteObject's within the Router\nexport function convertRoutesToDataRoutes(\n routes: AgnosticRouteObject[],\n parentPath: number[] = [],\n allIds: Set<string> = new Set<string>()\n): AgnosticDataRouteObject[] {\n return routes.map((route, index) => {\n let treePath = [...parentPath, index];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(\n route.index !== true || !route.children,\n `Cannot specify children on an index route`\n );\n invariant(\n !allIds.has(id),\n `Found a route id collision on id \"${id}\". Route ` +\n \"id's must be globally unique within Data Router usages\"\n );\n allIds.add(id);\n\n if (isIndexRoute(route)) {\n let indexRoute: AgnosticDataIndexRouteObject = { ...route, id };\n return indexRoute;\n } else {\n let pathOrLayoutRoute: AgnosticDataNonIndexRouteObject = {\n ...route,\n id,\n children: route.children\n ? convertRoutesToDataRoutes(route.children, treePath, allIds)\n : undefined,\n };\n return pathOrLayoutRoute;\n }\n });\n}\n\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/utils/match-routes\n */\nexport function matchRoutes<\n RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject\n>(\n routes: RouteObjectType[],\n locationArg: Partial<Location> | string,\n basename = \"/\"\n): AgnosticRouteMatch<string, RouteObjectType>[] | null {\n let location =\n typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n\n let pathname = stripBasename(location.pathname || \"/\", basename);\n\n if (pathname == null) {\n return null;\n }\n\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n\n let matches = null;\n for (let i = 0; matches == null && i < branches.length; ++i) {\n matches = matchRouteBranch<string, RouteObjectType>(\n branches[i],\n // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n safelyDecodeURI(pathname)\n );\n }\n\n return matches;\n}\n\ninterface RouteMeta<\n RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject\n> {\n relativePath: string;\n caseSensitive: boolean;\n childrenIndex: number;\n route: RouteObjectType;\n}\n\ninterface RouteBranch<\n RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject\n> {\n path: string;\n score: number;\n routesMeta: RouteMeta<RouteObjectType>[];\n}\n\nfunction flattenRoutes<\n RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject\n>(\n routes: RouteObjectType[],\n branches: RouteBranch<RouteObjectType>[] = [],\n parentsMeta: RouteMeta<RouteObjectType>[] = [],\n parentPath = \"\"\n): RouteBranch<RouteObjectType>[] {\n let flattenRoute = (\n route: RouteObjectType,\n index: number,\n relativePath?: string\n ) => {\n let meta: RouteMeta<RouteObjectType> = {\n relativePath:\n relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route,\n };\n\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(\n meta.relativePath.startsWith(parentPath),\n `Absolute route path \"${meta.relativePath}\" nested under path ` +\n `\"${parentPath}\" is not valid. An absolute child route path ` +\n `must start with the combined path of all its parent routes.`\n );\n\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta);\n\n // Add the children before adding this route to the array so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n if (route.children && route.children.length > 0) {\n invariant(\n // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true,\n `Index routes must not have child routes. Please remove ` +\n `all child routes from route path \"${path}\".`\n );\n\n flattenRoutes(route.children, branches, routesMeta, path);\n }\n\n // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n if (route.path == null && !route.index) {\n return;\n }\n\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta,\n });\n };\n routes.forEach((route, index) => {\n // coarse-grain check for optional params\n if (route.path === \"\" || !route.path?.includes(\"?\")) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n\n return branches;\n}\n\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\nfunction explodeOptionalSegments(path: string): string[] {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n\n let [first, ...rest] = segments;\n\n // Optional path segments are denoted by a trailing `?`\n let isOptional = first.endsWith(\"?\");\n // Compute the corresponding required segment: `foo?` -> `foo`\n let required = first.replace(/\\?$/, \"\");\n\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n\n let result: string[] = [];\n\n // All child paths with the prefix. Do this for all children before the\n // optional version for all children so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explodes _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n result.push(\n ...restExploded.map((subpath) =>\n subpath === \"\" ? required : [required, subpath].join(\"/\")\n )\n );\n\n // Then if this is an optional value, add all child versions without\n if (isOptional) {\n result.push(...restExploded);\n }\n\n // for absolute paths, ensure `/` instead of empty segment\n return result.map((exploded) =>\n path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded\n );\n}\n\nfunction rankRouteBranches(branches: RouteBranch[]): void {\n branches.sort((a, b) =>\n a.score !== b.score\n ? b.score - a.score // Higher score first\n : compareIndexes(\n a.routesMeta.map((meta) => meta.childrenIndex),\n b.routesMeta.map((meta) => meta.childrenIndex)\n )\n );\n}\n\nconst paramRe = /^:\\w+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\nconst isSplat = (s: string) => s === \"*\";\n\nfunction computeScore(path: string, index: boolean | undefined): number {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n\n if (index) {\n initialScore += indexRouteValue;\n }\n\n return segments\n .filter((s) => !isSplat(s))\n .reduce(\n (score, segment) =>\n score +\n (paramRe.test(segment)\n ? dynamicSegmentValue\n : segment === \"\"\n ? emptySegmentValue\n : staticSegmentValue),\n initialScore\n );\n}\n\nfunction compareIndexes(a: number[], b: number[]): number {\n let siblings =\n a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n\n return siblings\n ? // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1]\n : // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\n\nfunction matchRouteBranch<\n ParamKey extends string = string,\n RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject\n>(\n branch: RouteBranch<RouteObjectType>,\n pathname: string\n): AgnosticRouteMatch<ParamKey, RouteObjectType>[] | null {\n let { routesMeta } = branch;\n\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches: AgnosticRouteMatch<ParamKey, RouteObjectType>[] = [];\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname =\n matchedPathname === \"/\"\n ? pathname\n : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath(\n { path: meta.relativePath, caseSensitive: meta.caseSensitive, end },\n remainingPathname\n );\n\n if (!match) return null;\n\n Object.assign(matchedParams, match.params);\n\n let route = meta.route;\n\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams as Params<ParamKey>,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(\n joinPaths([matchedPathname, match.pathnameBase])\n ),\n route,\n });\n\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n\n return matches;\n}\n\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/utils/generate-path\n */\nexport function generatePath<Path extends string>(\n originalPath: Path,\n params: {\n [key in PathParam<Path>]: string | null;\n } = {} as any\n): string {\n let path = originalPath;\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(\n false,\n `Route path \"${path}\" will be treated as if it were ` +\n `\"${path.replace(/\\*$/, \"/*\")}\" because the \\`*\\` character must ` +\n `always follow a \\`/\\` in the pattern. To get rid of this warning, ` +\n `please change the route path to \"${path.replace(/\\*$/, \"/*\")}\".`\n );\n path = path.replace(/\\*$/, \"/*\") as Path;\n }\n\n return (\n path\n .replace(\n /^:(\\w+)(\\??)/g,\n (_, key: PathParam<Path>, optional: string | undefined) => {\n let param = params[key];\n if (optional === \"?\") {\n return param == null ? \"\" : param;\n }\n if (param == null) {\n invariant(false, `Missing \":${key}\" param`);\n }\n return param;\n }\n )\n .replace(\n /\\/:(\\w+)(\\??)/g,\n (_, key: PathParam<Path>, optional: string | undefined) => {\n let param = params[key];\n if (optional === \"?\") {\n return param == null ? \"\" : `/${param}`;\n }\n if (param == null) {\n invariant(false, `Missing \":${key}\" param`);\n }\n return `/${param}`;\n }\n )\n // Remove any optional markers from optional static segments\n .replace(/\\?/g, \"\")\n .replace(/(\\/?)\\*/, (_, prefix, __, str) => {\n const star = \"*\" as PathParam<Path>;\n\n if (params[star] == null) {\n // If no splat was provided, trim the trailing slash _unless_ it's\n // the entire path\n return str === \"/*\" ? \"/\" : \"\";\n }\n\n // Apply the splat\n return `${prefix}${params[star]}`;\n })\n );\n}\n\n/**\n * A PathPattern is used to match on some portion of a URL pathname.\n */\nexport interface PathPattern<Path extends string = string> {\n /**\n * A string to match against a URL pathname. May contain `:id`-style segments\n * to indicate placeholders for dynamic parameters. May also end with `/*` to\n * indicate matching the rest of the URL pathname.\n */\n path: Path;\n /**\n * Should be `true` if the static portions of the `path` should be matched in\n * the same case.\n */\n caseSensitive?: boolean;\n /**\n * Should be `true` if this pattern should match the entire URL pathname.\n */\n end?: boolean;\n}\n\n/**\n * A PathMatch contains info about how a PathPattern matched on a URL pathname.\n */\nexport interface PathMatch<ParamKey extends string = string> {\n /**\n * The names and values of dynamic parameters in the URL.\n */\n params: Params<ParamKey>;\n /**\n * The portion of the URL pathname that was matched.\n */\n pathname: string;\n /**\n * The portion of the URL pathname that was matched before child routes.\n */\n pathnameBase: string;\n /**\n * The pattern that was used to match.\n */\n pattern: PathPattern;\n}\n\ntype Mutable<T> = {\n -readonly [P in keyof T]: T[P];\n};\n\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/utils/match-path\n */\nexport function matchPath<\n ParamKey extends ParamParseKey<Path>,\n Path extends string\n>(\n pattern: PathPattern<Path> | Path,\n pathname: string\n): PathMatch<ParamKey> | null {\n if (typeof pattern === \"string\") {\n pattern = { path: pattern, caseSensitive: false, end: true };\n }\n\n let [matcher, paramNames] = compilePath(\n pattern.path,\n pattern.caseSensitive,\n pattern.end\n );\n\n let match = pathname.match(matcher);\n if (!match) return null;\n\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params: Params = paramNames.reduce<Mutable<Params>>(\n (memo, paramName, index) => {\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname\n .slice(0, matchedPathname.length - splatValue.length)\n .replace(/(.)\\/+$/, \"$1\");\n }\n\n memo[paramName] = safelyDecodeURIComponent(\n captureGroups[index] || \"\",\n paramName\n );\n return memo;\n },\n {}\n );\n\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern,\n };\n}\n\nfunction compilePath(\n path: string,\n caseSensitive = false,\n end = true\n): [RegExp, string[]] {\n warning(\n path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"),\n `Route path \"${path}\" will be treated as if it were ` +\n `\"${path.replace(/\\*$/, \"/*\")}\" because the \\`*\\` character must ` +\n `always follow a \\`/\\` in the pattern. To get rid of this warning, ` +\n `please change the route path to \"${path.replace(/\\*$/, \"/*\")}\".`\n );\n\n let paramNames: string[] = [];\n let regexpSource =\n \"^\" +\n path\n .replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^$?{}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:(\\w+)/g, (_: string, paramName: string) => {\n paramNames.push(paramName);\n return \"/([^\\\\/]+)\";\n });\n\n if (path.endsWith(\"*\")) {\n paramNames.push(\"*\");\n regexpSource +=\n path === \"*\" || path === \"/*\"\n ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else {\n // Nothing to match for \"\" or \"/\"\n }\n\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n\n return [matcher, paramNames];\n}\n\nfunction safelyDecodeURI(value: string) {\n try {\n return decodeURI(value);\n } catch (error) {\n warning(\n false,\n `The URL path \"${value}\" could not be decoded because it is is a ` +\n `malformed URL segment. This is probably due to a bad percent ` +\n `encoding (${error}).`\n );\n\n return value;\n }\n}\n\nfunction safelyDecodeURIComponent(value: string, paramName: string) {\n try {\n return decodeURIComponent(value);\n } catch (error) {\n warning(\n false,\n `The value for the URL param \"${paramName}\" will not be decoded because` +\n ` the string \"${value}\" is a malformed URL segment. This is probably` +\n ` due to a bad percent encoding (${error}).`\n );\n\n return value;\n }\n}\n\n/**\n * @private\n */\nexport function stripBasename(\n pathname: string,\n basename: string\n): string | null {\n if (basename === \"/\") return pathname;\n\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n }\n\n // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n let startIndex = basename.endsWith(\"/\")\n ? basename.length - 1\n : basename.length;\n let nextChar = pathname.charAt(startIndex);\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n\n return pathname.slice(startIndex) || \"/\";\n}\n\n/**\n * @private\n */\nexport function warning(cond: any, message: string): void {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging @remix-run/router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message);\n // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/utils/resolve-path\n */\nexport function resolvePath(to: To, fromPathname = \"/\"): Path {\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\",\n } = typeof to === \"string\" ? parsePath(to) : to;\n\n let pathname = toPathname\n ? toPathname.startsWith(\"/\")\n ? toPathname\n : resolvePathname(toPathname, fromPathname)\n : fromPathname;\n\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash),\n };\n}\n\nfunction resolvePathname(relativePath: string, fromPathname: string): string {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n\n relativeSegments.forEach((segment) => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\n\nfunction getInvalidPathError(\n char: string,\n field: string,\n dest: string,\n path: Partial<Path>\n) {\n return (\n `Cannot include a '${char}' character in a manually specified ` +\n `\\`to.${field}\\` field [${JSON.stringify(\n path\n )}]. Please separate it out to the ` +\n `\\`to.${dest}\\` field. Alternatively you may provide the full path as ` +\n `a string in <Link to=\"...\"> and the router will parse it for you.`\n );\n}\n\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * <Route path=\"/\">\n * <Route path=\"accounts\" element={<Link to=\"..\"}>\n * </Route>\n *\n * <Route path=\"/\">\n * <Route path=\"accounts\">\n * <Route element={<AccountsLayout />}> // <-- Does not contribute\n * <Route index element={<Link to=\"..\"} /> // <-- Does not contribute\n * </Route\n * </Route>\n * </Route>\n */\nexport function getPathContributingMatches<\n T extends AgnosticRouteMatch = AgnosticRouteMatch\n>(matches: T[]) {\n return matches.filter(\n (match, index) =>\n index === 0 || (match.route.path && match.route.path.length > 0)\n );\n}\n\n/**\n * @private\n */\nexport function resolveTo(\n toArg: To,\n routePathnames: string[],\n locationPathname: string,\n isPathRelative = false\n): Path {\n let to: Partial<Path>;\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = { ...toArg };\n\n invariant(\n !to.pathname || !to.pathname.includes(\"?\"),\n getInvalidPathError(\"?\", \"pathname\", \"search\", to)\n );\n invariant(\n !to.pathname || !to.pathname.includes(\"#\"),\n getInvalidPathError(\"#\", \"pathname\", \"hash\", to)\n );\n invariant(\n !to.search || !to.search.includes(\"#\"),\n getInvalidPathError(\"#\", \"search\", \"hash\", to)\n );\n }\n\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n\n let from: string;\n\n // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `<Link to>` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n if (isPathRelative || toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n\n if (toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\");\n\n // Each leading .. segment means \"go up one route\" instead of \"go up one\n // URL segment\". This is a key difference from how <a href> works and a\n // major reason we call this a \"to\" value instead of a \"href\".\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n\n to.pathname = toSegments.join(\"/\");\n }\n\n // If there are more \"..\" segments than parent routes, resolve relative to\n // the root / URL.\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n\n let path = resolvePath(to, from);\n\n // Ensure the pathname has a trailing slash if the original \"to\" had one\n let hasExplicitTrailingSlash =\n toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\");\n // Or if this was a link to the current path which has a trailing slash\n let hasCurrentTrailingSlash =\n (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n if (\n !path.pathname.endsWith(\"/\") &&\n (hasExplicitTrailingSlash || hasCurrentTrailingSlash)\n ) {\n path.pathname += \"/\";\n }\n\n return path;\n}\n\n/**\n * @private\n */\nexport function getToPathname(to: To): string | undefined {\n // Empty strings should be treated the same as / paths\n return to === \"\" || (to as Path).pathname === \"\"\n ? \"/\"\n : typeof to === \"string\"\n ? parsePath(to).pathname\n : to.pathname;\n}\n\n/**\n * @private\n */\nexport const joinPaths = (paths: string[]): string =>\n paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n\n/**\n * @private\n */\nexport const normalizePathname = (pathname: string): string =>\n pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n\n/**\n * @private\n */\nexport const normalizeSearch = (search: string): string =>\n !search || search === \"?\"\n ? \"\"\n : search.startsWith(\"?\")\n ? search\n : \"?\" + search;\n\n/**\n * @private\n */\nexport const normalizeHash = (hash: string): string =>\n !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n\nexport type JsonFunction = <Data>(\n data: Data,\n init?: number | ResponseInit\n) => Response;\n\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n */\nexport const json: JsonFunction = (data, init = {}) => {\n let responseInit = typeof init === \"number\" ? { status: init } : init;\n\n let headers = new Headers(responseInit.headers);\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n\n return new Response(JSON.stringify(data), {\n ...responseInit,\n headers,\n });\n};\n\nexport interface TrackedPromise extends Promise<any> {\n _tracked?: boolean;\n _data?: any;\n _error?: any;\n}\n\nexport class AbortedDeferredError extends Error {}\n\nexport class DeferredData {\n private pendingKeysSet: Set<string> = new Set<string>();\n private controller: AbortController;\n private abortPromise: Promise<void>;\n private unlistenAbortSignal: () => void;\n private subscribers: Set<(aborted: boolean, settledKey?: string) => void> =\n new Set();\n data: Record<string, unknown>;\n init?: ResponseInit;\n deferredKeys: string[] = [];\n\n constructor(data: Record<string, unknown>, responseInit?: ResponseInit) {\n invariant(\n data && typeof data === \"object\" && !Array.isArray(data),\n \"defer() only accepts plain objects\"\n );\n\n // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n let reject: (e: AbortedDeferredError) => void;\n this.abortPromise = new Promise((_, r) => (reject = r));\n this.controller = new AbortController();\n let onAbort = () =>\n reject(new AbortedDeferredError(\"Deferred data aborted\"));\n this.unlistenAbortSignal = () =>\n this.controller.signal.removeEventListener(\"abort\", onAbort);\n this.controller.signal.addEventListener(\"abort\", onAbort);\n\n this.data = Object.entries(data).reduce(\n (acc, [key, value]) =>\n Object.assign(acc, {\n [key]: this.trackPromise(key, value),\n }),\n {}\n );\n\n if (this.done) {\n // All incoming values were resolved\n this.unlistenAbortSignal();\n }\n\n this.init = responseInit;\n }\n\n private trackPromise(\n key: string,\n value: Promise<unknown> | unknown\n ): TrackedPromise | unknown {\n if (!(value instanceof Promise)) {\n return value;\n }\n\n this.deferredKeys.push(key);\n this.pendingKeysSet.add(key);\n\n // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n let promise: TrackedPromise = Promise.race([value, this.abortPromise]).then(\n (data) => this.onSettle(promise, key, null, data as unknown),\n (error) => this.onSettle(promise, key, error as unknown)\n );\n\n // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n promise.catch(() => {});\n\n Object.defineProperty(promise, \"_tracked\", { get: () => true });\n return promise;\n }\n\n private onSettle(\n promise: TrackedPromise,\n key: string,\n error: unknown,\n data?: unknown\n ): unknown {\n if (\n this.controller.signal.aborted &&\n error instanceof AbortedDeferredError\n ) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", { get: () => error });\n return Promise.reject(error);\n }\n\n this.pendingKeysSet.delete(key);\n\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n\n if (error) {\n Object.defineProperty(promise, \"_error\", { get: () => error });\n this.emit(false, key);\n return Promise.reject(error);\n }\n\n Object.defineProperty(promise, \"_data\", { get: () => data });\n this.emit(false, key);\n return data;\n }\n\n private emit(aborted: boolean, settledKey?: string) {\n this.subscribers.forEach((subscriber) => subscriber(aborted, settledKey));\n }\n\n subscribe(fn: (aborted: boolean, settledKey?: string) => void) {\n this.subscribers.add(fn);\n return () => this.subscribers.delete(fn);\n }\n\n cancel() {\n this.controller.abort();\n this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n this.emit(true);\n }\n\n async resolveData(signal: AbortSignal) {\n let aborted = false;\n if (!this.done) {\n let onAbort = () => this.cancel();\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise((resolve) => {\n this.subscribe((aborted) => {\n signal.removeEventListener(\"abort\", onAbort);\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n return aborted;\n }\n\n get done() {\n return this.pendingKeysSet.size === 0;\n }\n\n get unwrappedData() {\n invariant(\n this.data !== null && this.done,\n \"Can only unwrap data on initialized and settled deferreds\"\n );\n\n return Object.entries(this.data).reduce(\n (acc, [key, value]) =>\n Object.assign(acc, {\n [key]: unwrapTrackedPromise(value),\n }),\n {}\n );\n }\n\n get pendingKeys() {\n return Array.from(this.pendingKeysSet);\n }\n}\n\nfunction isTrackedPromise(value: any): value is TrackedPromise {\n return (\n value instanceof Promise && (value as TrackedPromise)._tracked === true\n );\n}\n\nfunction unwrapTrackedPromise(value: any) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n\n if (value._error) {\n throw value._error;\n }\n return value._data;\n}\n\nexport type DeferFunction = (\n data: Record<string, unknown>,\n init?: number | ResponseInit\n) => DeferredData;\n\nexport const defer: DeferFunction = (data, init = {}) => {\n let responseInit = typeof init === \"number\" ? { status: init } : init;\n\n return new DeferredData(data, responseInit);\n};\n\nexport type RedirectFunction = (\n url: string,\n init?: number | ResponseInit\n) => Response;\n\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nexport const redirect: RedirectFunction = (url, init = 302) => {\n let responseInit = init;\n if (typeof responseInit === \"number\") {\n responseInit = { status: responseInit };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n\n return new Response(null, {\n ...responseInit,\n headers,\n });\n};\n\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n */\nexport class ErrorResponse {\n status: number;\n statusText: string;\n data: any;\n error?: Error;\n internal: boolean;\n\n constructor(\n status: number,\n statusText: string | undefined,\n data: any,\n internal = false\n ) {\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n}\n\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\nexport function isRouteErrorResponse(error: any): error is ErrorResponse {\n return (\n error != null &&\n typeof error.status === \"number\" &&\n typeof error.statusText === \"string\" &&\n typeof error.internal === \"boolean\" &&\n \"data\" in error\n );\n}\n","import unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _toArray(arr) {\n return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();\n}","import type { History, Location, Path, To } from \"./history\";\nimport {\n Action as HistoryAction,\n createLocation,\n createPath,\n invariant,\n parsePath,\n} from \"./history\";\nimport type {\n DataResult,\n AgnosticDataRouteMatch,\n AgnosticDataRouteObject,\n DeferredResult,\n ErrorResult,\n FormEncType,\n FormMethod,\n RedirectResult,\n RouteData,\n AgnosticRouteObject,\n Submission,\n SuccessResult,\n AgnosticRouteMatch,\n MutationFormMethod,\n ShouldRevalidateFunction,\n} from \"./utils\";\nimport {\n DeferredData,\n ErrorResponse,\n ResultType,\n convertRoutesToDataRoutes,\n getPathContributingMatches,\n isRouteErrorResponse,\n joinPaths,\n matchRoutes,\n resolveTo,\n warning,\n} from \"./utils\";\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Types and Constants\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * A Router instance manages all navigation and data loading/mutations\n */\nexport interface Router {\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Return the basename for the router\n */\n get basename(): RouterInit[\"basename\"];\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Return the current state of the router\n */\n get state(): RouterState;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Return the routes for this router instance\n */\n get routes(): AgnosticDataRouteObject[];\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Initialize the router, including adding history listeners and kicking off\n * initial data fetches. Returns a function to cleanup listeners and abort\n * any in-progress loads\n */\n initialize(): Router;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Subscribe to router.state updates\n *\n * @param fn function to call with the new state\n */\n subscribe(fn: RouterSubscriber): () => void;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Enable scroll restoration behavior in the router\n *\n * @param savedScrollPositions Object that will manage positions, in case\n * it's being restored from sessionStorage\n * @param getScrollPosition Function to get the active Y scroll position\n * @param getKey Function to get the key to use for restoration\n */\n enableScrollRestoration(\n savedScrollPositions: Record<string, number>,\n getScrollPosition: GetScrollPositionFunction,\n getKey?: GetScrollRestorationKeyFunction\n ): () => void;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Navigate forward/backward in the history stack\n * @param to Delta to move in the history stack\n */\n navigate(to: number): Promise<void>;\n\n /**\n * Navigate to the given path\n * @param to Path to navigate to\n * @param opts Navigation options (method, submission, etc.)\n */\n navigate(to: To, opts?: RouterNavigateOptions): Promise<void>;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Trigger a fetcher load/submission\n *\n * @param key Fetcher key\n * @param routeId Route that owns the fetcher\n * @param href href to fetch\n * @param opts Fetcher options, (method, submission, etc.)\n */\n fetch(\n key: string,\n routeId: string,\n href: string,\n opts?: RouterNavigateOptions\n ): void;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Trigger a revalidation of all current route loaders and fetcher loads\n */\n revalidate(): void;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Utility function to create an href for the given location\n * @param location\n */\n createHref(location: Location | URL): string;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Utility function to URL encode a destination path according to the internal\n * history implementation\n * @param to\n */\n encodeLocation(to: To): Path;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Get/create a fetcher for the given key\n * @param key\n */\n getFetcher<TData = any>(key?: string): Fetcher<TData>;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Delete the fetcher for a given key\n * @param key\n */\n deleteFetcher(key?: string): void;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Cleanup listeners and abort any in-progress loads\n */\n dispose(): void;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Get a navigation blocker\n * @param key The identifier for the blocker\n * @param fn The blocker function implementation\n */\n getBlocker(key: string, fn: BlockerFunction): Blocker;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Delete a navigation blocker\n * @param key The identifier for the blocker\n */\n deleteBlocker(key: string): void;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Internal fetch AbortControllers accessed by unit tests\n */\n _internalFetchControllers: Map<string, AbortController>;\n\n /**\n * @internal\n * PRIVATE - DO NOT USE\n *\n * Internal pending DeferredData instances accessed by unit tests\n */\n _internalActiveDeferreds: Map<string, DeferredData>;\n}\n\n/**\n * State maintained internally by the router. During a navigation, all states\n * reflect the the \"old\" location unless otherwise noted.\n */\nexport interface RouterState {\n /**\n * The action of the most recent navigation\n */\n historyAction: HistoryAction;\n\n /**\n * The current location reflected by the router\n */\n location: Location;\n\n /**\n * The current set of route matches\n */\n matches: AgnosticDataRouteMatch[];\n\n /**\n * Tracks whether we've completed our initial data load\n */\n initialized: boolean;\n\n /**\n * Current scroll position we should start at for a new view\n * - number -> scroll position to restore to\n * - false -> do not restore scroll at all (used during submissions)\n * - null -> don't have a saved position, scroll to hash or top of page\n */\n restoreScrollPosition: number | false | null;\n\n /**\n * Indicate whether this navigation should skip resetting the scroll position\n * if we are unable to restore the scroll position\n */\n preventScrollReset: boolean;\n\n /**\n * Tracks the state of the current navigation\n */\n navigation: Navigation;\n\n /**\n * Tracks any in-progress revalidations\n */\n revalidation: RevalidationState;\n\n /**\n * Data from the loaders for the current matches\n */\n loaderData: RouteData;\n\n /**\n * Data from the action for the current matches\n */\n actionData: RouteData | null;\n\n /**\n * Errors caught from loaders for the current matches\n */\n errors: RouteData | null;\n\n /**\n * Map of current fetchers\n */\n fetchers: Map<string, Fetcher>;\n\n /**\n * Map of current blockers\n */\n blockers: Map<string, Blocker>;\n}\n\n/**\n * Data that can be passed into hydrate a Router from SSR\n */\nexport type HydrationState = Partial<\n Pick<RouterState, \"loaderData\" | \"actionData\" | \"errors\">\n>;\n\n/**\n * Initialization options for createRouter\n */\nexport interface RouterInit {\n basename?: string;\n routes: AgnosticRouteObject[];\n history: History;\n hydrationData?: HydrationState;\n}\n\n/**\n * State returned from a server-side query() call\n */\nexport interface StaticHandlerContext {\n basename: Router[\"basename\"];\n location: RouterState[\"location\"];\n matches: RouterState[\"matches\"];\n loaderData: RouterState[\"loaderData\"];\n actionData: RouterState[\"actionData\"];\n errors: RouterState[\"errors\"];\n statusCode: number;\n loaderHeaders: Record<string, Headers>;\n actionHeaders: Record<string, Headers>;\n activeDeferreds: Record<string, DeferredData> | null;\n _deepestRenderedBoundaryId?: string | null;\n}\n\n/**\n * A StaticHandler instance manages a singular SSR navigation/fetch event\n */\nexport interface StaticHandler {\n dataRoutes: AgnosticDataRouteObject[];\n query(\n request: Request,\n opts?: { requestContext?: unknown }\n ): Promise<StaticHandlerContext | Response>;\n queryRoute(\n request: Request,\n opts?: { routeId?: string; requestContext?: unknown }\n ): Promise<any>;\n}\n\n/**\n * Subscriber function signature for changes to router state\n */\nexport interface RouterSubscriber {\n (state: RouterState): void;\n}\n\ninterface UseMatchesMatch {\n id: string;\n pathname: string;\n params: AgnosticRouteMatch[\"params\"];\n data: unknown;\n handle: unknown;\n}\n\n/**\n * Function signature for determining the key to be used in scroll restoration\n * for a given location\n */\nexport interface GetScrollRestorationKeyFunction {\n (location: Location, matches: UseMatchesMatch[]): string | null;\n}\n\n/**\n * Function signature for determining the current scroll position\n */\nexport interface GetScrollPositionFunction {\n (): number;\n}\n\n/**\n * Options for a navigate() call for a Link navigation\n */\ntype LinkNavigateOptions = {\n replace?: boolean;\n state?: any;\n preventScrollReset?: boolean;\n};\n\n/**\n * Options for a navigate() call for a Form navigation\n */\ntype SubmissionNavigateOptions = {\n replace?: boolean;\n state?: any;\n preventScrollReset?: boolean;\n formMethod?: FormMethod;\n formEncType?: FormEncType;\n formData: FormData;\n};\n\n/**\n * Options to pass to navigate() for either a Link or Form navigation\n */\nexport type RouterNavigateOptions =\n | LinkNavigateOptions\n | SubmissionNavigateOptions;\n\n/**\n * Options to pass to fetch()\n */\nexport type RouterFetchOptions =\n | Omit<LinkNavigateOptions, \"replace\">\n | Omit<SubmissionNavigateOptions, \"replace\">;\n\n/**\n * Potential states for state.navigation\n */\nexport type NavigationStates = {\n Idle: {\n state: \"idle\";\n location: undefined;\n formMethod: undefined;\n formAction: undefined;\n formEncType: undefined;\n formData: undefined;\n };\n Loading: {\n state: \"loading\";\n location: Location;\n formMethod: FormMethod | undefined;\n formAction: string | undefined;\n formEncType: FormEncType | undefined;\n formData: FormData | undefined;\n };\n Submitting: {\n state: \"submitting\";\n location: Location;\n formMethod: FormMethod;\n formAction: string;\n formEncType: FormEncType;\n formData: FormData;\n };\n};\n\nexport type Navigation = NavigationStates[keyof NavigationStates];\n\nexport type RevalidationState = \"idle\" | \"loading\";\n\n/**\n * Potential states for fetchers\n */\ntype FetcherStates<TData = any> = {\n Idle: {\n state: \"idle\";\n formMethod: undefined;\n formAction: undefined;\n formEncType: undefined;\n formData: undefined;\n data: TData | undefined;\n \" _hasFetcherDoneAnything \"?: boolean;\n };\n Loading: {\n state: \"loading\";\n formMethod: FormMethod | undefined;\n formAction: string | undefined;\n formEncType: FormEncType | undefined;\n formData: FormData | undefined;\n data: TData | undefined;\n \" _hasFetcherDoneAnything \"?: boolean;\n };\n Submitting: {\n state: \"submitting\";\n formMethod: FormMethod;\n formAction: string;\n formEncType: FormEncType;\n formData: FormData;\n data: TData | undefined;\n \" _hasFetcherDoneAnything \"?: boolean;\n };\n};\n\nexport type Fetcher<TData = any> =\n FetcherStates<TData>[keyof FetcherStates<TData>];\n\ninterface BlockerBlocked {\n state: \"blocked\";\n reset(): void;\n proceed(): void;\n location: Location;\n}\n\ninterface BlockerUnblocked {\n state: \"unblocked\";\n reset: undefined;\n proceed: undefined;\n location: undefined;\n}\n\ninterface BlockerProceeding {\n state: \"proceeding\";\n reset: undefined;\n proceed: undefined;\n location: Location;\n}\n\nexport type Blocker = BlockerUnblocked | BlockerBlocked | BlockerProceeding;\n\nexport type BlockerFunction = (args: {\n currentLocation: Location;\n nextLocation: Location;\n historyAction: HistoryAction;\n}) => boolean;\n\ninterface ShortCircuitable {\n /**\n * startNavigation does not need to complete the navigation because we\n * redirected or got interrupted\n */\n shortCircuited?: boolean;\n}\n\ninterface HandleActionResult extends ShortCircuitable {\n /**\n * Error thrown from the current action, keyed by the route containing the\n * error boundary to render the error. To be committed to the state after\n * loaders have completed\n */\n pendingActionError?: RouteData;\n /**\n * Data returned from the current action, keyed by the route owning the action.\n * To be committed to the state after loaders have completed\n */\n pendingActionData?: RouteData;\n}\n\ninterface HandleLoadersResult extends ShortCircuitable {\n /**\n * loaderData returned from the current set of loaders\n */\n loaderData?: RouterState[\"loaderData\"];\n /**\n * errors thrown from the current set of loaders\n */\n errors?: RouterState[\"errors\"];\n}\n\n/**\n * Cached info for active fetcher.load() instances so they can participate\n * in revalidation\n */\ninterface FetchLoadMatch {\n routeId: string;\n path: string;\n match: AgnosticDataRouteMatch;\n matches: AgnosticDataRouteMatch[];\n}\n\n/**\n * Identified fetcher.load() calls that need to be revalidated\n */\ninterface RevalidatingFetcher extends FetchLoadMatch {\n key: string;\n}\n\n/**\n * Wrapper object to allow us to throw any response out from callLoaderOrAction\n * for queryRouter while preserving whether or not it was thrown or returned\n * from the loader/action\n */\ninterface QueryRouteResponse {\n type: ResultType.data | ResultType.error;\n response: Response;\n}\n\nconst validMutationMethodsArr: MutationFormMethod[] = [\n \"post\",\n \"put\",\n \"patch\",\n \"delete\",\n];\nconst validMutationMethods = new Set<MutationFormMethod>(\n validMutationMethodsArr\n);\n\nconst validRequestMethodsArr: FormMethod[] = [\n \"get\",\n ...validMutationMethodsArr,\n];\nconst validRequestMethods = new Set<FormMethod>(validRequestMethodsArr);\n\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\n\nexport const IDLE_NAVIGATION: NavigationStates[\"Idle\"] = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n};\n\nexport const IDLE_FETCHER: FetcherStates[\"Idle\"] = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n};\n\nexport const IDLE_BLOCKER: BlockerUnblocked = {\n state: \"unblocked\",\n proceed: undefined,\n reset: undefined,\n location: undefined,\n};\n\nconst isBrowser =\n typeof window !== \"undefined\" &&\n typeof window.document !== \"undefined\" &&\n typeof window.document.createElement !== \"undefined\";\nconst isServer = !isBrowser;\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Create a router and listen to history POP navigations\n */\nexport function createRouter(init: RouterInit): Router {\n invariant(\n init.routes.length > 0,\n \"You must provide a non-empty routes array to createRouter\"\n );\n\n let dataRoutes = convertRoutesToDataRoutes(init.routes);\n // Cleanup function for history\n let unlistenHistory: (() => void) | null = null;\n // Externally-provided functions to call on all state changes\n let subscribers = new Set<RouterSubscriber>();\n // Externally-provided object to hold scroll restoration locations during routing\n let savedScrollPositions: Record<string, number> | null = null;\n // Externally-provided function to get scroll restoration keys\n let getScrollRestorationKey: GetScrollRestorationKeyFunction | null = null;\n // Externally-provided function to get current scroll position\n let getScrollPosition: GetScrollPositionFunction | null = null;\n // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from <ScrollRestoration /> until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n let initialScrollRestored = init.hydrationData != null;\n\n let initialMatches = matchRoutes(\n dataRoutes,\n init.history.location,\n init.basename\n );\n let initialErrors: RouteData | null = null;\n\n if (initialMatches == null) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname,\n });\n let { matches, route } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = { [route.id]: error };\n }\n\n let initialized =\n !initialMatches.some((m) => m.route.loader) || init.hydrationData != null;\n\n let router: Router;\n let state: RouterState = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: (init.hydrationData && init.hydrationData.loaderData) || {},\n actionData: (init.hydrationData && init.hydrationData.actionData) || null,\n errors: (init.hydrationData && init.hydrationData.errors) || initialErrors,\n fetchers: new Map(),\n blockers: new Map(),\n };\n\n // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n let pendingAction: HistoryAction = HistoryAction.Pop;\n\n // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n let pendingPreventScrollReset = false;\n\n // AbortController for the active navigation\n let pendingNavigationController: AbortController | null;\n\n // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n let isUninterruptedRevalidation = false;\n\n // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidate()\n // - X-Remix-Revalidate (from redirect)\n let isRevalidationRequired = false;\n\n // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n let cancelledDeferredRoutes: string[] = [];\n\n // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n let cancelledFetcherLoads: string[] = [];\n\n // AbortControllers for any in-flight fetchers\n let fetchControllers = new Map<string, AbortController>();\n\n // Track loads based on the order in which they started\n let incrementingLoadId = 0;\n\n // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n let pendingNavigationLoadId = -1;\n\n // Fetchers that triggered data reloads as a result of their actions\n let fetchReloadIds = new Map<string, number>();\n\n // Fetchers that triggered redirect navigations from their actions\n let fetchRedirectIds = new Set<string>();\n\n // Most recent href/match for fetcher.load calls for fetchers\n let fetchLoadMatches = new Map<string, FetchLoadMatch>();\n\n // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n let activeDeferreds = new Map<string, DeferredData>();\n\n // We ony support a single active blocker at the moment since we don't have\n // any compelling use cases for multi-blocker yet\n let activeBlocker: string | null = null;\n\n // Store blocker functions in a separate Map outside of router state since\n // we don't need to update UI state if they change\n let blockerFunctions = new Map<string, BlockerFunction>();\n\n // Flag to ignore the next history update, so we can revert the URL change on\n // a POP navigation that was blocked by the user without touching router state\n let ignoreNextHistoryUpdate = false;\n\n // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(\n ({ action: historyAction, location, delta }) => {\n // Ignore this event if it was just us resetting the URL from a\n // blocked POP navigation\n if (ignoreNextHistoryUpdate) {\n ignoreNextHistoryUpdate = false;\n return;\n }\n\n warning(\n activeBlocker != null && delta === null,\n \"You are trying to use a blocker on a POP navigation to a location \" +\n \"that was not created by @remix-run/router. This will fail silently in \" +\n \"production. This can happen if you are navigating outside the router \" +\n \"via `window.history.pushState`/`window.location.hash` instead of using \" +\n \"router navigation APIs. This can also happen if you are using \" +\n \"createHashRouter and the user manually changes the URL.\"\n );\n\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction,\n });\n\n if (blockerKey && delta != null) {\n // Restore the URL to match the current UI, but don't update router state\n ignoreNextHistoryUpdate = true;\n init.history.go(delta * -1);\n\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n proceed() {\n updateBlocker(blockerKey!, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location,\n });\n // Re-do the same POP navigation we just blocked\n init.history.go(delta);\n },\n reset() {\n deleteBlocker(blockerKey!);\n updateState({ blockers: new Map(router.state.blockers) });\n },\n });\n return;\n }\n\n return startNavigation(historyAction, location);\n }\n );\n\n // Kick off initial data load if needed. Use Pop to avoid modifying history\n if (!state.initialized) {\n startNavigation(HistoryAction.Pop, state.location);\n }\n\n return router;\n }\n\n // Clean up a router and it's side effects\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n }\n\n // Subscribe to state updates for the router\n function subscribe(fn: RouterSubscriber) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n }\n\n // Update our state and notify the calling context of the change\n function updateState(newState: Partial<RouterState>): void {\n state = {\n ...state,\n ...newState,\n };\n subscribers.forEach((subscriber) => subscriber(state));\n }\n\n // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n function completeNavigation(\n location: Location,\n newState: Partial<Omit<RouterState, \"action\" | \"location\" | \"navigation\">>\n ): void {\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload =\n state.actionData != null &&\n state.navigation.formMethod != null &&\n isMutationMethod(state.navigation.formMethod) &&\n state.navigation.state === \"loading\" &&\n location.state?._isRedirect !== true;\n\n let actionData: RouteData | null;\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n }\n\n // Always preserve any existing loaderData from re-used routes\n let loaderData = newState.loaderData\n ? mergeLoaderData(\n state.loaderData,\n newState.loaderData,\n newState.matches || [],\n newState.errors\n )\n : state.loaderData;\n\n // On a successful navigation we can assume we got through all blockers\n // so we can start fresh\n for (let [key] of blockerFunctions) {\n deleteBlocker(key);\n }\n\n // Always respect the user flag. Otherwise don't reset on mutation\n // submission navigations unless they redirect\n let preventScrollReset =\n pendingPreventScrollReset === true ||\n (state.navigation.formMethod != null &&\n isMutationMethod(state.navigation.formMethod) &&\n location.state?._isRedirect !== true);\n\n updateState({\n ...newState, // matches, errors, fetchers go through as-is\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition: getSavedScrollPosition(\n location,\n newState.matches || state.matches\n ),\n preventScrollReset,\n blockers: new Map(state.blockers),\n });\n\n if (isUninterruptedRevalidation) {\n // If this was an uninterrupted revalidation then do not touch history\n } else if (pendingAction === HistoryAction.Pop) {\n // Do nothing for POP - URL has already been updated\n } else if (pendingAction === HistoryAction.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === HistoryAction.Replace) {\n init.history.replace(location, location.state);\n }\n\n // Reset stateful navigation vars\n pendingAction = HistoryAction.Pop;\n pendingPreventScrollReset = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n cancelledFetcherLoads = [];\n }\n\n // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n async function navigate(\n to: number | To,\n opts?: RouterNavigateOptions\n ): Promise<void> {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n\n let { path, submission, error } = normalizeNavigateOptions(to, opts);\n\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state);\n\n // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n nextLocation = {\n ...nextLocation,\n ...init.history.encodeLocation(nextLocation),\n };\n\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n\n let historyAction = HistoryAction.Push;\n\n if (userReplace === true) {\n historyAction = HistoryAction.Replace;\n } else if (userReplace === false) {\n // no-op\n } else if (\n submission != null &&\n isMutationMethod(submission.formMethod) &&\n submission.formAction === state.location.pathname + state.location.search\n ) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = HistoryAction.Replace;\n }\n\n let preventScrollReset =\n opts && \"preventScrollReset\" in opts\n ? opts.preventScrollReset === true\n : undefined;\n\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction,\n });\n if (blockerKey) {\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n proceed() {\n updateBlocker(blockerKey!, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location: nextLocation,\n });\n // Send the same navigation through\n navigate(to, opts);\n },\n reset() {\n deleteBlocker(blockerKey!);\n updateState({ blockers: new Map(state.blockers) });\n },\n });\n return;\n }\n\n return await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace,\n });\n }\n\n // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n function revalidate() {\n interruptActiveLoads();\n updateState({ revalidation: \"loading\" });\n\n // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n if (state.navigation.state === \"submitting\") {\n return;\n }\n\n // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true,\n });\n return;\n }\n\n // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n startNavigation(\n pendingAction || state.historyAction,\n state.navigation.location,\n { overrideNavigation: state.navigation }\n );\n }\n\n // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n async function startNavigation(\n historyAction: HistoryAction,\n location: Location,\n opts?: {\n submission?: Submission;\n overrideNavigation?: Navigation;\n pendingError?: ErrorResponse;\n startUninterruptedRevalidation?: boolean;\n preventScrollReset?: boolean;\n replace?: boolean;\n }\n ): Promise<void> {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation =\n (opts && opts.startUninterruptedRevalidation) === true;\n\n // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = matchRoutes(dataRoutes, location, init.basename);\n\n // Short circuit with a 404 on the root error boundary if we match nothing\n if (!matches) {\n let error = getInternalRouterError(404, { pathname: location.pathname });\n let { matches: notFoundMatches, route } =\n getShortCircuitMatches(dataRoutes);\n // Cancel all pending deferred on 404s since we don't keep any routes\n cancelActiveDeferreds();\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error,\n },\n });\n return;\n }\n\n // Short circuit if it's only a hash change and not a mutation submission\n // For example, on /page#hash and submit a <Form method=\"post\"> which will\n // default to a navigation to /page\n if (\n isHashChangeOnly(state.location, location) &&\n !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))\n ) {\n completeNavigation(location, { matches });\n return;\n }\n\n // Create a controller/Request for this navigation\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(\n init.history,\n location,\n pendingNavigationController.signal,\n opts && opts.submission\n );\n let pendingActionData: RouteData | undefined;\n let pendingError: RouteData | undefined;\n\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingError = {\n [findNearestBoundary(matches).route.id]: opts.pendingError,\n };\n } else if (\n opts &&\n opts.submission &&\n isMutationMethod(opts.submission.formMethod)\n ) {\n // Call action if we received an action submission\n let actionOutput = await handleAction(\n request,\n location,\n opts.submission,\n matches,\n { replace: opts.replace }\n );\n\n if (actionOutput.shortCircuited) {\n return;\n }\n\n pendingActionData = actionOutput.pendingActionData;\n pendingError = actionOutput.pendingActionError;\n\n let navigation: NavigationStates[\"Loading\"] = {\n state: \"loading\",\n location,\n ...opts.submission,\n };\n loadingNavigation = navigation;\n\n // Create a GET request for the loaders\n request = new Request(request.url, { signal: request.signal });\n }\n\n // Call loaders\n let { shortCircuited, loaderData, errors } = await handleLoaders(\n request,\n location,\n matches,\n loadingNavigation,\n opts && opts.submission,\n opts && opts.replace,\n pendingActionData,\n pendingError\n );\n\n if (shortCircuited) {\n return;\n }\n\n // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n pendingNavigationController = null;\n\n completeNavigation(location, {\n matches,\n ...(pendingActionData ? { actionData: pendingActionData } : {}),\n loaderData,\n errors,\n });\n }\n\n // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n async function handleAction(\n request: Request,\n location: Location,\n submission: Submission,\n matches: AgnosticDataRouteMatch[],\n opts?: { replace?: boolean }\n ): Promise<HandleActionResult> {\n interruptActiveLoads();\n\n // Put us in a submitting state\n let navigation: NavigationStates[\"Submitting\"] = {\n state: \"submitting\",\n location,\n ...submission,\n };\n updateState({ navigation });\n\n // Call our action and get the result\n let result: DataResult;\n let actionMatch = getTargetMatch(matches, location);\n\n if (!actionMatch.route.action) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id,\n }),\n };\n } else {\n result = await callLoaderOrAction(\n \"action\",\n request,\n actionMatch,\n matches,\n router.basename\n );\n\n if (request.signal.aborted) {\n return { shortCircuited: true };\n }\n }\n\n if (isRedirectResult(result)) {\n let replace: boolean;\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n replace =\n result.location === state.location.pathname + state.location.search;\n }\n await startRedirectNavigation(state, result, { submission, replace });\n return { shortCircuited: true };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n\n // By default, all submissions are REPLACE navigations, but if the\n // action threw an error that'll be rendered in an errorElement, we fall\n // back to PUSH so that the user can use the back button to get back to\n // the pre-submission form location to try again\n if ((opts && opts.replace) !== true) {\n pendingAction = HistoryAction.Push;\n }\n\n return {\n // Send back an empty object we can use to clear out any prior actionData\n pendingActionData: {},\n pendingActionError: { [boundaryMatch.route.id]: result.error },\n };\n }\n\n if (isDeferredResult(result)) {\n throw getInternalRouterError(400, { type: \"defer-action\" });\n }\n\n return {\n pendingActionData: { [actionMatch.route.id]: result.data },\n };\n }\n\n // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n async function handleLoaders(\n request: Request,\n location: Location,\n matches: AgnosticDataRouteMatch[],\n overrideNavigation?: Navigation,\n submission?: Submission,\n replace?: boolean,\n pendingActionData?: RouteData,\n pendingError?: RouteData\n ): Promise<HandleLoadersResult> {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation;\n if (!loadingNavigation) {\n let navigation: NavigationStates[\"Loading\"] = {\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n ...submission,\n };\n loadingNavigation = navigation;\n }\n\n // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n let activeSubmission = submission\n ? submission\n : loadingNavigation.formMethod &&\n loadingNavigation.formAction &&\n loadingNavigation.formData &&\n loadingNavigation.formEncType\n ? {\n formMethod: loadingNavigation.formMethod,\n formAction: loadingNavigation.formAction,\n formData: loadingNavigation.formData,\n formEncType: loadingNavigation.formEncType,\n }\n : undefined;\n\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(\n init.history,\n state,\n matches,\n activeSubmission,\n location,\n isRevalidationRequired,\n cancelledDeferredRoutes,\n cancelledFetcherLoads,\n pendingActionData,\n pendingError,\n fetchLoadMatches\n );\n\n // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n cancelActiveDeferreds(\n (routeId) =>\n !(matches && matches.some((m) => m.route.id === routeId)) ||\n (matchesToLoad && matchesToLoad.some((m) => m.route.id === routeId))\n );\n\n // Short circuit if we have no loaders to run\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n completeNavigation(location, {\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingError || null,\n ...(pendingActionData ? { actionData: pendingActionData } : {}),\n });\n return { shortCircuited: true };\n }\n\n // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n if (!isUninterruptedRevalidation) {\n revalidatingFetchers.forEach((rf) => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher: FetcherStates[\"Loading\"] = {\n state: \"loading\",\n data: fetcher && fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n let actionData = pendingActionData || state.actionData;\n updateState({\n navigation: loadingNavigation,\n ...(actionData\n ? Object.keys(actionData).length === 0\n ? { actionData: null }\n : { actionData }\n : {}),\n ...(revalidatingFetchers.length > 0\n ? { fetchers: new Map(state.fetchers) }\n : {}),\n });\n }\n\n pendingNavigationLoadId = ++incrementingLoadId;\n revalidatingFetchers.forEach((rf) =>\n fetchControllers.set(rf.key, pendingNavigationController!)\n );\n\n let { results, loaderResults, fetcherResults } =\n await callLoadersAndMaybeResolveData(\n state.matches,\n matches,\n matchesToLoad,\n revalidatingFetchers,\n request\n );\n\n if (request.signal.aborted) {\n return { shortCircuited: true };\n }\n\n // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n revalidatingFetchers.forEach((rf) => fetchControllers.delete(rf.key));\n\n // If any loaders returned a redirect Response, start a new REPLACE navigation\n let redirect = findRedirect(results);\n if (redirect) {\n await startRedirectNavigation(state, redirect, { replace });\n return { shortCircuited: true };\n }\n\n // Process and commit output from loaders\n let { loaderData, errors } = processLoaderData(\n state,\n matches,\n matchesToLoad,\n loaderResults,\n pendingError,\n revalidatingFetchers,\n fetcherResults,\n activeDeferreds\n );\n\n // Wire up subscribers to update loaderData as promises settle\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe((aborted) => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n\n markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n\n return {\n loaderData,\n errors,\n ...(didAbortFetchLoads || revalidatingFetchers.length > 0\n ? { fetchers: new Map(state.fetchers) }\n : {}),\n };\n }\n\n function getFetcher<TData = any>(key: string): Fetcher<TData> {\n return state.fetchers.get(key) || IDLE_FETCHER;\n }\n\n // Trigger a fetcher load/submit for the given fetcher key\n function fetch(\n key: string,\n routeId: string,\n href: string,\n opts?: RouterFetchOptions\n ) {\n if (isServer) {\n throw new Error(\n \"router.fetch() was called during the server render, but it shouldn't be. \" +\n \"You are likely calling a useFetcher() method in the body of your component. \" +\n \"Try moving it to a useEffect or a callback.\"\n );\n }\n\n if (fetchControllers.has(key)) abortFetcher(key);\n\n let matches = matchRoutes(dataRoutes, href, init.basename);\n if (!matches) {\n setFetcherError(\n key,\n routeId,\n getInternalRouterError(404, { pathname: href })\n );\n return;\n }\n\n let { path, submission } = normalizeNavigateOptions(href, opts, true);\n let match = getTargetMatch(matches, path);\n\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, submission);\n return;\n }\n\n // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n fetchLoadMatches.set(key, { routeId, path, match, matches });\n handleFetcherLoader(key, routeId, path, match, matches, submission);\n }\n\n // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n async function handleFetcherAction(\n key: string,\n routeId: string,\n path: string,\n match: AgnosticDataRouteMatch,\n requestMatches: AgnosticDataRouteMatch[],\n submission: Submission\n ) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n\n if (!match.route.action) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId,\n });\n setFetcherError(key, routeId, error);\n return;\n }\n\n // Put this fetcher into it's submitting state\n let existingFetcher = state.fetchers.get(key);\n let fetcher: FetcherStates[\"Submitting\"] = {\n state: \"submitting\",\n ...submission,\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, fetcher);\n updateState({ fetchers: new Map(state.fetchers) });\n\n // Call the action for the fetcher\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(\n init.history,\n path,\n abortController.signal,\n submission\n );\n fetchControllers.set(key, abortController);\n\n let actionResult = await callLoaderOrAction(\n \"action\",\n fetchRequest,\n match,\n requestMatches,\n router.basename\n );\n\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n return;\n }\n\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n fetchRedirectIds.add(key);\n let loadingFetcher: FetcherStates[\"Loading\"] = {\n state: \"loading\",\n ...submission,\n data: undefined,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, loadingFetcher);\n updateState({ fetchers: new Map(state.fetchers) });\n\n return startRedirectNavigation(state, actionResult, {\n isFetchActionRedirect: true,\n });\n }\n\n // Process any non-redirect errors thrown\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n\n if (isDeferredResult(actionResult)) {\n throw getInternalRouterError(400, { type: \"defer-action\" });\n }\n\n // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(\n init.history,\n\n nextLocation,\n abortController.signal\n );\n let matches =\n state.navigation.state !== \"idle\"\n ? matchRoutes(dataRoutes, state.navigation.location, init.basename)\n : state.matches;\n\n invariant(matches, \"Didn't find any matches after fetcher action\");\n\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n\n let loadFetcher: FetcherStates[\"Loading\"] = {\n state: \"loading\",\n data: actionResult.data,\n ...submission,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, loadFetcher);\n\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(\n init.history,\n state,\n matches,\n submission,\n nextLocation,\n isRevalidationRequired,\n cancelledDeferredRoutes,\n cancelledFetcherLoads,\n { [match.route.id]: actionResult.data },\n undefined, // No need to send through errors since we short circuit above\n fetchLoadMatches\n );\n\n // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n revalidatingFetchers\n .filter((rf) => rf.key !== key)\n .forEach((rf) => {\n let staleKey = rf.key;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher: FetcherStates[\"Loading\"] = {\n state: \"loading\",\n data: existingFetcher && existingFetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(staleKey, revalidatingFetcher);\n fetchControllers.set(staleKey, abortController);\n });\n\n updateState({ fetchers: new Map(state.fetchers) });\n\n let { results, loaderResults, fetcherResults } =\n await callLoadersAndMaybeResolveData(\n state.matches,\n matches,\n matchesToLoad,\n revalidatingFetchers,\n revalidationRequest\n );\n\n if (abortController.signal.aborted) {\n return;\n }\n\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach((r) => fetchControllers.delete(r.key));\n\n let redirect = findRedirect(results);\n if (redirect) {\n return startRedirectNavigation(state, redirect);\n }\n\n // Process and commit output from loaders\n let { loaderData, errors } = processLoaderData(\n state,\n state.matches,\n matchesToLoad,\n loaderResults,\n undefined,\n revalidatingFetchers,\n fetcherResults,\n activeDeferreds\n );\n\n let doneFetcher: FetcherStates[\"Idle\"] = {\n state: \"idle\",\n data: actionResult.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, doneFetcher);\n\n let didAbortFetchLoads = abortStaleFetchLoads(loadId);\n\n // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n if (\n state.navigation.state === \"loading\" &&\n loadId > pendingNavigationLoadId\n ) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers),\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState({\n errors,\n loaderData: mergeLoaderData(\n state.loaderData,\n loaderData,\n matches,\n errors\n ),\n ...(didAbortFetchLoads ? { fetchers: new Map(state.fetchers) } : {}),\n });\n isRevalidationRequired = false;\n }\n }\n\n // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n async function handleFetcherLoader(\n key: string,\n routeId: string,\n path: string,\n match: AgnosticDataRouteMatch,\n matches: AgnosticDataRouteMatch[],\n submission?: Submission\n ) {\n let existingFetcher = state.fetchers.get(key);\n // Put this fetcher into it's loading state\n let loadingFetcher: FetcherStates[\"Loading\"] = {\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n ...submission,\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, loadingFetcher);\n updateState({ fetchers: new Map(state.fetchers) });\n\n // Call the loader for this fetcher route match\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(\n init.history,\n path,\n abortController.signal\n );\n fetchControllers.set(key, abortController);\n let result: DataResult = await callLoaderOrAction(\n \"loader\",\n fetchRequest,\n match,\n matches,\n router.basename\n );\n\n // Deferred isn't supported for fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n if (isDeferredResult(result)) {\n result =\n (await resolveDeferredData(result, fetchRequest.signal, true)) ||\n result;\n }\n\n // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n if (fetchRequest.signal.aborted) {\n return;\n }\n\n // If the loader threw a redirect Response, start a new REPLACE navigation\n if (isRedirectResult(result)) {\n await startRedirectNavigation(state, result);\n return;\n }\n\n // Process any non-redirect errors thrown\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n state.fetchers.delete(key);\n // TODO: In remix, this would reset to IDLE_NAVIGATION if it was a catch -\n // do we need to behave any differently with our non-redirect errors?\n // What if it was a non-redirect Response?\n updateState({\n fetchers: new Map(state.fetchers),\n errors: {\n [boundaryMatch.route.id]: result.error,\n },\n });\n return;\n }\n\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\");\n\n // Put the fetcher back into an idle state\n let doneFetcher: FetcherStates[\"Idle\"] = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, doneFetcher);\n updateState({ fetchers: new Map(state.fetchers) });\n }\n\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n async function startRedirectNavigation(\n state: RouterState,\n redirect: RedirectResult,\n {\n submission,\n replace,\n isFetchActionRedirect,\n }: {\n submission?: Submission;\n replace?: boolean;\n isFetchActionRedirect?: boolean;\n } = {}\n ) {\n if (redirect.revalidate) {\n isRevalidationRequired = true;\n }\n\n let redirectLocation = createLocation(\n state.location,\n redirect.location,\n // TODO: This can be removed once we get rid of useTransition in Remix v2\n {\n _isRedirect: true,\n ...(isFetchActionRedirect ? { _isFetchActionRedirect: true } : {}),\n }\n );\n invariant(\n redirectLocation,\n \"Expected a location on the redirect navigation\"\n );\n\n // Check if this an external redirect that goes to a new origin\n if (isBrowser && typeof window?.location !== \"undefined\") {\n let newOrigin = init.history.createURL(redirect.location).origin;\n if (window.location.origin !== newOrigin) {\n if (replace) {\n window.location.replace(redirect.location);\n } else {\n window.location.assign(redirect.location);\n }\n return;\n }\n }\n\n // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n pendingNavigationController = null;\n\n let redirectHistoryAction =\n replace === true ? HistoryAction.Replace : HistoryAction.Push;\n\n // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n let { formMethod, formAction, formEncType, formData } = state.navigation;\n if (!submission && formMethod && formAction && formData && formEncType) {\n submission = {\n formMethod,\n formAction,\n formEncType,\n formData,\n };\n }\n\n // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n if (\n redirectPreserveMethodStatusCodes.has(redirect.status) &&\n submission &&\n isMutationMethod(submission.formMethod)\n ) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: {\n ...submission,\n formAction: redirect.location,\n },\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset,\n });\n } else {\n // Otherwise, we kick off a new loading navigation, preserving the\n // submission info for the duration of this navigation\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation: {\n state: \"loading\",\n location: redirectLocation,\n formMethod: submission ? submission.formMethod : undefined,\n formAction: submission ? submission.formAction : undefined,\n formEncType: submission ? submission.formEncType : undefined,\n formData: submission ? submission.formData : undefined,\n },\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset,\n });\n }\n }\n\n async function callLoadersAndMaybeResolveData(\n currentMatches: AgnosticDataRouteMatch[],\n matches: AgnosticDataRouteMatch[],\n matchesToLoad: AgnosticDataRouteMatch[],\n fetchersToLoad: RevalidatingFetcher[],\n request: Request\n ) {\n // Call all navigation loaders and revalidating fetcher loaders in parallel,\n // then slice off the results into separate arrays so we can handle them\n // accordingly\n let results = await Promise.all([\n ...matchesToLoad.map((match) =>\n callLoaderOrAction(\"loader\", request, match, matches, router.basename)\n ),\n ...fetchersToLoad.map((f) =>\n callLoaderOrAction(\n \"loader\",\n createClientSideRequest(init.history, f.path, request.signal),\n f.match,\n f.matches,\n router.basename\n )\n ),\n ]);\n let loaderResults = results.slice(0, matchesToLoad.length);\n let fetcherResults = results.slice(matchesToLoad.length);\n\n await Promise.all([\n resolveDeferredResults(\n currentMatches,\n matchesToLoad,\n loaderResults,\n request.signal,\n false,\n state.loaderData\n ),\n resolveDeferredResults(\n currentMatches,\n fetchersToLoad.map((f) => f.match),\n fetcherResults,\n request.signal,\n true\n ),\n ]);\n\n return { results, loaderResults, fetcherResults };\n }\n\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true;\n\n // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n cancelledDeferredRoutes.push(...cancelActiveDeferreds());\n\n // Abort in-flight fetcher loads\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.push(key);\n abortFetcher(key);\n }\n });\n }\n\n function setFetcherError(key: string, routeId: string, error: any) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error,\n },\n fetchers: new Map(state.fetchers),\n });\n }\n\n function deleteFetcher(key: string): void {\n if (fetchControllers.has(key)) abortFetcher(key);\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n state.fetchers.delete(key);\n }\n\n function abortFetcher(key: string) {\n let controller = fetchControllers.get(key);\n invariant(controller, `Expected fetch controller: ${key}`);\n controller.abort();\n fetchControllers.delete(key);\n }\n\n function markFetchersDone(keys: string[]) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher: FetcherStates[\"Idle\"] = {\n state: \"idle\",\n data: fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n function markFetchRedirectsDone(): void {\n let doneKeys = [];\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, `Expected fetcher: ${key}`);\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n }\n }\n markFetchersDone(doneKeys);\n }\n\n function abortStaleFetchLoads(landedId: number): boolean {\n let yeetedKeys = [];\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, `Expected fetcher: ${key}`);\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n\n function getBlocker(key: string, fn: BlockerFunction) {\n let blocker: Blocker = state.blockers.get(key) || IDLE_BLOCKER;\n\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n if (activeBlocker == null) {\n // This is now the active blocker\n activeBlocker = key;\n } else if (key !== activeBlocker) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n }\n\n return blocker;\n }\n\n function deleteBlocker(key: string) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n if (activeBlocker === key) {\n activeBlocker = null;\n }\n }\n\n // Utility function to update blockers, ensuring valid state transitions\n function updateBlocker(key: string, newBlocker: Blocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n\n // Poor mans state machine :)\n // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n invariant(\n (blocker.state === \"unblocked\" && newBlocker.state === \"blocked\") ||\n (blocker.state === \"blocked\" && newBlocker.state === \"blocked\") ||\n (blocker.state === \"blocked\" && newBlocker.state === \"proceeding\") ||\n (blocker.state === \"blocked\" && newBlocker.state === \"unblocked\") ||\n (blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\"),\n `Invalid blocker state transition: ${blocker.state} -> ${newBlocker.state}`\n );\n\n state.blockers.set(key, newBlocker);\n updateState({ blockers: new Map(state.blockers) });\n }\n\n function shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction,\n }: {\n currentLocation: Location;\n nextLocation: Location;\n historyAction: HistoryAction;\n }): string | undefined {\n if (activeBlocker == null) {\n return;\n }\n\n // We only allow a single blocker at the moment. This will need to be\n // updated if we enhance to support multiple blockers in the future\n let blockerFunction = blockerFunctions.get(activeBlocker);\n invariant(\n blockerFunction,\n \"Could not find a function for the active blocker\"\n );\n let blocker = state.blockers.get(activeBlocker);\n\n if (blocker && blocker.state === \"proceeding\") {\n // If the blocker is currently proceeding, we don't need to re-check\n // it and can let this navigation continue\n return;\n }\n\n // At this point, we know we're unblocked/blocked so we need to check the\n // user-provided blocker function\n if (blockerFunction({ currentLocation, nextLocation, historyAction })) {\n return activeBlocker;\n }\n }\n\n function cancelActiveDeferreds(\n predicate?: (routeId: string) => boolean\n ): string[] {\n let cancelledRouteIds: string[] = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n }\n\n // Opt in to capturing and reporting scroll positions during navigations,\n // used by the <ScrollRestoration> component\n function enableScrollRestoration(\n positions: Record<string, number>,\n getPosition: GetScrollPositionFunction,\n getKey?: GetScrollRestorationKeyFunction\n ) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n getScrollRestorationKey = getKey || ((location) => location.key);\n\n // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered <ScrollRestoration/>\n // and therefore have no savedScrollPositions available\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n if (y != null) {\n updateState({ restoreScrollPosition: y });\n }\n }\n\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n\n function saveScrollPosition(\n location: Location,\n matches: AgnosticDataRouteMatch[]\n ): void {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map((m) =>\n createUseMatchesMatch(m, state.loaderData)\n );\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n\n function getSavedScrollPosition(\n location: Location,\n matches: AgnosticDataRouteMatch[]\n ): number | null {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map((m) =>\n createUseMatchesMatch(m, state.loaderData)\n );\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n let y = savedScrollPositions[key];\n if (typeof y === \"number\") {\n return y;\n }\n }\n return null;\n }\n\n router = {\n get basename() {\n return init.basename;\n },\n get state() {\n return state;\n },\n get routes() {\n return dataRoutes;\n },\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: (to: To) => init.history.createHref(to),\n encodeLocation: (to: To) => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher,\n dispose,\n getBlocker,\n deleteBlocker,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds,\n };\n\n return router;\n}\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\n\nexport const UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\n\nexport function createStaticHandler(\n routes: AgnosticRouteObject[],\n opts?: {\n basename?: string;\n }\n): StaticHandler {\n invariant(\n routes.length > 0,\n \"You must provide a non-empty routes array to createStaticHandler\"\n );\n\n let dataRoutes = convertRoutesToDataRoutes(routes);\n let basename = (opts ? opts.basename : null) || \"/\";\n\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n */\n async function query(\n request: Request,\n { requestContext }: { requestContext?: unknown } = {}\n ): Promise<StaticHandlerContext | Response> {\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"head\") {\n let error = getInternalRouterError(405, { method });\n let { matches: methodNotAllowedMatches, route } =\n getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error,\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null,\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, { pathname: location.pathname });\n let { matches: notFoundMatches, route } =\n getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error,\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null,\n };\n }\n\n let result = await queryImpl(request, location, matches, requestContext);\n if (isResponse(result)) {\n return result;\n }\n\n // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n return { location, basename, ...result };\n }\n\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n */\n async function queryRoute(\n request: Request,\n {\n routeId,\n requestContext,\n }: { requestContext?: unknown; routeId?: string } = {}\n ): Promise<any> {\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"head\" && method !== \"options\") {\n throw getInternalRouterError(405, { method });\n } else if (!matches) {\n throw getInternalRouterError(404, { pathname: location.pathname });\n }\n\n let match = routeId\n ? matches.find((m) => m.route.id === routeId)\n : getTargetMatch(matches, location);\n\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId,\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, { pathname: location.pathname });\n }\n\n let result = await queryImpl(\n request,\n location,\n matches,\n requestContext,\n match\n );\n if (isResponse(result)) {\n return result;\n }\n\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n }\n\n // Pick off the right state value to return\n if (result.actionData) {\n return Object.values(result.actionData)[0];\n }\n\n if (result.loaderData) {\n let data = Object.values(result.loaderData)[0];\n if (result.activeDeferreds?.[match.route.id]) {\n data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n }\n return data;\n }\n\n return undefined;\n }\n\n async function queryImpl(\n request: Request,\n location: Location,\n matches: AgnosticDataRouteMatch[],\n requestContext: unknown,\n routeMatch?: AgnosticDataRouteMatch\n ): Promise<Omit<StaticHandlerContext, \"location\" | \"basename\"> | Response> {\n invariant(\n request.signal,\n \"query()/queryRoute() requests must contain an AbortController signal\"\n );\n\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(\n request,\n matches,\n routeMatch || getTargetMatch(matches, location),\n requestContext,\n routeMatch != null\n );\n return result;\n }\n\n let result = await loadRouteData(\n request,\n matches,\n requestContext,\n routeMatch\n );\n return isResponse(result)\n ? result\n : {\n ...result,\n actionData: null,\n actionHeaders: {},\n };\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction, we throw\n // it to bail out and then return or throw here based on whether the user\n // returned or threw\n if (isQueryRouteResponse(e)) {\n if (e.type === ResultType.error && !isRedirectResponse(e.response)) {\n throw e.response;\n }\n return e.response;\n }\n // Redirects are always returned since they don't propagate to catch\n // boundaries\n if (isRedirectResponse(e)) {\n return e;\n }\n throw e;\n }\n }\n\n async function submit(\n request: Request,\n matches: AgnosticDataRouteMatch[],\n actionMatch: AgnosticDataRouteMatch,\n requestContext: unknown,\n isRouteRequest: boolean\n ): Promise<Omit<StaticHandlerContext, \"location\" | \"basename\"> | Response> {\n let result: DataResult;\n\n if (!actionMatch.route.action) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id,\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error,\n };\n } else {\n result = await callLoaderOrAction(\n \"action\",\n request,\n actionMatch,\n matches,\n basename,\n true,\n isRouteRequest,\n requestContext\n );\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(`${method}() call aborted`);\n }\n }\n\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.status,\n headers: {\n Location: result.location,\n },\n });\n }\n\n if (isDeferredResult(result)) {\n let error = getInternalRouterError(400, { type: \"defer-action\" });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error,\n };\n }\n\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: { [actionMatch.route.id]: result.data },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null,\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(\n request,\n matches,\n requestContext,\n undefined,\n {\n [boundaryMatch.route.id]: result.error,\n }\n );\n\n // action status codes take precedence over loader status codes\n return {\n ...context,\n statusCode: isRouteErrorResponse(result.error)\n ? result.error.status\n : 500,\n actionData: null,\n actionHeaders: {\n ...(result.headers ? { [actionMatch.route.id]: result.headers } : {}),\n },\n };\n }\n\n // Create a GET request for the loaders\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal,\n });\n let context = await loadRouteData(loaderRequest, matches, requestContext);\n\n return {\n ...context,\n // action status codes take precedence over loader status codes\n ...(result.statusCode ? { statusCode: result.statusCode } : {}),\n actionData: {\n [actionMatch.route.id]: result.data,\n },\n actionHeaders: {\n ...(result.headers ? { [actionMatch.route.id]: result.headers } : {}),\n },\n };\n }\n\n async function loadRouteData(\n request: Request,\n matches: AgnosticDataRouteMatch[],\n requestContext: unknown,\n routeMatch?: AgnosticDataRouteMatch,\n pendingActionError?: RouteData\n ): Promise<\n | Omit<\n StaticHandlerContext,\n \"location\" | \"basename\" | \"actionData\" | \"actionHeaders\"\n >\n | Response\n > {\n let isRouteRequest = routeMatch != null;\n\n // Short circuit if we have no loaders to run (queryRoute())\n if (isRouteRequest && !routeMatch?.route.loader) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch?.route.id,\n });\n }\n\n let requestMatches = routeMatch\n ? [routeMatch]\n : getLoaderMatchesUntilBoundary(\n matches,\n Object.keys(pendingActionError || {})[0]\n );\n let matchesToLoad = requestMatches.filter((m) => m.route.loader);\n\n // Short circuit if we have no loaders to run (query())\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce(\n (acc, m) => Object.assign(acc, { [m.route.id]: null }),\n {}\n ),\n errors: pendingActionError || null,\n statusCode: 200,\n loaderHeaders: {},\n activeDeferreds: null,\n };\n }\n\n let results = await Promise.all([\n ...matchesToLoad.map((match) =>\n callLoaderOrAction(\n \"loader\",\n request,\n match,\n matches,\n basename,\n true,\n isRouteRequest,\n requestContext\n )\n ),\n ]);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(`${method}() call aborted`);\n }\n\n // Process and commit output from loaders\n let activeDeferreds = new Map<string, DeferredData>();\n let context = processRouteLoaderData(\n matches,\n matchesToLoad,\n results,\n pendingActionError,\n activeDeferreds\n );\n\n // Add a null for any non-loader matches for proper revalidation on the client\n let executedLoaders = new Set<string>(\n matchesToLoad.map((match) => match.route.id)\n );\n matches.forEach((match) => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n\n return {\n ...context,\n matches,\n activeDeferreds:\n activeDeferreds.size > 0\n ? Object.fromEntries(activeDeferreds.entries())\n : null,\n };\n }\n\n return {\n dataRoutes,\n query,\n queryRoute,\n };\n}\n\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\nexport function getStaticContextFromError(\n routes: AgnosticDataRouteObject[],\n context: StaticHandlerContext,\n error: any\n) {\n let newContext: StaticHandlerContext = {\n ...context,\n statusCode: 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error,\n },\n };\n return newContext;\n}\n\nfunction isSubmissionNavigation(\n opts: RouterNavigateOptions\n): opts is SubmissionNavigateOptions {\n return opts != null && \"formData\" in opts;\n}\n\n// Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\nfunction normalizeNavigateOptions(\n to: To,\n opts?: RouterNavigateOptions,\n isFetcher = false\n): {\n path: string;\n submission?: Submission;\n error?: ErrorResponse;\n} {\n let path = typeof to === \"string\" ? to : createPath(to);\n\n // Return location verbatim on non-submission navigations\n if (!opts || !isSubmissionNavigation(opts)) {\n return { path };\n }\n\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, { method: opts.formMethod }),\n };\n }\n\n // Create a Submission on non-GET navigations\n let submission: Submission | undefined;\n if (opts.formData) {\n submission = {\n formMethod: opts.formMethod || \"get\",\n formAction: stripHashFromPath(path),\n formEncType:\n (opts && opts.formEncType) || \"application/x-www-form-urlencoded\",\n formData: opts.formData,\n };\n\n if (isMutationMethod(submission.formMethod)) {\n return { path, submission };\n }\n }\n\n // Flatten submission onto URLSearchParams for GET submissions\n let parsedPath = parsePath(path);\n let searchParams = convertFormDataToSearchParams(opts.formData);\n // Since fetcher GET submissions only run a single loader (as opposed to\n // navigation GET submissions which run all loaders), we need to preserve\n // any incoming ?index params\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n parsedPath.search = `?${searchParams}`;\n\n return { path: createPath(parsedPath), submission };\n}\n\n// Filter out all routes below any caught error as they aren't going to\n// render so we don't need to load them\nfunction getLoaderMatchesUntilBoundary(\n matches: AgnosticDataRouteMatch[],\n boundaryId?: string\n) {\n let boundaryMatches = matches;\n if (boundaryId) {\n let index = matches.findIndex((m) => m.route.id === boundaryId);\n if (index >= 0) {\n boundaryMatches = matches.slice(0, index);\n }\n }\n return boundaryMatches;\n}\n\nfunction getMatchesToLoad(\n history: History,\n state: RouterState,\n matches: AgnosticDataRouteMatch[],\n submission: Submission | undefined,\n location: Location,\n isRevalidationRequired: boolean,\n cancelledDeferredRoutes: string[],\n cancelledFetcherLoads: string[],\n pendingActionData?: RouteData,\n pendingError?: RouteData,\n fetchLoadMatches?: Map<string, FetchLoadMatch>\n): [AgnosticDataRouteMatch[], RevalidatingFetcher[]] {\n let actionResult = pendingError\n ? Object.values(pendingError)[0]\n : pendingActionData\n ? Object.values(pendingActionData)[0]\n : undefined;\n\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n\n let defaultShouldRevalidate =\n // Forced revalidation due to submission, useRevalidate, or X-Remix-Revalidate\n isRevalidationRequired ||\n // Clicked the same link, resubmitted a GET form\n currentUrl.toString() === nextUrl.toString() ||\n // Search params affect all loaders\n currentUrl.search !== nextUrl.search;\n\n // Pick navigation matches that are net-new or qualify for revalidation\n let boundaryId = pendingError ? Object.keys(pendingError)[0] : undefined;\n let boundaryMatches = getLoaderMatchesUntilBoundary(matches, boundaryId);\n\n let navigationMatches = boundaryMatches.filter((match, index) => {\n if (match.route.loader == null) {\n return false;\n }\n\n // Always call the loader on new route instances and pending defer cancellations\n if (\n isNewLoader(state.loaderData, state.matches[index], match) ||\n cancelledDeferredRoutes.some((id) => id === match.route.id)\n ) {\n return true;\n }\n\n // This is the default implementation for when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n let currentRouteMatch = state.matches[index];\n let nextRouteMatch = match;\n\n return shouldRevalidateLoader(match, {\n currentUrl,\n currentParams: currentRouteMatch.params,\n nextUrl,\n nextParams: nextRouteMatch.params,\n ...submission,\n actionResult,\n defaultShouldRevalidate:\n defaultShouldRevalidate ||\n isNewRouteInstance(currentRouteMatch, nextRouteMatch),\n });\n });\n\n // Pick fetcher.loads that need to be revalidated\n let revalidatingFetchers: RevalidatingFetcher[] = [];\n fetchLoadMatches &&\n fetchLoadMatches.forEach((f, key) => {\n if (!matches.some((m) => m.route.id === f.routeId)) {\n // This fetcher is not going to be present in the subsequent render so\n // there's no need to revalidate it\n return;\n } else if (cancelledFetcherLoads.includes(key)) {\n // This fetcher was cancelled from a prior action submission - force reload\n revalidatingFetchers.push({ key, ...f });\n } else {\n // Revalidating fetchers are decoupled from the route matches since they\n // hit a static href, so they _always_ check shouldRevalidate and the\n // default is strictly if a revalidation is explicitly required (action\n // submissions, useRevalidator, X-Remix-Revalidate).\n let shouldRevalidate = shouldRevalidateLoader(f.match, {\n currentUrl,\n currentParams: state.matches[state.matches.length - 1].params,\n nextUrl,\n nextParams: matches[matches.length - 1].params,\n ...submission,\n actionResult,\n defaultShouldRevalidate,\n });\n if (shouldRevalidate) {\n revalidatingFetchers.push({ key, ...f });\n }\n }\n });\n\n return [navigationMatches, revalidatingFetchers];\n}\n\nfunction isNewLoader(\n currentLoaderData: RouteData,\n currentMatch: AgnosticDataRouteMatch,\n match: AgnosticDataRouteMatch\n) {\n let isNew =\n // [a] -> [a, b]\n !currentMatch ||\n // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id;\n\n // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n let isMissingData = currentLoaderData[match.route.id] === undefined;\n\n // Always load if this is a net-new route or we don't yet have data\n return isNew || isMissingData;\n}\n\nfunction isNewRouteInstance(\n currentMatch: AgnosticDataRouteMatch,\n match: AgnosticDataRouteMatch\n) {\n let currentPath = currentMatch.route.path;\n return (\n // param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname ||\n // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n (currentPath != null &&\n currentPath.endsWith(\"*\") &&\n currentMatch.params[\"*\"] !== match.params[\"*\"])\n );\n}\n\nfunction shouldRevalidateLoader(\n loaderMatch: AgnosticDataRouteMatch,\n arg: Parameters<ShouldRevalidateFunction>[0]\n) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n\n return arg.defaultShouldRevalidate;\n}\n\nasync function callLoaderOrAction(\n type: \"loader\" | \"action\",\n request: Request,\n match: AgnosticDataRouteMatch,\n matches: AgnosticDataRouteMatch[],\n basename = \"/\",\n isStaticRequest: boolean = false,\n isRouteRequest: boolean = false,\n requestContext?: unknown\n): Promise<DataResult> {\n let resultType;\n let result;\n\n // Setup a promise we can race against so that abort signals short circuit\n let reject: () => void;\n let abortPromise = new Promise((_, r) => (reject = r));\n let onReject = () => reject();\n request.signal.addEventListener(\"abort\", onReject);\n\n try {\n let handler = match.route[type];\n invariant<Function>(\n handler,\n `Could not find the ${type} to run on the \"${match.route.id}\" route`\n );\n\n result = await Promise.race([\n handler({ request, params: match.params, context: requestContext }),\n abortPromise,\n ]);\n\n invariant(\n result !== undefined,\n `You defined ${type === \"action\" ? \"an action\" : \"a loader\"} for route ` +\n `\"${match.route.id}\" but didn't return anything from your \\`${type}\\` ` +\n `function. Please return a value or \\`null\\`.`\n );\n } catch (e) {\n resultType = ResultType.error;\n result = e;\n } finally {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n\n if (isResponse(result)) {\n let status = result.status;\n\n // Process redirects\n if (redirectStatusCodes.has(status)) {\n let location = result.headers.get(\"Location\");\n invariant(\n location,\n \"Redirects returned/thrown from loaders/actions must have a Location header\"\n );\n\n let isAbsolute = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i.test(location);\n\n // Support relative routing in internal redirects\n if (!isAbsolute) {\n let activeMatches = matches.slice(0, matches.indexOf(match) + 1);\n let routePathnames = getPathContributingMatches(activeMatches).map(\n (match) => match.pathnameBase\n );\n let resolvedLocation = resolveTo(\n location,\n routePathnames,\n new URL(request.url).pathname\n );\n invariant(\n createPath(resolvedLocation),\n `Unable to resolve redirect location: ${location}`\n );\n\n // Prepend the basename to the redirect location if we have one\n if (basename) {\n let path = resolvedLocation.pathname;\n resolvedLocation.pathname =\n path === \"/\" ? basename : joinPaths([basename, path]);\n }\n\n location = createPath(resolvedLocation);\n } else if (!isStaticRequest) {\n // Strip off the protocol+origin for same-origin absolute redirects.\n // If this is a static reques, we can let it go back to the browser\n // as-is\n let currentUrl = new URL(request.url);\n let url = location.startsWith(\"//\")\n ? new URL(currentUrl.protocol + location)\n : new URL(location);\n if (url.origin === currentUrl.origin) {\n location = url.pathname + url.search + url.hash;\n }\n }\n\n // Don't process redirects in the router during static requests requests.\n // Instead, throw the Response and let the server handle it with an HTTP\n // redirect. We also update the Location header in place in this flow so\n // basename and relative routing is taken into account\n if (isStaticRequest) {\n result.headers.set(\"Location\", location);\n throw result;\n }\n\n return {\n type: ResultType.redirect,\n status,\n location,\n revalidate: result.headers.get(\"X-Remix-Revalidate\") !== null,\n };\n }\n\n // For SSR single-route requests, we want to hand Responses back directly\n // without unwrapping. We do this with the QueryRouteResponse wrapper\n // interface so we can know whether it was returned or thrown\n if (isRouteRequest) {\n // eslint-disable-next-line no-throw-literal\n throw {\n type: resultType || ResultType.data,\n response: result,\n };\n }\n\n let data: any;\n let contentType = result.headers.get(\"Content-Type\");\n // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n data = await result.json();\n } else {\n data = await result.text();\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: new ErrorResponse(status, result.statusText, data),\n headers: result.headers,\n };\n }\n\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers,\n };\n }\n\n if (resultType === ResultType.error) {\n return { type: resultType, error: result };\n }\n\n if (result instanceof DeferredData) {\n return { type: ResultType.deferred, deferredData: result };\n }\n\n return { type: ResultType.data, data: result };\n}\n\n// Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\nfunction createClientSideRequest(\n history: History,\n location: string | Location,\n signal: AbortSignal,\n submission?: Submission\n): Request {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init: RequestInit = { signal };\n\n if (submission && isMutationMethod(submission.formMethod)) {\n let { formMethod, formEncType, formData } = submission;\n init.method = formMethod.toUpperCase();\n init.body =\n formEncType === \"application/x-www-form-urlencoded\"\n ? convertFormDataToSearchParams(formData)\n : formData;\n }\n\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n return new Request(url, init);\n}\n\nfunction convertFormDataToSearchParams(formData: FormData): URLSearchParams {\n let searchParams = new URLSearchParams();\n\n for (let [key, value] of formData.entries()) {\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n searchParams.append(key, value instanceof File ? value.name : value);\n }\n\n return searchParams;\n}\n\nfunction processRouteLoaderData(\n matches: AgnosticDataRouteMatch[],\n matchesToLoad: AgnosticDataRouteMatch[],\n results: DataResult[],\n pendingError: RouteData | undefined,\n activeDeferreds: Map<string, DeferredData>\n): {\n loaderData: RouterState[\"loaderData\"];\n errors: RouterState[\"errors\"] | null;\n statusCode: number;\n loaderHeaders: Record<string, Headers>;\n} {\n // Fill in loaderData/errors from our loaders\n let loaderData: RouterState[\"loaderData\"] = {};\n let errors: RouterState[\"errors\"] | null = null;\n let statusCode: number | undefined;\n let foundError = false;\n let loaderHeaders: Record<string, Headers> = {};\n\n // Process loader results into state.loaderData/state.errors\n results.forEach((result, index) => {\n let id = matchesToLoad[index].route.id;\n invariant(\n !isRedirectResult(result),\n \"Cannot handle redirect results in processLoaderData\"\n );\n if (isErrorResult(result)) {\n // Look upwards from the matched route for the closest ancestor\n // error boundary, defaulting to the root match\n let boundaryMatch = findNearestBoundary(matches, id);\n let error = result.error;\n // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n if (pendingError) {\n error = Object.values(pendingError)[0];\n pendingError = undefined;\n }\n\n errors = errors || {};\n\n // Prefer higher error values if lower errors bubble to the same boundary\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n }\n\n // Clear our any prior loaderData for the throwing route\n loaderData[id] = undefined;\n\n // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error)\n ? result.error.status\n : 500;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n if (isDeferredResult(result)) {\n activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data;\n } else {\n loaderData[id] = result.data;\n }\n\n // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n if (\n result.statusCode != null &&\n result.statusCode !== 200 &&\n !foundError\n ) {\n statusCode = result.statusCode;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n });\n\n // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n if (pendingError) {\n errors = pendingError;\n loaderData[Object.keys(pendingError)[0]] = undefined;\n }\n\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders,\n };\n}\n\nfunction processLoaderData(\n state: RouterState,\n matches: AgnosticDataRouteMatch[],\n matchesToLoad: AgnosticDataRouteMatch[],\n results: DataResult[],\n pendingError: RouteData | undefined,\n revalidatingFetchers: RevalidatingFetcher[],\n fetcherResults: DataResult[],\n activeDeferreds: Map<string, DeferredData>\n): {\n loaderData: RouterState[\"loaderData\"];\n errors?: RouterState[\"errors\"];\n} {\n let { loaderData, errors } = processRouteLoaderData(\n matches,\n matchesToLoad,\n results,\n pendingError,\n activeDeferreds\n );\n\n // Process results from our revalidating fetchers\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let { key, match } = revalidatingFetchers[index];\n invariant(\n fetcherResults !== undefined && fetcherResults[index] !== undefined,\n \"Did not find corresponding fetcher result\"\n );\n let result = fetcherResults[index];\n\n // Process fetcher non-redirect errors\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match.route.id);\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = {\n ...errors,\n [boundaryMatch.route.id]: result.error,\n };\n }\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n invariant(false, \"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher: FetcherStates[\"Idle\"] = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true,\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n return { loaderData, errors };\n}\n\nfunction mergeLoaderData(\n loaderData: RouteData,\n newLoaderData: RouteData,\n matches: AgnosticDataRouteMatch[],\n errors: RouteData | null | undefined\n): RouteData {\n let mergedLoaderData = { ...newLoaderData };\n for (let match of matches) {\n let id = match.route.id;\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n } else {\n // No-op - this is so we ignore existing data if we have a key in the\n // incoming object with an undefined value, which is how we unset a prior\n // loaderData if we encounter a loader error\n }\n } else if (loaderData[id] !== undefined) {\n mergedLoaderData[id] = loaderData[id];\n }\n\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n return mergedLoaderData;\n}\n\n// Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\nfunction findNearestBoundary(\n matches: AgnosticDataRouteMatch[],\n routeId?: string\n): AgnosticDataRouteMatch {\n let eligibleMatches = routeId\n ? matches.slice(0, matches.findIndex((m) => m.route.id === routeId) + 1)\n : [...matches];\n return (\n eligibleMatches.reverse().find((m) => m.route.hasErrorBoundary === true) ||\n matches[0]\n );\n}\n\nfunction getShortCircuitMatches(routes: AgnosticDataRouteObject[]): {\n matches: AgnosticDataRouteMatch[];\n route: AgnosticDataRouteObject;\n} {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.find((r) => r.index || !r.path || r.path === \"/\") || {\n id: `__shim-error-route__`,\n };\n\n return {\n matches: [\n {\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route,\n },\n ],\n route,\n };\n}\n\nfunction getInternalRouterError(\n status: number,\n {\n pathname,\n routeId,\n method,\n type,\n }: {\n pathname?: string;\n routeId?: string;\n method?: string;\n type?: \"defer-action\";\n } = {}\n) {\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n\n if (status === 400) {\n statusText = \"Bad Request\";\n if (method && pathname && routeId) {\n errorMessage =\n `You made a ${method} request to \"${pathname}\" but ` +\n `did not provide a \\`loader\\` for route \"${routeId}\", ` +\n `so there is no way to handle the request.`;\n } else if (type === \"defer-action\") {\n errorMessage = \"defer() is not supported in actions\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = `Route \"${routeId}\" does not match URL \"${pathname}\"`;\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = `No route matches URL \"${pathname}\"`;\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n if (method && pathname && routeId) {\n errorMessage =\n `You made a ${method.toUpperCase()} request to \"${pathname}\" but ` +\n `did not provide an \\`action\\` for route \"${routeId}\", ` +\n `so there is no way to handle the request.`;\n } else if (method) {\n errorMessage = `Invalid request method \"${method.toUpperCase()}\"`;\n }\n }\n\n return new ErrorResponse(\n status || 500,\n statusText,\n new Error(errorMessage),\n true\n );\n}\n\n// Find any returned redirect errors, starting from the lowest match\nfunction findRedirect(results: DataResult[]): RedirectResult | undefined {\n for (let i = results.length - 1; i >= 0; i--) {\n let result = results[i];\n if (isRedirectResult(result)) {\n return result;\n }\n }\n}\n\nfunction stripHashFromPath(path: To) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath({ ...parsedPath, hash: \"\" });\n}\n\nfunction isHashChangeOnly(a: Location, b: Location): boolean {\n return (\n a.pathname === b.pathname && a.search === b.search && a.hash !== b.hash\n );\n}\n\nfunction isDeferredResult(result: DataResult): result is DeferredResult {\n return result.type === ResultType.deferred;\n}\n\nfunction isErrorResult(result: DataResult): result is ErrorResult {\n return result.type === ResultType.error;\n}\n\nfunction isRedirectResult(result?: DataResult): result is RedirectResult {\n return (result && result.type) === ResultType.redirect;\n}\n\nfunction isResponse(value: any): value is Response {\n return (\n value != null &&\n typeof value.status === \"number\" &&\n typeof value.statusText === \"string\" &&\n typeof value.headers === \"object\" &&\n typeof value.body !== \"undefined\"\n );\n}\n\nfunction isRedirectResponse(result: any): result is Response {\n if (!isResponse(result)) {\n return false;\n }\n\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\n\nfunction isQueryRouteResponse(obj: any): obj is QueryRouteResponse {\n return (\n obj &&\n isResponse(obj.response) &&\n (obj.type === ResultType.data || ResultType.error)\n );\n}\n\nfunction isValidMethod(method: string): method is FormMethod {\n return validRequestMethods.has(method as FormMethod);\n}\n\nfunction isMutationMethod(method?: string): method is MutationFormMethod {\n return validMutationMethods.has(method as MutationFormMethod);\n}\n\nasync function resolveDeferredResults(\n currentMatches: AgnosticDataRouteMatch[],\n matchesToLoad: AgnosticDataRouteMatch[],\n results: DataResult[],\n signal: AbortSignal,\n isFetcher: boolean,\n currentLoaderData?: RouteData\n) {\n for (let index = 0; index < results.length; index++) {\n let result = results[index];\n let match = matchesToLoad[index];\n let currentMatch = currentMatches.find(\n (m) => m.route.id === match.route.id\n );\n let isRevalidatingLoader =\n currentMatch != null &&\n !isNewRouteInstance(currentMatch, match) &&\n (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n\n if (isDeferredResult(result) && (isFetcher || isRevalidatingLoader)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n await resolveDeferredData(result, signal, isFetcher).then((result) => {\n if (result) {\n results[index] = result || results[index];\n }\n });\n }\n }\n}\n\nasync function resolveDeferredData(\n result: DeferredResult,\n signal: AbortSignal,\n unwrap = false\n): Promise<SuccessResult | ErrorResult | undefined> {\n let aborted = await result.deferredData.resolveData(signal);\n if (aborted) {\n return;\n }\n\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData,\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e,\n };\n }\n }\n\n return {\n type: ResultType.data,\n data: result.deferredData.data,\n };\n}\n\nfunction hasNakedIndexQuery(search: string): boolean {\n return new URLSearchParams(search).getAll(\"index\").some((v) => v === \"\");\n}\n\n// Note: This should match the format exported by useMatches, so if you change\n// this please also change that :) Eventually we'll DRY this up\nfunction createUseMatchesMatch(\n match: AgnosticDataRouteMatch,\n loaderData: RouteData\n): UseMatchesMatch {\n let { route, pathname, params } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id] as unknown,\n handle: route.handle as unknown,\n };\n}\n\nfunction getTargetMatch(\n matches: AgnosticDataRouteMatch[],\n location: Location | string\n) {\n let search =\n typeof location === \"string\" ? parsePath(location).search : location.search;\n if (\n matches[matches.length - 1].route.index &&\n hasNakedIndexQuery(search || \"\")\n ) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n }\n // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n}\n//#endregion\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from \"react\";\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction isPolyfill(x: any, y: any) {\n return (\n (x === y && (x !== 0 || 1 / x === 1 / y)) || (x !== x && y !== y) // eslint-disable-line no-self-compare\n );\n}\n\nconst is: (x: any, y: any) => boolean =\n typeof Object.is === \"function\" ? Object.is : isPolyfill;\n\n// Intentionally not using named imports because Rollup uses dynamic\n// dispatch for CommonJS interop named imports.\nconst { useState, useEffect, useLayoutEffect, useDebugValue } = React;\n\nlet didWarnOld18Alpha = false;\nlet didWarnUncachedGetSnapshot = false;\n\n// Disclaimer: This shim breaks many of the rules of React, and only works\n// because of a very particular set of implementation details and assumptions\n// -- change any one of them and it will break. The most important assumption\n// is that updates are always synchronous, because concurrent rendering is\n// only available in versions of React that also have a built-in\n// useSyncExternalStore API. And we only use this shim when the built-in API\n// does not exist.\n//\n// Do not assume that the clever hacks used by this hook also work in general.\n// The point of this shim is to replace the need for hacks by other libraries.\nexport function useSyncExternalStore<T>(\n subscribe: (fn: () => void) => () => void,\n getSnapshot: () => T,\n // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n // React do not expose a way to check if we're hydrating. So users of the shim\n // will need to track that themselves and return the correct value\n // from `getSnapshot`.\n getServerSnapshot?: () => T\n): T {\n if (__DEV__) {\n if (!didWarnOld18Alpha) {\n if (\"startTransition\" in React) {\n didWarnOld18Alpha = true;\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that \" +\n \"does not support useSyncExternalStore. The \" +\n \"use-sync-external-store shim will not work correctly. Upgrade \" +\n \"to a newer pre-release.\"\n );\n }\n }\n }\n\n // Read the current snapshot from the store on every render. Again, this\n // breaks the rules of React, and only works here because of specific\n // implementation details, most importantly that updates are\n // always synchronous.\n const value = getSnapshot();\n if (__DEV__) {\n if (!didWarnUncachedGetSnapshot) {\n const cachedValue = getSnapshot();\n if (!is(value, cachedValue)) {\n console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n );\n didWarnUncachedGetSnapshot = true;\n }\n }\n }\n\n // Because updates are synchronous, we don't queue them. Instead we force a\n // re-render whenever the subscribed state changes by updating an some\n // arbitrary useState hook. Then, during render, we call getSnapshot to read\n // the current value.\n //\n // Because we don't actually use the state returned by the useState hook, we\n // can save a bit of memory by storing other stuff in that slot.\n //\n // To implement the early bailout, we need to track some things on a mutable\n // object. Usually, we would put that in a useRef hook, but we can stash it in\n // our useState hook instead.\n //\n // To force a re-render, we call forceUpdate({inst}). That works because the\n // new object always fails an equality check.\n const [{ inst }, forceUpdate] = useState({ inst: { value, getSnapshot } });\n\n // Track the latest getSnapshot function with a ref. This needs to be updated\n // in the layout phase so we can access it during the tearing check that\n // happens on subscribe.\n useLayoutEffect(() => {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n\n // Whenever getSnapshot or subscribe changes, we need to check in the\n // commit phase if there was an interleaved mutation. In concurrent mode\n // this can happen all the time, but even in synchronous mode, an earlier\n // effect may have mutated the store.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({ inst });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [subscribe, value, getSnapshot]);\n\n useEffect(() => {\n // Check for changes right before subscribing. Subsequent changes will be\n // detected in the subscription handler.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({ inst });\n }\n const handleStoreChange = () => {\n // TODO: Because there is no cross-renderer API for batching updates, it's\n // up to the consumer of this library to wrap their subscription event\n // with unstable_batchedUpdates. Should we try to detect when this isn't\n // the case and print a warning in development?\n\n // The store changed. Check if the snapshot changed since the last time we\n // read from the store.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({ inst });\n }\n };\n // Subscribe to the store and return a clean-up function.\n return subscribe(handleStoreChange);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [subscribe]);\n\n useDebugValue(value);\n return value;\n}\n\nfunction checkIfSnapshotChanged(inst: any) {\n const latestGetSnapshot = inst.getSnapshot;\n const prevValue = inst.value;\n try {\n const nextValue = latestGetSnapshot();\n return !is(prevValue, nextValue);\n } catch (error) {\n return true;\n }\n}\n","/**\n * Inlined into the react-router repo since use-sync-external-store does not\n * provide a UMD-compatible package, so we need this to be able to distribute\n * UMD react-router bundles\n */\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\n\nimport * as React from \"react\";\n\nimport { useSyncExternalStore as client } from \"./useSyncExternalStoreShimClient\";\nimport { useSyncExternalStore as server } from \"./useSyncExternalStoreShimServer\";\n\nconst canUseDOM: boolean = !!(\n typeof window !== \"undefined\" &&\n typeof window.document !== \"undefined\" &&\n typeof window.document.createElement !== \"undefined\"\n);\nconst isServerEnvironment = !canUseDOM;\nconst shim = isServerEnvironment ? server : client;\n\nexport const useSyncExternalStore =\n \"useSyncExternalStore\" in React\n ? ((module) => module.useSyncExternalStore)(React)\n : shim;\n","import * as React from \"react\";\nimport type {\n AgnosticRouteMatch,\n AgnosticIndexRouteObject,\n AgnosticNonIndexRouteObject,\n History,\n Location,\n Router,\n StaticHandlerContext,\n To,\n TrackedPromise,\n} from \"@remix-run/router\";\nimport type { Action as NavigationType } from \"@remix-run/router\";\n\n// Create react-specific types from the agnostic types in @remix-run/router to\n// export from react-router\nexport interface IndexRouteObject {\n caseSensitive?: AgnosticIndexRouteObject[\"caseSensitive\"];\n path?: AgnosticIndexRouteObject[\"path\"];\n id?: AgnosticIndexRouteObject[\"id\"];\n loader?: AgnosticIndexRouteObject[\"loader\"];\n action?: AgnosticIndexRouteObject[\"action\"];\n hasErrorBoundary?: AgnosticIndexRouteObject[\"hasErrorBoundary\"];\n shouldRevalidate?: AgnosticIndexRouteObject[\"shouldRevalidate\"];\n handle?: AgnosticIndexRouteObject[\"handle\"];\n index: true;\n children?: undefined;\n element?: React.ReactNode | null;\n errorElement?: React.ReactNode | null;\n}\n\nexport interface NonIndexRouteObject {\n caseSensitive?: AgnosticNonIndexRouteObject[\"caseSensitive\"];\n path?: AgnosticNonIndexRouteObject[\"path\"];\n id?: AgnosticNonIndexRouteObject[\"id\"];\n loader?: AgnosticNonIndexRouteObject[\"loader\"];\n action?: AgnosticNonIndexRouteObject[\"action\"];\n hasErrorBoundary?: AgnosticNonIndexRouteObject[\"hasErrorBoundary\"];\n shouldRevalidate?: AgnosticNonIndexRouteObject[\"shouldRevalidate\"];\n handle?: AgnosticNonIndexRouteObject[\"handle\"];\n index?: false;\n children?: RouteObject[];\n element?: React.ReactNode | null;\n errorElement?: React.ReactNode | null;\n}\n\nexport type RouteObject = IndexRouteObject | NonIndexRouteObject;\n\nexport type DataRouteObject = RouteObject & {\n children?: DataRouteObject[];\n id: string;\n};\n\nexport interface RouteMatch<\n ParamKey extends string = string,\n RouteObjectType extends RouteObject = RouteObject\n> extends AgnosticRouteMatch<ParamKey, RouteObjectType> {}\n\nexport interface DataRouteMatch extends RouteMatch<string, DataRouteObject> {}\n\nexport interface DataRouterContextObject extends NavigationContextObject {\n router: Router;\n staticContext?: StaticHandlerContext;\n}\n\nexport const DataRouterContext =\n React.createContext<DataRouterContextObject | null>(null);\nif (__DEV__) {\n DataRouterContext.displayName = \"DataRouter\";\n}\n\nexport const DataRouterStateContext = React.createContext<\n Router[\"state\"] | null\n>(null);\nif (__DEV__) {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\n\nexport const AwaitContext = React.createContext<TrackedPromise | null>(null);\nif (__DEV__) {\n AwaitContext.displayName = \"Await\";\n}\n\nexport type RelativeRoutingType = \"route\" | \"path\";\n\nexport interface NavigateOptions {\n replace?: boolean;\n state?: any;\n preventScrollReset?: boolean;\n relative?: RelativeRoutingType;\n}\n\n/**\n * A Navigator is a \"location changer\"; it's how you get to different locations.\n *\n * Every history instance conforms to the Navigator interface, but the\n * distinction is useful primarily when it comes to the low-level <Router> API\n * where both the location and a navigator must be provided separately in order\n * to avoid \"tearing\" that may occur in a suspense-enabled app if the action\n * and/or location were to be read directly from the history instance.\n */\nexport interface Navigator {\n createHref: History[\"createHref\"];\n // Optional for backwards-compat with Router/HistoryRouter usage (edge case)\n encodeLocation?: History[\"encodeLocation\"];\n go: History[\"go\"];\n push(to: To, state?: any, opts?: NavigateOptions): void;\n replace(to: To, state?: any, opts?: NavigateOptions): void;\n}\n\ninterface NavigationContextObject {\n basename: string;\n navigator: Navigator;\n static: boolean;\n}\n\nexport const NavigationContext = React.createContext<NavigationContextObject>(\n null!\n);\n\nif (__DEV__) {\n NavigationContext.displayName = \"Navigation\";\n}\n\ninterface LocationContextObject {\n location: Location;\n navigationType: NavigationType;\n}\n\nexport const LocationContext = React.createContext<LocationContextObject>(\n null!\n);\n\nif (__DEV__) {\n LocationContext.displayName = \"Location\";\n}\n\nexport interface RouteContextObject {\n outlet: React.ReactElement | null;\n matches: RouteMatch[];\n}\n\nexport const RouteContext = React.createContext<RouteContextObject>({\n outlet: null,\n matches: [],\n});\n\nif (__DEV__) {\n RouteContext.displayName = \"Route\";\n}\n\nexport const RouteErrorContext = React.createContext<any>(null);\n\nif (__DEV__) {\n RouteErrorContext.displayName = \"RouteError\";\n}\n","import * as React from \"react\";\nimport type {\n Blocker,\n BlockerFunction,\n Location,\n ParamParseKey,\n Params,\n Path,\n PathMatch,\n PathPattern,\n Router as RemixRouter,\n To,\n} from \"@remix-run/router\";\nimport {\n Action as NavigationType,\n invariant,\n isRouteErrorResponse,\n joinPaths,\n matchPath,\n matchRoutes,\n parsePath,\n resolveTo,\n warning,\n UNSAFE_getPathContributingMatches as getPathContributingMatches,\n} from \"@remix-run/router\";\n\nimport type {\n NavigateOptions,\n RouteContextObject,\n RouteMatch,\n RouteObject,\n DataRouteMatch,\n RelativeRoutingType,\n} from \"./context\";\nimport {\n DataRouterContext,\n DataRouterStateContext,\n LocationContext,\n NavigationContext,\n RouteContext,\n RouteErrorContext,\n AwaitContext,\n} from \"./context\";\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/hooks/use-href\n */\nexport function useHref(\n to: To,\n { relative }: { relative?: RelativeRoutingType } = {}\n): string {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useHref() may be used only in the context of a <Router> component.`\n );\n\n let { basename, navigator } = React.useContext(NavigationContext);\n let { hash, pathname, search } = useResolvedPath(to, { relative });\n\n let joinedPathname = pathname;\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n if (basename !== \"/\") {\n joinedPathname =\n pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n\n return navigator.createHref({ pathname: joinedPathname, search, hash });\n}\n\n/**\n * Returns true if this component is a descendant of a <Router>.\n *\n * @see https://reactrouter.com/hooks/use-in-router-context\n */\nexport function useInRouterContext(): boolean {\n return React.useContext(LocationContext) != null;\n}\n\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/hooks/use-location\n */\nexport function useLocation(): Location {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useLocation() may be used only in the context of a <Router> component.`\n );\n\n return React.useContext(LocationContext).location;\n}\n\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/hooks/use-navigation-type\n */\nexport function useNavigationType(): NavigationType {\n return React.useContext(LocationContext).navigationType;\n}\n\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * <NavLink>.\n *\n * @see https://reactrouter.com/hooks/use-match\n */\nexport function useMatch<\n ParamKey extends ParamParseKey<Path>,\n Path extends string\n>(pattern: PathPattern<Path> | Path): PathMatch<ParamKey> | null {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useMatch() may be used only in the context of a <Router> component.`\n );\n\n let { pathname } = useLocation();\n return React.useMemo(\n () => matchPath<ParamKey, Path>(pattern, pathname),\n [pathname, pattern]\n );\n}\n\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\nexport interface NavigateFunction {\n (to: To, options?: NavigateOptions): void;\n (delta: number): void;\n}\n\n/**\n * Returns an imperative method for changing the location. Used by <Link>s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/hooks/use-navigate\n */\nexport function useNavigate(): NavigateFunction {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useNavigate() may be used only in the context of a <Router> component.`\n );\n\n let { basename, navigator } = React.useContext(NavigationContext);\n let { matches } = React.useContext(RouteContext);\n let { pathname: locationPathname } = useLocation();\n\n let routePathnamesJson = JSON.stringify(\n getPathContributingMatches(matches).map((match) => match.pathnameBase)\n );\n\n let activeRef = React.useRef(false);\n React.useEffect(() => {\n activeRef.current = true;\n });\n\n let navigate: NavigateFunction = React.useCallback(\n (to: To | number, options: NavigateOptions = {}) => {\n warning(\n activeRef.current,\n `You should call navigate() in a React.useEffect(), not when ` +\n `your component is first rendered.`\n );\n\n if (!activeRef.current) return;\n\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n\n let path = resolveTo(\n to,\n JSON.parse(routePathnamesJson),\n locationPathname,\n options.relative === \"path\"\n );\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history. If this is a root navigation, then we\n // navigate to the raw basename which allows the basename to have full\n // control over the presence of a trailing slash on root links\n if (basename !== \"/\") {\n path.pathname =\n path.pathname === \"/\"\n ? basename\n : joinPaths([basename, path.pathname]);\n }\n\n (!!options.replace ? navigator.replace : navigator.push)(\n path,\n options.state,\n options\n );\n },\n [basename, navigator, routePathnamesJson, locationPathname]\n );\n\n return navigate;\n}\n\nconst OutletContext = React.createContext<unknown>(null);\n\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/hooks/use-outlet-context\n */\nexport function useOutletContext<Context = unknown>(): Context {\n return React.useContext(OutletContext) as Context;\n}\n\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by <Outlet> to render child routes.\n *\n * @see https://reactrouter.com/hooks/use-outlet\n */\nexport function useOutlet(context?: unknown): React.ReactElement | null {\n let outlet = React.useContext(RouteContext).outlet;\n if (outlet) {\n return (\n <OutletContext.Provider value={context}>{outlet}</OutletContext.Provider>\n );\n }\n return outlet;\n}\n\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/hooks/use-params\n */\nexport function useParams<\n ParamsOrKey extends string | Record<string, string | undefined> = string\n>(): Readonly<\n [ParamsOrKey] extends [string] ? Params<ParamsOrKey> : Partial<ParamsOrKey>\n> {\n let { matches } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? (routeMatch.params as any) : {};\n}\n\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/hooks/use-resolved-path\n */\nexport function useResolvedPath(\n to: To,\n { relative }: { relative?: RelativeRoutingType } = {}\n): Path {\n let { matches } = React.useContext(RouteContext);\n let { pathname: locationPathname } = useLocation();\n\n let routePathnamesJson = JSON.stringify(\n getPathContributingMatches(matches).map((match) => match.pathnameBase)\n );\n\n return React.useMemo(\n () =>\n resolveTo(\n to,\n JSON.parse(routePathnamesJson),\n locationPathname,\n relative === \"path\"\n ),\n [to, routePathnamesJson, locationPathname, relative]\n );\n}\n\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an <Outlet> to render their child route's\n * element.\n *\n * @see https://reactrouter.com/hooks/use-routes\n */\nexport function useRoutes(\n routes: RouteObject[],\n locationArg?: Partial<Location> | string\n): React.ReactElement | null {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useRoutes() may be used only in the context of a <Router> component.`\n );\n\n let { navigator } = React.useContext(NavigationContext);\n let dataRouterStateContext = React.useContext(DataRouterStateContext);\n let { matches: parentMatches } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n\n if (__DEV__) {\n // You won't get a warning about 2 different <Routes> under a <Route>\n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // <Routes>\n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // <Route path=\"blog\" element={<Blog />} />\n // <Route path=\"blog/feed\" element={<BlogFeed />} />\n // </Routes>\n //\n // function Blog() {\n // return (\n // <Routes>\n // <Route path=\"post/:id\" element={<Post />} />\n // </Routes>\n // );\n // }\n let parentPath = (parentRoute && parentRoute.path) || \"\";\n warningOnce(\n parentPathname,\n !parentRoute || parentPath.endsWith(\"*\"),\n `You rendered descendant <Routes> (or called \\`useRoutes()\\`) at ` +\n `\"${parentPathname}\" (under <Route path=\"${parentPath}\">) but the ` +\n `parent route path has no trailing \"*\". This means if you navigate ` +\n `deeper, the parent won't match anymore and therefore the child ` +\n `routes will never render.\\n\\n` +\n `Please change the parent <Route path=\"${parentPath}\"> to <Route ` +\n `path=\"${parentPath === \"/\" ? \"*\" : `${parentPath}/*`}\">.`\n );\n }\n\n let locationFromContext = useLocation();\n\n let location;\n if (locationArg) {\n let parsedLocationArg =\n typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n\n invariant(\n parentPathnameBase === \"/\" ||\n parsedLocationArg.pathname?.startsWith(parentPathnameBase),\n `When overriding the location using \\`<Routes location>\\` or \\`useRoutes(routes, location)\\`, ` +\n `the location pathname must begin with the portion of the URL pathname that was ` +\n `matched by all parent routes. The current pathname base is \"${parentPathnameBase}\" ` +\n `but pathname \"${parsedLocationArg.pathname}\" was given in the \\`location\\` prop.`\n );\n\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n\n let pathname = location.pathname || \"/\";\n let remainingPathname =\n parentPathnameBase === \"/\"\n ? pathname\n : pathname.slice(parentPathnameBase.length) || \"/\";\n\n let matches = matchRoutes(routes, { pathname: remainingPathname });\n\n if (__DEV__) {\n warning(\n parentRoute || matches != null,\n `No routes matched location \"${location.pathname}${location.search}${location.hash}\" `\n );\n\n warning(\n matches == null ||\n matches[matches.length - 1].route.element !== undefined,\n `Matched leaf route at location \"${location.pathname}${location.search}${location.hash}\" does not have an element. ` +\n `This means it will render an <Outlet /> with a null value by default resulting in an \"empty\" page.`\n );\n }\n\n let renderedMatches = _renderMatches(\n matches &&\n matches.map((match) =>\n Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([\n parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation\n ? navigator.encodeLocation(match.pathname).pathname\n : match.pathname,\n ]),\n pathnameBase:\n match.pathnameBase === \"/\"\n ? parentPathnameBase\n : joinPaths([\n parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation\n ? navigator.encodeLocation(match.pathnameBase).pathname\n : match.pathnameBase,\n ]),\n })\n ),\n parentMatches,\n dataRouterStateContext || undefined\n );\n\n // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n if (locationArg && renderedMatches) {\n return (\n <LocationContext.Provider\n value={{\n location: {\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\",\n ...location,\n },\n navigationType: NavigationType.Pop,\n }}\n >\n {renderedMatches}\n </LocationContext.Provider>\n );\n }\n\n return renderedMatches;\n}\n\nfunction DefaultErrorElement() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error)\n ? `${error.status} ${error.statusText}`\n : error instanceof Error\n ? error.message\n : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = { padding: \"0.5rem\", backgroundColor: lightgrey };\n let codeStyles = { padding: \"2px 4px\", backgroundColor: lightgrey };\n\n let devInfo = null;\n if (__DEV__) {\n devInfo = (\n <>\n <p>💿 Hey developer 👋</p>\n <p>\n You can provide a way better UX than this when your app throws errors\n by providing your own&nbsp;\n <code style={codeStyles}>errorElement</code> props on&nbsp;\n <code style={codeStyles}>&lt;Route&gt;</code>\n </p>\n </>\n );\n }\n\n return (\n <>\n <h2>Unexpected Application Error!</h2>\n <h3 style={{ fontStyle: \"italic\" }}>{message}</h3>\n {stack ? <pre style={preStyles}>{stack}</pre> : null}\n {devInfo}\n </>\n );\n}\n\ntype RenderErrorBoundaryProps = React.PropsWithChildren<{\n location: Location;\n error: any;\n component: React.ReactNode;\n routeContext: RouteContextObject;\n}>;\n\ntype RenderErrorBoundaryState = {\n location: Location;\n error: any;\n};\n\nexport class RenderErrorBoundary extends React.Component<\n RenderErrorBoundaryProps,\n RenderErrorBoundaryState\n> {\n constructor(props: RenderErrorBoundaryProps) {\n super(props);\n this.state = {\n location: props.location,\n error: props.error,\n };\n }\n\n static getDerivedStateFromError(error: any) {\n return { error: error };\n }\n\n static getDerivedStateFromProps(\n props: RenderErrorBoundaryProps,\n state: RenderErrorBoundaryState\n ) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location) {\n return {\n error: props.error,\n location: props.location,\n };\n }\n\n // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n return {\n error: props.error || state.error,\n location: state.location,\n };\n }\n\n componentDidCatch(error: any, errorInfo: any) {\n console.error(\n \"React Router caught the following error during render\",\n error,\n errorInfo\n );\n }\n\n render() {\n return this.state.error ? (\n <RouteContext.Provider value={this.props.routeContext}>\n <RouteErrorContext.Provider\n value={this.state.error}\n children={this.props.component}\n />\n </RouteContext.Provider>\n ) : (\n this.props.children\n );\n }\n}\n\ninterface RenderedRouteProps {\n routeContext: RouteContextObject;\n match: RouteMatch<string, RouteObject>;\n children: React.ReactNode | null;\n}\n\nfunction RenderedRoute({ routeContext, match, children }: RenderedRouteProps) {\n let dataRouterContext = React.useContext(DataRouterContext);\n\n // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n if (\n dataRouterContext &&\n dataRouterContext.static &&\n dataRouterContext.staticContext &&\n match.route.errorElement\n ) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n\n return (\n <RouteContext.Provider value={routeContext}>\n {children}\n </RouteContext.Provider>\n );\n}\n\nexport function _renderMatches(\n matches: RouteMatch[] | null,\n parentMatches: RouteMatch[] = [],\n dataRouterState?: RemixRouter[\"state\"]\n): React.ReactElement | null {\n if (matches == null) {\n if (dataRouterState?.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches as DataRouteMatch[];\n } else {\n return null;\n }\n }\n\n let renderedMatches = matches;\n\n // If we have data errors, trim matches to the highest error boundary\n let errors = dataRouterState?.errors;\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(\n (m) => m.route.id && errors?.[m.route.id]\n );\n invariant(\n errorIndex >= 0,\n `Could not find a matching route for the current errors: ${errors}`\n );\n renderedMatches = renderedMatches.slice(\n 0,\n Math.min(renderedMatches.length, errorIndex + 1)\n );\n }\n\n return renderedMatches.reduceRight((outlet, match, index) => {\n let error = match.route.id ? errors?.[match.route.id] : null;\n // Only data routers handle errors\n let errorElement = dataRouterState\n ? match.route.errorElement || <DefaultErrorElement />\n : null;\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n let getChildren = () => (\n <RenderedRoute match={match} routeContext={{ outlet, matches }}>\n {error\n ? errorElement\n : match.route.element !== undefined\n ? match.route.element\n : outlet}\n </RenderedRoute>\n );\n // Only wrap in an error boundary within data router usages when we have an\n // errorElement on this route. Otherwise let it bubble up to an ancestor\n // errorElement\n return dataRouterState && (match.route.errorElement || index === 0) ? (\n <RenderErrorBoundary\n location={dataRouterState.location}\n component={errorElement}\n error={error}\n children={getChildren()}\n routeContext={{ outlet: null, matches }}\n />\n ) : (\n getChildren()\n );\n }, null as React.ReactElement | null);\n}\n\nenum DataRouterHook {\n UseBlocker = \"useBlocker\",\n UseRevalidator = \"useRevalidator\",\n}\n\nenum DataRouterStateHook {\n UseLoaderData = \"useLoaderData\",\n UseActionData = \"useActionData\",\n UseRouteError = \"useRouteError\",\n UseNavigation = \"useNavigation\",\n UseRouteLoaderData = \"useRouteLoaderData\",\n UseMatches = \"useMatches\",\n UseRevalidator = \"useRevalidator\",\n}\n\nfunction getDataRouterConsoleError(\n hookName: DataRouterHook | DataRouterStateHook\n) {\n return `${hookName} must be used within a data router. See https://reactrouter.com/routers/picking-a-router.`;\n}\n\nfunction useDataRouterContext(hookName: DataRouterHook) {\n let ctx = React.useContext(DataRouterContext);\n invariant(ctx, getDataRouterConsoleError(hookName));\n return ctx;\n}\n\nfunction useDataRouterState(hookName: DataRouterStateHook) {\n let state = React.useContext(DataRouterStateContext);\n invariant(state, getDataRouterConsoleError(hookName));\n return state;\n}\n\nfunction useRouteContext(hookName: DataRouterStateHook) {\n let route = React.useContext(RouteContext);\n invariant(route, getDataRouterConsoleError(hookName));\n return route;\n}\n\nfunction useCurrentRouteId(hookName: DataRouterStateHook) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n invariant(\n thisRoute.route.id,\n `${hookName} can only be used on routes that contain a unique \"id\"`\n );\n return thisRoute.route.id;\n}\n\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\nexport function useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\nexport function useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return {\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation,\n };\n}\n\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\nexport function useMatches() {\n let { matches, loaderData } = useDataRouterState(\n DataRouterStateHook.UseMatches\n );\n return React.useMemo(\n () =>\n matches.map((match) => {\n let { pathname, params } = match;\n // Note: This structure matches that created by createUseMatchesMatch\n // in the @remix-run/router , so if you change this please also change\n // that :) Eventually we'll DRY this up\n return {\n id: match.route.id,\n pathname,\n params,\n data: loaderData[match.route.id] as unknown,\n handle: match.route.handle as unknown,\n };\n }),\n [matches, loaderData]\n );\n}\n\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\nexport function useLoaderData(): unknown {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n\n if (state.errors && state.errors[routeId] != null) {\n console.error(\n `You cannot \\`useLoaderData\\` in an errorElement (routeId: ${routeId})`\n );\n return undefined;\n }\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the loaderData for the given routeId\n */\nexport function useRouteLoaderData(routeId: string): unknown {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the action data for the nearest ancestor Route action\n */\nexport function useActionData(): unknown {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n\n let route = React.useContext(RouteContext);\n invariant(route, `useActionData must be used inside a RouteContext`);\n\n return Object.values(state?.actionData || {})[0];\n}\n\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * errorElement to display a proper error message.\n */\nexport function useRouteError(): unknown {\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);\n\n // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n if (error) {\n return error;\n }\n\n // Otherwise look for errors from our data router state\n return state.errors?.[routeId];\n}\n\n/**\n * Returns the happy-path data from the nearest ancestor <Await /> value\n */\nexport function useAsyncValue(): unknown {\n let value = React.useContext(AwaitContext);\n return value?._data;\n}\n\n/**\n * Returns the error from the nearest ancestor <Await /> value\n */\nexport function useAsyncError(): unknown {\n let value = React.useContext(AwaitContext);\n return value?._error;\n}\n\n// useBlocker() is a singleton for now since we don't have any compelling use\n// cases for multi-blocker yet\nlet blockerKey = \"blocker-singleton\";\n\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation. Mostly used to avoid\n * using half-filled form data. This does not handle hard-reloads or\n * cross-origin navigations.\n */\nexport function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker {\n let { router } = useDataRouterContext(DataRouterHook.UseBlocker);\n\n let blockerFunction = React.useCallback<BlockerFunction>(\n (args) => {\n return typeof shouldBlock === \"function\"\n ? !!shouldBlock(args)\n : !!shouldBlock;\n },\n [shouldBlock]\n );\n\n let blocker = router.getBlocker(blockerKey, blockerFunction);\n\n // Cleanup on unmount\n React.useEffect(() => () => router.deleteBlocker(blockerKey), [router]);\n\n return blocker;\n}\n\nconst alreadyWarned: Record<string, boolean> = {};\n\nfunction warningOnce(key: string, cond: boolean, message: string) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n warning(false, message);\n }\n}\n","import * as React from \"react\";\nimport type {\n TrackedPromise,\n InitialEntry,\n Location,\n MemoryHistory,\n Router as RemixRouter,\n RouterState,\n To,\n} from \"@remix-run/router\";\nimport {\n Action as NavigationType,\n AbortedDeferredError,\n createMemoryHistory,\n invariant,\n parsePath,\n stripBasename,\n warning,\n} from \"@remix-run/router\";\nimport { useSyncExternalStore as useSyncExternalStoreShim } from \"./use-sync-external-store-shim\";\n\nimport type {\n DataRouteObject,\n IndexRouteObject,\n RouteMatch,\n RouteObject,\n Navigator,\n NonIndexRouteObject,\n RelativeRoutingType,\n} from \"./context\";\nimport {\n LocationContext,\n NavigationContext,\n DataRouterContext,\n DataRouterStateContext,\n AwaitContext,\n} from \"./context\";\nimport {\n useAsyncValue,\n useInRouterContext,\n useNavigate,\n useOutlet,\n useRoutes,\n _renderMatches,\n} from \"./hooks\";\n\nexport interface RouterProviderProps {\n fallbackElement?: React.ReactNode;\n router: RemixRouter;\n}\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nexport function RouterProvider({\n fallbackElement,\n router,\n}: RouterProviderProps): React.ReactElement {\n // Sync router state to our component state to force re-renders\n let state: RouterState = useSyncExternalStoreShim(\n router.subscribe,\n () => router.state,\n // We have to provide this so React@18 doesn't complain during hydration,\n // but we pass our serialized hydration data into the router so state here\n // is already synced with what the server saw\n () => router.state\n );\n\n let navigator = React.useMemo((): Navigator => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: (n) => router.navigate(n),\n push: (to, state, opts) =>\n router.navigate(to, {\n state,\n preventScrollReset: opts?.preventScrollReset,\n }),\n replace: (to, state, opts) =>\n router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts?.preventScrollReset,\n }),\n };\n }, [router]);\n\n let basename = router.basename || \"/\";\n\n // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a <script> here\n // containing the hydrated server-side staticContext (from StaticRouterProvider).\n // useId relies on the component tree structure to generate deterministic id's\n // so we need to ensure it remains the same on the client even though\n // we don't need the <script> tag\n return (\n <>\n <DataRouterContext.Provider\n value={{\n router,\n navigator,\n static: false,\n // Do we need this?\n basename,\n }}\n >\n <DataRouterStateContext.Provider value={state}>\n <Router\n basename={router.basename}\n location={router.state.location}\n navigationType={router.state.historyAction}\n navigator={navigator}\n >\n {router.state.initialized ? <Routes /> : fallbackElement}\n </Router>\n </DataRouterStateContext.Provider>\n </DataRouterContext.Provider>\n {null}\n </>\n );\n}\n\nexport interface MemoryRouterProps {\n basename?: string;\n children?: React.ReactNode;\n initialEntries?: InitialEntry[];\n initialIndex?: number;\n}\n\n/**\n * A <Router> that stores all entries in memory.\n *\n * @see https://reactrouter.com/router-components/memory-router\n */\nexport function MemoryRouter({\n basename,\n children,\n initialEntries,\n initialIndex,\n}: MemoryRouterProps): React.ReactElement {\n let historyRef = React.useRef<MemoryHistory>();\n if (historyRef.current == null) {\n historyRef.current = createMemoryHistory({\n initialEntries,\n initialIndex,\n v5Compat: true,\n });\n }\n\n let history = historyRef.current;\n let [state, setState] = React.useState({\n action: history.action,\n location: history.location,\n });\n\n React.useLayoutEffect(() => history.listen(setState), [history]);\n\n return (\n <Router\n basename={basename}\n children={children}\n location={state.location}\n navigationType={state.action}\n navigator={history}\n />\n );\n}\n\nexport interface NavigateProps {\n to: To;\n replace?: boolean;\n state?: any;\n relative?: RelativeRoutingType;\n}\n\n/**\n * Changes the current location.\n *\n * Note: This API is mostly useful in React.Component subclasses that are not\n * able to use hooks. In functional components, we recommend you use the\n * `useNavigate` hook instead.\n *\n * @see https://reactrouter.com/components/navigate\n */\nexport function Navigate({\n to,\n replace,\n state,\n relative,\n}: NavigateProps): null {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of\n // the router loaded. We can help them understand how to avoid that.\n `<Navigate> may be used only in the context of a <Router> component.`\n );\n\n warning(\n !React.useContext(NavigationContext).static,\n `<Navigate> must not be used on the initial render in a <StaticRouter>. ` +\n `This is a no-op, but you should modify your code so the <Navigate> is ` +\n `only ever rendered in response to some user interaction or state change.`\n );\n\n let dataRouterState = React.useContext(DataRouterStateContext);\n let navigate = useNavigate();\n\n React.useEffect(() => {\n // Avoid kicking off multiple navigations if we're in the middle of a\n // data-router navigation, since components get re-rendered when we enter\n // a submitting/loading state\n if (dataRouterState && dataRouterState.navigation.state !== \"idle\") {\n return;\n }\n navigate(to, { replace, state, relative });\n });\n\n return null;\n}\n\nexport interface OutletProps {\n context?: unknown;\n}\n\n/**\n * Renders the child route's element, if there is one.\n *\n * @see https://reactrouter.com/components/outlet\n */\nexport function Outlet(props: OutletProps): React.ReactElement | null {\n return useOutlet(props.context);\n}\n\nexport interface PathRouteProps {\n caseSensitive?: NonIndexRouteObject[\"caseSensitive\"];\n path?: NonIndexRouteObject[\"path\"];\n id?: NonIndexRouteObject[\"id\"];\n loader?: NonIndexRouteObject[\"loader\"];\n action?: NonIndexRouteObject[\"action\"];\n hasErrorBoundary?: NonIndexRouteObject[\"hasErrorBoundary\"];\n shouldRevalidate?: NonIndexRouteObject[\"shouldRevalidate\"];\n handle?: NonIndexRouteObject[\"handle\"];\n index?: false;\n children?: React.ReactNode;\n element?: React.ReactNode | null;\n errorElement?: React.ReactNode | null;\n}\n\nexport interface LayoutRouteProps extends PathRouteProps {}\n\nexport interface IndexRouteProps {\n caseSensitive?: IndexRouteObject[\"caseSensitive\"];\n path?: IndexRouteObject[\"path\"];\n id?: IndexRouteObject[\"id\"];\n loader?: IndexRouteObject[\"loader\"];\n action?: IndexRouteObject[\"action\"];\n hasErrorBoundary?: IndexRouteObject[\"hasErrorBoundary\"];\n shouldRevalidate?: IndexRouteObject[\"shouldRevalidate\"];\n handle?: IndexRouteObject[\"handle\"];\n index: true;\n children?: undefined;\n element?: React.ReactNode | null;\n errorElement?: React.ReactNode | null;\n}\n\nexport type RouteProps = PathRouteProps | LayoutRouteProps | IndexRouteProps;\n\n/**\n * Declares an element that should be rendered at a certain URL path.\n *\n * @see https://reactrouter.com/components/route\n */\nexport function Route(_props: RouteProps): React.ReactElement | null {\n invariant(\n false,\n `A <Route> is only ever to be used as the child of <Routes> element, ` +\n `never rendered directly. Please wrap your <Route> in a <Routes>.`\n );\n}\n\nexport interface RouterProps {\n basename?: string;\n children?: React.ReactNode;\n location: Partial<Location> | string;\n navigationType?: NavigationType;\n navigator: Navigator;\n static?: boolean;\n}\n\n/**\n * Provides location context for the rest of the app.\n *\n * Note: You usually won't render a <Router> directly. Instead, you'll render a\n * router that is more specific to your environment such as a <BrowserRouter>\n * in web browsers or a <StaticRouter> for server rendering.\n *\n * @see https://reactrouter.com/router-components/router\n */\nexport function Router({\n basename: basenameProp = \"/\",\n children = null,\n location: locationProp,\n navigationType = NavigationType.Pop,\n navigator,\n static: staticProp = false,\n}: RouterProps): React.ReactElement | null {\n invariant(\n !useInRouterContext(),\n `You cannot render a <Router> inside another <Router>.` +\n ` You should never have more than one in your app.`\n );\n\n // Preserve trailing slashes on basename, so we can let the user control\n // the enforcement of trailing slashes throughout the app\n let basename = basenameProp.replace(/^\\/*/, \"/\");\n let navigationContext = React.useMemo(\n () => ({ basename, navigator, static: staticProp }),\n [basename, navigator, staticProp]\n );\n\n if (typeof locationProp === \"string\") {\n locationProp = parsePath(locationProp);\n }\n\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\",\n state = null,\n key = \"default\",\n } = locationProp;\n\n let location = React.useMemo(() => {\n let trailingPathname = stripBasename(pathname, basename);\n\n if (trailingPathname == null) {\n return null;\n }\n\n return {\n pathname: trailingPathname,\n search,\n hash,\n state,\n key,\n };\n }, [basename, pathname, search, hash, state, key]);\n\n warning(\n location != null,\n `<Router basename=\"${basename}\"> is not able to match the URL ` +\n `\"${pathname}${search}${hash}\" because it does not start with the ` +\n `basename, so the <Router> won't render anything.`\n );\n\n if (location == null) {\n return null;\n }\n\n return (\n <NavigationContext.Provider value={navigationContext}>\n <LocationContext.Provider\n children={children}\n value={{ location, navigationType }}\n />\n </NavigationContext.Provider>\n );\n}\n\nexport interface RoutesProps {\n children?: React.ReactNode;\n location?: Partial<Location> | string;\n}\n\n/**\n * A container for a nested tree of <Route> elements that renders the branch\n * that best matches the current location.\n *\n * @see https://reactrouter.com/components/routes\n */\nexport function Routes({\n children,\n location,\n}: RoutesProps): React.ReactElement | null {\n let dataRouterContext = React.useContext(DataRouterContext);\n // When in a DataRouterContext _without_ children, we use the router routes\n // directly. If we have children, then we're in a descendant tree and we\n // need to use child routes.\n let routes =\n dataRouterContext && !children\n ? (dataRouterContext.router.routes as DataRouteObject[])\n : createRoutesFromChildren(children);\n return useRoutes(routes, location);\n}\n\nexport interface AwaitResolveRenderFunction {\n (data: Awaited<any>): React.ReactNode;\n}\n\nexport interface AwaitProps {\n children: React.ReactNode | AwaitResolveRenderFunction;\n errorElement?: React.ReactNode;\n resolve: TrackedPromise | any;\n}\n\n/**\n * Component to use for rendering lazily loaded data from returning defer()\n * in a loader function\n */\nexport function Await({ children, errorElement, resolve }: AwaitProps) {\n return (\n <AwaitErrorBoundary resolve={resolve} errorElement={errorElement}>\n <ResolveAwait>{children}</ResolveAwait>\n </AwaitErrorBoundary>\n );\n}\n\ntype AwaitErrorBoundaryProps = React.PropsWithChildren<{\n errorElement?: React.ReactNode;\n resolve: TrackedPromise | any;\n}>;\n\ntype AwaitErrorBoundaryState = {\n error: any;\n};\n\nenum AwaitRenderStatus {\n pending,\n success,\n error,\n}\n\nconst neverSettledPromise = new Promise(() => {});\n\nclass AwaitErrorBoundary extends React.Component<\n AwaitErrorBoundaryProps,\n AwaitErrorBoundaryState\n> {\n constructor(props: AwaitErrorBoundaryProps) {\n super(props);\n this.state = { error: null };\n }\n\n static getDerivedStateFromError(error: any) {\n return { error };\n }\n\n componentDidCatch(error: any, errorInfo: any) {\n console.error(\n \"<Await> caught the following error during render\",\n error,\n errorInfo\n );\n }\n\n render() {\n let { children, errorElement, resolve } = this.props;\n\n let promise: TrackedPromise | null = null;\n let status: AwaitRenderStatus = AwaitRenderStatus.pending;\n\n if (!(resolve instanceof Promise)) {\n // Didn't get a promise - provide as a resolved promise\n status = AwaitRenderStatus.success;\n promise = Promise.resolve();\n Object.defineProperty(promise, \"_tracked\", { get: () => true });\n Object.defineProperty(promise, \"_data\", { get: () => resolve });\n } else if (this.state.error) {\n // Caught a render error, provide it as a rejected promise\n status = AwaitRenderStatus.error;\n let renderError = this.state.error;\n promise = Promise.reject().catch(() => {}); // Avoid unhandled rejection warnings\n Object.defineProperty(promise, \"_tracked\", { get: () => true });\n Object.defineProperty(promise, \"_error\", { get: () => renderError });\n } else if ((resolve as TrackedPromise)._tracked) {\n // Already tracked promise - check contents\n promise = resolve;\n status =\n promise._error !== undefined\n ? AwaitRenderStatus.error\n : promise._data !== undefined\n ? AwaitRenderStatus.success\n : AwaitRenderStatus.pending;\n } else {\n // Raw (untracked) promise - track it\n status = AwaitRenderStatus.pending;\n Object.defineProperty(resolve, \"_tracked\", { get: () => true });\n promise = resolve.then(\n (data: any) =>\n Object.defineProperty(resolve, \"_data\", { get: () => data }),\n (error: any) =>\n Object.defineProperty(resolve, \"_error\", { get: () => error })\n );\n }\n\n if (\n status === AwaitRenderStatus.error &&\n promise._error instanceof AbortedDeferredError\n ) {\n // Freeze the UI by throwing a never resolved promise\n throw neverSettledPromise;\n }\n\n if (status === AwaitRenderStatus.error && !errorElement) {\n // No errorElement, throw to the nearest route-level error boundary\n throw promise._error;\n }\n\n if (status === AwaitRenderStatus.error) {\n // Render via our errorElement\n return <AwaitContext.Provider value={promise} children={errorElement} />;\n }\n\n if (status === AwaitRenderStatus.success) {\n // Render children with resolved value\n return <AwaitContext.Provider value={promise} children={children} />;\n }\n\n // Throw to the suspense boundary\n throw promise;\n }\n}\n\n/**\n * @private\n * Indirection to leverage useAsyncValue for a render-prop API on <Await>\n */\nfunction ResolveAwait({\n children,\n}: {\n children: React.ReactNode | AwaitResolveRenderFunction;\n}) {\n let data = useAsyncValue();\n let toRender = typeof children === \"function\" ? children(data) : children;\n return <>{toRender}</>;\n}\n\n///////////////////////////////////////////////////////////////////////////////\n// UTILS\n///////////////////////////////////////////////////////////////////////////////\n\n/**\n * Creates a route config from a React \"children\" object, which is usually\n * either a `<Route>` element or an array of them. Used internally by\n * `<Routes>` to create a route config from its children.\n *\n * @see https://reactrouter.com/utils/create-routes-from-children\n */\nexport function createRoutesFromChildren(\n children: React.ReactNode,\n parentPath: number[] = []\n): RouteObject[] {\n let routes: RouteObject[] = [];\n\n React.Children.forEach(children, (element, index) => {\n if (!React.isValidElement(element)) {\n // Ignore non-elements. This allows people to more easily inline\n // conditionals in their route config.\n return;\n }\n\n if (element.type === React.Fragment) {\n // Transparently support React.Fragment and its children.\n routes.push.apply(\n routes,\n createRoutesFromChildren(element.props.children, parentPath)\n );\n return;\n }\n\n invariant(\n element.type === Route,\n `[${\n typeof element.type === \"string\" ? element.type : element.type.name\n }] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`\n );\n\n invariant(\n !element.props.index || !element.props.children,\n \"An index route cannot have child routes.\"\n );\n\n let treePath = [...parentPath, index];\n let route: RouteObject = {\n id: element.props.id || treePath.join(\"-\"),\n caseSensitive: element.props.caseSensitive,\n element: element.props.element,\n index: element.props.index,\n path: element.props.path,\n loader: element.props.loader,\n action: element.props.action,\n errorElement: element.props.errorElement,\n hasErrorBoundary: element.props.errorElement != null,\n shouldRevalidate: element.props.shouldRevalidate,\n handle: element.props.handle,\n };\n\n if (element.props.children) {\n route.children = createRoutesFromChildren(\n element.props.children,\n treePath\n );\n }\n\n routes.push(route);\n });\n\n return routes;\n}\n\n/**\n * Renders the result of `matchRoutes()` into a React element.\n */\nexport function renderMatches(\n matches: RouteMatch[] | null\n): React.ReactElement | null {\n return _renderMatches(matches);\n}\n\n/**\n * @private\n * Walk the route tree and add hasErrorBoundary if it's not provided, so that\n * users providing manual route arrays can just specify errorElement\n */\nexport function enhanceManualRouteObjects(\n routes: RouteObject[]\n): RouteObject[] {\n return routes.map((route) => {\n let routeClone = { ...route };\n if (routeClone.hasErrorBoundary == null) {\n routeClone.hasErrorBoundary = routeClone.errorElement != null;\n }\n if (routeClone.children) {\n routeClone.children = enhanceManualRouteObjects(routeClone.children);\n }\n return routeClone;\n });\n}\n","/**\n * NOTE: If you refactor this to split up the modules into separate files,\n * you'll need to update the rollup config for react-router-dom-v5-compat.\n */\nimport * as React from \"react\";\nimport type {\n NavigateOptions,\n RelativeRoutingType,\n RouteObject,\n To,\n} from \"react-router\";\nimport {\n Router,\n createPath,\n useHref,\n useLocation,\n useMatches,\n useNavigate,\n useNavigation,\n useResolvedPath,\n unstable_useBlocker as useBlocker,\n UNSAFE_DataRouterContext as DataRouterContext,\n UNSAFE_DataRouterStateContext as DataRouterStateContext,\n UNSAFE_NavigationContext as NavigationContext,\n UNSAFE_RouteContext as RouteContext,\n UNSAFE_enhanceManualRouteObjects as enhanceManualRouteObjects,\n} from \"react-router\";\nimport type {\n BrowserHistory,\n Fetcher,\n FormEncType,\n FormMethod,\n GetScrollRestorationKeyFunction,\n HashHistory,\n History,\n HydrationState,\n Router as RemixRouter,\n} from \"@remix-run/router\";\nimport {\n createRouter,\n createBrowserHistory,\n createHashHistory,\n invariant,\n joinPaths,\n ErrorResponse,\n} from \"@remix-run/router\";\n\nimport type {\n SubmitOptions,\n ParamKeyValuePair,\n URLSearchParamsInit,\n} from \"./dom\";\nimport {\n createSearchParams,\n defaultMethod,\n getFormSubmissionInfo,\n getSearchParamsForLocation,\n shouldProcessLinkClick,\n} from \"./dom\";\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Re-exports\n////////////////////////////////////////////////////////////////////////////////\n\nexport type {\n FormEncType,\n FormMethod,\n GetScrollRestorationKeyFunction,\n ParamKeyValuePair,\n SubmitOptions,\n URLSearchParamsInit,\n};\nexport { createSearchParams };\n\n// Note: Keep in sync with react-router exports!\nexport type {\n ActionFunction,\n ActionFunctionArgs,\n AwaitProps,\n unstable_Blocker,\n unstable_BlockerFunction,\n DataRouteMatch,\n DataRouteObject,\n Fetcher,\n Hash,\n IndexRouteObject,\n IndexRouteProps,\n JsonFunction,\n LayoutRouteProps,\n LoaderFunction,\n LoaderFunctionArgs,\n Location,\n MemoryRouterProps,\n NavigateFunction,\n NavigateOptions,\n NavigateProps,\n Navigation,\n Navigator,\n NonIndexRouteObject,\n OutletProps,\n Params,\n ParamParseKey,\n Path,\n PathMatch,\n Pathname,\n PathPattern,\n PathRouteProps,\n RedirectFunction,\n RelativeRoutingType,\n RouteMatch,\n RouteObject,\n RouteProps,\n RouterProps,\n RouterProviderProps,\n RoutesProps,\n Search,\n ShouldRevalidateFunction,\n To,\n} from \"react-router\";\nexport {\n AbortedDeferredError,\n Await,\n MemoryRouter,\n Navigate,\n NavigationType,\n Outlet,\n Route,\n Router,\n RouterProvider,\n Routes,\n createMemoryRouter,\n createPath,\n createRoutesFromChildren,\n createRoutesFromElements,\n defer,\n isRouteErrorResponse,\n generatePath,\n json,\n matchPath,\n matchRoutes,\n parsePath,\n redirect,\n renderMatches,\n resolvePath,\n useActionData,\n useAsyncError,\n useAsyncValue,\n unstable_useBlocker,\n useHref,\n useInRouterContext,\n useLoaderData,\n useLocation,\n useMatch,\n useMatches,\n useNavigate,\n useNavigation,\n useNavigationType,\n useOutlet,\n useOutletContext,\n useParams,\n useResolvedPath,\n useRevalidator,\n useRouteError,\n useRouteLoaderData,\n useRoutes,\n} from \"react-router\";\n\n///////////////////////////////////////////////////////////////////////////////\n// DANGER! PLEASE READ ME!\n// We provide these exports as an escape hatch in the event that you need any\n// routing data that we don't provide an explicit API for. With that said, we\n// want to cover your use case if we can, so if you feel the need to use these\n// we want to hear from you. Let us know what you're building and we'll do our\n// best to make sure we can support you!\n//\n// We consider these exports an implementation detail and do not guarantee\n// against any breaking changes, regardless of the semver release. Use with\n// extreme caution and only if you understand the consequences. Godspeed.\n///////////////////////////////////////////////////////////////////////////////\n\n/** @internal */\nexport {\n UNSAFE_DataRouterContext,\n UNSAFE_DataRouterStateContext,\n UNSAFE_NavigationContext,\n UNSAFE_LocationContext,\n UNSAFE_RouteContext,\n UNSAFE_enhanceManualRouteObjects,\n} from \"react-router\";\n//#endregion\n\ndeclare global {\n var __staticRouterHydrationData: HydrationState | undefined;\n}\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Routers\n////////////////////////////////////////////////////////////////////////////////\n\nexport function createBrowserRouter(\n routes: RouteObject[],\n opts?: {\n basename?: string;\n hydrationData?: HydrationState;\n window?: Window;\n }\n): RemixRouter {\n return createRouter({\n basename: opts?.basename,\n history: createBrowserHistory({ window: opts?.window }),\n hydrationData: opts?.hydrationData || parseHydrationData(),\n routes: enhanceManualRouteObjects(routes),\n }).initialize();\n}\n\nexport function createHashRouter(\n routes: RouteObject[],\n opts?: {\n basename?: string;\n hydrationData?: HydrationState;\n window?: Window;\n }\n): RemixRouter {\n return createRouter({\n basename: opts?.basename,\n history: createHashHistory({ window: opts?.window }),\n hydrationData: opts?.hydrationData || parseHydrationData(),\n routes: enhanceManualRouteObjects(routes),\n }).initialize();\n}\n\nfunction parseHydrationData(): HydrationState | undefined {\n let state = window?.__staticRouterHydrationData;\n if (state && state.errors) {\n state = {\n ...state,\n errors: deserializeErrors(state.errors),\n };\n }\n return state;\n}\n\nfunction deserializeErrors(\n errors: RemixRouter[\"state\"][\"errors\"]\n): RemixRouter[\"state\"][\"errors\"] {\n if (!errors) return null;\n let entries = Object.entries(errors);\n let serialized: RemixRouter[\"state\"][\"errors\"] = {};\n for (let [key, val] of entries) {\n // Hey you! If you change this, please change the corresponding logic in\n // serializeErrors in react-router-dom/server.tsx :)\n if (val && val.__type === \"RouteErrorResponse\") {\n serialized[key] = new ErrorResponse(\n val.status,\n val.statusText,\n val.data,\n val.internal === true\n );\n } else if (val && val.__type === \"Error\") {\n let error = new Error(val.message);\n // Wipe away the client-side stack trace. Nothing to fill it in with\n // because we don't serialize SSR stack traces for security reasons\n error.stack = \"\";\n serialized[key] = error;\n } else {\n serialized[key] = val;\n }\n }\n return serialized;\n}\n\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Components\n////////////////////////////////////////////////////////////////////////////////\n\nexport interface BrowserRouterProps {\n basename?: string;\n children?: React.ReactNode;\n window?: Window;\n}\n\n/**\n * A `<Router>` for use in web browsers. Provides the cleanest URLs.\n */\nexport function BrowserRouter({\n basename,\n children,\n window,\n}: BrowserRouterProps) {\n let historyRef = React.useRef<BrowserHistory>();\n if (historyRef.current == null) {\n historyRef.current = createBrowserHistory({ window, v5Compat: true });\n }\n\n let history = historyRef.current;\n let [state, setState] = React.useState({\n action: history.action,\n location: history.location,\n });\n\n React.useLayoutEffect(() => history.listen(setState), [history]);\n\n return (\n <Router\n basename={basename}\n children={children}\n location={state.location}\n navigationType={state.action}\n navigator={history}\n />\n );\n}\n\nexport interface HashRouterProps {\n basename?: string;\n children?: React.ReactNode;\n window?: Window;\n}\n\n/**\n * A `<Router>` for use in web browsers. Stores the location in the hash\n * portion of the URL so it is not sent to the server.\n */\nexport function HashRouter({ basename, children, window }: HashRouterProps) {\n let historyRef = React.useRef<HashHistory>();\n if (historyRef.current == null) {\n historyRef.current = createHashHistory({ window, v5Compat: true });\n }\n\n let history = historyRef.current;\n let [state, setState] = React.useState({\n action: history.action,\n location: history.location,\n });\n\n React.useLayoutEffect(() => history.listen(setState), [history]);\n\n return (\n <Router\n basename={basename}\n children={children}\n location={state.location}\n navigationType={state.action}\n navigator={history}\n />\n );\n}\n\nexport interface HistoryRouterProps {\n basename?: string;\n children?: React.ReactNode;\n history: History;\n}\n\n/**\n * A `<Router>` that accepts a pre-instantiated history object. It's important\n * to note that using your own history object is highly discouraged and may add\n * two versions of the history library to your bundles unless you use the same\n * version of the history library that React Router uses internally.\n */\nfunction HistoryRouter({ basename, children, history }: HistoryRouterProps) {\n const [state, setState] = React.useState({\n action: history.action,\n location: history.location,\n });\n\n React.useLayoutEffect(() => history.listen(setState), [history]);\n\n return (\n <Router\n basename={basename}\n children={children}\n location={state.location}\n navigationType={state.action}\n navigator={history}\n />\n );\n}\n\nif (__DEV__) {\n HistoryRouter.displayName = \"unstable_HistoryRouter\";\n}\n\nexport { HistoryRouter as unstable_HistoryRouter };\n\nexport interface LinkProps\n extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, \"href\"> {\n reloadDocument?: boolean;\n replace?: boolean;\n state?: any;\n preventScrollReset?: boolean;\n relative?: RelativeRoutingType;\n to: To;\n}\n\nconst isBrowser =\n typeof window !== \"undefined\" &&\n typeof window.document !== \"undefined\" &&\n typeof window.document.createElement !== \"undefined\";\n\n/**\n * The public API for rendering a history-aware <a>.\n */\nexport const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(\n function LinkWithRef(\n {\n onClick,\n relative,\n reloadDocument,\n replace,\n state,\n target,\n to,\n preventScrollReset,\n ...rest\n },\n ref\n ) {\n // `location` is the unaltered href we will render in the <a> tag for absolute URLs\n let location = typeof to === \"string\" ? to : createPath(to);\n let isAbsolute =\n /^[a-z+]+:\\/\\//i.test(location) || location.startsWith(\"//\");\n\n // Location to use in the click handler\n let navigationLocation = location;\n let isExternal = false;\n if (isBrowser && isAbsolute) {\n let currentUrl = new URL(window.location.href);\n let targetUrl = location.startsWith(\"//\")\n ? new URL(currentUrl.protocol + location)\n : new URL(location);\n if (targetUrl.origin === currentUrl.origin) {\n // Strip the protocol/origin for same-origin absolute URLs\n navigationLocation =\n targetUrl.pathname + targetUrl.search + targetUrl.hash;\n } else {\n isExternal = true;\n }\n }\n\n // `href` is what we render in the <a> tag for relative URLs\n let href = useHref(navigationLocation, { relative });\n\n let internalOnClick = useLinkClickHandler(navigationLocation, {\n replace,\n state,\n target,\n preventScrollReset,\n relative,\n });\n function handleClick(\n event: React.MouseEvent<HTMLAnchorElement, MouseEvent>\n ) {\n if (onClick) onClick(event);\n if (!event.defaultPrevented) {\n internalOnClick(event);\n }\n }\n\n return (\n // eslint-disable-next-line jsx-a11y/anchor-has-content\n <a\n {...rest}\n href={isAbsolute ? location : href}\n onClick={isExternal || reloadDocument ? onClick : handleClick}\n ref={ref}\n target={target}\n />\n );\n }\n);\n\nif (__DEV__) {\n Link.displayName = \"Link\";\n}\n\nexport interface NavLinkProps\n extends Omit<LinkProps, \"className\" | \"style\" | \"children\"> {\n children?:\n | React.ReactNode\n | ((props: { isActive: boolean; isPending: boolean }) => React.ReactNode);\n caseSensitive?: boolean;\n className?:\n | string\n | ((props: {\n isActive: boolean;\n isPending: boolean;\n }) => string | undefined);\n end?: boolean;\n style?:\n | React.CSSProperties\n | ((props: {\n isActive: boolean;\n isPending: boolean;\n }) => React.CSSProperties | undefined);\n}\n\n/**\n * A <Link> wrapper that knows if it's \"active\" or not.\n */\nexport const NavLink = React.forwardRef<HTMLAnchorElement, NavLinkProps>(\n function NavLinkWithRef(\n {\n \"aria-current\": ariaCurrentProp = \"page\",\n caseSensitive = false,\n className: classNameProp = \"\",\n end = false,\n style: styleProp,\n to,\n children,\n ...rest\n },\n ref\n ) {\n let path = useResolvedPath(to, { relative: rest.relative });\n let location = useLocation();\n let routerState = React.useContext(DataRouterStateContext);\n let { navigator } = React.useContext(NavigationContext);\n\n let toPathname = navigator.encodeLocation\n ? navigator.encodeLocation(path).pathname\n : path.pathname;\n let locationPathname = location.pathname;\n let nextLocationPathname =\n routerState && routerState.navigation && routerState.navigation.location\n ? routerState.navigation.location.pathname\n : null;\n\n if (!caseSensitive) {\n locationPathname = locationPathname.toLowerCase();\n nextLocationPathname = nextLocationPathname\n ? nextLocationPathname.toLowerCase()\n : null;\n toPathname = toPathname.toLowerCase();\n }\n\n let isActive =\n locationPathname === toPathname ||\n (!end &&\n locationPathname.startsWith(toPathname) &&\n locationPathname.charAt(toPathname.length) === \"/\");\n\n let isPending =\n nextLocationPathname != null &&\n (nextLocationPathname === toPathname ||\n (!end &&\n nextLocationPathname.startsWith(toPathname) &&\n nextLocationPathname.charAt(toPathname.length) === \"/\"));\n\n let ariaCurrent = isActive ? ariaCurrentProp : undefined;\n\n let className: string | undefined;\n if (typeof classNameProp === \"function\") {\n className = classNameProp({ isActive, isPending });\n } else {\n // If the className prop is not a function, we use a default `active`\n // class for <NavLink />s that are active. In v5 `active` was the default\n // value for `activeClassName`, but we are removing that API and can still\n // use the old default behavior for a cleaner upgrade path and keep the\n // simple styling rules working as they currently do.\n className = [\n classNameProp,\n isActive ? \"active\" : null,\n isPending ? \"pending\" : null,\n ]\n .filter(Boolean)\n .join(\" \");\n }\n\n let style =\n typeof styleProp === \"function\"\n ? styleProp({ isActive, isPending })\n : styleProp;\n\n return (\n <Link\n {...rest}\n aria-current={ariaCurrent}\n className={className}\n ref={ref}\n style={style}\n to={to}\n >\n {typeof children === \"function\"\n ? children({ isActive, isPending })\n : children}\n </Link>\n );\n }\n);\n\nif (__DEV__) {\n NavLink.displayName = \"NavLink\";\n}\n\nexport interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {\n /**\n * The HTTP verb to use when the form is submit. Supports \"get\", \"post\",\n * \"put\", \"delete\", \"patch\".\n */\n method?: FormMethod;\n\n /**\n * Normal `<form action>` but supports React Router's relative paths.\n */\n action?: string;\n\n /**\n * Forces a full document navigation instead of a fetch.\n */\n reloadDocument?: boolean;\n\n /**\n * Replaces the current entry in the browser history stack when the form\n * navigates. Use this if you don't want the user to be able to click \"back\"\n * to the page with the form on it.\n */\n replace?: boolean;\n\n /**\n * Determines whether the form action is relative to the route hierarchy or\n * the pathname. Use this if you want to opt out of navigating the route\n * hierarchy and want to instead route based on /-delimited URL segments\n */\n relative?: RelativeRoutingType;\n\n /**\n * Prevent the scroll position from resetting to the top of the viewport on\n * completion of the navigation when using the <ScrollRestoration> component\n */\n preventScrollReset?: boolean;\n\n /**\n * A function to call when the form is submitted. If you call\n * `event.preventDefault()` then this form will not do anything.\n */\n onSubmit?: React.FormEventHandler<HTMLFormElement>;\n}\n\n/**\n * A `@remix-run/router`-aware `<form>`. It behaves like a normal form except\n * that the interaction with the server is with `fetch` instead of new document\n * requests, allowing components to add nicer UX to the page as the form is\n * submitted and returns with data.\n */\nexport const Form = React.forwardRef<HTMLFormElement, FormProps>(\n (props, ref) => {\n return <FormImpl {...props} ref={ref} />;\n }\n);\n\nif (__DEV__) {\n Form.displayName = \"Form\";\n}\n\ntype HTMLSubmitEvent = React.BaseSyntheticEvent<\n SubmitEvent,\n Event,\n HTMLFormElement\n>;\n\ntype HTMLFormSubmitter = HTMLButtonElement | HTMLInputElement;\n\ninterface FormImplProps extends FormProps {\n fetcherKey?: string;\n routeId?: string;\n}\n\nconst FormImpl = React.forwardRef<HTMLFormElement, FormImplProps>(\n (\n {\n reloadDocument,\n replace,\n method = defaultMethod,\n action,\n onSubmit,\n fetcherKey,\n routeId,\n relative,\n preventScrollReset,\n ...props\n },\n forwardedRef\n ) => {\n let submit = useSubmitImpl(fetcherKey, routeId);\n let formMethod: FormMethod =\n method.toLowerCase() === \"get\" ? \"get\" : \"post\";\n let formAction = useFormAction(action, { relative });\n let submitHandler: React.FormEventHandler<HTMLFormElement> = (event) => {\n onSubmit && onSubmit(event);\n if (event.defaultPrevented) return;\n event.preventDefault();\n\n let submitter = (event as unknown as HTMLSubmitEvent).nativeEvent\n .submitter as HTMLFormSubmitter | null;\n\n let submitMethod =\n (submitter?.getAttribute(\"formmethod\") as FormMethod | undefined) ||\n method;\n\n submit(submitter || event.currentTarget, {\n method: submitMethod,\n replace,\n relative,\n preventScrollReset,\n });\n };\n\n return (\n <form\n ref={forwardedRef}\n method={formMethod}\n action={formAction}\n onSubmit={reloadDocument ? onSubmit : submitHandler}\n {...props}\n />\n );\n }\n);\n\nif (__DEV__) {\n FormImpl.displayName = \"FormImpl\";\n}\n\nexport interface ScrollRestorationProps {\n getKey?: GetScrollRestorationKeyFunction;\n storageKey?: string;\n}\n\n/**\n * This component will emulate the browser's scroll restoration on location\n * changes.\n */\nexport function ScrollRestoration({\n getKey,\n storageKey,\n}: ScrollRestorationProps) {\n useScrollRestoration({ getKey, storageKey });\n return null;\n}\n\nif (__DEV__) {\n ScrollRestoration.displayName = \"ScrollRestoration\";\n}\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Hooks\n////////////////////////////////////////////////////////////////////////////////\n\nenum DataRouterHook {\n UseScrollRestoration = \"useScrollRestoration\",\n UseSubmitImpl = \"useSubmitImpl\",\n UseFetcher = \"useFetcher\",\n}\n\nenum DataRouterStateHook {\n UseFetchers = \"useFetchers\",\n UseScrollRestoration = \"useScrollRestoration\",\n}\n\nfunction getDataRouterConsoleError(\n hookName: DataRouterHook | DataRouterStateHook\n) {\n return `${hookName} must be used within a data router. See https://reactrouter.com/routers/picking-a-router.`;\n}\n\nfunction useDataRouterContext(hookName: DataRouterHook) {\n let ctx = React.useContext(DataRouterContext);\n invariant(ctx, getDataRouterConsoleError(hookName));\n return ctx;\n}\n\nfunction useDataRouterState(hookName: DataRouterStateHook) {\n let state = React.useContext(DataRouterStateContext);\n invariant(state, getDataRouterConsoleError(hookName));\n return state;\n}\n\n/**\n * Handles the click behavior for router `<Link>` components. This is useful if\n * you need to create custom `<Link>` components with the same click behavior we\n * use in our exported `<Link>`.\n */\nexport function useLinkClickHandler<E extends Element = HTMLAnchorElement>(\n to: To,\n {\n target,\n replace: replaceProp,\n state,\n preventScrollReset,\n relative,\n }: {\n target?: React.HTMLAttributeAnchorTarget;\n replace?: boolean;\n state?: any;\n preventScrollReset?: boolean;\n relative?: RelativeRoutingType;\n } = {}\n): (event: React.MouseEvent<E, MouseEvent>) => void {\n let navigate = useNavigate();\n let location = useLocation();\n let path = useResolvedPath(to, { relative });\n\n return React.useCallback(\n (event: React.MouseEvent<E, MouseEvent>) => {\n if (shouldProcessLinkClick(event, target)) {\n event.preventDefault();\n\n // If the URL hasn't changed, a regular <a> will do a replace instead of\n // a push, so do the same here unless the replace prop is explicitly set\n let replace =\n replaceProp !== undefined\n ? replaceProp\n : createPath(location) === createPath(path);\n\n navigate(to, { replace, state, preventScrollReset, relative });\n }\n },\n [\n location,\n navigate,\n path,\n replaceProp,\n state,\n target,\n to,\n preventScrollReset,\n relative,\n ]\n );\n}\n\n/**\n * A convenient wrapper for reading and writing search parameters via the\n * URLSearchParams interface.\n */\nexport function useSearchParams(\n defaultInit?: URLSearchParamsInit\n): [URLSearchParams, SetURLSearchParams] {\n warning(\n typeof URLSearchParams !== \"undefined\",\n `You cannot use the \\`useSearchParams\\` hook in a browser that does not ` +\n `support the URLSearchParams API. If you need to support Internet ` +\n `Explorer 11, we recommend you load a polyfill such as ` +\n `https://github.com/ungap/url-search-params\\n\\n` +\n `If you're unsure how to load polyfills, we recommend you check out ` +\n `https://polyfill.io/v3/ which provides some recommendations about how ` +\n `to load polyfills only for users that need them, instead of for every ` +\n `user.`\n );\n\n let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));\n let hasSetSearchParamsRef = React.useRef(false);\n\n let location = useLocation();\n let searchParams = React.useMemo(\n () =>\n // Only merge in the defaults if we haven't yet called setSearchParams.\n // Once we call that we want those to take precedence, otherwise you can't\n // remove a param with setSearchParams({}) if it has an initial value\n getSearchParamsForLocation(\n location.search,\n hasSetSearchParamsRef.current ? null : defaultSearchParamsRef.current\n ),\n [location.search]\n );\n\n let navigate = useNavigate();\n let setSearchParams = React.useCallback<SetURLSearchParams>(\n (nextInit, navigateOptions) => {\n const newSearchParams = createSearchParams(\n typeof nextInit === \"function\" ? nextInit(searchParams) : nextInit\n );\n hasSetSearchParamsRef.current = true;\n navigate(\"?\" + newSearchParams, navigateOptions);\n },\n [navigate, searchParams]\n );\n\n return [searchParams, setSearchParams];\n}\n\ntype SetURLSearchParams = (\n nextInit?:\n | URLSearchParamsInit\n | ((prev: URLSearchParams) => URLSearchParamsInit),\n navigateOpts?: NavigateOptions\n) => void;\n\ntype SubmitTarget =\n | HTMLFormElement\n | HTMLButtonElement\n | HTMLInputElement\n | FormData\n | URLSearchParams\n | { [name: string]: string }\n | null;\n\n/**\n * Submits a HTML `<form>` to the server without reloading the page.\n */\nexport interface SubmitFunction {\n (\n /**\n * Specifies the `<form>` to be submitted to the server, a specific\n * `<button>` or `<input type=\"submit\">` to use to submit the form, or some\n * arbitrary data to submit.\n *\n * Note: When using a `<button>` its `name` and `value` will also be\n * included in the form data that is submitted.\n */\n target: SubmitTarget,\n\n /**\n * Options that override the `<form>`'s own attributes. Required when\n * submitting arbitrary data without a backing `<form>`.\n */\n options?: SubmitOptions\n ): void;\n}\n\n/**\n * Returns a function that may be used to programmatically submit a form (or\n * some arbitrary data) to the server.\n */\nexport function useSubmit(): SubmitFunction {\n return useSubmitImpl();\n}\n\nfunction useSubmitImpl(fetcherKey?: string, routeId?: string): SubmitFunction {\n let { router } = useDataRouterContext(DataRouterHook.UseSubmitImpl);\n let defaultAction = useFormAction();\n\n return React.useCallback(\n (target, options = {}) => {\n if (typeof document === \"undefined\") {\n throw new Error(\n \"You are calling submit during the server render. \" +\n \"Try calling submit within a `useEffect` or callback instead.\"\n );\n }\n\n let { method, encType, formData, url } = getFormSubmissionInfo(\n target,\n defaultAction,\n options\n );\n\n let href = url.pathname + url.search;\n let opts = {\n replace: options.replace,\n preventScrollReset: options.preventScrollReset,\n formData,\n formMethod: method as FormMethod,\n formEncType: encType as FormEncType,\n };\n if (fetcherKey) {\n invariant(routeId != null, \"No routeId available for useFetcher()\");\n router.fetch(fetcherKey, routeId, href, opts);\n } else {\n router.navigate(href, opts);\n }\n },\n [defaultAction, router, fetcherKey, routeId]\n );\n}\n\nexport function useFormAction(\n action?: string,\n { relative }: { relative?: RelativeRoutingType } = {}\n): string {\n let { basename } = React.useContext(NavigationContext);\n let routeContext = React.useContext(RouteContext);\n invariant(routeContext, \"useFormAction must be used inside a RouteContext\");\n\n let [match] = routeContext.matches.slice(-1);\n // Shallow clone path so we can modify it below, otherwise we modify the\n // object referenced by useMemo inside useResolvedPath\n let path = { ...useResolvedPath(action ? action : \".\", { relative }) };\n\n // Previously we set the default action to \".\". The problem with this is that\n // `useResolvedPath(\".\")` excludes search params and the hash of the resolved\n // URL. This is the intended behavior of when \".\" is specifically provided as\n // the form action, but inconsistent w/ browsers when the action is omitted.\n // https://github.com/remix-run/remix/issues/927\n let location = useLocation();\n if (action == null) {\n // Safe to write to these directly here since if action was undefined, we\n // would have called useResolvedPath(\".\") which will never include a search\n // or hash\n path.search = location.search;\n path.hash = location.hash;\n\n // When grabbing search params from the URL, remove the automatically\n // inserted ?index param so we match the useResolvedPath search behavior\n // which would not include ?index\n if (match.route.index) {\n let params = new URLSearchParams(path.search);\n params.delete(\"index\");\n path.search = params.toString() ? `?${params.toString()}` : \"\";\n }\n }\n\n if ((!action || action === \".\") && match.route.index) {\n path.search = path.search\n ? path.search.replace(/^\\?/, \"?index&\")\n : \"?index\";\n }\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to creating the form action. If this is a root navigation, then just use\n // the raw basename which allows the basename to have full control over the\n // presence of a trailing slash on root actions\n if (basename !== \"/\") {\n path.pathname =\n path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n\n return createPath(path);\n}\n\nfunction createFetcherForm(fetcherKey: string, routeId: string) {\n let FetcherForm = React.forwardRef<HTMLFormElement, FormProps>(\n (props, ref) => {\n return (\n <FormImpl\n {...props}\n ref={ref}\n fetcherKey={fetcherKey}\n routeId={routeId}\n />\n );\n }\n );\n if (__DEV__) {\n FetcherForm.displayName = \"fetcher.Form\";\n }\n return FetcherForm;\n}\n\nlet fetcherId = 0;\n\nexport type FetcherWithComponents<TData> = Fetcher<TData> & {\n Form: ReturnType<typeof createFetcherForm>;\n submit: (\n target: SubmitTarget,\n // Fetchers cannot replace/preventScrollReset because they are not\n // navigation events\n options?: Omit<SubmitOptions, \"replace\" | \"preventScrollReset\">\n ) => void;\n load: (href: string) => void;\n};\n\n/**\n * Interacts with route loaders and actions without causing a navigation. Great\n * for any interaction that stays on the same page.\n */\nexport function useFetcher<TData = any>(): FetcherWithComponents<TData> {\n let { router } = useDataRouterContext(DataRouterHook.UseFetcher);\n\n let route = React.useContext(RouteContext);\n invariant(route, `useFetcher must be used inside a RouteContext`);\n\n let routeId = route.matches[route.matches.length - 1]?.route.id;\n invariant(\n routeId != null,\n `useFetcher can only be used on routes that contain a unique \"id\"`\n );\n\n let [fetcherKey] = React.useState(() => String(++fetcherId));\n let [Form] = React.useState(() => {\n invariant(routeId, `No routeId available for fetcher.Form()`);\n return createFetcherForm(fetcherKey, routeId);\n });\n let [load] = React.useState(() => (href: string) => {\n invariant(router, \"No router available for fetcher.load()\");\n invariant(routeId, \"No routeId available for fetcher.load()\");\n router.fetch(fetcherKey, routeId, href);\n });\n let submit = useSubmitImpl(fetcherKey, routeId);\n\n let fetcher = router.getFetcher<TData>(fetcherKey);\n\n let fetcherWithComponents = React.useMemo(\n () => ({\n Form,\n submit,\n load,\n ...fetcher,\n }),\n [fetcher, Form, submit, load]\n );\n\n React.useEffect(() => {\n // Is this busted when the React team gets real weird and calls effects\n // twice on mount? We really just need to garbage collect here when this\n // fetcher is no longer around.\n return () => {\n if (!router) {\n console.warn(`No fetcher available to clean up from useFetcher()`);\n return;\n }\n router.deleteFetcher(fetcherKey);\n };\n }, [router, fetcherKey]);\n\n return fetcherWithComponents;\n}\n\n/**\n * Provides all fetchers currently on the page. Useful for layouts and parent\n * routes that need to provide pending/optimistic UI regarding the fetch.\n */\nexport function useFetchers(): Fetcher[] {\n let state = useDataRouterState(DataRouterStateHook.UseFetchers);\n return [...state.fetchers.values()];\n}\n\nconst SCROLL_RESTORATION_STORAGE_KEY = \"react-router-scroll-positions\";\nlet savedScrollPositions: Record<string, number> = {};\n\n/**\n * When rendered inside a RouterProvider, will restore scroll positions on navigations\n */\nfunction useScrollRestoration({\n getKey,\n storageKey,\n}: {\n getKey?: GetScrollRestorationKeyFunction;\n storageKey?: string;\n} = {}) {\n let { router } = useDataRouterContext(DataRouterHook.UseScrollRestoration);\n let { restoreScrollPosition, preventScrollReset } = useDataRouterState(\n DataRouterStateHook.UseScrollRestoration\n );\n let location = useLocation();\n let matches = useMatches();\n let navigation = useNavigation();\n\n // Trigger manual scroll restoration while we're active\n React.useEffect(() => {\n window.history.scrollRestoration = \"manual\";\n return () => {\n window.history.scrollRestoration = \"auto\";\n };\n }, []);\n\n // Save positions on pagehide\n usePageHide(\n React.useCallback(() => {\n if (navigation.state === \"idle\") {\n let key = (getKey ? getKey(location, matches) : null) || location.key;\n savedScrollPositions[key] = window.scrollY;\n }\n sessionStorage.setItem(\n storageKey || SCROLL_RESTORATION_STORAGE_KEY,\n JSON.stringify(savedScrollPositions)\n );\n window.history.scrollRestoration = \"auto\";\n }, [storageKey, getKey, navigation.state, location, matches])\n );\n\n // Read in any saved scroll locations\n if (typeof document !== \"undefined\") {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(() => {\n try {\n let sessionPositions = sessionStorage.getItem(\n storageKey || SCROLL_RESTORATION_STORAGE_KEY\n );\n if (sessionPositions) {\n savedScrollPositions = JSON.parse(sessionPositions);\n }\n } catch (e) {\n // no-op, use default empty object\n }\n }, [storageKey]);\n\n // Enable scroll restoration in the router\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(() => {\n let disableScrollRestoration = router?.enableScrollRestoration(\n savedScrollPositions,\n () => window.scrollY,\n getKey\n );\n return () => disableScrollRestoration && disableScrollRestoration();\n }, [router, getKey]);\n\n // Restore scrolling when state.restoreScrollPosition changes\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(() => {\n // Explicit false means don't do anything (used for submissions)\n if (restoreScrollPosition === false) {\n return;\n }\n\n // been here before, scroll to it\n if (typeof restoreScrollPosition === \"number\") {\n window.scrollTo(0, restoreScrollPosition);\n return;\n }\n\n // try to scroll to the hash\n if (location.hash) {\n let el = document.getElementById(location.hash.slice(1));\n if (el) {\n el.scrollIntoView();\n return;\n }\n }\n\n // Don't reset if this navigation opted out\n if (preventScrollReset === true) {\n return;\n }\n\n // otherwise go to the top on new locations\n window.scrollTo(0, 0);\n }, [location, restoreScrollPosition, preventScrollReset]);\n }\n}\n\n/**\n * Setup a callback to be fired on the window's `beforeunload` event. This is\n * useful for saving some data to `window.localStorage` just before the page\n * refreshes.\n *\n * Note: The `callback` argument should be a function created with\n * `React.useCallback()`.\n */\nexport function useBeforeUnload(\n callback: (event: BeforeUnloadEvent) => any,\n options?: { capture?: boolean }\n): void {\n let { capture } = options || {};\n React.useEffect(() => {\n let opts = capture != null ? { capture } : undefined;\n window.addEventListener(\"beforeunload\", callback, opts);\n return () => {\n window.removeEventListener(\"beforeunload\", callback, opts);\n };\n }, [callback, capture]);\n}\n\n/**\n * Setup a callback to be fired on the window's `pagehide` event. This is\n * useful for saving some data to `window.localStorage` just before the page\n * refreshes. This event is better supported than beforeunload across browsers.\n *\n * Note: The `callback` argument should be a function created with\n * `React.useCallback()`.\n */\nfunction usePageHide(\n callback: (event: PageTransitionEvent) => any,\n options?: { capture?: boolean }\n): void {\n let { capture } = options || {};\n React.useEffect(() => {\n let opts = capture != null ? { capture } : undefined;\n window.addEventListener(\"pagehide\", callback, opts);\n return () => {\n window.removeEventListener(\"pagehide\", callback, opts);\n };\n }, [callback, capture]);\n}\n\n/**\n * Wrapper around useBlocker to show a window.confirm prompt to users instead\n * of building a custom UI with useBlocker.\n *\n * Warning: This has *a lot of rough edges* and behaves very differently (and\n * very incorrectly in some cases) across browsers if user click addition\n * back/forward navigations while the confirm is open. Use at your own risk.\n */\nfunction usePrompt({ when, message }: { when: boolean; message: string }) {\n let blocker = useBlocker(when);\n\n React.useEffect(() => {\n if (blocker.state === \"blocked\" && !when) {\n blocker.reset();\n }\n }, [blocker, when]);\n\n React.useEffect(() => {\n if (blocker.state === \"blocked\") {\n let proceed = window.confirm(message);\n if (proceed) {\n setTimeout(blocker.proceed, 0);\n } else {\n blocker.reset();\n }\n }\n }, [blocker, message]);\n}\n\nexport { usePrompt as unstable_usePrompt };\n\n//#endregion\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Utils\n////////////////////////////////////////////////////////////////////////////////\n\nfunction warning(cond: boolean, message: string): void {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging React Router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message);\n // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n//#endregion\n\nexport { useScrollRestoration as UNSAFE_useScrollRestoration };\n","import type { FormEncType, FormMethod } from \"@remix-run/router\";\nimport type { RelativeRoutingType } from \"react-router\";\n\nexport const defaultMethod = \"get\";\nconst defaultEncType = \"application/x-www-form-urlencoded\";\n\nexport function isHtmlElement(object: any): object is HTMLElement {\n return object != null && typeof object.tagName === \"string\";\n}\n\nexport function isButtonElement(object: any): object is HTMLButtonElement {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"button\";\n}\n\nexport function isFormElement(object: any): object is HTMLFormElement {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"form\";\n}\n\nexport function isInputElement(object: any): object is HTMLInputElement {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"input\";\n}\n\ntype LimitedMouseEvent = Pick<\n MouseEvent,\n \"button\" | \"metaKey\" | \"altKey\" | \"ctrlKey\" | \"shiftKey\"\n>;\n\nfunction isModifiedEvent(event: LimitedMouseEvent) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nexport function shouldProcessLinkClick(\n event: LimitedMouseEvent,\n target?: string\n) {\n return (\n event.button === 0 && // Ignore everything but left clicks\n (!target || target === \"_self\") && // Let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // Ignore clicks with modifier keys\n );\n}\n\nexport type ParamKeyValuePair = [string, string];\n\nexport type URLSearchParamsInit =\n | string\n | ParamKeyValuePair[]\n | Record<string, string | string[]>\n | URLSearchParams;\n\n/**\n * Creates a URLSearchParams object using the given initializer.\n *\n * This is identical to `new URLSearchParams(init)` except it also\n * supports arrays as values in the object form of the initializer\n * instead of just strings. This is convenient when you need multiple\n * values for a given key, but don't want to use an array initializer.\n *\n * For example, instead of:\n *\n * let searchParams = new URLSearchParams([\n * ['sort', 'name'],\n * ['sort', 'price']\n * ]);\n *\n * you can do:\n *\n * let searchParams = createSearchParams({\n * sort: ['name', 'price']\n * });\n */\nexport function createSearchParams(\n init: URLSearchParamsInit = \"\"\n): URLSearchParams {\n return new URLSearchParams(\n typeof init === \"string\" ||\n Array.isArray(init) ||\n init instanceof URLSearchParams\n ? init\n : Object.keys(init).reduce((memo, key) => {\n let value = init[key];\n return memo.concat(\n Array.isArray(value) ? value.map((v) => [key, v]) : [[key, value]]\n );\n }, [] as ParamKeyValuePair[])\n );\n}\n\nexport function getSearchParamsForLocation(\n locationSearch: string,\n defaultSearchParams: URLSearchParams | null\n) {\n let searchParams = createSearchParams(locationSearch);\n\n if (defaultSearchParams) {\n for (let key of defaultSearchParams.keys()) {\n if (!searchParams.has(key)) {\n defaultSearchParams.getAll(key).forEach((value) => {\n searchParams.append(key, value);\n });\n }\n }\n }\n\n return searchParams;\n}\n\nexport interface SubmitOptions {\n /**\n * The HTTP method used to submit the form. Overrides `<form method>`.\n * Defaults to \"GET\".\n */\n method?: FormMethod;\n\n /**\n * The action URL path used to submit the form. Overrides `<form action>`.\n * Defaults to the path of the current route.\n *\n * Note: It is assumed the path is already resolved. If you need to resolve a\n * relative path, use `useFormAction`.\n */\n action?: string;\n\n /**\n * The action URL used to submit the form. Overrides `<form encType>`.\n * Defaults to \"application/x-www-form-urlencoded\".\n */\n encType?: FormEncType;\n\n /**\n * Set `true` to replace the current entry in the browser's history stack\n * instead of creating a new one (i.e. stay on \"the same page\"). Defaults\n * to `false`.\n */\n replace?: boolean;\n\n /**\n * Determines whether the form action is relative to the route hierarchy or\n * the pathname. Use this if you want to opt out of navigating the route\n * hierarchy and want to instead route based on /-delimited URL segments\n */\n relative?: RelativeRoutingType;\n\n /**\n * In browser-based environments, prevent resetting scroll after this\n * navigation when using the <ScrollRestoration> component\n */\n preventScrollReset?: boolean;\n}\n\nexport function getFormSubmissionInfo(\n target:\n | HTMLFormElement\n | HTMLButtonElement\n | HTMLInputElement\n | FormData\n | URLSearchParams\n | { [name: string]: string }\n | null,\n defaultAction: string,\n options: SubmitOptions\n): {\n url: URL;\n method: string;\n encType: string;\n formData: FormData;\n} {\n let method: string;\n let action: string;\n let encType: string;\n let formData: FormData;\n\n if (isFormElement(target)) {\n let submissionTrigger: HTMLButtonElement | HTMLInputElement = (\n options as any\n ).submissionTrigger;\n\n method = options.method || target.getAttribute(\"method\") || defaultMethod;\n action = options.action || target.getAttribute(\"action\") || defaultAction;\n encType =\n options.encType || target.getAttribute(\"enctype\") || defaultEncType;\n\n formData = new FormData(target);\n\n if (submissionTrigger && submissionTrigger.name) {\n formData.append(submissionTrigger.name, submissionTrigger.value);\n }\n } else if (\n isButtonElement(target) ||\n (isInputElement(target) &&\n (target.type === \"submit\" || target.type === \"image\"))\n ) {\n let form = target.form;\n\n if (form == null) {\n throw new Error(\n `Cannot submit a <button> or <input type=\"submit\"> without a <form>`\n );\n }\n\n // <button>/<input type=\"submit\"> may override attributes of <form>\n\n method =\n options.method ||\n target.getAttribute(\"formmethod\") ||\n form.getAttribute(\"method\") ||\n defaultMethod;\n action =\n options.action ||\n target.getAttribute(\"formaction\") ||\n form.getAttribute(\"action\") ||\n defaultAction;\n encType =\n options.encType ||\n target.getAttribute(\"formenctype\") ||\n form.getAttribute(\"enctype\") ||\n defaultEncType;\n\n formData = new FormData(form);\n\n // Include name + value from a <button>, appending in case the button name\n // matches an existing input name\n if (target.name) {\n formData.append(target.name, target.value);\n }\n } else if (isHtmlElement(target)) {\n throw new Error(\n `Cannot submit element that is not <form>, <button>, or ` +\n `<input type=\"submit|image\">`\n );\n } else {\n method = options.method || defaultMethod;\n action = options.action || defaultAction;\n encType = options.encType || defaultEncType;\n\n if (target instanceof FormData) {\n formData = target;\n } else {\n formData = new FormData();\n\n if (target instanceof URLSearchParams) {\n for (let [name, value] of target) {\n formData.append(name, value);\n }\n } else if (target != null) {\n for (let name of Object.keys(target)) {\n formData.append(name, target[name]);\n }\n }\n }\n }\n\n let { protocol, host } = window.location;\n let url = new URL(action, `${protocol}//${host}`);\n\n return { url, method: method.toLowerCase(), encType, formData };\n}\n","export default function _classPrivateFieldBase(receiver, privateKey) {\n if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {\n throw new TypeError(\"attempted to use private field on non-instance\");\n }\n return receiver;\n}","var id = 0;\nexport default function _classPrivateFieldKey(name) {\n return \"__private_\" + id++ + \"_\" + name;\n}","class Localization {\n language:string = 'ru';\n\n translations: any = {};\n\n get(key = '') {\n const dictionary = this.translations[this.language];\n if (!dictionary) return key || '';\n\n let message = dictionary[key];\n if (message) return message;\n\n const keys = key.split('.');\n message = dictionary;\n for (let i = 0, l = keys.length; i < l; i++) {\n message = message[keys[i]];\n if (!message) return key || '';\n }\n return message;\n }\n\n parse(langId: string, text: string) {\n text.split('§ ').slice(1).forEach((part: string) => {\n let index = part.indexOf('\\n');\n if (index === (part.length - 1)) {\n index = part.indexOf(':');\n }\n const key = langId + '.' + part.slice(0, index);\n const value = part.slice(index + 1).trim();\n this.#addInTranslate(key, value);\n });\n }\n\n #addInTranslate(key: string, value: string) {\n const keys = key.split('.');\n let link = this.translations;\n for (let i = 0, l = keys.length; i < l; i++) {\n link[keys[i]] = i === (l - 1) ? value : (link[keys[i]] || {});\n link = link[keys[i]];\n }\n }\n\n add(key: string, json: any) {\n if (json) {\n this.#addInObject(this.#createPathByKey(key), json);\n } else {\n this.#addInObject(this.translations, key);\n }\n }\n\n #createPathByKey(key: string) {\n const keys = key.split('.');\n let link = this.translations;\n for (let i = 0, l = keys.length; i < l; i++) {\n link[keys[i]] = link[keys[i]] || {};\n link = link[keys[i]];\n }\n return link;\n }\n\n #addInObject(source: any, target: any) {\n for (let key in target) {\n if (!source[key]) source[key] = {};\n if (typeof target[key] === 'object') {\n this.#addInObject(source[key], target[key]);\n } else {\n source[key] = target[key];\n }\n }\n }\n}\n\nconst localization = new Localization();\n\nexport default localization;\n","import localization from 'ts/helpers/Localization';\n\nlocalization.parse('ru', `\n§ common.filters: Фильтры\n§ sidebar.team.total: Общая информация\n§ sidebar.team.scope: Фичи\n§ sidebar.team.author: Сотрудники\n§ sidebar.team.type: Типы задач\n§ sidebar.team.pr: Влитие кода\n§ sidebar.team.day: По дням\n§ sidebar.team.week: По неделям\n§ sidebar.team.month: По месяцам\n§ sidebar.team.tree: Анализ файлов\n§ sidebar.team.hours: Расписание\n§ sidebar.team.commits: Все коммиты\n§ sidebar.team.changes: Все изменения\n§ sidebar.team.words: Популярные слова\n§ sidebar.team.top: Викторина\n§ sidebar.team.settings: Настройки\n§ sidebar.person.total: Общая информация\n§ sidebar.person.money: Стоимость работы\n§ sidebar.person.speed: Скорость\n§ sidebar.person.day: По дням\n§ sidebar.person.week: По неделям\n§ sidebar.person.month: По месяцам\n§ sidebar.person.hours: Расписание\n§ sidebar.person.commits: Все коммиты\n§ sidebar.person.changes: Все изменения\n§ sidebar.person.words: Популярные слова\n§ sidebar.person.settings: Настройки\n§ page.team.author.types: Тип работ\n§ page.team.author.commits: Коммитов\n§ page.team.author.commitsSmall: коммитов\n§ page.team.author.tasks: Задач\n§ page.team.author.workedLosses: Дни с коммитами и без\n§ page.team.author.worked: работа\n§ page.team.author.losses: дни без коммитов\n§ page.team.author.days: дней\n§ page.team.author.daysForTask: Дней на задачу\n§ page.team.author.scopes: Фич\n§ page.team.author.moneyAll: Получил\n§ page.team.author.moneyWorked: Отработал\n§ page.team.author.moneyLosses: Переплата\n§ page.team.scope.scope: Фича\n§ page.team.scope.days: Раб. дней\n§ page.team.scope.authorsDays: Человеко-дней\n§ page.team.scope.tasks: Задач\n§ page.team.scope.commits: Коммитов\n§ page.team.scope.commitsSmall: коммитов\n§ page.team.scope.types: Тип работ\n§ page.team.scope.authors: Персональный вклад\n§ page.team.scope.cost: Стоимость\n§ page.team.type.type: Тип работы\n§ page.team.type.tasks: Задач\n§ page.team.type.days: Дней\n§ page.team.type.authorsDays: Человеко-дней\n§ page.team.type.commits: Коммитов\n§ page.team.type.commitsSmall: коммитов\n§ page.team.type.authors: Персональный вклад\n§ page.team.total.daysWorked.title: человеко-дней\n§ page.team.total.daysWorked.description: Учтены только дни, в которые делались коммиты\n§ page.team.total.commits.title: коммитов\n§ page.team.total.commits.description: Удалённые ветки не считаются\n§ page.team.total.daysLosses.title: дней без коммитов\n§ page.team.total.daysLosses.description: Все дни минус: праздники, выходные, отпуск, дни с коммитами\n§ page.team.total.employment.title: работает / уволилось\n§ page.team.total.employment.description: Если сотрудник в течении месяца не сделал ни одного коммита, он считается уволенным\n§ page.team.total.moneyAll.title: общая\n§ page.team.total.moneyAll.description: Суммарные затраты на зп\n§ page.team.total.moneyWorked.title: фактическая\n§ page.team.total.moneyWorked.description: Фактически отработанные дни умноженные на среднюю зп\n§ page.team.total.moneyLosses.title: возможная переплата\n§ page.team.total.moneyLosses.description: Оплаченные рабочие дни, когда коммитов не было\n§ page.team.total.weekendPayment.title: работа на выходных\n§ page.team.total.weekendPayment.description: Суммарная переплата за работу в выходные дни\n§ page.team.total.workSpeed.title: задач в день\n§ page.team.total.workSpeed.description: Средняя скорость работы команды при текущем составе сотрудников\n§ page.team.total.moneySpeed.title: в месяц\n§ page.team.total.moneySpeed.description: Прогнозируемая сумма выплаты на зп при текущем составе сотрудников без учета налогов и сопутствующих затрат\n§ page.team.total.titleA: Объём работ\n§ page.team.total.titleB: Стоимость\n§ page.team.tree.filters1: Пользователь\n§ page.team.tree.filters2: и более \n§ page.team.tree.filters3: коммитов в файле или папке\n§ page.team.tree.percent: Процент перезаписи\n§ page.team.tree.add: Кто добавлял\n§ page.team.tree.change: Кто менял\n§ page.team.tree.remove: Кто удалял\n§ page.team.tree.line: строк\n§ page.team.tree.lineAdd: добавили\n§ page.team.tree.lineRemove: изменили\n§ page.team.week.commits: коммитов\n§ page.team.week.tasks: задач\n§ page.team.week.add: добавили\n§ page.team.week.change: изменили\n§ page.team.week.remove: удалили\n§ page.team.week.worked: работа\n§ page.team.week.losses: дни без коммитов\n§ page.team.week.days: дней\n§ page.team.week.date: Дата\n§ page.team.week.numberTasks: Количество задач\n§ page.team.week.people: Количество человек\n§ page.team.week.files: Изменения файлов\n§ page.team.week.days: Дни с коммитами и без\n§ page.team.week.lossesDetails: Кто не коммитил\n§ page.person.total.title: Основные характеристики\n§ page.person.total.daysWorked.title: дней работы\n§ page.person.total.daysWorked.description: Учтены только дни, в которые делались коммиты\n§ page.person.total.tasks.title: задач\n§ page.person.total.tasks.description: Если коммиты правильно подписаны\n§ page.person.character.title: Персонаж\n§ page.person.achievement.title: Достижения\n§ page.person.achievement.positive: Позитивные\n§ page.person.achievement.normal: Нейтральные\n§ page.person.achievement.negative: Негативные\n§ page.person.achievement.description: Чем больше сотрудник набрал отрицательных достижений, тем больше вероятность, что ситуация нестандартная. Возможно, стоит изменить режим его работы, задачи или отчётность. Следует поговорить с ним и узнать, какие проблемы мешают его работе.\n§ page.person.gets.title: Взятые геты:\n§ page.person.gets.description: &laquo;Взять гет&raquo; в данном случае означает первым оставить коммит к&nbsp;задаче с&nbsp;&laquo;красивым&raquo; номером.\n§ page.person.business.days.title: дней работы\n§ page.person.business.days.description: Учтены только дни, в которые делались коммиты\n§ page.person.business.tasks.title: задач\n§ page.person.business.tasks.description: Если коммиты правильно подписаны\n§ page.person.business.losses.title: дней без коммитов\n§ page.person.business.losses.description: Все дни минус: праздники, выходные, отпуск, дни с коммитами\n§ page.person.business.commits.title: коммитов\n§ page.person.business.commits.description: Удалённые ветки не считаются\n§ page.person.business.time.description: Время от первого, до последнего коммита (в том числе, нерабочие дни)\n§ page.person.business.time.title: Дней на проекте:\n§ page.person.business.time.dismissed: (уволен)\n§ page.person.business.time.staff: (не в команде)\n§ page.person.business.achievements: Достижения\n§ page.person.changes.title: Достижения\n§ page.person.changes.description: \nПри некоторых видах форматирования git отмечает строки как «удалённые» и «добавленные»,\nхотя на самом деле они были «изменёны». Поэтому, если вы провели большой рефакторинг,\ngit может показать малое количество изменений в статистике, а фактический результат\nбудет отмечен, как скачок «удаленных» и «добавленных» строк.\n§ page.person.changes.description: Список коммитов и количество изменений в них за этот день:\n§ page.person.commits.title: Список коммитов:\n§ page.person.money.moneyAll.title: получил\n§ page.person.money.moneyAll.description: Предполагаемая сумма зп с проекта (см. настройки)\n§ page.person.money.moneyWorked.title: отработал\n§ page.person.money.moneyWorked.description: Фактически отработанные дни умноженные на среднюю зп\n§ page.person.money.moneyLosses.title: не делал коммиты\n§ page.person.money.moneyLosses.description: Дни когда мог работать, но не работал умноженные на среднюю зп\n§ page.person.money.tasks.title: задача\n§ page.person.money.tasks.description: Количество закрытых задач к стоимости дня\n§ page.person.money.commits.title: коммит\n§ page.person.money.commits.description: Количество коммитов к стоимости рабочего дня\n§ page.person.money.total: За всё время\n§ page.person.money.middle: Средняя стоимость\n§ page.person.speed.days.title: дней\n§ page.person.speed.days.description: Имеются ввиду рабочие дни, если коммиты правильно подписаны\n§ page.person.speed.commits.title: коммитов\n§ page.person.speed.commits.description: Отрезаны 10% максимальных и минимальных значений\n§ page.person.speed.line.title: строк кода\n§ page.person.speed.line.description: Отрезаны 10% максимальных и минимальных значений\n§ page.person.speed.tasks.title: задач\n§ page.person.speed.tasks.description: Задача может быть не доделана, но работа по ней должна быть\n§ page.person.speed.maxCommits.title: коммитов\n§ page.person.speed.maxCommits.description: Задача может быть не доделана, но работа по ней должна быть\n§ page.person.speed.task: Одна задача в среднем это\n§ page.person.speed.max: Максимальная скорость в день\n§ page.person.week.date: Дата\n§ page.person.week.tasks: Количество задач\n§ page.person.week.workDays: Рабочие дни\n§ page.person.week.taskInDay: Задач в день\n§ page.person.week.commits: коммитов\n§ page.person.week.days: дней\n§ page.person.week.workDay: будни\n§ page.person.week.weekends: выходные\n\n§ recommendations.title\nРекомендации и факты\n\n§ recommendations.scope.parallelism.not.title\nНет паралельных работ\n\n§ recommendations.scope.parallelism.not.description\nлюбую фичу в один момент времени делает один человек.\n\n# Метод расчёта:\n- человеко-дни делятся на фактические дни для каждой фичи;\n- находим среднее арифметическое;\n- если результат меньше 1.3 считаем, что паралельных работ в рамках большинства фичей обычно нет;\n\n# Почему это плохо:\n- повышается bus factor;\n- сотрудники медленее развиваются;\n- трудно качественно проверить работу сотрудника;\n\n# Почему это хорошо:\n- появляюся эксперты, которые очень глубоко погружены в предметную область и могут предложить более качественные решения;\n- скорее всего не бывает merge конфликтов;\n- проект может очень быстро паралельно развиваться в разные стороны;\n\n§ recommendations.scope.parallelism.has.title\nЧасть работ паралельно\n\n§ recommendations.scope.parallelism.has.description\nИногда фичу делают одновременно несколько человек.\n\n# Метод расчёта:\n- человеко-дни делятся на фактические дни для каждой фичи;\n- находим среднее арифметическое;\n- если результат от 1.3 до 2.0 считаем, что часть работ в рамках разных фичей иногда делалается паралельно;\n\n\n§ recommendations.scope.parallelism.every.title\nПаралельные работы\n\n§ recommendations.scope.parallelism.every.description\nлюбую фичу в один момент времени делают несколько человек\n\n# Метод расчёта:\n- человеко-дни делятся на фактические дни для каждой фичи;\n- находим среднее арифметическое;\n- если результат больше двух считаем, что большая часть работ в рамках разных фичей обычно делалается паралельно;\n\n\n§ recommendations.scope.money\nв такую сумму можно оценить работу по данному проекту.\n\n# Метод расчёта:\n- человеко-дни затраченные на разработку умножаются на индивидуальную зарплату разработчиков;\n\nИзменить зарплату каждого разработчика, для более точной суммы, можно в разделе «Настройки»\n\n# Это много или мало?\nДля ответа на этот вопрос, нужно ответить на следующие:\n- Можно ли за эти деньги было купить готовое решение?\n- Можно ли за эти деньги сделать более хороший продукт?\n\nЕсли ответ на оба вопроса «да», то возможно, разработка с нуля не стоила потраченных на неё денег.\n \n§ recommendations.scope.bus.everyHasOne.title\nBus factor = 1\n\n§ recommendations.scope.bus.everyHasOne.description\nВ большинство фич погружен один человек.\nНадо переключать людей.\n\n# Почему это плохо:\n- если сотрудники будут увольнятся, будет трудно продолжить их работу;\n- невозможно контролировать качество его кода;\n\n# Как делается выборка:\n- более 80% коммитов в фичу делает один человек;\n- проект имеет более 60% таких фичей;\n\n§ recommendations.scope.bus.oneMaintainer\nв фичи погружен один человек.\n\n# Почему это плохо:\n- если он уволится, будет трудно продолжить разработку;\n- снижается качество code-review;\n- трудно запаралелить разработку при необходимости;\n\n# Как делается выборка:\n- более 80% коммитов в фичу сделал один человек;\n\n§ recommendations.scope.types.process.title\nПлохие процессы\n\n§ recommendations.scope.types.process.description\nБольшинство фич содержат один тип задач.\n\n§ recommendations.scope.types.one\nфичи содержат один тип задач.\n\n§ recommendations.scope.types.common\nВозможно, разработчики неправильно подписывают коммиты или менеджер заводит один и тот же тип задач.\n\n# Почему это важно:\n- невозможно передать поддержку другой команде;\n- невозможно выпустить \"коробочную\" версию;\n- сильная зависимость от конкретных разработчиков;\n- большое количество ошибок и низкое качество кода;\n- вероятное замедление разработки в будущем;\n\n# В чём ошибка менеджера:\n- взгляд на продукт, только с позиции «работающей демки»;\n\n# Что должно быть:\n- тесты;\n- ошибки (выявленные по результатам тестов);\n- рефакторинг (т.к. архитектура может измениться);\n- документация;\n- правки стиля (как результат опроса фокус-группы);\n\n§ recommendations.scope.plan.title\nПостройте долгосрочный план\n\n§ recommendations.scope.plan.description\nс учетом архитектуры.\n\nПри том опираться этот план должен сразу на самые трудные задачи.\n\n# Почему отсутствие плана плохо:\n- сотрудники делают минимально работающую версию, не закладывая точки расширения. После этого пишется не масштабируемый код, который тормозит следующие фичи;\n\n# В чём ошибка менеджера:\n- он не показал, как продукт будет развиваться далее и в каких точках будет рост;\n\n# Как должно быть:\n- составлятся глобальный план развития продукта;\n- составлятся глобальный план развития архитектуры (с разработчиками и DBA);\n- на уровне схем сразу проговариваются моменты, которые могут сильно измениться;\n\n§ recommendations.scope.cost.title\nОцените инвестиции в фичу\n\n§ recommendations.scope.cost.description\nс количеством потенциальной прибыли.\n\nФичи которые дорого стоят в разработке, но приносят мало прибыли, возможно, стоит отложить или вообще отменить. Это сделает проект более комерчески успешным.\n\n§ recommendations.author.lotOfLazy\nпишет слишком мало кода.\n\n# Может уволить?\n- он тимлид, архитектор, аналитик?\n- это его основной проект?\n- есть какие-то зависимости от него?\n\n# Почему нет смысла исправлять\nСуммарные затраты на разработчика уже больше чем прибыль от его работы.\nЕсли мы считаем, что обьективных помех его работе не было, то человек либо не хочет работать вообще, либо работает на двух проектах одновременно.\nУвольнение и замена новым сотрудником выглядит оправданным с точки зрения общей статистики.\n\n§ recommendations.author.manyLazy\nпишет мало кода. Нужно взять на контроль.\n\n# Как делается выборка:\n- на тестовых выборках хороший программист пишет код больше 80% времени;\n- в данном случае показатель от 60% до 80%;\n\n# Как контролировать:\n- дробить задачи на 1..2 дня;\n- каждый день спрашивать статус;\n- убедиться, что задачи хорошо расписаны и готовы к началу разработки;\n- устроить парное программирование, чтобы проверить фактическую скорость;\n\n§ recommendations.author.oneTypeMans\nполучает слишком однообразные задачи по типу. Может выгореть.\n\n# Почему это важно:\n- если сотрудник выгорит, его скорость работы снизится;\n- замедляется профессиональный рост;\n- повышается вероятность увольнения;\n\n# Как делается выборка:\n- для каждого коммита определятся тип задачи;\n- если больше 70% задач одного типа, значит человек делает одно и тоже;\n\n\n§ recommendations.author.projectType.openSource.title\nОткрытый проект\n\n§ recommendations.author.projectType.openSource.description\nпять дней в неделю тут не работают.\n\nПроект может быть и закрытым, просто такой темп работы обычно у открытых библиотек на GitHub.\n\n# Метод оценки:\n- берется статистика по всем активным разработчикам;\n- подсчитывается среднее число дней работы и без коммитов;\n- у open-source библиотек рабочих дней обычно максимум 15..20%;\n\n# Последствия\nДля проектов, где работа не постоянна, нет смысла во многих показателях. Поэтому показатели без коммитов, скорости и т.п. будут скрыты.\n\nКак правило, оценку таких проектов делают перед началом разработки своей закрытой версии. Самые интересные показатели в этом случае вероятная стоимость и суммарное время на разработку.\n\n\n§ recommendations.author.projectType.easy.title\nСлабая загрузка\n\n§ recommendations.author.projectType.easy.description\nслишком много дней без коммитов. Нужно понять почему команда не пишет код.\n\n# Метод оценки:\n- берется статистика по всем активным разработчикам;\n- подсчитывается среднее число дней работы и без коммитов;\n- загрузка считается слабой, если процент без коммитов от 5% до 20%;\n\n# Возможные причины:\n- фактически нет задач;\n- задачи есть, но хорошо ложатся на текущую архитектуру;\n- разработчиков отвлекают совещаниями;\n- команда не работает;\n\n# Варианты решения:\n- обсудить проблему с командой;\n- уменьшить гранулярность задач, чтобы за день можно было успеть сделать одну или две задачи;\n- ввести ежедневные совещания, чтобы проверять движение задач по статусу;\n- устроить сеансы парного программирования, чтобы убедиться, что разработчик может работать быстрее;\n\n§ recommendations.author.manager.title\nОбозначьте дедлайны\n\n§ recommendations.author.manager.description\nУ любой задачи должен быть чёткий дедлайн.\n \nЭто позволит не затягивать её выполнение на несколько дней или недель.\n\n# Какие показатели стоит проверить:\n- количество дней на одну задачу, которое тратит работник;\n- количество дней ожидания влития PR (страница статистики по PR);\n\n§ recommendations.author.shorTalk.title\nПроводите ежедневные совещания\n\n§ recommendations.author.shorTalk.description\nони помогают быть в курсе проекта.\n \nНе растягивайте их отвлекаясь на постороние темы.\n\n# На какие вопросы должен ответить сотрудник:\n- что было сделано;\n- что будет сделано;\n- есть ли какие-либо проблемы;\n\n# Следует обрывать монолог, если:\n- начинают подробно описывать мелкие детали, которые не важны;\n- уводят диалог в сторону, от первоначального плана;\n\n# Почему это важно:\nЧасто сотрудник, который ничего не делает, старается уйти от ответа. Для этого он рассказывает кучу ненужных подробностей свой работы. Это позволяет усыпить внимание участников и растянуть время ответа. Создается ощущение что он чем-то занят, хотя по факту работы не было.\n\n§ recommendations.author.ipr.title\nСоставьте план обучения\n\n§ recommendations.author.ipr.description\nна каждого сотрудника.\n\n*Индивидуальный план обучения* — это список целей и задач, которые помогают человеку развиваться в определенной области.\n\n# Как составить план:\n- составить матрицу компетенций;\n- определить по каким компетенциям меньше всего знаний и опыта;\n- узнать какие из этих компетенций интересны сотруднику;\n- придумать 3..5 целей в рамках каждой такой компетенции на пол-года или год;\n- каждый месяц пытаться сделать что-либо для достижения одной цели;\n- каждый месяц напоминать об общем плане достижения этих целей;\n\n# Нужен ли план руководителю?\nДа, руководитель так же должен составить план на себя. Если нет вышестоящего руководителя, то он должен проверять сам себя.\n\n# Почему это важно:\n- сотрудники становятся более лояльны к компании;\n- за теже деньги вы получаете более квалифицированные кадры;\n\n§ recommendations.author.oneToOne.title\nПроводите 1-1 каждый месяц\n\n§ recommendations.author.oneToOne.description\nэто поможет выявить проблемы на ранней стадии.\n\n*One-to-one* — это регулярные личные встречи руководителя с подчиненным. На таких встречах обычно обсуждают всё, что важно для сотрудника, что его волнует, и то, чем он может поделиться с руководителем только наедине.\n\n# Почему это важно:\n- легко выяснить, кто из сотрудников перегружен, а у кого есть свободное время;\n- можно предотвратить выгорание сотрудника;\n- можно получить быструю обратную связь о процессах, которые вы можете не замечать;\n- формируется доверительное отношение, сотрудники становятся более лояльны к компании;\n- повышается мотивация и вовлеченность сотрудников;\n\n§ recommendations.author.club.title\nХодите в бар\n\n§ recommendations.author.club.description\nодин раз в месяц или два.\n\nЭто поможет выстроить неформальную коммуникацию в коллективе и сплотить команду, даже если общение будет сжатым.\n\n# Почему это важно:\n- можно получить быструю обратную связь о процессах, которые вы можете не замечать;\n- формируется доверительное отношение, сотрудники становятся более лояльны к компании;\n- повышается вовлеченность сотрудников;\n\n§ recommendations.hour.onlyWork.title\nВыходных тут нет\n\n§ recommendations.hour.onlyWork.description\nВероятно, стоит уволить менеджера проекта.\n\n§ recommendations.hour.weekends.title\nРабота на выходных\n\n§ recommendations.hour.weekends.description\nВероятно, стоит проверить менеджера проекта.\n\n\n§ recommendations.hour.easy.title\nБывают проблемы\n\n§ recommendations.hour.easy.description\nВероятно, бывают завалы и приходится работать на выходных.\n\n§ recommendations.week.lazyDays.down.title\nСтало меньше прогулов\n§ recommendations.week.lazyDays.down.description\nза последние три недели этот показатель упал\n\n§ recommendations.week.lazyDays.up.title\nСтало больше прогулов\n§ recommendations.week.lazyDays.up.description\nнет задач или нужен более жесткий контроль\n \n§ recommendations.week.notWork.title\nСтабильно не дорабатывает\n§ recommendations.week.notWork.description\nт.к. каждую неделю пишет код не 100% времени\n\n§ recommendations.week.upWork.title\nСтабильно перерабатывает\n§ recommendations.week.upWork.description\nт.к. каждую неделю пишет код в выходные дни\n\n\n§ recommendations.week.task.up.title\nРастёт производительность\n§ recommendations.week.task.up.description\nили задачи стали слишком мелкие. Нужно проверить. Если гранулярность та же - закрепить результат.\n\n§ recommendations.week.task.down.title\nПадает производительность\n§ recommendations.week.task.down.description\nили задачи хуже разбивают. Нужно проверить. Если гранулярность та же - взять на контроль.\n\n# Метод оценки:\n- количество задач в день, над которыми работают, на протяжении последних трех недель стабильно падает.\n\n# Возможные ошибки:\n- задачи могли быть сложнее, чем казались;\n- задачи могли иметь большой объём работы (нужно проверить количество изменений, падают они или нет за этот же период)\n\n\n§ recommendations.type.everyHasOne.title\nНе подписывают тип задачи\n\n§ recommendations.type.everyHasOne.description\nбольшинство типов задач делает один человек.\n\n§ recommendations.type.oneMaintainer.title\nУзкая специализация\n\n§ recommendations.type.oneMaintainer.description\nбольшинство задач одного типа делают одни и те же люди.\n# Типы задач:\n\n§ recommendations.type.common\n# Возможно, это не так\n\nНужно убедиться, что остальные сотрудники верно подписывают коммиты.\n\nШаги, которые помогут это сделать:\n- настроить пре-коммит проверку для commit message;\n- объяснить команде, что нужно указывать тип;\n- проверить в новых ветках, что сотрудники следуют правилу;\n\n# Если это действительно так\n\nВы настроили проверки и убедились что один и тот же сотрудник, делает задачи одного и того же типа.\n\nПочему это плохо:\n- его увольнение остановит целую пачку процессов;\n- уменьшается компетенция остальных членов команды;\n- трудно верхнеуровнево понять его правки;\n\nКак это исправить:\n- распределять разные типы задач равномерно;\n- менять область работы (тесты, документация, ошибки) между сотрудниками через спринт;\n\n§ recommendations.type.fewTypes.title\nЭто локальный продукт\n\n§ recommendations.type.fewTypes.description\nдля конкретного заказчика или проблемы.\n\n# Какие признаки есть у «глобального» продукта:\n- локализация;\n- документация;\n- большой обьем тестов;\n- визуальная кастомизация;\n- рефакторинг узких мест;\n- и т.п.\n\n# Почему этот продукт выглядит как «локальный»:\n- у каждого «глобального» признака будет перевес по своему типу задач;\n- чем больше «глобальных» признаков, тем больше вероятность «глобального» продукта;\n\nВ данном случае мы видим небольшое число типов, а следовательно, скорее всего есть недоработки, мешающие легко масштабировать продукт на мировой рынок и продавать его в других странах.\n\n# Возможно, это не так\nПо типам файлов мы можем предположить тип программы (сайт, серверное приложение, DevOps скрипты и т.д.). Для frontend приложения наша гипотеза будет более верной, чем для DevOps-скриптов, которые могут быть лишь микро-модулем инициализации.\n\n§ recommendations.type.diff.title\nРазбейте лидирующий тип на подтипы\n\n§ recommendations.type.diff.description\nдля детализации ошибок.\n\nКак правило, тип задач с меткой «исправление ошибок» является лидирующим. Это делает статистику слабо-детализированной.\n\n*Если у вас произошла такая ситуация*, вы можете разбить этот тип на подтипы (например, по месту обнаружения).\n\nРассмотрим несколько вариантов подтипов:\n- fix_dev (ошибка выявленная в процессе разработки);\n- fix_test (ошибка выявленная в процессе тестирования);\n- fix (ошибка выявленная в проде);\n\n§ recommendations.type.buddy.title\nКопите мелкие задачи\n\n§ recommendations.type.buddy.description\nдля новых сотрудников.\n\n# Если задача:\n- не важная;\n- не большая;\n- не требует сильного погружения в контекст;\n- больше про рефакторинг, чем про новый код;\n\n# Положите её в backlog с меткой «для новичков».\n\nКогда придёт новый сотрудник, вы сможете моментально достать ему пачку небольших и разнообразных по типу задач, для ознакомления с проектом.\n\nТакже, если у вас будет застой в работе, вы сможете доставать по одной такой мелкой задаче из backlog-а.\n`);\n\nexport default {};\n","const niceErrors = {\n 0: `Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'`,\n 1(annotationType, key: PropertyKey) {\n return `Cannot apply '${annotationType}' to '${key.toString()}': Field not found.`\n },\n /*\n 2(prop) {\n return `invalid decorator for '${prop.toString()}'`\n },\n 3(prop) {\n return `Cannot decorate '${prop.toString()}': action can only be used on properties with a function value.`\n },\n 4(prop) {\n return `Cannot decorate '${prop.toString()}': computed can only be used on getter properties.`\n },\n */\n 5: \"'keys()' can only be used on observable objects, arrays, sets and maps\",\n 6: \"'values()' can only be used on observable objects, arrays, sets and maps\",\n 7: \"'entries()' can only be used on observable objects, arrays and maps\",\n 8: \"'set()' can only be used on observable objects, arrays and maps\",\n 9: \"'remove()' can only be used on observable objects, arrays and maps\",\n 10: \"'has()' can only be used on observable objects, arrays and maps\",\n 11: \"'get()' can only be used on observable objects, arrays and maps\",\n 12: `Invalid annotation`,\n 13: `Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)`,\n 14: \"Intercept handlers should return nothing or a change object\",\n 15: `Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)`,\n 16: `Modification exception: the internal structure of an observable array was changed.`,\n 17(index, length) {\n return `[mobx.array] Index out of bounds, ${index} is larger than ${length}`\n },\n 18: \"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js\",\n 19(other) {\n return \"Cannot initialize from classes that inherit from Map: \" + other.constructor.name\n },\n 20(other) {\n return \"Cannot initialize map from \" + other\n },\n 21(dataStructure) {\n return `Cannot convert to map from '${dataStructure}'`\n },\n 22: \"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js\",\n 23: \"It is not possible to get index atoms from arrays\",\n 24(thing) {\n return \"Cannot obtain administration from \" + thing\n },\n 25(property, name) {\n return `the entry '${property}' does not exist in the observable map '${name}'`\n },\n 26: \"please specify a property\",\n 27(property, name) {\n return `no observable property '${property.toString()}' found on the observable object '${name}'`\n },\n 28(thing) {\n return \"Cannot obtain atom from \" + thing\n },\n 29: \"Expecting some object\",\n 30: \"invalid action stack. did you forget to finish an action?\",\n 31: \"missing option for computed: get\",\n 32(name, derivation) {\n return `Cycle detected in computation ${name}: ${derivation}`\n },\n 33(name) {\n return `The setter of computed value '${name}' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?`\n },\n 34(name) {\n return `[ComputedValue '${name}'] It is not possible to assign a new value to a computed value.`\n },\n 35: \"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`\",\n 36: \"isolateGlobalState should be called before MobX is running any reactions\",\n 37(method) {\n return `[mobx] \\`observableArray.${method}()\\` mutates the array in-place, which is not allowed inside a derivation. Use \\`array.slice().${method}()\\` instead`\n },\n 38: \"'ownKeys()' can only be used on observable objects\",\n 39: \"'defineProperty()' can only be used on observable objects\"\n} as const\n\nconst errors: typeof niceErrors = __DEV__ ? niceErrors : ({} as any)\n\nexport function die(error: string | keyof typeof errors, ...args: any[]): never {\n if (__DEV__) {\n let e: any = typeof error === \"string\" ? error : errors[error]\n if (typeof e === \"function\") e = e.apply(null, args as any)\n throw new Error(`[MobX] ${e}`)\n }\n throw new Error(\n typeof error === \"number\"\n ? `[MobX] minified error nr: ${error}${\n args.length ? \" \" + args.map(String).join(\",\") : \"\"\n }. Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts`\n : `[MobX] ${error}`\n )\n}\n","declare const window: any\ndeclare const self: any\n\nconst mockGlobal = {}\n\nexport function getGlobal() {\n if (typeof globalThis !== \"undefined\") {\n return globalThis\n }\n if (typeof window !== \"undefined\") {\n return window\n }\n if (typeof global !== \"undefined\") {\n return global\n }\n if (typeof self !== \"undefined\") {\n return self\n }\n return mockGlobal\n}\n","import { globalState, die } from \"../internal\"\n\n// We shorten anything used > 5 times\nexport const assign = Object.assign\nexport const getDescriptor = Object.getOwnPropertyDescriptor\nexport const defineProperty = Object.defineProperty\nexport const objectPrototype = Object.prototype\n\nexport const EMPTY_ARRAY = []\nObject.freeze(EMPTY_ARRAY)\n\nexport const EMPTY_OBJECT = {}\nObject.freeze(EMPTY_OBJECT)\n\nexport interface Lambda {\n (): void\n name?: string\n}\n\nconst hasProxy = typeof Proxy !== \"undefined\"\nconst plainObjectString = Object.toString()\n\nexport function assertProxies() {\n if (!hasProxy) {\n die(\n __DEV__\n ? \"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`\"\n : \"Proxy not available\"\n )\n }\n}\n\nexport function warnAboutProxyRequirement(msg: string) {\n if (__DEV__ && globalState.verifyProxies) {\n die(\n \"MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to \" +\n msg\n )\n }\n}\n\nexport function getNextId() {\n return ++globalState.mobxGuid\n}\n\n/**\n * Makes sure that the provided function is invoked at most once.\n */\nexport function once(func: Lambda): Lambda {\n let invoked = false\n return function () {\n if (invoked) {\n return\n }\n invoked = true\n return (func as any).apply(this, arguments)\n }\n}\n\nexport const noop = () => {}\n\nexport function isFunction(fn: any): fn is Function {\n return typeof fn === \"function\"\n}\n\nexport function isString(value: any): value is string {\n return typeof value === \"string\"\n}\n\nexport function isStringish(value: any): value is string | number | symbol {\n const t = typeof value\n switch (t) {\n case \"string\":\n case \"symbol\":\n case \"number\":\n return true\n }\n return false\n}\n\nexport function isObject(value: any): value is Object {\n return value !== null && typeof value === \"object\"\n}\n\nexport function isPlainObject(value: any) {\n if (!isObject(value)) {\n return false\n }\n const proto = Object.getPrototypeOf(value)\n if (proto == null) {\n return true\n }\n const protoConstructor = Object.hasOwnProperty.call(proto, \"constructor\") && proto.constructor\n return (\n typeof protoConstructor === \"function\" && protoConstructor.toString() === plainObjectString\n )\n}\n\n// https://stackoverflow.com/a/37865170\nexport function isGenerator(obj: any): boolean {\n const constructor = obj?.constructor\n if (!constructor) {\n return false\n }\n if (\n \"GeneratorFunction\" === constructor.name ||\n \"GeneratorFunction\" === constructor.displayName\n ) {\n return true\n }\n return false\n}\n\nexport function addHiddenProp(object: any, propName: PropertyKey, value: any) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: true,\n configurable: true,\n value\n })\n}\n\nexport function addHiddenFinalProp(object: any, propName: PropertyKey, value: any) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: false,\n configurable: true,\n value\n })\n}\n\nexport function createInstanceofPredicate<T>(\n name: string,\n theClass: new (...args: any[]) => T\n): (x: any) => x is T {\n const propName = \"isMobX\" + name\n theClass.prototype[propName] = true\n return function (x) {\n return isObject(x) && x[propName] === true\n } as any\n}\n\nexport function isES6Map(thing: any): thing is Map<any, any> {\n return thing instanceof Map\n}\n\nexport function isES6Set(thing: any): thing is Set<any> {\n return thing instanceof Set\n}\n\nconst hasGetOwnPropertySymbols = typeof Object.getOwnPropertySymbols !== \"undefined\"\n\n/**\n * Returns the following: own enumerable keys and symbols.\n */\nexport function getPlainObjectKeys(object: any) {\n const keys = Object.keys(object)\n // Not supported in IE, so there are not going to be symbol props anyway...\n if (!hasGetOwnPropertySymbols) {\n return keys\n }\n const symbols = Object.getOwnPropertySymbols(object)\n if (!symbols.length) {\n return keys\n }\n return [...keys, ...symbols.filter(s => objectPrototype.propertyIsEnumerable.call(object, s))]\n}\n\n// From Immer utils\n// Returns all own keys, including non-enumerable and symbolic\nexport const ownKeys: (target: any) => Array<string | symbol> =\n typeof Reflect !== \"undefined\" && Reflect.ownKeys\n ? Reflect.ownKeys\n : hasGetOwnPropertySymbols\n ? obj => Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj) as any)\n : /* istanbul ignore next */ Object.getOwnPropertyNames\n\nexport function stringifyKey(key: any): string {\n if (typeof key === \"string\") {\n return key\n }\n if (typeof key === \"symbol\") {\n return key.toString()\n }\n return new String(key).toString()\n}\n\nexport function toPrimitive(value: any) {\n return value === null ? null : typeof value === \"object\" ? \"\" + value : value\n}\n\nexport function hasProp(target: Object, prop: PropertyKey): boolean {\n return objectPrototype.hasOwnProperty.call(target, prop)\n}\n\n// From Immer utils\nexport const getOwnPropertyDescriptors =\n Object.getOwnPropertyDescriptors ||\n function getOwnPropertyDescriptors(target: any) {\n // Polyfill needed for Hermes and IE, see https://github.com/facebook/hermes/issues/274\n const res: any = {}\n // Note: without polyfill for ownKeys, symbols won't be picked up\n ownKeys(target).forEach(key => {\n res[key] = getDescriptor(target, key)\n })\n return res\n }\n","import { Annotation, addHiddenProp, AnnotationsMap, hasProp, die, isOverride } from \"../internal\"\n\nexport const storedAnnotationsSymbol = Symbol(\"mobx-stored-annotations\")\n\n/**\n * Creates a function that acts as\n * - decorator\n * - annotation object\n */\nexport function createDecoratorAnnotation(annotation: Annotation): PropertyDecorator & Annotation {\n function decorator(target, property) {\n storeAnnotation(target, property, annotation)\n }\n return Object.assign(decorator, annotation)\n}\n\n/**\n * Stores annotation to prototype,\n * so it can be inspected later by `makeObservable` called from constructor\n */\nexport function storeAnnotation(prototype: any, key: PropertyKey, annotation: Annotation) {\n if (!hasProp(prototype, storedAnnotationsSymbol)) {\n addHiddenProp(prototype, storedAnnotationsSymbol, {\n // Inherit annotations\n ...prototype[storedAnnotationsSymbol]\n })\n }\n // @override must override something\n if (__DEV__ && isOverride(annotation) && !hasProp(prototype[storedAnnotationsSymbol], key)) {\n const fieldName = `${prototype.constructor.name}.prototype.${key.toString()}`\n die(\n `'${fieldName}' is decorated with 'override', ` +\n `but no such decorated member was found on prototype.`\n )\n }\n // Cannot re-decorate\n assertNotDecorated(prototype, annotation, key)\n\n // Ignore override\n if (!isOverride(annotation)) {\n prototype[storedAnnotationsSymbol][key] = annotation\n }\n}\n\nfunction assertNotDecorated(prototype: object, annotation: Annotation, key: PropertyKey) {\n if (__DEV__ && !isOverride(annotation) && hasProp(prototype[storedAnnotationsSymbol], key)) {\n const fieldName = `${prototype.constructor.name}.prototype.${key.toString()}`\n const currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_\n const requestedAnnotationType = annotation.annotationType_\n die(\n `Cannot apply '@${requestedAnnotationType}' to '${fieldName}':` +\n `\\nThe field is already decorated with '@${currentAnnotationType}'.` +\n `\\nRe-decorating fields is not allowed.` +\n `\\nUse '@override' decorator for methods overridden by subclass.`\n )\n }\n}\n\n/**\n * Collects annotations from prototypes and stores them on target (instance)\n */\nexport function collectStoredAnnotations(target): AnnotationsMap<any, any> {\n if (!hasProp(target, storedAnnotationsSymbol)) {\n if (__DEV__ && !target[storedAnnotationsSymbol]) {\n die(\n `No annotations were passed to makeObservable, but no decorated members have been found either`\n )\n }\n // We need a copy as we will remove annotation from the list once it's applied.\n addHiddenProp(target, storedAnnotationsSymbol, { ...target[storedAnnotationsSymbol] })\n }\n return target[storedAnnotationsSymbol]\n}\n","import {\n die,\n Annotation,\n hasProp,\n createDecoratorAnnotation,\n ObservableObjectAdministration,\n MakeResult\n} from \"../internal\"\n\nconst OVERRIDE = \"override\"\n\nexport const override: Annotation & PropertyDecorator = createDecoratorAnnotation({\n annotationType_: OVERRIDE,\n make_,\n extend_\n})\n\nexport function isOverride(annotation: Annotation): boolean {\n return annotation.annotationType_ === OVERRIDE\n}\n\nfunction make_(adm: ObservableObjectAdministration, key): MakeResult {\n // Must not be plain object\n if (__DEV__ && adm.isPlainObject_) {\n die(\n `Cannot apply '${this.annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${this.annotationType_}' cannot be used on plain objects.`\n )\n }\n // Must override something\n if (__DEV__ && !hasProp(adm.appliedAnnotations_!, key)) {\n die(\n `'${adm.name_}.${key.toString()}' is annotated with '${this.annotationType_}', ` +\n `but no such annotated member was found on prototype.`\n )\n }\n return MakeResult.Cancel\n}\n\nfunction extend_(adm, key, descriptor, proxyTrap): boolean {\n die(`'${this.annotationType_}' can only be used with 'makeObservable'`)\n}\n","import {\n IDerivationState_,\n IObservable,\n IDerivation,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n noop,\n onBecomeObserved,\n onBecomeUnobserved,\n propagateChanged,\n reportObserved,\n startBatch,\n Lambda\n} from \"../internal\"\n\nexport const $mobx = Symbol(\"mobx administration\")\n\nexport interface IAtom extends IObservable {\n reportObserved(): boolean\n reportChanged()\n}\n\nexport class Atom implements IAtom {\n isPendingUnobservation_ = false // for effective unobserving. BaseAtom has true, for extra optimization, so its onBecomeUnobserved never gets called, because it's not needed\n isBeingObserved_ = false\n observers_ = new Set<IDerivation>()\n\n diffValue_ = 0\n lastAccessedBy_ = 0\n lowestObserverState_ = IDerivationState_.NOT_TRACKING_\n /**\n * Create a new atom. For debugging purposes it is recommended to give it a name.\n * The onBecomeObserved and onBecomeUnobserved callbacks can be used for resource management.\n */\n constructor(public name_ = __DEV__ ? \"Atom@\" + getNextId() : \"Atom\") {}\n\n // onBecomeObservedListeners\n public onBOL: Set<Lambda> | undefined\n // onBecomeUnobservedListeners\n public onBUOL: Set<Lambda> | undefined\n\n public onBO() {\n if (this.onBOL) {\n this.onBOL.forEach(listener => listener())\n }\n }\n\n public onBUO() {\n if (this.onBUOL) {\n this.onBUOL.forEach(listener => listener())\n }\n }\n\n /**\n * Invoke this method to notify mobx that your atom has been used somehow.\n * Returns true if there is currently a reactive context.\n */\n public reportObserved(): boolean {\n return reportObserved(this)\n }\n\n /**\n * Invoke this method _after_ this method has changed to signal mobx that all its observers should invalidate.\n */\n public reportChanged() {\n startBatch()\n propagateChanged(this)\n endBatch()\n }\n\n toString() {\n return this.name_\n }\n}\n\nexport const isAtom = createInstanceofPredicate(\"Atom\", Atom)\n\nexport function createAtom(\n name: string,\n onBecomeObservedHandler: () => void = noop,\n onBecomeUnobservedHandler: () => void = noop\n): IAtom {\n const atom = new Atom(name)\n // default `noop` listener will not initialize the hook Set\n if (onBecomeObservedHandler !== noop) {\n onBecomeObserved(atom, onBecomeObservedHandler)\n }\n\n if (onBecomeUnobservedHandler !== noop) {\n onBecomeUnobserved(atom, onBecomeUnobservedHandler)\n }\n return atom\n}\n","import {\n IComputedValue,\n IObservable,\n IObservableArray,\n Lambda,\n ObservableMap,\n getAtom,\n ObservableSet,\n isFunction,\n IObservableValue\n} from \"../internal\"\n\nconst ON_BECOME_OBSERVED = \"onBO\"\nconst ON_BECOME_UNOBSERVED = \"onBUO\"\n\nexport function onBecomeObserved(\n value:\n | IObservable\n | IComputedValue<any>\n | IObservableArray<any>\n | ObservableMap<any, any>\n | ObservableSet<any>\n | IObservableValue<any>,\n listener: Lambda\n): Lambda\nexport function onBecomeObserved<K, V = any>(\n value: ObservableMap<K, V> | Object,\n property: K,\n listener: Lambda\n): Lambda\nexport function onBecomeObserved(thing, arg2, arg3?): Lambda {\n return interceptHook(ON_BECOME_OBSERVED, thing, arg2, arg3)\n}\n\nexport function onBecomeUnobserved(\n value:\n | IObservable\n | IComputedValue<any>\n | IObservableArray<any>\n | ObservableMap<any, any>\n | ObservableSet<any>\n | IObservableValue<any>,\n listener: Lambda\n): Lambda\nexport function onBecomeUnobserved<K, V = any>(\n value: ObservableMap<K, V> | Object,\n property: K,\n listener: Lambda\n): Lambda\nexport function onBecomeUnobserved(thing, arg2, arg3?): Lambda {\n return interceptHook(ON_BECOME_UNOBSERVED, thing, arg2, arg3)\n}\n\nfunction interceptHook(hook: \"onBO\" | \"onBUO\", thing, arg2, arg3) {\n const atom: IObservable =\n typeof arg3 === \"function\" ? getAtom(thing, arg2) : (getAtom(thing) as any)\n const cb = isFunction(arg3) ? arg3 : arg2\n const listenersKey = `${hook}L` as \"onBOL\" | \"onBUOL\"\n\n if (atom[listenersKey]) {\n atom[listenersKey]!.add(cb)\n } else {\n atom[listenersKey] = new Set<Lambda>([cb])\n }\n\n return function () {\n const hookListeners = atom[listenersKey]\n if (hookListeners) {\n hookListeners.delete(cb)\n if (hookListeners.size === 0) {\n delete atom[listenersKey]\n }\n }\n }\n}\n","import { deepEqual } from \"../internal\"\n\nexport interface IEqualsComparer<T> {\n (a: T, b: T): boolean\n}\n\nfunction identityComparer(a: any, b: any): boolean {\n return a === b\n}\n\nfunction structuralComparer(a: any, b: any): boolean {\n return deepEqual(a, b)\n}\n\nfunction shallowComparer(a: any, b: any): boolean {\n return deepEqual(a, b, 1)\n}\n\nfunction defaultComparer(a: any, b: any): boolean {\n if (Object.is) {\n return Object.is(a, b)\n }\n\n return a === b ? a !== 0 || 1 / a === 1 / b : a !== a && b !== b\n}\n\nexport const comparer = {\n identity: identityComparer,\n structural: structuralComparer,\n default: defaultComparer,\n shallow: shallowComparer\n}\n","import {\n deepEqual,\n isES6Map,\n isES6Set,\n isObservable,\n isObservableArray,\n isObservableMap,\n isObservableSet,\n isObservableObject,\n isPlainObject,\n observable,\n die,\n isAction,\n autoAction,\n flow,\n isFlow,\n isGenerator\n} from \"../internal\"\n\nexport interface IEnhancer<T> {\n (newValue: T, oldValue: T | undefined, name: string): T\n}\n\nexport function deepEnhancer(v, _, name) {\n // it is an observable already, done\n if (isObservable(v)) {\n return v\n }\n\n // something that can be converted and mutated?\n if (Array.isArray(v)) {\n return observable.array(v, { name })\n }\n if (isPlainObject(v)) {\n return observable.object(v, undefined, { name })\n }\n if (isES6Map(v)) {\n return observable.map(v, { name })\n }\n if (isES6Set(v)) {\n return observable.set(v, { name })\n }\n if (typeof v === \"function\" && !isAction(v) && !isFlow(v)) {\n if (isGenerator(v)) {\n return flow(v)\n } else {\n return autoAction(name, v)\n }\n }\n return v\n}\n\nexport function shallowEnhancer(v, _, name): any {\n if (v === undefined || v === null) {\n return v\n }\n if (isObservableObject(v) || isObservableArray(v) || isObservableMap(v) || isObservableSet(v)) {\n return v\n }\n if (Array.isArray(v)) {\n return observable.array(v, { name, deep: false })\n }\n if (isPlainObject(v)) {\n return observable.object(v, undefined, { name, deep: false })\n }\n if (isES6Map(v)) {\n return observable.map(v, { name, deep: false })\n }\n if (isES6Set(v)) {\n return observable.set(v, { name, deep: false })\n }\n\n if (__DEV__) {\n die(\n \"The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets\"\n )\n }\n}\n\nexport function referenceEnhancer(newValue?) {\n // never turn into an observable\n return newValue\n}\n\nexport function refStructEnhancer(v, oldValue): any {\n if (__DEV__ && isObservable(v)) {\n die(`observable.struct should not be used with observable values`)\n }\n if (deepEqual(v, oldValue)) {\n return oldValue\n }\n return v\n}\n","import {\n ObservableObjectAdministration,\n createAction,\n isAction,\n defineProperty,\n die,\n isFunction,\n Annotation,\n globalState,\n MakeResult\n} from \"../internal\"\n\nexport function createActionAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_\n }\n}\n\nfunction make_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n source: object\n): MakeResult {\n // bound\n if (this.options_?.bound) {\n return this.extend_(adm, key, descriptor, false) === null\n ? MakeResult.Cancel\n : MakeResult.Break\n }\n // own\n if (source === adm.target_) {\n return this.extend_(adm, key, descriptor, false) === null\n ? MakeResult.Cancel\n : MakeResult.Continue\n }\n // prototype\n if (isAction(descriptor.value)) {\n // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return MakeResult.Break\n }\n const actionDescriptor = createActionDescriptor(adm, this, key, descriptor, false)\n defineProperty(source, key, actionDescriptor)\n return MakeResult.Continue\n}\n\nfunction extend_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n const actionDescriptor = createActionDescriptor(adm, this, key, descriptor)\n return adm.defineProperty_(key, actionDescriptor, proxyTrap)\n}\n\nfunction assertActionDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n { value }: PropertyDescriptor\n) {\n if (__DEV__ && !isFunction(value)) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' can only be used on properties with a function value.`\n )\n }\n}\n\nexport function createActionDescriptor(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n // provides ability to disable safeDescriptors for prototypes\n safeDescriptors: boolean = globalState.safeDescriptors\n) {\n assertActionDescriptor(adm, annotation, key, descriptor)\n let { value } = descriptor\n if (annotation.options_?.bound) {\n value = value.bind(adm.proxy_ ?? adm.target_)\n }\n return {\n value: createAction(\n annotation.options_?.name ?? key.toString(),\n value,\n annotation.options_?.autoAction ?? false,\n // https://github.com/mobxjs/mobx/discussions/3140\n annotation.options_?.bound ? adm.proxy_ ?? adm.target_ : undefined\n ),\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n }\n}\n","import {\n ObservableObjectAdministration,\n Annotation,\n defineProperty,\n die,\n flow,\n isFlow,\n isFunction,\n globalState,\n MakeResult,\n hasProp\n} from \"../internal\"\n\nexport function createFlowAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_\n }\n}\n\nfunction make_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n source: object\n): MakeResult {\n // own\n if (source === adm.target_) {\n return this.extend_(adm, key, descriptor, false) === null\n ? MakeResult.Cancel\n : MakeResult.Continue\n }\n // prototype\n // bound - must annotate protos to support super.flow()\n if (this.options_?.bound && (!hasProp(adm.target_, key) || !isFlow(adm.target_[key]))) {\n if (this.extend_(adm, key, descriptor, false) === null) {\n return MakeResult.Cancel\n }\n }\n if (isFlow(descriptor.value)) {\n // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return MakeResult.Break\n }\n const flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, false, false)\n defineProperty(source, key, flowDescriptor)\n return MakeResult.Continue\n}\n\nfunction extend_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n const flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, this.options_?.bound)\n return adm.defineProperty_(key, flowDescriptor, proxyTrap)\n}\n\nfunction assertFlowDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n { value }: PropertyDescriptor\n) {\n if (__DEV__ && !isFunction(value)) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' can only be used on properties with a generator function value.`\n )\n }\n}\n\nfunction createFlowDescriptor(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n bound: boolean,\n // provides ability to disable safeDescriptors for prototypes\n safeDescriptors: boolean = globalState.safeDescriptors\n): PropertyDescriptor {\n assertFlowDescriptor(adm, annotation, key, descriptor)\n let { value } = descriptor\n // In case of flow.bound, the descriptor can be from already annotated prototype\n if (!isFlow(value)) {\n value = flow(value)\n }\n if (bound) {\n // We do not keep original function around, so we bind the existing flow\n value = value.bind(adm.proxy_ ?? adm.target_)\n // This is normally set by `flow`, but `bind` returns new function...\n value.isMobXFlow = true\n }\n return {\n value,\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n }\n}\n","import { ObservableObjectAdministration, die, Annotation, MakeResult } from \"../internal\"\n\nexport function createComputedAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_\n }\n}\n\nfunction make_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor\n): MakeResult {\n return this.extend_(adm, key, descriptor, false) === null ? MakeResult.Cancel : MakeResult.Break\n}\n\nfunction extend_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n assertComputedDescriptor(adm, this, key, descriptor)\n return adm.defineComputedProperty_(\n key,\n {\n ...this.options_,\n get: descriptor.get,\n set: descriptor.set\n },\n proxyTrap\n )\n}\n\nfunction assertComputedDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n { get }: PropertyDescriptor\n) {\n if (__DEV__ && !get) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' can only be used on getter(+setter) properties.`\n )\n }\n}\n","import {\n ObservableObjectAdministration,\n deepEnhancer,\n die,\n Annotation,\n MakeResult\n} from \"../internal\"\n\nexport function createObservableAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_\n }\n}\n\nfunction make_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor\n): MakeResult {\n return this.extend_(adm, key, descriptor, false) === null ? MakeResult.Cancel : MakeResult.Break\n}\n\nfunction extend_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n assertObservableDescriptor(adm, this, key, descriptor)\n return adm.defineObservableProperty_(\n key,\n descriptor.value,\n this.options_?.enhancer ?? deepEnhancer,\n proxyTrap\n )\n}\n\nfunction assertObservableDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n descriptor: PropertyDescriptor\n) {\n if (__DEV__ && !(\"value\" in descriptor)) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' cannot be used on getter/setter properties`\n )\n }\n}\n","import {\n ObservableObjectAdministration,\n observable,\n Annotation,\n defineProperty,\n createAction,\n globalState,\n flow,\n computed,\n autoAction,\n isGenerator,\n MakeResult\n} from \"../internal\"\n\nconst AUTO = \"true\"\n\nexport const autoAnnotation: Annotation = createAutoAnnotation()\n\nexport function createAutoAnnotation(options?: object): Annotation {\n return {\n annotationType_: AUTO,\n options_: options,\n make_,\n extend_\n }\n}\n\nfunction make_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n source: object\n): MakeResult {\n // getter -> computed\n if (descriptor.get) {\n return computed.make_(adm, key, descriptor, source)\n }\n // lone setter -> action setter\n if (descriptor.set) {\n // TODO make action applicable to setter and delegate to action.make_\n const set = createAction(key.toString(), descriptor.set) as (v: any) => void\n // own\n if (source === adm.target_) {\n return adm.defineProperty_(key, {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set\n }) === null\n ? MakeResult.Cancel\n : MakeResult.Continue\n }\n // proto\n defineProperty(source, key, {\n configurable: true,\n set\n })\n return MakeResult.Continue\n }\n // function on proto -> autoAction/flow\n if (source !== adm.target_ && typeof descriptor.value === \"function\") {\n if (isGenerator(descriptor.value)) {\n const flowAnnotation = this.options_?.autoBind ? flow.bound : flow\n return flowAnnotation.make_(adm, key, descriptor, source)\n }\n const actionAnnotation = this.options_?.autoBind ? autoAction.bound : autoAction\n return actionAnnotation.make_(adm, key, descriptor, source)\n }\n // other -> observable\n // Copy props from proto as well, see test:\n // \"decorate should work with Object.create\"\n let observableAnnotation = this.options_?.deep === false ? observable.ref : observable\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && this.options_?.autoBind) {\n descriptor.value = descriptor.value.bind(adm.proxy_ ?? adm.target_)\n }\n return observableAnnotation.make_(adm, key, descriptor, source)\n}\n\nfunction extend_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n // getter -> computed\n if (descriptor.get) {\n return computed.extend_(adm, key, descriptor, proxyTrap)\n }\n // lone setter -> action setter\n if (descriptor.set) {\n // TODO make action applicable to setter and delegate to action.extend_\n return adm.defineProperty_(\n key,\n {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set: createAction(key.toString(), descriptor.set) as (v: any) => void\n },\n proxyTrap\n )\n }\n // other -> observable\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && this.options_?.autoBind) {\n descriptor.value = descriptor.value.bind(adm.proxy_ ?? adm.target_)\n }\n let observableAnnotation = this.options_?.deep === false ? observable.ref : observable\n return observableAnnotation.extend_(adm, key, descriptor, proxyTrap)\n}\n","import {\n IEnhancer,\n IEqualsComparer,\n IObservableArray,\n IObservableMapInitialValues,\n IObservableSetInitialValues,\n IObservableValue,\n ObservableMap,\n ObservableSet,\n ObservableValue,\n asDynamicObservableObject,\n createObservableArray,\n deepEnhancer,\n extendObservable,\n isES6Map,\n isES6Set,\n isObservable,\n isPlainObject,\n referenceEnhancer,\n Annotation,\n shallowEnhancer,\n refStructEnhancer,\n AnnotationsMap,\n asObservableObject,\n storeAnnotation,\n createDecoratorAnnotation,\n createLegacyArray,\n globalState,\n assign,\n isStringish,\n createObservableAnnotation,\n createAutoAnnotation\n} from \"../internal\"\n\nexport const OBSERVABLE = \"observable\"\nexport const OBSERVABLE_REF = \"observable.ref\"\nexport const OBSERVABLE_SHALLOW = \"observable.shallow\"\nexport const OBSERVABLE_STRUCT = \"observable.struct\"\n\nexport type CreateObservableOptions = {\n name?: string\n equals?: IEqualsComparer<any>\n deep?: boolean\n defaultDecorator?: Annotation\n proxy?: boolean\n autoBind?: boolean\n}\n\n// Predefined bags of create observable options, to avoid allocating temporarily option objects\n// in the majority of cases\nexport const defaultCreateObservableOptions: CreateObservableOptions = {\n deep: true,\n name: undefined,\n defaultDecorator: undefined,\n proxy: true\n}\nObject.freeze(defaultCreateObservableOptions)\n\nexport function asCreateObservableOptions(thing: any): CreateObservableOptions {\n return thing || defaultCreateObservableOptions\n}\n\nconst observableAnnotation = createObservableAnnotation(OBSERVABLE)\nconst observableRefAnnotation = createObservableAnnotation(OBSERVABLE_REF, {\n enhancer: referenceEnhancer\n})\nconst observableShallowAnnotation = createObservableAnnotation(OBSERVABLE_SHALLOW, {\n enhancer: shallowEnhancer\n})\nconst observableStructAnnotation = createObservableAnnotation(OBSERVABLE_STRUCT, {\n enhancer: refStructEnhancer\n})\nconst observableDecoratorAnnotation = createDecoratorAnnotation(observableAnnotation)\n\nexport function getEnhancerFromOptions(options: CreateObservableOptions): IEnhancer<any> {\n return options.deep === true\n ? deepEnhancer\n : options.deep === false\n ? referenceEnhancer\n : getEnhancerFromAnnotation(options.defaultDecorator)\n}\n\nexport function getAnnotationFromOptions(\n options?: CreateObservableOptions\n): Annotation | undefined {\n return options ? options.defaultDecorator ?? createAutoAnnotation(options) : undefined\n}\n\nexport function getEnhancerFromAnnotation(annotation?: Annotation): IEnhancer<any> {\n return !annotation ? deepEnhancer : annotation.options_?.enhancer ?? deepEnhancer\n}\n\n/**\n * Turns an object, array or function into a reactive structure.\n * @param v the value which should become observable.\n */\nfunction createObservable(v: any, arg2?: any, arg3?: any) {\n // @observable someProp;\n if (isStringish(arg2)) {\n storeAnnotation(v, arg2, observableAnnotation)\n return\n }\n\n // already observable - ignore\n if (isObservable(v)) {\n return v\n }\n\n // plain object\n if (isPlainObject(v)) {\n return observable.object(v, arg2, arg3)\n }\n\n // Array\n if (Array.isArray(v)) {\n return observable.array(v, arg2)\n }\n\n // Map\n if (isES6Map(v)) {\n return observable.map(v, arg2)\n }\n\n // Set\n if (isES6Set(v)) {\n return observable.set(v, arg2)\n }\n\n // other object - ignore\n if (typeof v === \"object\" && v !== null) {\n return v\n }\n\n // anything else\n return observable.box(v, arg2)\n}\nObject.assign(createObservable, observableDecoratorAnnotation)\n\nexport interface IObservableValueFactory {\n <T>(value: T, options?: CreateObservableOptions): IObservableValue<T>\n <T>(value?: T, options?: CreateObservableOptions): IObservableValue<T | undefined>\n}\n\nexport interface IObservableFactory extends Annotation, PropertyDecorator {\n <T = any>(value: T[], options?: CreateObservableOptions): IObservableArray<T>\n <T = any>(value: Set<T>, options?: CreateObservableOptions): ObservableSet<T>\n <K = any, V = any>(value: Map<K, V>, options?: CreateObservableOptions): ObservableMap<K, V>\n <T extends object>(\n value: T,\n decorators?: AnnotationsMap<T, never>,\n options?: CreateObservableOptions\n ): T\n\n box: IObservableValueFactory\n array: <T = any>(initialValues?: T[], options?: CreateObservableOptions) => IObservableArray<T>\n set: <T = any>(\n initialValues?: IObservableSetInitialValues<T>,\n options?: CreateObservableOptions\n ) => ObservableSet<T>\n map: <K = any, V = any>(\n initialValues?: IObservableMapInitialValues<K, V>,\n options?: CreateObservableOptions\n ) => ObservableMap<K, V>\n object: <T = any>(\n props: T,\n decorators?: AnnotationsMap<T, never>,\n options?: CreateObservableOptions\n ) => T\n\n /**\n * Decorator that creates an observable that only observes the references, but doesn't try to turn the assigned value into an observable.ts.\n */\n ref: Annotation & PropertyDecorator\n /**\n * Decorator that creates an observable converts its value (objects, maps or arrays) into a shallow observable structure\n */\n shallow: Annotation & PropertyDecorator\n deep: Annotation & PropertyDecorator\n struct: Annotation & PropertyDecorator\n}\n\nconst observableFactories: IObservableFactory = {\n box<T = any>(value: T, options?: CreateObservableOptions): IObservableValue<T> {\n const o = asCreateObservableOptions(options)\n return new ObservableValue(value, getEnhancerFromOptions(o), o.name, true, o.equals)\n },\n array<T = any>(initialValues?: T[], options?: CreateObservableOptions): IObservableArray<T> {\n const o = asCreateObservableOptions(options)\n return (\n globalState.useProxies === false || o.proxy === false\n ? createLegacyArray\n : createObservableArray\n )(initialValues, getEnhancerFromOptions(o), o.name)\n },\n map<K = any, V = any>(\n initialValues?: IObservableMapInitialValues<K, V>,\n options?: CreateObservableOptions\n ): ObservableMap<K, V> {\n const o = asCreateObservableOptions(options)\n return new ObservableMap<K, V>(initialValues, getEnhancerFromOptions(o), o.name)\n },\n set<T = any>(\n initialValues?: IObservableSetInitialValues<T>,\n options?: CreateObservableOptions\n ): ObservableSet<T> {\n const o = asCreateObservableOptions(options)\n return new ObservableSet<T>(initialValues, getEnhancerFromOptions(o), o.name)\n },\n object<T extends object = any>(\n props: T,\n decorators?: AnnotationsMap<T, never>,\n options?: CreateObservableOptions\n ): T {\n return extendObservable(\n globalState.useProxies === false || options?.proxy === false\n ? asObservableObject({}, options)\n : asDynamicObservableObject({}, options),\n props,\n decorators\n )\n },\n ref: createDecoratorAnnotation(observableRefAnnotation),\n shallow: createDecoratorAnnotation(observableShallowAnnotation),\n deep: observableDecoratorAnnotation,\n struct: createDecoratorAnnotation(observableStructAnnotation)\n} as any\n\n// eslint-disable-next-line\nexport var observable: IObservableFactory = assign(createObservable, observableFactories)\n","import {\n $mobx,\n IIsObservableObject,\n ObservableObjectAdministration,\n warnAboutProxyRequirement,\n assertProxies,\n die,\n isStringish,\n globalState,\n CreateObservableOptions,\n asObservableObject\n} from \"../internal\"\n\nfunction getAdm(target): ObservableObjectAdministration {\n return target[$mobx]\n}\n\n// Optimization: we don't need the intermediate objects and could have a completely custom administration for DynamicObjects,\n// and skip either the internal values map, or the base object with its property descriptors!\nconst objectProxyTraps: ProxyHandler<any> = {\n has(target: IIsObservableObject, name: PropertyKey): boolean {\n if (__DEV__ && globalState.trackingDerivation) {\n warnAboutProxyRequirement(\n \"detect new properties using the 'in' operator. Use 'has' from 'mobx' instead.\"\n )\n }\n return getAdm(target).has_(name)\n },\n get(target: IIsObservableObject, name: PropertyKey): any {\n return getAdm(target).get_(name)\n },\n set(target: IIsObservableObject, name: PropertyKey, value: any): boolean {\n if (!isStringish(name)) {\n return false\n }\n if (__DEV__ && !getAdm(target).values_.has(name)) {\n warnAboutProxyRequirement(\n \"add a new observable property through direct assignment. Use 'set' from 'mobx' instead.\"\n )\n }\n // null (intercepted) -> true (success)\n return getAdm(target).set_(name, value, true) ?? true\n },\n deleteProperty(target: IIsObservableObject, name: PropertyKey): boolean {\n if (__DEV__) {\n warnAboutProxyRequirement(\n \"delete properties from an observable object. Use 'remove' from 'mobx' instead.\"\n )\n }\n if (!isStringish(name)) {\n return false\n }\n // null (intercepted) -> true (success)\n return getAdm(target).delete_(name, true) ?? true\n },\n defineProperty(\n target: IIsObservableObject,\n name: PropertyKey,\n descriptor: PropertyDescriptor\n ): boolean {\n if (__DEV__) {\n warnAboutProxyRequirement(\n \"define property on an observable object. Use 'defineProperty' from 'mobx' instead.\"\n )\n }\n // null (intercepted) -> true (success)\n return getAdm(target).defineProperty_(name, descriptor) ?? true\n },\n ownKeys(target: IIsObservableObject): ArrayLike<string | symbol> {\n if (__DEV__ && globalState.trackingDerivation) {\n warnAboutProxyRequirement(\n \"iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead.\"\n )\n }\n return getAdm(target).ownKeys_()\n },\n preventExtensions(target) {\n die(13)\n }\n}\n\nexport function asDynamicObservableObject(\n target: any,\n options?: CreateObservableOptions\n): IIsObservableObject {\n assertProxies()\n target = asObservableObject(target, options)\n return (target[$mobx].proxy_ ??= new Proxy(target, objectProxyTraps))\n}\n","import {\n ComputedValue,\n IComputedValueOptions,\n Annotation,\n storeAnnotation,\n createDecoratorAnnotation,\n isStringish,\n isPlainObject,\n isFunction,\n die,\n IComputedValue,\n createComputedAnnotation,\n comparer\n} from \"../internal\"\n\nexport const COMPUTED = \"computed\"\nexport const COMPUTED_STRUCT = \"computed.struct\"\n\nexport interface IComputedFactory extends Annotation, PropertyDecorator {\n // @computed(opts)\n <T>(options: IComputedValueOptions<T>): Annotation & PropertyDecorator\n // computed(fn, opts)\n <T>(func: () => T, options?: IComputedValueOptions<T>): IComputedValue<T>\n\n struct: Annotation & PropertyDecorator\n}\n\nconst computedAnnotation = createComputedAnnotation(COMPUTED)\nconst computedStructAnnotation = createComputedAnnotation(COMPUTED_STRUCT, {\n equals: comparer.structural\n})\n\n/**\n * Decorator for class properties: @computed get value() { return expr; }.\n * For legacy purposes also invokable as ES5 observable created: `computed(() => expr)`;\n */\nexport const computed: IComputedFactory = function computed(arg1, arg2) {\n if (isStringish(arg2)) {\n // @computed\n return storeAnnotation(arg1, arg2, computedAnnotation)\n }\n if (isPlainObject(arg1)) {\n // @computed({ options })\n return createDecoratorAnnotation(createComputedAnnotation(COMPUTED, arg1))\n }\n\n // computed(expr, options?)\n if (__DEV__) {\n if (!isFunction(arg1)) {\n die(\"First argument to `computed` should be an expression.\")\n }\n if (isFunction(arg2)) {\n die(\n \"A setter as second argument is no longer supported, use `{ set: fn }` option instead\"\n )\n }\n }\n const opts: IComputedValueOptions<any> = isPlainObject(arg2) ? arg2 : {}\n opts.get = arg1\n opts.name ||= arg1.name || \"\" /* for generated name */\n\n return new ComputedValue(opts)\n} as any\n\nObject.assign(computed, computedAnnotation)\n\ncomputed.struct = createDecoratorAnnotation(computedStructAnnotation)\n","import {\n IDerivation,\n endBatch,\n globalState,\n isSpyEnabled,\n spyReportEnd,\n spyReportStart,\n startBatch,\n untrackedEnd,\n untrackedStart,\n isFunction,\n allowStateReadsStart,\n allowStateReadsEnd,\n ACTION,\n EMPTY_ARRAY,\n die,\n getDescriptor\n} from \"../internal\"\n\n// we don't use globalState for these in order to avoid possible issues with multiple\n// mobx versions\nlet currentActionId = 0\nlet nextActionId = 1\nconst isFunctionNameConfigurable = getDescriptor(() => {}, \"name\")?.configurable ?? false\n\n// we can safely recycle this object\nconst tmpNameDescriptor: PropertyDescriptor = {\n value: \"action\",\n configurable: true,\n writable: false,\n enumerable: false\n}\n\nexport function createAction(\n actionName: string,\n fn: Function,\n autoAction: boolean = false,\n ref?: Object\n): Function {\n if (__DEV__) {\n if (!isFunction(fn)) {\n die(\"`action` can only be invoked on functions\")\n }\n if (typeof actionName !== \"string\" || !actionName) {\n die(`actions should have valid names, got: '${actionName}'`)\n }\n }\n function res() {\n return executeAction(actionName, autoAction, fn, ref || this, arguments)\n }\n res.isMobxAction = true\n if (isFunctionNameConfigurable) {\n tmpNameDescriptor.value = actionName\n Object.defineProperty(res, \"name\", tmpNameDescriptor)\n }\n return res\n}\n\nexport function executeAction(\n actionName: string,\n canRunAsDerivation: boolean,\n fn: Function,\n scope?: any,\n args?: IArguments\n) {\n const runInfo = _startAction(actionName, canRunAsDerivation, scope, args)\n try {\n return fn.apply(scope, args)\n } catch (err) {\n runInfo.error_ = err\n throw err\n } finally {\n _endAction(runInfo)\n }\n}\n\nexport interface IActionRunInfo {\n prevDerivation_: IDerivation | null\n prevAllowStateChanges_: boolean\n prevAllowStateReads_: boolean\n notifySpy_: boolean\n startTime_: number\n error_?: any\n parentActionId_: number\n actionId_: number\n runAsAction_?: boolean\n}\n\nexport function _startAction(\n actionName: string,\n canRunAsDerivation: boolean, // true for autoAction\n scope: any,\n args?: IArguments\n): IActionRunInfo {\n const notifySpy_ = __DEV__ && isSpyEnabled() && !!actionName\n let startTime_: number = 0\n if (__DEV__ && notifySpy_) {\n startTime_ = Date.now()\n const flattenedArgs = args ? Array.from(args) : EMPTY_ARRAY\n spyReportStart({\n type: ACTION,\n name: actionName,\n object: scope,\n arguments: flattenedArgs\n })\n }\n const prevDerivation_ = globalState.trackingDerivation\n const runAsAction = !canRunAsDerivation || !prevDerivation_\n startBatch()\n let prevAllowStateChanges_ = globalState.allowStateChanges // by default preserve previous allow\n if (runAsAction) {\n untrackedStart()\n prevAllowStateChanges_ = allowStateChangesStart(true)\n }\n const prevAllowStateReads_ = allowStateReadsStart(true)\n const runInfo = {\n runAsAction_: runAsAction,\n prevDerivation_,\n prevAllowStateChanges_,\n prevAllowStateReads_,\n notifySpy_,\n startTime_,\n actionId_: nextActionId++,\n parentActionId_: currentActionId\n }\n currentActionId = runInfo.actionId_\n return runInfo\n}\n\nexport function _endAction(runInfo: IActionRunInfo) {\n if (currentActionId !== runInfo.actionId_) {\n die(30)\n }\n currentActionId = runInfo.parentActionId_\n\n if (runInfo.error_ !== undefined) {\n globalState.suppressReactionErrors = true\n }\n allowStateChangesEnd(runInfo.prevAllowStateChanges_)\n allowStateReadsEnd(runInfo.prevAllowStateReads_)\n endBatch()\n if (runInfo.runAsAction_) {\n untrackedEnd(runInfo.prevDerivation_)\n }\n if (__DEV__ && runInfo.notifySpy_) {\n spyReportEnd({ time: Date.now() - runInfo.startTime_ })\n }\n globalState.suppressReactionErrors = false\n}\n\nexport function allowStateChanges<T>(allowStateChanges: boolean, func: () => T): T {\n const prev = allowStateChangesStart(allowStateChanges)\n try {\n return func()\n } finally {\n allowStateChangesEnd(prev)\n }\n}\n\nexport function allowStateChangesStart(allowStateChanges: boolean) {\n const prev = globalState.allowStateChanges\n globalState.allowStateChanges = allowStateChanges\n return prev\n}\n\nexport function allowStateChangesEnd(prev: boolean) {\n globalState.allowStateChanges = prev\n}\n","import {\n Atom,\n IEnhancer,\n IInterceptable,\n IEqualsComparer,\n IInterceptor,\n IListenable,\n Lambda,\n checkIfStateModificationsAreAllowed,\n comparer,\n createInstanceofPredicate,\n getNextId,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isSpyEnabled,\n notifyListeners,\n registerInterceptor,\n registerListener,\n spyReport,\n spyReportEnd,\n spyReportStart,\n toPrimitive,\n globalState,\n IUNCHANGED,\n UPDATE\n} from \"../internal\"\n\nexport interface IValueWillChange<T> {\n object: IObservableValue<T>\n type: \"update\"\n newValue: T\n}\n\nexport type IValueDidChange<T = any> = {\n type: \"update\"\n observableKind: \"value\"\n object: IObservableValue<T>\n debugObjectName: string\n newValue: unknown\n oldValue: unknown\n}\nexport type IBoxDidChange<T = any> =\n | {\n type: \"create\"\n observableKind: \"value\"\n object: IObservableValue<T>\n debugObjectName: string\n newValue: unknown\n }\n | IValueDidChange<T>\n\nexport interface IObservableValue<T> {\n get(): T\n set(value: T): void\n intercept_(handler: IInterceptor<IValueWillChange<T>>): Lambda\n observe_(listener: (change: IValueDidChange<T>) => void, fireImmediately?: boolean): Lambda\n}\n\nconst CREATE = \"create\"\n\nexport class ObservableValue<T>\n extends Atom\n implements IObservableValue<T>, IInterceptable<IValueWillChange<T>>, IListenable\n{\n hasUnreportedChange_ = false\n interceptors_\n changeListeners_\n value_\n dehancer: any\n\n constructor(\n value: T,\n public enhancer: IEnhancer<T>,\n public name_ = __DEV__ ? \"ObservableValue@\" + getNextId() : \"ObservableValue\",\n notifySpy = true,\n private equals: IEqualsComparer<any> = comparer.default\n ) {\n super(name_)\n this.value_ = enhancer(value, undefined, name_)\n if (__DEV__ && notifySpy && isSpyEnabled()) {\n // only notify spy if this is a stand-alone observable\n spyReport({\n type: CREATE,\n object: this,\n observableKind: \"value\",\n debugObjectName: this.name_,\n newValue: \"\" + this.value_\n })\n }\n }\n\n private dehanceValue(value: T): T {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n public set(newValue: T) {\n const oldValue = this.value_\n newValue = this.prepareNewValue_(newValue) as any\n if (newValue !== globalState.UNCHANGED) {\n const notifySpy = isSpyEnabled()\n if (__DEV__ && notifySpy) {\n spyReportStart({\n type: UPDATE,\n object: this,\n observableKind: \"value\",\n debugObjectName: this.name_,\n newValue,\n oldValue\n })\n }\n this.setNewValue_(newValue)\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n }\n\n private prepareNewValue_(newValue): T | IUNCHANGED {\n checkIfStateModificationsAreAllowed(this)\n if (hasInterceptors(this)) {\n const change = interceptChange<IValueWillChange<T>>(this, {\n object: this,\n type: UPDATE,\n newValue\n })\n if (!change) {\n return globalState.UNCHANGED\n }\n newValue = change.newValue\n }\n // apply modifier\n newValue = this.enhancer(newValue, this.value_, this.name_)\n return this.equals(this.value_, newValue) ? globalState.UNCHANGED : newValue\n }\n\n setNewValue_(newValue: T) {\n const oldValue = this.value_\n this.value_ = newValue\n this.reportChanged()\n if (hasListeners(this)) {\n notifyListeners(this, {\n type: UPDATE,\n object: this,\n newValue,\n oldValue\n })\n }\n }\n\n public get(): T {\n this.reportObserved()\n return this.dehanceValue(this.value_)\n }\n\n intercept_(handler: IInterceptor<IValueWillChange<T>>): Lambda {\n return registerInterceptor(this, handler)\n }\n\n observe_(listener: (change: IValueDidChange<T>) => void, fireImmediately?: boolean): Lambda {\n if (fireImmediately) {\n listener({\n observableKind: \"value\",\n debugObjectName: this.name_,\n object: this,\n type: UPDATE,\n newValue: this.value_,\n oldValue: undefined\n })\n }\n return registerListener(this, listener)\n }\n\n raw() {\n // used by MST ot get undehanced value\n return this.value_\n }\n\n toJSON() {\n return this.get()\n }\n\n toString() {\n return `${this.name_}[${this.value_}]`\n }\n\n valueOf(): T {\n return toPrimitive(this.get())\n }\n\n [Symbol.toPrimitive]() {\n return this.valueOf()\n }\n}\n\nexport const isObservableValue = createInstanceofPredicate(\"ObservableValue\", ObservableValue) as (\n x: any\n) => x is IObservableValue<any>\n","import {\n CaughtException,\n IDerivation,\n IDerivationState_,\n IEqualsComparer,\n IObservable,\n Lambda,\n TraceMode,\n autorun,\n clearObserving,\n comparer,\n createAction,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n globalState,\n isCaughtException,\n isSpyEnabled,\n propagateChangeConfirmed,\n propagateMaybeChanged,\n reportObserved,\n shouldCompute,\n spyReport,\n startBatch,\n toPrimitive,\n trackDerivedFunction,\n untrackedEnd,\n untrackedStart,\n UPDATE,\n die,\n allowStateChangesStart,\n allowStateChangesEnd\n} from \"../internal\"\n\nexport interface IComputedValue<T> {\n get(): T\n set(value: T): void\n observe_(listener: (change: IComputedDidChange<T>) => void, fireImmediately?: boolean): Lambda\n}\n\nexport interface IComputedValueOptions<T> {\n get?: () => T\n set?: (value: T) => void\n name?: string\n equals?: IEqualsComparer<T>\n context?: any\n requiresReaction?: boolean\n keepAlive?: boolean\n}\n\nexport type IComputedDidChange<T = any> = {\n type: \"update\"\n observableKind: \"computed\"\n object: unknown\n debugObjectName: string\n newValue: T\n oldValue: T | undefined\n}\n\n/**\n * A node in the state dependency root that observes other nodes, and can be observed itself.\n *\n * ComputedValue will remember the result of the computation for the duration of the batch, or\n * while being observed.\n *\n * During this time it will recompute only when one of its direct dependencies changed,\n * but only when it is being accessed with `ComputedValue.get()`.\n *\n * Implementation description:\n * 1. First time it's being accessed it will compute and remember result\n * give back remembered result until 2. happens\n * 2. First time any deep dependency change, propagate POSSIBLY_STALE to all observers, wait for 3.\n * 3. When it's being accessed, recompute if any shallow dependency changed.\n * if result changed: propagate STALE to all observers, that were POSSIBLY_STALE from the last step.\n * go to step 2. either way\n *\n * If at any point it's outside batch and it isn't observed: reset everything and go to 1.\n */\nexport class ComputedValue<T> implements IObservable, IComputedValue<T>, IDerivation {\n dependenciesState_ = IDerivationState_.NOT_TRACKING_\n observing_: IObservable[] = [] // nodes we are looking at. Our value depends on these nodes\n newObserving_ = null // during tracking it's an array with new observed observers\n isBeingObserved_ = false\n isPendingUnobservation_: boolean = false\n observers_ = new Set<IDerivation>()\n diffValue_ = 0\n runId_ = 0\n lastAccessedBy_ = 0\n lowestObserverState_ = IDerivationState_.UP_TO_DATE_\n unboundDepsCount_ = 0\n protected value_: T | undefined | CaughtException = new CaughtException(null)\n name_: string\n triggeredBy_?: string\n isComputing_: boolean = false // to check for cycles\n isRunningSetter_: boolean = false\n derivation: () => T // N.B: unminified as it is used by MST\n setter_?: (value: T) => void\n isTracing_: TraceMode = TraceMode.NONE\n scope_: Object | undefined\n private equals_: IEqualsComparer<any>\n private requiresReaction_: boolean | undefined\n keepAlive_: boolean\n\n /**\n * Create a new computed value based on a function expression.\n *\n * The `name` property is for debug purposes only.\n *\n * The `equals` property specifies the comparer function to use to determine if a newly produced\n * value differs from the previous value. Two comparers are provided in the library; `defaultComparer`\n * compares based on identity comparison (===), and `structuralComparer` deeply compares the structure.\n * Structural comparison can be convenient if you always produce a new aggregated object and\n * don't want to notify observers if it is structurally the same.\n * This is useful for working with vectors, mouse coordinates etc.\n */\n constructor(options: IComputedValueOptions<T>) {\n if (!options.get) {\n die(31)\n }\n this.derivation = options.get!\n this.name_ = options.name || (__DEV__ ? \"ComputedValue@\" + getNextId() : \"ComputedValue\")\n if (options.set) {\n this.setter_ = createAction(\n __DEV__ ? this.name_ + \"-setter\" : \"ComputedValue-setter\",\n options.set\n ) as any\n }\n this.equals_ =\n options.equals ||\n ((options as any).compareStructural || (options as any).struct\n ? comparer.structural\n : comparer.default)\n this.scope_ = options.context\n this.requiresReaction_ = options.requiresReaction\n this.keepAlive_ = !!options.keepAlive\n }\n\n onBecomeStale_() {\n propagateMaybeChanged(this)\n }\n\n public onBOL: Set<Lambda> | undefined\n public onBUOL: Set<Lambda> | undefined\n\n public onBO() {\n if (this.onBOL) {\n this.onBOL.forEach(listener => listener())\n }\n }\n\n public onBUO() {\n if (this.onBUOL) {\n this.onBUOL.forEach(listener => listener())\n }\n }\n\n /**\n * Returns the current value of this computed value.\n * Will evaluate its computation first if needed.\n */\n public get(): T {\n if (this.isComputing_) {\n die(32, this.name_, this.derivation)\n }\n if (\n globalState.inBatch === 0 &&\n // !globalState.trackingDerivatpion &&\n this.observers_.size === 0 &&\n !this.keepAlive_\n ) {\n if (shouldCompute(this)) {\n this.warnAboutUntrackedRead_()\n startBatch() // See perf test 'computed memoization'\n this.value_ = this.computeValue_(false)\n endBatch()\n }\n } else {\n reportObserved(this)\n if (shouldCompute(this)) {\n let prevTrackingContext = globalState.trackingContext\n if (this.keepAlive_ && !prevTrackingContext) {\n globalState.trackingContext = this\n }\n if (this.trackAndCompute()) {\n propagateChangeConfirmed(this)\n }\n globalState.trackingContext = prevTrackingContext\n }\n }\n const result = this.value_!\n\n if (isCaughtException(result)) {\n throw result.cause\n }\n return result\n }\n\n public set(value: T) {\n if (this.setter_) {\n if (this.isRunningSetter_) {\n die(33, this.name_)\n }\n this.isRunningSetter_ = true\n try {\n this.setter_.call(this.scope_, value)\n } finally {\n this.isRunningSetter_ = false\n }\n } else {\n die(34, this.name_)\n }\n }\n\n trackAndCompute(): boolean {\n // N.B: unminified as it is used by MST\n const oldValue = this.value_\n const wasSuspended =\n /* see #1208 */ this.dependenciesState_ === IDerivationState_.NOT_TRACKING_\n const newValue = this.computeValue_(true)\n\n const changed =\n wasSuspended ||\n isCaughtException(oldValue) ||\n isCaughtException(newValue) ||\n !this.equals_(oldValue, newValue)\n\n if (changed) {\n this.value_ = newValue\n\n if (__DEV__ && isSpyEnabled()) {\n spyReport({\n observableKind: \"computed\",\n debugObjectName: this.name_,\n object: this.scope_,\n type: \"update\",\n oldValue,\n newValue\n } as IComputedDidChange)\n }\n }\n\n return changed\n }\n\n computeValue_(track: boolean) {\n this.isComputing_ = true\n // don't allow state changes during computation\n const prev = allowStateChangesStart(false)\n let res: T | CaughtException\n if (track) {\n res = trackDerivedFunction(this, this.derivation, this.scope_)\n } else {\n if (globalState.disableErrorBoundaries === true) {\n res = this.derivation.call(this.scope_)\n } else {\n try {\n res = this.derivation.call(this.scope_)\n } catch (e) {\n res = new CaughtException(e)\n }\n }\n }\n allowStateChangesEnd(prev)\n this.isComputing_ = false\n return res\n }\n\n suspend_() {\n if (!this.keepAlive_) {\n clearObserving(this)\n this.value_ = undefined // don't hold on to computed value!\n if (__DEV__ && this.isTracing_ !== TraceMode.NONE) {\n console.log(\n `[mobx.trace] Computed value '${this.name_}' was suspended and it will recompute on the next access.`\n )\n }\n }\n }\n\n observe_(listener: (change: IComputedDidChange<T>) => void, fireImmediately?: boolean): Lambda {\n let firstTime = true\n let prevValue: T | undefined = undefined\n return autorun(() => {\n // TODO: why is this in a different place than the spyReport() function? in all other observables it's called in the same place\n let newValue = this.get()\n if (!firstTime || fireImmediately) {\n const prevU = untrackedStart()\n listener({\n observableKind: \"computed\",\n debugObjectName: this.name_,\n type: UPDATE,\n object: this,\n newValue,\n oldValue: prevValue\n })\n untrackedEnd(prevU)\n }\n firstTime = false\n prevValue = newValue\n })\n }\n\n warnAboutUntrackedRead_() {\n if (!__DEV__) {\n return\n }\n if (this.isTracing_ !== TraceMode.NONE) {\n console.log(\n `[mobx.trace] Computed value '${this.name_}' is being read outside a reactive context. Doing a full recompute.`\n )\n }\n if (\n typeof this.requiresReaction_ === \"boolean\"\n ? this.requiresReaction_\n : globalState.computedRequiresReaction\n ) {\n console.warn(\n `[mobx] Computed value '${this.name_}' is being read outside a reactive context. Doing a full recompute.`\n )\n }\n }\n\n toString() {\n return `${this.name_}[${this.derivation.toString()}]`\n }\n\n valueOf(): T {\n return toPrimitive(this.get())\n }\n\n [Symbol.toPrimitive]() {\n return this.valueOf()\n }\n}\n\nexport const isComputedValue = createInstanceofPredicate(\"ComputedValue\", ComputedValue)\n","import {\n IAtom,\n IDepTreeNode,\n IObservable,\n addObserver,\n globalState,\n isComputedValue,\n removeObserver\n} from \"../internal\"\n\nexport enum IDerivationState_ {\n // before being run or (outside batch and not being observed)\n // at this point derivation is not holding any data about dependency tree\n NOT_TRACKING_ = -1,\n // no shallow dependency changed since last computation\n // won't recalculate derivation\n // this is what makes mobx fast\n UP_TO_DATE_ = 0,\n // some deep dependency changed, but don't know if shallow dependency changed\n // will require to check first if UP_TO_DATE or POSSIBLY_STALE\n // currently only ComputedValue will propagate POSSIBLY_STALE\n //\n // having this state is second big optimization:\n // don't have to recompute on every dependency change, but only when it's needed\n POSSIBLY_STALE_ = 1,\n // A shallow dependency has changed since last computation and the derivation\n // will need to recompute when it's needed next.\n STALE_ = 2\n}\n\nexport enum TraceMode {\n NONE,\n LOG,\n BREAK\n}\n\n/**\n * A derivation is everything that can be derived from the state (all the atoms) in a pure manner.\n * See https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74\n */\nexport interface IDerivation extends IDepTreeNode {\n observing_: IObservable[]\n newObserving_: null | IObservable[]\n dependenciesState_: IDerivationState_\n /**\n * Id of the current run of a derivation. Each time the derivation is tracked\n * this number is increased by one. This number is globally unique\n */\n runId_: number\n /**\n * amount of dependencies used by the derivation in this run, which has not been bound yet.\n */\n unboundDepsCount_: number\n onBecomeStale_(): void\n isTracing_: TraceMode\n\n /**\n * warn if the derivation has no dependencies after creation/update\n */\n requiresObservable_?: boolean\n}\n\nexport class CaughtException {\n constructor(public cause: any) {\n // Empty\n }\n}\n\nexport function isCaughtException(e: any): e is CaughtException {\n return e instanceof CaughtException\n}\n\n/**\n * Finds out whether any dependency of the derivation has actually changed.\n * If dependenciesState is 1 then it will recalculate dependencies,\n * if any dependency changed it will propagate it by changing dependenciesState to 2.\n *\n * By iterating over the dependencies in the same order that they were reported and\n * stopping on the first change, all the recalculations are only called for ComputedValues\n * that will be tracked by derivation. That is because we assume that if the first x\n * dependencies of the derivation doesn't change then the derivation should run the same way\n * up until accessing x-th dependency.\n */\nexport function shouldCompute(derivation: IDerivation): boolean {\n switch (derivation.dependenciesState_) {\n case IDerivationState_.UP_TO_DATE_:\n return false\n case IDerivationState_.NOT_TRACKING_:\n case IDerivationState_.STALE_:\n return true\n case IDerivationState_.POSSIBLY_STALE_: {\n // state propagation can occur outside of action/reactive context #2195\n const prevAllowStateReads = allowStateReadsStart(true)\n const prevUntracked = untrackedStart() // no need for those computeds to be reported, they will be picked up in trackDerivedFunction.\n const obs = derivation.observing_,\n l = obs.length\n for (let i = 0; i < l; i++) {\n const obj = obs[i]\n if (isComputedValue(obj)) {\n if (globalState.disableErrorBoundaries) {\n obj.get()\n } else {\n try {\n obj.get()\n } catch (e) {\n // we are not interested in the value *or* exception at this moment, but if there is one, notify all\n untrackedEnd(prevUntracked)\n allowStateReadsEnd(prevAllowStateReads)\n return true\n }\n }\n // if ComputedValue `obj` actually changed it will be computed and propagated to its observers.\n // and `derivation` is an observer of `obj`\n // invariantShouldCompute(derivation)\n if ((derivation.dependenciesState_ as any) === IDerivationState_.STALE_) {\n untrackedEnd(prevUntracked)\n allowStateReadsEnd(prevAllowStateReads)\n return true\n }\n }\n }\n changeDependenciesStateTo0(derivation)\n untrackedEnd(prevUntracked)\n allowStateReadsEnd(prevAllowStateReads)\n return false\n }\n }\n}\n\nexport function isComputingDerivation() {\n return globalState.trackingDerivation !== null // filter out actions inside computations\n}\n\nexport function checkIfStateModificationsAreAllowed(atom: IAtom) {\n if (!__DEV__) {\n return\n }\n const hasObservers = atom.observers_.size > 0\n // Should not be possible to change observed state outside strict mode, except during initialization, see #563\n if (\n !globalState.allowStateChanges &&\n (hasObservers || globalState.enforceActions === \"always\")\n ) {\n console.warn(\n \"[MobX] \" +\n (globalState.enforceActions\n ? \"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: \"\n : \"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: \") +\n atom.name_\n )\n }\n}\n\nexport function checkIfStateReadsAreAllowed(observable: IObservable) {\n if (__DEV__ && !globalState.allowStateReads && globalState.observableRequiresReaction) {\n console.warn(\n `[mobx] Observable '${observable.name_}' being read outside a reactive context.`\n )\n }\n}\n\n/**\n * Executes the provided function `f` and tracks which observables are being accessed.\n * The tracking information is stored on the `derivation` object and the derivation is registered\n * as observer of any of the accessed observables.\n */\nexport function trackDerivedFunction<T>(derivation: IDerivation, f: () => T, context: any) {\n const prevAllowStateReads = allowStateReadsStart(true)\n // pre allocate array allocation + room for variation in deps\n // array will be trimmed by bindDependencies\n changeDependenciesStateTo0(derivation)\n derivation.newObserving_ = new Array(derivation.observing_.length + 100)\n derivation.unboundDepsCount_ = 0\n derivation.runId_ = ++globalState.runId\n const prevTracking = globalState.trackingDerivation\n globalState.trackingDerivation = derivation\n globalState.inBatch++\n let result\n if (globalState.disableErrorBoundaries === true) {\n result = f.call(context)\n } else {\n try {\n result = f.call(context)\n } catch (e) {\n result = new CaughtException(e)\n }\n }\n globalState.inBatch--\n globalState.trackingDerivation = prevTracking\n bindDependencies(derivation)\n\n warnAboutDerivationWithoutDependencies(derivation)\n allowStateReadsEnd(prevAllowStateReads)\n return result\n}\n\nfunction warnAboutDerivationWithoutDependencies(derivation: IDerivation) {\n if (!__DEV__) {\n return\n }\n\n if (derivation.observing_.length !== 0) {\n return\n }\n\n if (\n typeof derivation.requiresObservable_ === \"boolean\"\n ? derivation.requiresObservable_\n : globalState.reactionRequiresObservable\n ) {\n console.warn(\n `[mobx] Derivation '${derivation.name_}' is created/updated without reading any observable value.`\n )\n }\n}\n\n/**\n * diffs newObserving with observing.\n * update observing to be newObserving with unique observables\n * notify observers that become observed/unobserved\n */\nfunction bindDependencies(derivation: IDerivation) {\n // invariant(derivation.dependenciesState !== IDerivationState.NOT_TRACKING, \"INTERNAL ERROR bindDependencies expects derivation.dependenciesState !== -1\");\n const prevObserving = derivation.observing_\n const observing = (derivation.observing_ = derivation.newObserving_!)\n let lowestNewObservingDerivationState = IDerivationState_.UP_TO_DATE_\n\n // Go through all new observables and check diffValue: (this list can contain duplicates):\n // 0: first occurrence, change to 1 and keep it\n // 1: extra occurrence, drop it\n let i0 = 0,\n l = derivation.unboundDepsCount_\n for (let i = 0; i < l; i++) {\n const dep = observing[i]\n if (dep.diffValue_ === 0) {\n dep.diffValue_ = 1\n if (i0 !== i) {\n observing[i0] = dep\n }\n i0++\n }\n\n // Upcast is 'safe' here, because if dep is IObservable, `dependenciesState` will be undefined,\n // not hitting the condition\n if ((dep as any as IDerivation).dependenciesState_ > lowestNewObservingDerivationState) {\n lowestNewObservingDerivationState = (dep as any as IDerivation).dependenciesState_\n }\n }\n observing.length = i0\n\n derivation.newObserving_ = null // newObserving shouldn't be needed outside tracking (statement moved down to work around FF bug, see #614)\n\n // Go through all old observables and check diffValue: (it is unique after last bindDependencies)\n // 0: it's not in new observables, unobserve it\n // 1: it keeps being observed, don't want to notify it. change to 0\n l = prevObserving.length\n while (l--) {\n const dep = prevObserving[l]\n if (dep.diffValue_ === 0) {\n removeObserver(dep, derivation)\n }\n dep.diffValue_ = 0\n }\n\n // Go through all new observables and check diffValue: (now it should be unique)\n // 0: it was set to 0 in last loop. don't need to do anything.\n // 1: it wasn't observed, let's observe it. set back to 0\n while (i0--) {\n const dep = observing[i0]\n if (dep.diffValue_ === 1) {\n dep.diffValue_ = 0\n addObserver(dep, derivation)\n }\n }\n\n // Some new observed derivations may become stale during this derivation computation\n // so they have had no chance to propagate staleness (#916)\n if (lowestNewObservingDerivationState !== IDerivationState_.UP_TO_DATE_) {\n derivation.dependenciesState_ = lowestNewObservingDerivationState\n derivation.onBecomeStale_()\n }\n}\n\nexport function clearObserving(derivation: IDerivation) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR clearObserving should be called only inside batch\");\n const obs = derivation.observing_\n derivation.observing_ = []\n let i = obs.length\n while (i--) {\n removeObserver(obs[i], derivation)\n }\n\n derivation.dependenciesState_ = IDerivationState_.NOT_TRACKING_\n}\n\nexport function untracked<T>(action: () => T): T {\n const prev = untrackedStart()\n try {\n return action()\n } finally {\n untrackedEnd(prev)\n }\n}\n\nexport function untrackedStart(): IDerivation | null {\n const prev = globalState.trackingDerivation\n globalState.trackingDerivation = null\n return prev\n}\n\nexport function untrackedEnd(prev: IDerivation | null) {\n globalState.trackingDerivation = prev\n}\n\nexport function allowStateReadsStart(allowStateReads: boolean) {\n const prev = globalState.allowStateReads\n globalState.allowStateReads = allowStateReads\n return prev\n}\n\nexport function allowStateReadsEnd(prev: boolean) {\n globalState.allowStateReads = prev\n}\n\n/**\n * needed to keep `lowestObserverState` correct. when changing from (2 or 1) to 0\n *\n */\nexport function changeDependenciesStateTo0(derivation: IDerivation) {\n if (derivation.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n return\n }\n derivation.dependenciesState_ = IDerivationState_.UP_TO_DATE_\n\n const obs = derivation.observing_\n let i = obs.length\n while (i--) {\n obs[i].lowestObserverState_ = IDerivationState_.UP_TO_DATE_\n }\n}\n","import {\n Lambda,\n ComputedValue,\n IDependencyTree,\n IDerivation,\n IDerivationState_,\n TraceMode,\n getDependencyTree,\n globalState,\n runReactions,\n checkIfStateReadsAreAllowed\n} from \"../internal\"\n\nexport interface IDepTreeNode {\n name_: string\n observing_?: IObservable[]\n}\n\nexport interface IObservable extends IDepTreeNode {\n diffValue_: number\n /**\n * Id of the derivation *run* that last accessed this observable.\n * If this id equals the *run* id of the current derivation,\n * the dependency is already established\n */\n lastAccessedBy_: number\n isBeingObserved_: boolean\n\n lowestObserverState_: IDerivationState_ // Used to avoid redundant propagations\n isPendingUnobservation_: boolean // Used to push itself to global.pendingUnobservations at most once per batch.\n\n observers_: Set<IDerivation>\n\n onBUO(): void\n onBO(): void\n\n onBUOL: Set<Lambda> | undefined\n onBOL: Set<Lambda> | undefined\n}\n\nexport function hasObservers(observable: IObservable): boolean {\n return observable.observers_ && observable.observers_.size > 0\n}\n\nexport function getObservers(observable: IObservable): Set<IDerivation> {\n return observable.observers_\n}\n\n// function invariantObservers(observable: IObservable) {\n// const list = observable.observers\n// const map = observable.observersIndexes\n// const l = list.length\n// for (let i = 0; i < l; i++) {\n// const id = list[i].__mapid\n// if (i) {\n// invariant(map[id] === i, \"INTERNAL ERROR maps derivation.__mapid to index in list\") // for performance\n// } else {\n// invariant(!(id in map), \"INTERNAL ERROR observer on index 0 shouldn't be held in map.\") // for performance\n// }\n// }\n// invariant(\n// list.length === 0 || Object.keys(map).length === list.length - 1,\n// \"INTERNAL ERROR there is no junk in map\"\n// )\n// }\nexport function addObserver(observable: IObservable, node: IDerivation) {\n // invariant(node.dependenciesState !== -1, \"INTERNAL ERROR, can add only dependenciesState !== -1\");\n // invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR add already added node\");\n // invariantObservers(observable);\n\n observable.observers_.add(node)\n if (observable.lowestObserverState_ > node.dependenciesState_) {\n observable.lowestObserverState_ = node.dependenciesState_\n }\n\n // invariantObservers(observable);\n // invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR didn't add node\");\n}\n\nexport function removeObserver(observable: IObservable, node: IDerivation) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR, remove should be called only inside batch\");\n // invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR remove already removed node\");\n // invariantObservers(observable);\n observable.observers_.delete(node)\n if (observable.observers_.size === 0) {\n // deleting last observer\n queueForUnobservation(observable)\n }\n // invariantObservers(observable);\n // invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR remove already removed node2\");\n}\n\nexport function queueForUnobservation(observable: IObservable) {\n if (observable.isPendingUnobservation_ === false) {\n // invariant(observable._observers.length === 0, \"INTERNAL ERROR, should only queue for unobservation unobserved observables\");\n observable.isPendingUnobservation_ = true\n globalState.pendingUnobservations.push(observable)\n }\n}\n\n/**\n * Batch starts a transaction, at least for purposes of memoizing ComputedValues when nothing else does.\n * During a batch `onBecomeUnobserved` will be called at most once per observable.\n * Avoids unnecessary recalculations.\n */\nexport function startBatch() {\n globalState.inBatch++\n}\n\nexport function endBatch() {\n if (--globalState.inBatch === 0) {\n runReactions()\n // the batch is actually about to finish, all unobserving should happen here.\n const list = globalState.pendingUnobservations\n for (let i = 0; i < list.length; i++) {\n const observable = list[i]\n observable.isPendingUnobservation_ = false\n if (observable.observers_.size === 0) {\n if (observable.isBeingObserved_) {\n // if this observable had reactive observers, trigger the hooks\n observable.isBeingObserved_ = false\n observable.onBUO()\n }\n if (observable instanceof ComputedValue) {\n // computed values are automatically teared down when the last observer leaves\n // this process happens recursively, this computed might be the last observabe of another, etc..\n observable.suspend_()\n }\n }\n }\n globalState.pendingUnobservations = []\n }\n}\n\nexport function reportObserved(observable: IObservable): boolean {\n checkIfStateReadsAreAllowed(observable)\n\n const derivation = globalState.trackingDerivation\n if (derivation !== null) {\n /**\n * Simple optimization, give each derivation run an unique id (runId)\n * Check if last time this observable was accessed the same runId is used\n * if this is the case, the relation is already known\n */\n if (derivation.runId_ !== observable.lastAccessedBy_) {\n observable.lastAccessedBy_ = derivation.runId_\n // Tried storing newObserving, or observing, or both as Set, but performance didn't come close...\n derivation.newObserving_![derivation.unboundDepsCount_++] = observable\n if (!observable.isBeingObserved_ && globalState.trackingContext) {\n observable.isBeingObserved_ = true\n observable.onBO()\n }\n }\n return observable.isBeingObserved_\n } else if (observable.observers_.size === 0 && globalState.inBatch > 0) {\n queueForUnobservation(observable)\n }\n\n return false\n}\n\n// function invariantLOS(observable: IObservable, msg: string) {\n// // it's expensive so better not run it in produciton. but temporarily helpful for testing\n// const min = getObservers(observable).reduce((a, b) => Math.min(a, b.dependenciesState), 2)\n// if (min >= observable.lowestObserverState) return // <- the only assumption about `lowestObserverState`\n// throw new Error(\n// \"lowestObserverState is wrong for \" +\n// msg +\n// \" because \" +\n// min +\n// \" < \" +\n// observable.lowestObserverState\n// )\n// }\n\n/**\n * NOTE: current propagation mechanism will in case of self reruning autoruns behave unexpectedly\n * It will propagate changes to observers from previous run\n * It's hard or maybe impossible (with reasonable perf) to get it right with current approach\n * Hopefully self reruning autoruns aren't a feature people should depend on\n * Also most basic use cases should be ok\n */\n\n// Called by Atom when its value changes\nexport function propagateChanged(observable: IObservable) {\n // invariantLOS(observable, \"changed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) {\n return\n }\n observable.lowestObserverState_ = IDerivationState_.STALE_\n\n // Ideally we use for..of here, but the downcompiled version is really slow...\n observable.observers_.forEach(d => {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n if (__DEV__ && d.isTracing_ !== TraceMode.NONE) {\n logTraceInfo(d, observable)\n }\n d.onBecomeStale_()\n }\n d.dependenciesState_ = IDerivationState_.STALE_\n })\n // invariantLOS(observable, \"changed end\");\n}\n\n// Called by ComputedValue when it recalculate and its value changed\nexport function propagateChangeConfirmed(observable: IObservable) {\n // invariantLOS(observable, \"confirmed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) {\n return\n }\n observable.lowestObserverState_ = IDerivationState_.STALE_\n\n observable.observers_.forEach(d => {\n if (d.dependenciesState_ === IDerivationState_.POSSIBLY_STALE_) {\n d.dependenciesState_ = IDerivationState_.STALE_\n if (__DEV__ && d.isTracing_ !== TraceMode.NONE) {\n logTraceInfo(d, observable)\n }\n } else if (\n d.dependenciesState_ === IDerivationState_.UP_TO_DATE_ // this happens during computing of `d`, just keep lowestObserverState up to date.\n ) {\n observable.lowestObserverState_ = IDerivationState_.UP_TO_DATE_\n }\n })\n // invariantLOS(observable, \"confirmed end\");\n}\n\n// Used by computed when its dependency changed, but we don't wan't to immediately recompute.\nexport function propagateMaybeChanged(observable: IObservable) {\n // invariantLOS(observable, \"maybe start\");\n if (observable.lowestObserverState_ !== IDerivationState_.UP_TO_DATE_) {\n return\n }\n observable.lowestObserverState_ = IDerivationState_.POSSIBLY_STALE_\n\n observable.observers_.forEach(d => {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n d.dependenciesState_ = IDerivationState_.POSSIBLY_STALE_\n d.onBecomeStale_()\n }\n })\n // invariantLOS(observable, \"maybe end\");\n}\n\nfunction logTraceInfo(derivation: IDerivation, observable: IObservable) {\n console.log(\n `[mobx.trace] '${derivation.name_}' is invalidated due to a change in: '${observable.name_}'`\n )\n if (derivation.isTracing_ === TraceMode.BREAK) {\n const lines = []\n printDepTree(getDependencyTree(derivation), lines, 1)\n\n // prettier-ignore\n new Function(\n`debugger;\n/*\nTracing '${derivation.name_}'\n\nYou are entering this break point because derivation '${derivation.name_}' is being traced and '${observable.name_}' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n${derivation instanceof ComputedValue ? derivation.derivation.toString().replace(/[*]\\//g, \"/\") : \"\"}\n\nThe dependencies for this derivation are:\n\n${lines.join(\"\\n\")}\n*/\n `)()\n }\n}\n\nfunction printDepTree(tree: IDependencyTree, lines: string[], depth: number) {\n if (lines.length >= 1000) {\n lines.push(\"(and many more)\")\n return\n }\n lines.push(`${\"\\t\".repeat(depth - 1)}${tree.name}`)\n if (tree.dependencies) {\n tree.dependencies.forEach(child => printDepTree(child, lines, depth + 1))\n }\n}\n","import { IDerivation, IObservable, Reaction, die, getGlobal } from \"../internal\"\nimport { ComputedValue } from \"./computedvalue\"\n\n/**\n * These values will persist if global state is reset\n */\nconst persistentKeys: (keyof MobXGlobals)[] = [\n \"mobxGuid\",\n \"spyListeners\",\n \"enforceActions\",\n \"computedRequiresReaction\",\n \"reactionRequiresObservable\",\n \"observableRequiresReaction\",\n \"allowStateReads\",\n \"disableErrorBoundaries\",\n \"runId\",\n \"UNCHANGED\",\n \"useProxies\"\n]\n\nexport type IUNCHANGED = {}\n\nexport class MobXGlobals {\n /**\n * MobXGlobals version.\n * MobX compatiblity with other versions loaded in memory as long as this version matches.\n * It indicates that the global state still stores similar information\n *\n * N.B: this version is unrelated to the package version of MobX, and is only the version of the\n * internal state storage of MobX, and can be the same across many different package versions\n */\n version = 6\n\n /**\n * globally unique token to signal unchanged\n */\n UNCHANGED: IUNCHANGED = {}\n\n /**\n * Currently running derivation\n */\n trackingDerivation: IDerivation | null = null\n\n /**\n * Currently running reaction. This determines if we currently have a reactive context.\n * (Tracking derivation is also set for temporal tracking of computed values inside actions,\n * but trackingReaction can only be set by a form of Reaction)\n */\n trackingContext: Reaction | ComputedValue<any> | null = null\n\n /**\n * Each time a derivation is tracked, it is assigned a unique run-id\n */\n runId = 0\n\n /**\n * 'guid' for general purpose. Will be persisted amongst resets.\n */\n mobxGuid = 0\n\n /**\n * Are we in a batch block? (and how many of them)\n */\n inBatch: number = 0\n\n /**\n * Observables that don't have observers anymore, and are about to be\n * suspended, unless somebody else accesses it in the same batch\n *\n * @type {IObservable[]}\n */\n pendingUnobservations: IObservable[] = []\n\n /**\n * List of scheduled, not yet executed, reactions.\n */\n pendingReactions: Reaction[] = []\n\n /**\n * Are we currently processing reactions?\n */\n isRunningReactions = false\n\n /**\n * Is it allowed to change observables at this point?\n * In general, MobX doesn't allow that when running computations and React.render.\n * To ensure that those functions stay pure.\n */\n allowStateChanges = false\n\n /**\n * Is it allowed to read observables at this point?\n * Used to hold the state needed for `observableRequiresReaction`\n */\n allowStateReads = true\n\n /**\n * If strict mode is enabled, state changes are by default not allowed\n */\n enforceActions: boolean | \"always\" = true\n\n /**\n * Spy callbacks\n */\n spyListeners: { (change: any): void }[] = []\n\n /**\n * Globally attached error handlers that react specifically to errors in reactions\n */\n globalReactionErrorHandlers: ((error: any, derivation: IDerivation) => void)[] = []\n\n /**\n * Warn if computed values are accessed outside a reactive context\n */\n computedRequiresReaction = false\n\n /**\n * (Experimental)\n * Warn if you try to create to derivation / reactive context without accessing any observable.\n */\n reactionRequiresObservable = false\n\n /**\n * (Experimental)\n * Warn if observables are accessed outside a reactive context\n */\n observableRequiresReaction = false\n\n /*\n * Don't catch and rethrow exceptions. This is useful for inspecting the state of\n * the stack when an exception occurs while debugging.\n */\n disableErrorBoundaries = false\n\n /*\n * If true, we are already handling an exception in an action. Any errors in reactions should be suppressed, as\n * they are not the cause, see: https://github.com/mobxjs/mobx/issues/1836\n */\n suppressReactionErrors = false\n\n useProxies = true\n /*\n * print warnings about code that would fail if proxies weren't available\n */\n verifyProxies = false\n\n /**\n * False forces all object's descriptors to\n * writable: true\n * configurable: true\n */\n safeDescriptors = true\n}\n\nlet canMergeGlobalState = true\nlet isolateCalled = false\n\nexport let globalState: MobXGlobals = (function () {\n let global = getGlobal()\n if (global.__mobxInstanceCount > 0 && !global.__mobxGlobals) {\n canMergeGlobalState = false\n }\n if (global.__mobxGlobals && global.__mobxGlobals.version !== new MobXGlobals().version) {\n canMergeGlobalState = false\n }\n\n if (!canMergeGlobalState) {\n // Because this is a IIFE we need to let isolateCalled a chance to change\n // so we run it after the event loop completed at least 1 iteration\n setTimeout(() => {\n if (!isolateCalled) {\n die(35)\n }\n }, 1)\n return new MobXGlobals()\n } else if (global.__mobxGlobals) {\n global.__mobxInstanceCount += 1\n if (!global.__mobxGlobals.UNCHANGED) {\n global.__mobxGlobals.UNCHANGED = {}\n } // make merge backward compatible\n return global.__mobxGlobals\n } else {\n global.__mobxInstanceCount = 1\n return (global.__mobxGlobals = new MobXGlobals())\n }\n})()\n\nexport function isolateGlobalState() {\n if (\n globalState.pendingReactions.length ||\n globalState.inBatch ||\n globalState.isRunningReactions\n ) {\n die(36)\n }\n isolateCalled = true\n if (canMergeGlobalState) {\n let global = getGlobal()\n if (--global.__mobxInstanceCount === 0) {\n global.__mobxGlobals = undefined\n }\n globalState = new MobXGlobals()\n }\n}\n\nexport function getGlobalState(): any {\n return globalState\n}\n\n/**\n * For testing purposes only; this will break the internal state of existing observables,\n * but can be used to get back at a stable state after throwing errors\n */\nexport function resetGlobalState() {\n const defaultGlobals = new MobXGlobals()\n for (let key in defaultGlobals) {\n if (persistentKeys.indexOf(key as any) === -1) {\n globalState[key] = defaultGlobals[key]\n }\n }\n globalState.allowStateChanges = !globalState.enforceActions\n}\n","import {\n $mobx,\n IDerivation,\n IDerivationState_,\n IObservable,\n Lambda,\n TraceMode,\n clearObserving,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n globalState,\n isCaughtException,\n isSpyEnabled,\n shouldCompute,\n spyReport,\n spyReportEnd,\n spyReportStart,\n startBatch,\n trace,\n trackDerivedFunction\n} from \"../internal\"\n\n/**\n * Reactions are a special kind of derivations. Several things distinguishes them from normal reactive computations\n *\n * 1) They will always run, whether they are used by other computations or not.\n * This means that they are very suitable for triggering side effects like logging, updating the DOM and making network requests.\n * 2) They are not observable themselves\n * 3) They will always run after any 'normal' derivations\n * 4) They are allowed to change the state and thereby triggering themselves again, as long as they make sure the state propagates to a stable state in a reasonable amount of iterations.\n *\n * The state machine of a Reaction is as follows:\n *\n * 1) after creating, the reaction should be started by calling `runReaction` or by scheduling it (see also `autorun`)\n * 2) the `onInvalidate` handler should somehow result in a call to `this.track(someFunction)`\n * 3) all observables accessed in `someFunction` will be observed by this reaction.\n * 4) as soon as some of the dependencies has changed the Reaction will be rescheduled for another run (after the current mutation or transaction). `isScheduled` will yield true once a dependency is stale and during this period\n * 5) `onInvalidate` will be called, and we are back at step 1.\n *\n */\n\nexport interface IReactionPublic {\n dispose(): void\n trace(enterBreakPoint?: boolean): void\n}\n\nexport interface IReactionDisposer {\n (): void\n $mobx: Reaction\n}\n\nexport class Reaction implements IDerivation, IReactionPublic {\n observing_: IObservable[] = [] // nodes we are looking at. Our value depends on these nodes\n newObserving_: IObservable[] = []\n dependenciesState_ = IDerivationState_.NOT_TRACKING_\n diffValue_ = 0\n runId_ = 0\n unboundDepsCount_ = 0\n isDisposed_ = false\n isScheduled_ = false\n isTrackPending_ = false\n isRunning_ = false\n isTracing_: TraceMode = TraceMode.NONE\n\n constructor(\n public name_: string = __DEV__ ? \"Reaction@\" + getNextId() : \"Reaction\",\n private onInvalidate_: () => void,\n private errorHandler_?: (error: any, derivation: IDerivation) => void,\n public requiresObservable_?\n ) {}\n\n onBecomeStale_() {\n this.schedule_()\n }\n\n schedule_() {\n if (!this.isScheduled_) {\n this.isScheduled_ = true\n globalState.pendingReactions.push(this)\n runReactions()\n }\n }\n\n isScheduled() {\n return this.isScheduled_\n }\n\n /**\n * internal, use schedule() if you intend to kick off a reaction\n */\n runReaction_() {\n if (!this.isDisposed_) {\n startBatch()\n this.isScheduled_ = false\n const prev = globalState.trackingContext\n globalState.trackingContext = this\n if (shouldCompute(this)) {\n this.isTrackPending_ = true\n\n try {\n this.onInvalidate_()\n if (__DEV__ && this.isTrackPending_ && isSpyEnabled()) {\n // onInvalidate didn't trigger track right away..\n spyReport({\n name: this.name_,\n type: \"scheduled-reaction\"\n })\n }\n } catch (e) {\n this.reportExceptionInDerivation_(e)\n }\n }\n globalState.trackingContext = prev\n endBatch()\n }\n }\n\n track(fn: () => void) {\n if (this.isDisposed_) {\n return\n // console.warn(\"Reaction already disposed\") // Note: Not a warning / error in mobx 4 either\n }\n startBatch()\n const notify = isSpyEnabled()\n let startTime\n if (__DEV__ && notify) {\n startTime = Date.now()\n spyReportStart({\n name: this.name_,\n type: \"reaction\"\n })\n }\n this.isRunning_ = true\n const prevReaction = globalState.trackingContext // reactions could create reactions...\n globalState.trackingContext = this\n const result = trackDerivedFunction(this, fn, undefined)\n globalState.trackingContext = prevReaction\n this.isRunning_ = false\n this.isTrackPending_ = false\n if (this.isDisposed_) {\n // disposed during last run. Clean up everything that was bound after the dispose call.\n clearObserving(this)\n }\n if (isCaughtException(result)) {\n this.reportExceptionInDerivation_(result.cause)\n }\n if (__DEV__ && notify) {\n spyReportEnd({\n time: Date.now() - startTime\n })\n }\n endBatch()\n }\n\n reportExceptionInDerivation_(error: any) {\n if (this.errorHandler_) {\n this.errorHandler_(error, this)\n return\n }\n\n if (globalState.disableErrorBoundaries) {\n throw error\n }\n\n const message = __DEV__\n ? `[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '${this}'`\n : `[mobx] uncaught error in '${this}'`\n if (!globalState.suppressReactionErrors) {\n console.error(message, error)\n /** If debugging brought you here, please, read the above message :-). Tnx! */\n } else if (__DEV__) { console.warn(`[mobx] (error in reaction '${this.name_}' suppressed, fix error of causing action below)`) } // prettier-ignore\n\n if (__DEV__ && isSpyEnabled()) {\n spyReport({\n type: \"error\",\n name: this.name_,\n message,\n error: \"\" + error\n })\n }\n\n globalState.globalReactionErrorHandlers.forEach(f => f(error, this))\n }\n\n dispose() {\n if (!this.isDisposed_) {\n this.isDisposed_ = true\n if (!this.isRunning_) {\n // if disposed while running, clean up later. Maybe not optimal, but rare case\n startBatch()\n clearObserving(this)\n endBatch()\n }\n }\n }\n\n getDisposer_(): IReactionDisposer {\n const r = this.dispose.bind(this) as IReactionDisposer\n r[$mobx] = this\n return r\n }\n\n toString() {\n return `Reaction[${this.name_}]`\n }\n\n trace(enterBreakPoint: boolean = false) {\n trace(this, enterBreakPoint)\n }\n}\n\nexport function onReactionError(handler: (error: any, derivation: IDerivation) => void): Lambda {\n globalState.globalReactionErrorHandlers.push(handler)\n return () => {\n const idx = globalState.globalReactionErrorHandlers.indexOf(handler)\n if (idx >= 0) {\n globalState.globalReactionErrorHandlers.splice(idx, 1)\n }\n }\n}\n\n/**\n * Magic number alert!\n * Defines within how many times a reaction is allowed to re-trigger itself\n * until it is assumed that this is gonna be a never ending loop...\n */\nconst MAX_REACTION_ITERATIONS = 100\n\nlet reactionScheduler: (fn: () => void) => void = f => f()\n\nexport function runReactions() {\n // Trampolining, if runReactions are already running, new reactions will be picked up\n if (globalState.inBatch > 0 || globalState.isRunningReactions) {\n return\n }\n reactionScheduler(runReactionsHelper)\n}\n\nfunction runReactionsHelper() {\n globalState.isRunningReactions = true\n const allReactions = globalState.pendingReactions\n let iterations = 0\n\n // While running reactions, new reactions might be triggered.\n // Hence we work with two variables and check whether\n // we converge to no remaining reactions after a while.\n while (allReactions.length > 0) {\n if (++iterations === MAX_REACTION_ITERATIONS) {\n console.error(\n __DEV__\n ? `Reaction doesn't converge to a stable state after ${MAX_REACTION_ITERATIONS} iterations.` +\n ` Probably there is a cycle in the reactive function: ${allReactions[0]}`\n : `[mobx] cycle in reaction: ${allReactions[0]}`\n )\n allReactions.splice(0) // clear reactions\n }\n let remainingReactions = allReactions.splice(0)\n for (let i = 0, l = remainingReactions.length; i < l; i++) {\n remainingReactions[i].runReaction_()\n }\n }\n globalState.isRunningReactions = false\n}\n\nexport const isReaction = createInstanceofPredicate(\"Reaction\", Reaction)\n\nexport function setReactionScheduler(fn: (f: () => void) => void) {\n const baseScheduler = reactionScheduler\n reactionScheduler = f => fn(() => baseScheduler(f))\n}\n","import { TraceMode, die, getAtom, globalState } from \"../internal\"\n\nexport function trace(thing?: any, prop?: string, enterBreakPoint?: boolean): void\nexport function trace(thing?: any, enterBreakPoint?: boolean): void\nexport function trace(enterBreakPoint?: boolean): void\nexport function trace(...args: any[]): void {\n if (!__DEV__) {\n die(`trace() is not available in production builds`)\n }\n let enterBreakPoint = false\n if (typeof args[args.length - 1] === \"boolean\") {\n enterBreakPoint = args.pop()\n }\n const derivation = getAtomFromArgs(args)\n if (!derivation) {\n return die(\n `'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly`\n )\n }\n if (derivation.isTracing_ === TraceMode.NONE) {\n console.log(`[mobx.trace] '${derivation.name_}' tracing enabled`)\n }\n derivation.isTracing_ = enterBreakPoint ? TraceMode.BREAK : TraceMode.LOG\n}\n\nfunction getAtomFromArgs(args): any {\n switch (args.length) {\n case 0:\n return globalState.trackingDerivation\n case 1:\n return getAtom(args[0])\n case 2:\n return getAtom(args[0], args[1])\n }\n}\n","import {\n createAction,\n executeAction,\n Annotation,\n storeAnnotation,\n die,\n isFunction,\n isStringish,\n createDecoratorAnnotation,\n createActionAnnotation\n} from \"../internal\"\n\nexport const ACTION = \"action\"\nexport const ACTION_BOUND = \"action.bound\"\nexport const AUTOACTION = \"autoAction\"\nexport const AUTOACTION_BOUND = \"autoAction.bound\"\n\nconst DEFAULT_ACTION_NAME = \"<unnamed action>\"\n\nconst actionAnnotation = createActionAnnotation(ACTION)\nconst actionBoundAnnotation = createActionAnnotation(ACTION_BOUND, {\n bound: true\n})\nconst autoActionAnnotation = createActionAnnotation(AUTOACTION, {\n autoAction: true\n})\nconst autoActionBoundAnnotation = createActionAnnotation(AUTOACTION_BOUND, {\n autoAction: true,\n bound: true\n})\n\nexport interface IActionFactory extends Annotation, PropertyDecorator {\n // nameless actions\n <T extends Function | undefined | null>(fn: T): T\n // named actions\n <T extends Function | undefined | null>(name: string, fn: T): T\n\n // named decorator\n (customName: string): PropertyDecorator & Annotation\n\n // decorator (name no longer supported)\n bound: Annotation & PropertyDecorator\n}\n\nfunction createActionFactory(autoAction: boolean): IActionFactory {\n const res: IActionFactory = function action(arg1, arg2?): any {\n // action(fn() {})\n if (isFunction(arg1)) {\n return createAction(arg1.name || DEFAULT_ACTION_NAME, arg1, autoAction)\n }\n // action(\"name\", fn() {})\n if (isFunction(arg2)) {\n return createAction(arg1, arg2, autoAction)\n }\n // @action\n if (isStringish(arg2)) {\n return storeAnnotation(arg1, arg2, autoAction ? autoActionAnnotation : actionAnnotation)\n }\n // action(\"name\") & @action(\"name\")\n if (isStringish(arg1)) {\n return createDecoratorAnnotation(\n createActionAnnotation(autoAction ? AUTOACTION : ACTION, {\n name: arg1,\n autoAction\n })\n )\n }\n\n if (__DEV__) {\n die(\"Invalid arguments for `action`\")\n }\n } as IActionFactory\n return res\n}\n\nexport const action: IActionFactory = createActionFactory(false)\nObject.assign(action, actionAnnotation)\nexport const autoAction: IActionFactory = createActionFactory(true)\nObject.assign(autoAction, autoActionAnnotation)\n\naction.bound = createDecoratorAnnotation(actionBoundAnnotation)\nautoAction.bound = createDecoratorAnnotation(autoActionBoundAnnotation)\n\nexport function runInAction<T>(fn: () => T): T {\n return executeAction(fn.name || DEFAULT_ACTION_NAME, false, fn, this, undefined)\n}\n\nexport function isAction(thing: any) {\n return isFunction(thing) && thing.isMobxAction === true\n}\n","import {\n EMPTY_OBJECT,\n IEqualsComparer,\n IReactionDisposer,\n IReactionPublic,\n Lambda,\n Reaction,\n action,\n comparer,\n getNextId,\n isAction,\n isFunction,\n isPlainObject,\n die,\n allowStateChanges\n} from \"../internal\"\n\nexport interface IAutorunOptions {\n delay?: number\n name?: string\n /**\n * Experimental.\n * Warns if the view doesn't track observables\n */\n requiresObservable?: boolean\n scheduler?: (callback: () => void) => any\n onError?: (error: any) => void\n}\n\n/**\n * Creates a named reactive view and keeps it alive, so that the view is always\n * updated if one of the dependencies changes, even when the view is not further used by something else.\n * @param view The reactive view\n * @returns disposer function, which can be used to stop the view from being updated in the future.\n */\nexport function autorun(\n view: (r: IReactionPublic) => any,\n opts: IAutorunOptions = EMPTY_OBJECT\n): IReactionDisposer {\n if (__DEV__) {\n if (!isFunction(view)) {\n die(\"Autorun expects a function as first argument\")\n }\n if (isAction(view)) {\n die(\"Autorun does not accept actions since actions are untrackable\")\n }\n }\n\n const name: string =\n opts?.name ?? (__DEV__ ? (view as any).name || \"Autorun@\" + getNextId() : \"Autorun\")\n const runSync = !opts.scheduler && !opts.delay\n let reaction: Reaction\n\n if (runSync) {\n // normal autorun\n reaction = new Reaction(\n name,\n function (this: Reaction) {\n this.track(reactionRunner)\n },\n opts.onError,\n opts.requiresObservable\n )\n } else {\n const scheduler = createSchedulerFromOptions(opts)\n // debounced autorun\n let isScheduled = false\n\n reaction = new Reaction(\n name,\n () => {\n if (!isScheduled) {\n isScheduled = true\n scheduler(() => {\n isScheduled = false\n if (!reaction.isDisposed_) {\n reaction.track(reactionRunner)\n }\n })\n }\n },\n opts.onError,\n opts.requiresObservable\n )\n }\n\n function reactionRunner() {\n view(reaction)\n }\n\n reaction.schedule_()\n return reaction.getDisposer_()\n}\n\nexport type IReactionOptions<T, FireImmediately extends boolean> = IAutorunOptions & {\n fireImmediately?: FireImmediately\n equals?: IEqualsComparer<T>\n}\n\nconst run = (f: Lambda) => f()\n\nfunction createSchedulerFromOptions(opts: IAutorunOptions) {\n return opts.scheduler\n ? opts.scheduler\n : opts.delay\n ? (f: Lambda) => setTimeout(f, opts.delay!)\n : run\n}\n\nexport function reaction<T, FireImmediately extends boolean = false>(\n expression: (r: IReactionPublic) => T,\n effect: (\n arg: T,\n prev: FireImmediately extends true ? T | undefined : T,\n r: IReactionPublic\n ) => void,\n opts: IReactionOptions<T, FireImmediately> = EMPTY_OBJECT\n): IReactionDisposer {\n if (__DEV__) {\n if (!isFunction(expression) || !isFunction(effect)) {\n die(\"First and second argument to reaction should be functions\")\n }\n if (!isPlainObject(opts)) {\n die(\"Third argument of reactions should be an object\")\n }\n }\n const name = opts.name ?? (__DEV__ ? \"Reaction@\" + getNextId() : \"Reaction\")\n const effectAction = action(\n name,\n opts.onError ? wrapErrorHandler(opts.onError, effect) : effect\n )\n const runSync = !opts.scheduler && !opts.delay\n const scheduler = createSchedulerFromOptions(opts)\n\n let firstTime = true\n let isScheduled = false\n let value: T\n let oldValue: T | undefined\n\n const equals: IEqualsComparer<T> = (opts as any).compareStructural\n ? comparer.structural\n : opts.equals || comparer.default\n\n const r = new Reaction(\n name,\n () => {\n if (firstTime || runSync) {\n reactionRunner()\n } else if (!isScheduled) {\n isScheduled = true\n scheduler!(reactionRunner)\n }\n },\n opts.onError,\n opts.requiresObservable\n )\n\n function reactionRunner() {\n isScheduled = false\n if (r.isDisposed_) {\n return\n }\n let changed: boolean = false\n r.track(() => {\n const nextValue = allowStateChanges(false, () => expression(r))\n changed = firstTime || !equals(value, nextValue)\n oldValue = value\n value = nextValue\n })\n\n // This casting is nesessary as TS cannot infer proper type in current funciton implementation\n type OldValue = FireImmediately extends true ? T | undefined : T\n if (firstTime && opts.fireImmediately!) {\n effectAction(value, oldValue as OldValue, r)\n } else if (!firstTime && changed) {\n effectAction(value, oldValue as OldValue, r)\n }\n firstTime = false\n }\n\n r.schedule_()\n return r.getDisposer_()\n}\n\nfunction wrapErrorHandler(errorHandler, baseFn) {\n return function () {\n try {\n return baseFn.apply(this, arguments)\n } catch (e) {\n errorHandler.call(this, e)\n }\n }\n}\n","import { globalState, isolateGlobalState, setReactionScheduler } from \"../internal\"\n\nconst NEVER = \"never\"\nconst ALWAYS = \"always\"\nconst OBSERVED = \"observed\"\n// const IF_AVAILABLE = \"ifavailable\"\n\nexport function configure(options: {\n enforceActions?: \"never\" | \"always\" | \"observed\"\n computedRequiresReaction?: boolean\n /**\n * Warn if you try to create to derivation / reactive context without accessing any observable.\n */\n reactionRequiresObservable?: boolean\n /**\n * Warn if observables are accessed outside a reactive context\n */\n observableRequiresReaction?: boolean\n isolateGlobalState?: boolean\n disableErrorBoundaries?: boolean\n safeDescriptors?: boolean\n reactionScheduler?: (f: () => void) => void\n useProxies?: \"always\" | \"never\" | \"ifavailable\"\n}): void {\n if (options.isolateGlobalState === true) {\n isolateGlobalState()\n }\n const { useProxies, enforceActions } = options\n if (useProxies !== undefined) {\n globalState.useProxies =\n useProxies === ALWAYS\n ? true\n : useProxies === NEVER\n ? false\n : typeof Proxy !== \"undefined\"\n }\n if (useProxies === \"ifavailable\") {\n globalState.verifyProxies = true\n }\n if (enforceActions !== undefined) {\n const ea = enforceActions === ALWAYS ? ALWAYS : enforceActions === OBSERVED\n globalState.enforceActions = ea\n globalState.allowStateChanges = ea === true || ea === ALWAYS ? false : true\n }\n ;[\n \"computedRequiresReaction\",\n \"reactionRequiresObservable\",\n \"observableRequiresReaction\",\n \"disableErrorBoundaries\",\n \"safeDescriptors\"\n ].forEach(key => {\n if (key in options) {\n globalState[key] = !!options[key]\n }\n })\n globalState.allowStateReads = !globalState.observableRequiresReaction\n if (__DEV__ && globalState.disableErrorBoundaries === true) {\n console.warn(\n \"WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled.\"\n )\n }\n if (options.reactionScheduler) {\n setReactionScheduler(options.reactionScheduler)\n }\n}\n","import {\n CreateObservableOptions,\n isObservableMap,\n AnnotationsMap,\n startBatch,\n endBatch,\n asObservableObject,\n isPlainObject,\n ObservableObjectAdministration,\n isObservable,\n die,\n getOwnPropertyDescriptors,\n $mobx,\n ownKeys\n} from \"../internal\"\n\nexport function extendObservable<A extends Object, B extends Object>(\n target: A,\n properties: B,\n annotations?: AnnotationsMap<B, never>,\n options?: CreateObservableOptions\n): A & B {\n if (__DEV__) {\n if (arguments.length > 4) {\n die(\"'extendObservable' expected 2-4 arguments\")\n }\n if (typeof target !== \"object\") {\n die(\"'extendObservable' expects an object as first argument\")\n }\n if (isObservableMap(target)) {\n die(\"'extendObservable' should not be used on maps, use map.merge instead\")\n }\n if (!isPlainObject(properties)) {\n die(`'extendObservable' only accepts plain objects as second argument`)\n }\n if (isObservable(properties) || isObservable(annotations)) {\n die(`Extending an object with another observable (object) is not supported`)\n }\n }\n // Pull descriptors first, so we don't have to deal with props added by administration ($mobx)\n const descriptors = getOwnPropertyDescriptors(properties)\n\n const adm: ObservableObjectAdministration = asObservableObject(target, options)[$mobx]\n startBatch()\n try {\n ownKeys(descriptors).forEach(key => {\n adm.extend_(\n key,\n descriptors[key as any],\n // must pass \"undefined\" for { key: undefined }\n !annotations ? true : key in annotations ? annotations[key] : true\n )\n })\n } finally {\n endBatch()\n }\n return target as any\n}\n","import { IDepTreeNode, getAtom, getObservers, hasObservers } from \"../internal\"\n\nexport interface IDependencyTree {\n name: string\n dependencies?: IDependencyTree[]\n}\n\nexport interface IObserverTree {\n name: string\n observers?: IObserverTree[]\n}\n\nexport function getDependencyTree(thing: any, property?: string): IDependencyTree {\n return nodeToDependencyTree(getAtom(thing, property))\n}\n\nfunction nodeToDependencyTree(node: IDepTreeNode): IDependencyTree {\n const result: IDependencyTree = {\n name: node.name_\n }\n if (node.observing_ && node.observing_.length > 0) {\n result.dependencies = unique(node.observing_).map(nodeToDependencyTree)\n }\n return result\n}\n\nexport function getObserverTree(thing: any, property?: string): IObserverTree {\n return nodeToObserverTree(getAtom(thing, property))\n}\n\nfunction nodeToObserverTree(node: IDepTreeNode): IObserverTree {\n const result: IObserverTree = {\n name: node.name_\n }\n if (hasObservers(node as any)) {\n result.observers = Array.from(<any>getObservers(node as any)).map(<any>nodeToObserverTree)\n }\n return result\n}\n\nfunction unique<T>(list: T[]): T[] {\n return Array.from(new Set(list))\n}\n","import {\n action,\n noop,\n die,\n isFunction,\n Annotation,\n isStringish,\n storeAnnotation,\n createFlowAnnotation,\n createDecoratorAnnotation\n} from \"../internal\"\n\nexport const FLOW = \"flow\"\n\nlet generatorId = 0\n\nexport function FlowCancellationError() {\n this.message = \"FLOW_CANCELLED\"\n}\nFlowCancellationError.prototype = Object.create(Error.prototype)\n\nexport function isFlowCancellationError(error: Error) {\n return error instanceof FlowCancellationError\n}\n\nexport type CancellablePromise<T> = Promise<T> & { cancel(): void }\n\ninterface Flow extends Annotation, PropertyDecorator {\n <R, Args extends any[]>(\n generator: (...args: Args) => Generator<any, R, any> | AsyncGenerator<any, R, any>\n ): (...args: Args) => CancellablePromise<R>\n bound: Annotation & PropertyDecorator\n}\n\nconst flowAnnotation = createFlowAnnotation(\"flow\")\nconst flowBoundAnnotation = createFlowAnnotation(\"flow.bound\", { bound: true })\n\nexport const flow: Flow = Object.assign(\n function flow(arg1, arg2?) {\n // @flow\n if (isStringish(arg2)) {\n return storeAnnotation(arg1, arg2, flowAnnotation)\n }\n // flow(fn)\n if (__DEV__ && arguments.length !== 1) {\n die(`Flow expects single argument with generator function`)\n }\n const generator = arg1\n const name = generator.name || \"<unnamed flow>\"\n\n // Implementation based on https://github.com/tj/co/blob/master/index.js\n const res = function () {\n const ctx = this\n const args = arguments\n const runId = ++generatorId\n const gen = action(`${name} - runid: ${runId} - init`, generator).apply(ctx, args)\n let rejector: (error: any) => void\n let pendingPromise: CancellablePromise<any> | undefined = undefined\n\n const promise = new Promise(function (resolve, reject) {\n let stepId = 0\n rejector = reject\n\n function onFulfilled(res: any) {\n pendingPromise = undefined\n let ret\n try {\n ret = action(\n `${name} - runid: ${runId} - yield ${stepId++}`,\n gen.next\n ).call(gen, res)\n } catch (e) {\n return reject(e)\n }\n\n next(ret)\n }\n\n function onRejected(err: any) {\n pendingPromise = undefined\n let ret\n try {\n ret = action(\n `${name} - runid: ${runId} - yield ${stepId++}`,\n gen.throw!\n ).call(gen, err)\n } catch (e) {\n return reject(e)\n }\n next(ret)\n }\n\n function next(ret: any) {\n if (isFunction(ret?.then)) {\n // an async iterator\n ret.then(next, reject)\n return\n }\n if (ret.done) {\n return resolve(ret.value)\n }\n pendingPromise = Promise.resolve(ret.value) as any\n return pendingPromise!.then(onFulfilled, onRejected)\n }\n\n onFulfilled(undefined) // kick off the process\n }) as any\n\n promise.cancel = action(`${name} - runid: ${runId} - cancel`, function () {\n try {\n if (pendingPromise) {\n cancelPromise(pendingPromise)\n }\n // Finally block can return (or yield) stuff..\n const res = gen.return!(undefined as any)\n // eat anything that promise would do, it's cancelled!\n const yieldedPromise = Promise.resolve(res.value)\n yieldedPromise.then(noop, noop)\n cancelPromise(yieldedPromise) // maybe it can be cancelled :)\n // reject our original promise\n rejector(new FlowCancellationError())\n } catch (e) {\n rejector(e) // there could be a throwing finally block\n }\n })\n return promise\n }\n res.isMobXFlow = true\n return res\n } as any,\n flowAnnotation\n)\n\nflow.bound = createDecoratorAnnotation(flowBoundAnnotation)\n\nfunction cancelPromise(promise) {\n if (isFunction(promise.cancel)) {\n promise.cancel()\n }\n}\n\nexport function flowResult<T>(\n result: T\n): T extends Generator<any, infer R, any>\n ? CancellablePromise<R>\n : T extends CancellablePromise<any>\n ? T\n : never {\n return result as any // just tricking TypeScript :)\n}\n\nexport function isFlow(fn: any): boolean {\n return fn?.isMobXFlow === true\n}\n","import {\n $mobx,\n isAtom,\n isComputedValue,\n isObservableArray,\n isObservableMap,\n isObservableObject,\n isReaction,\n die,\n isStringish\n} from \"../internal\"\n\nfunction _isObservable(value, property?: PropertyKey): boolean {\n if (!value) {\n return false\n }\n if (property !== undefined) {\n if (__DEV__ && (isObservableMap(value) || isObservableArray(value))) {\n return die(\n \"isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.\"\n )\n }\n if (isObservableObject(value)) {\n return value[$mobx].values_.has(property)\n }\n return false\n }\n // For first check, see #701\n return (\n isObservableObject(value) ||\n !!value[$mobx] ||\n isAtom(value) ||\n isReaction(value) ||\n isComputedValue(value)\n )\n}\n\nexport function isObservable(value: any): boolean {\n if (__DEV__ && arguments.length !== 1) {\n die(\n `isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property`\n )\n }\n return _isObservable(value)\n}\n\nexport function isObservableProp(value: any, propName: PropertyKey): boolean {\n if (__DEV__ && !isStringish(propName)) {\n return die(`expected a property name as second argument`)\n }\n return _isObservable(value, propName)\n}\n","import { endBatch, startBatch } from \"../internal\"\n\n/**\n * During a transaction no views are updated until the end of the transaction.\n * The transaction will be run synchronously nonetheless.\n *\n * @param action a function that updates some reactive state\n * @returns any value that was returned by the 'action' parameter.\n */\nexport function transaction<T>(action: () => T, thisArg = undefined): T {\n startBatch()\n try {\n return action.apply(thisArg)\n } finally {\n endBatch()\n }\n}\n","import { Lambda, once, untrackedEnd, untrackedStart, die } from \"../internal\"\n\nexport type IInterceptor<T> = (change: T) => T | null\n\nexport interface IInterceptable<T> {\n interceptors_: IInterceptor<T>[] | undefined\n}\n\nexport function hasInterceptors(interceptable: IInterceptable<any>) {\n return interceptable.interceptors_ !== undefined && interceptable.interceptors_.length > 0\n}\n\nexport function registerInterceptor<T>(\n interceptable: IInterceptable<T>,\n handler: IInterceptor<T>\n): Lambda {\n const interceptors = interceptable.interceptors_ || (interceptable.interceptors_ = [])\n interceptors.push(handler)\n return once(() => {\n const idx = interceptors.indexOf(handler)\n if (idx !== -1) {\n interceptors.splice(idx, 1)\n }\n })\n}\n\nexport function interceptChange<T>(\n interceptable: IInterceptable<T | null>,\n change: T | null\n): T | null {\n const prevU = untrackedStart()\n try {\n // Interceptor can modify the array, copy it to avoid concurrent modification, see #1950\n const interceptors = [...(interceptable.interceptors_ || [])]\n for (let i = 0, l = interceptors.length; i < l; i++) {\n change = interceptors[i](change)\n if (change && !(change as any).type) {\n die(14)\n }\n if (!change) {\n break\n }\n }\n return change\n } finally {\n untrackedEnd(prevU)\n }\n}\n","import { Lambda, once, untrackedEnd, untrackedStart } from \"../internal\"\n\nexport interface IListenable {\n changeListeners_: Function[] | undefined\n}\n\nexport function hasListeners(listenable: IListenable) {\n return listenable.changeListeners_ !== undefined && listenable.changeListeners_.length > 0\n}\n\nexport function registerListener(listenable: IListenable, handler: Function): Lambda {\n const listeners = listenable.changeListeners_ || (listenable.changeListeners_ = [])\n listeners.push(handler)\n return once(() => {\n const idx = listeners.indexOf(handler)\n if (idx !== -1) {\n listeners.splice(idx, 1)\n }\n })\n}\n\nexport function notifyListeners<T>(listenable: IListenable, change: T) {\n const prevU = untrackedStart()\n let listeners = listenable.changeListeners_\n if (!listeners) {\n return\n }\n listeners = listeners.slice()\n for (let i = 0, l = listeners.length; i < l; i++) {\n listeners[i](change)\n }\n untrackedEnd(prevU)\n}\n","import {\n $mobx,\n asObservableObject,\n AnnotationsMap,\n endBatch,\n startBatch,\n CreateObservableOptions,\n ObservableObjectAdministration,\n collectStoredAnnotations,\n isPlainObject,\n isObservableObject,\n die,\n ownKeys,\n extendObservable,\n addHiddenProp,\n storedAnnotationsSymbol\n} from \"../internal\"\n\n// Hack based on https://github.com/Microsoft/TypeScript/issues/14829#issuecomment-322267089\n// We need this, because otherwise, AdditionalKeys is going to be inferred to be any\n// set of superfluous keys. But, we rather want to get a compile error unless AdditionalKeys is\n// _explicity_ passed as generic argument\n// Fixes: https://github.com/mobxjs/mobx/issues/2325#issuecomment-691070022\ntype NoInfer<T> = [T][T extends any ? 0 : never]\n\nexport function makeObservable<T extends object, AdditionalKeys extends PropertyKey = never>(\n target: T,\n annotations?: AnnotationsMap<T, NoInfer<AdditionalKeys>>,\n options?: CreateObservableOptions\n): T {\n const adm: ObservableObjectAdministration = asObservableObject(target, options)[$mobx]\n startBatch()\n try {\n if (__DEV__ && annotations && target[storedAnnotationsSymbol]) {\n die(\n `makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.`\n )\n }\n // Default to decorators\n annotations ??= collectStoredAnnotations(target)\n\n // Annotate\n ownKeys(annotations).forEach(key => adm.make_(key, annotations![key]))\n } finally {\n endBatch()\n }\n return target\n}\n\n// proto[keysSymbol] = new Set<PropertyKey>()\nconst keysSymbol = Symbol(\"mobx-keys\")\n\nexport function makeAutoObservable<T extends object, AdditionalKeys extends PropertyKey = never>(\n target: T,\n overrides?: AnnotationsMap<T, NoInfer<AdditionalKeys>>,\n options?: CreateObservableOptions\n): T {\n if (__DEV__) {\n if (!isPlainObject(target) && !isPlainObject(Object.getPrototypeOf(target))) {\n die(`'makeAutoObservable' can only be used for classes that don't have a superclass`)\n }\n if (isObservableObject(target)) {\n die(`makeAutoObservable can only be used on objects not already made observable`)\n }\n }\n\n // Optimization: avoid visiting protos\n // Assumes that annotation.make_/.extend_ works the same for plain objects\n if (isPlainObject(target)) {\n return extendObservable(target, target, overrides, options)\n }\n\n const adm: ObservableObjectAdministration = asObservableObject(target, options)[$mobx]\n\n // Optimization: cache keys on proto\n // Assumes makeAutoObservable can be called only once per object and can't be used in subclass\n if (!target[keysSymbol]) {\n const proto = Object.getPrototypeOf(target)\n const keys = new Set([...ownKeys(target), ...ownKeys(proto)])\n keys.delete(\"constructor\")\n keys.delete($mobx)\n addHiddenProp(proto, keysSymbol, keys)\n }\n\n startBatch()\n try {\n target[keysSymbol].forEach(key =>\n adm.make_(\n key,\n // must pass \"undefined\" for { key: undefined }\n !overrides ? true : key in overrides ? overrides[key] : true\n )\n )\n } finally {\n endBatch()\n }\n return target\n}\n","import {\n $mobx,\n Atom,\n EMPTY_ARRAY,\n IAtom,\n IEnhancer,\n IInterceptable,\n IInterceptor,\n IListenable,\n Lambda,\n addHiddenFinalProp,\n checkIfStateModificationsAreAllowed,\n createInstanceofPredicate,\n getNextId,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isObject,\n isSpyEnabled,\n notifyListeners,\n registerInterceptor,\n registerListener,\n spyReportEnd,\n spyReportStart,\n allowStateChangesStart,\n allowStateChangesEnd,\n assertProxies,\n reserveArrayBuffer,\n hasProp,\n die,\n globalState\n} from \"../internal\"\n\nconst SPLICE = \"splice\"\nexport const UPDATE = \"update\"\nexport const MAX_SPLICE_SIZE = 10000 // See e.g. https://github.com/mobxjs/mobx/issues/859\n\nexport interface IObservableArray<T = any> extends Array<T> {\n spliceWithArray(index: number, deleteCount?: number, newItems?: T[]): T[]\n clear(): T[]\n replace(newItems: T[]): T[]\n remove(value: T): boolean\n toJSON(): T[]\n}\n\ninterface IArrayBaseChange<T> {\n object: IObservableArray<T>\n observableKind: \"array\"\n debugObjectName: string\n index: number\n}\n\nexport type IArrayDidChange<T = any> = IArrayUpdate<T> | IArraySplice<T>\n\nexport interface IArrayUpdate<T = any> extends IArrayBaseChange<T> {\n type: \"update\"\n newValue: T\n oldValue: T\n}\n\nexport interface IArraySplice<T = any> extends IArrayBaseChange<T> {\n type: \"splice\"\n added: T[]\n addedCount: number\n removed: T[]\n removedCount: number\n}\n\nexport interface IArrayWillChange<T = any> {\n object: IObservableArray<T>\n index: number\n type: \"update\"\n newValue: T\n}\n\nexport interface IArrayWillSplice<T = any> {\n object: IObservableArray<T>\n index: number\n type: \"splice\"\n added: T[]\n removedCount: number\n}\n\nconst arrayTraps = {\n get(target, name) {\n const adm: ObservableArrayAdministration = target[$mobx]\n if (name === $mobx) {\n return adm\n }\n if (name === \"length\") {\n return adm.getArrayLength_()\n }\n if (typeof name === \"string\" && !isNaN(name as any)) {\n return adm.get_(parseInt(name))\n }\n if (hasProp(arrayExtensions, name)) {\n return arrayExtensions[name]\n }\n return target[name]\n },\n set(target, name, value): boolean {\n const adm: ObservableArrayAdministration = target[$mobx]\n if (name === \"length\") {\n adm.setArrayLength_(value)\n }\n if (typeof name === \"symbol\" || isNaN(name)) {\n target[name] = value\n } else {\n // numeric string\n adm.set_(parseInt(name), value)\n }\n return true\n },\n preventExtensions() {\n die(15)\n }\n}\n\nexport class ObservableArrayAdministration\n implements IInterceptable<IArrayWillChange<any> | IArrayWillSplice<any>>, IListenable\n{\n atom_: IAtom\n readonly values_: any[] = [] // this is the prop that gets proxied, so can't replace it!\n interceptors_\n changeListeners_\n enhancer_: (newV: any, oldV: any | undefined) => any\n dehancer: any\n proxy_!: IObservableArray<any>\n lastKnownLength_ = 0\n\n constructor(\n name = __DEV__ ? \"ObservableArray@\" + getNextId() : \"ObservableArray\",\n enhancer: IEnhancer<any>,\n public owned_: boolean,\n public legacyMode_: boolean\n ) {\n this.atom_ = new Atom(name)\n this.enhancer_ = (newV, oldV) =>\n enhancer(newV, oldV, __DEV__ ? name + \"[..]\" : \"ObservableArray[..]\")\n }\n\n dehanceValue_(value: any): any {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n dehanceValues_(values: any[]): any[] {\n if (this.dehancer !== undefined && values.length > 0) {\n return values.map(this.dehancer) as any\n }\n return values\n }\n\n intercept_(handler: IInterceptor<IArrayWillChange<any> | IArrayWillSplice<any>>): Lambda {\n return registerInterceptor<IArrayWillChange<any> | IArrayWillSplice<any>>(this, handler)\n }\n\n observe_(\n listener: (changeData: IArrayDidChange<any>) => void,\n fireImmediately = false\n ): Lambda {\n if (fireImmediately) {\n listener(<IArraySplice<any>>{\n observableKind: \"array\",\n object: this.proxy_ as any,\n debugObjectName: this.atom_.name_,\n type: \"splice\",\n index: 0,\n added: this.values_.slice(),\n addedCount: this.values_.length,\n removed: [],\n removedCount: 0\n })\n }\n return registerListener(this, listener)\n }\n\n getArrayLength_(): number {\n this.atom_.reportObserved()\n return this.values_.length\n }\n\n setArrayLength_(newLength: number) {\n if (typeof newLength !== \"number\" || isNaN(newLength) || newLength < 0) {\n die(\"Out of range: \" + newLength)\n }\n let currentLength = this.values_.length\n if (newLength === currentLength) {\n return\n } else if (newLength > currentLength) {\n const newItems = new Array(newLength - currentLength)\n for (let i = 0; i < newLength - currentLength; i++) {\n newItems[i] = undefined\n } // No Array.fill everywhere...\n this.spliceWithArray_(currentLength, 0, newItems)\n } else {\n this.spliceWithArray_(newLength, currentLength - newLength)\n }\n }\n\n updateArrayLength_(oldLength: number, delta: number) {\n if (oldLength !== this.lastKnownLength_) {\n die(16)\n }\n this.lastKnownLength_ += delta\n if (this.legacyMode_ && delta > 0) {\n reserveArrayBuffer(oldLength + delta + 1)\n }\n }\n\n spliceWithArray_(index: number, deleteCount?: number, newItems?: any[]): any[] {\n checkIfStateModificationsAreAllowed(this.atom_)\n const length = this.values_.length\n\n if (index === undefined) {\n index = 0\n } else if (index > length) {\n index = length\n } else if (index < 0) {\n index = Math.max(0, length + index)\n }\n\n if (arguments.length === 1) {\n deleteCount = length - index\n } else if (deleteCount === undefined || deleteCount === null) {\n deleteCount = 0\n } else {\n deleteCount = Math.max(0, Math.min(deleteCount, length - index))\n }\n\n if (newItems === undefined) {\n newItems = EMPTY_ARRAY\n }\n\n if (hasInterceptors(this)) {\n const change = interceptChange<IArrayWillSplice<any>>(this as any, {\n object: this.proxy_ as any,\n type: SPLICE,\n index,\n removedCount: deleteCount,\n added: newItems\n })\n if (!change) {\n return EMPTY_ARRAY\n }\n deleteCount = change.removedCount\n newItems = change.added\n }\n\n newItems =\n newItems.length === 0 ? newItems : newItems.map(v => this.enhancer_(v, undefined))\n if (this.legacyMode_ || __DEV__) {\n const lengthDelta = newItems.length - deleteCount\n this.updateArrayLength_(length, lengthDelta) // checks if internal array wasn't modified\n }\n const res = this.spliceItemsIntoValues_(index, deleteCount, newItems)\n\n if (deleteCount !== 0 || newItems.length !== 0) {\n this.notifyArraySplice_(index, newItems, res)\n }\n return this.dehanceValues_(res)\n }\n\n spliceItemsIntoValues_(index: number, deleteCount: number, newItems: any[]): any[] {\n if (newItems.length < MAX_SPLICE_SIZE) {\n return this.values_.splice(index, deleteCount, ...newItems)\n } else {\n // The items removed by the splice\n const res = this.values_.slice(index, index + deleteCount)\n // The items that that should remain at the end of the array\n let oldItems = this.values_.slice(index + deleteCount)\n // New length is the previous length + addition count - deletion count\n this.values_.length += newItems.length - deleteCount\n for (let i = 0; i < newItems.length; i++) {\n this.values_[index + i] = newItems[i]\n }\n for (let i = 0; i < oldItems.length; i++) {\n this.values_[index + newItems.length + i] = oldItems[i]\n }\n return res\n }\n }\n\n notifyArrayChildUpdate_(index: number, newValue: any, oldValue: any) {\n const notifySpy = !this.owned_ && isSpyEnabled()\n const notify = hasListeners(this)\n const change: IArrayDidChange | null =\n notify || notifySpy\n ? ({\n observableKind: \"array\",\n object: this.proxy_,\n type: UPDATE,\n debugObjectName: this.atom_.name_,\n index,\n newValue,\n oldValue\n } as const)\n : null\n\n // The reason why this is on right hand side here (and not above), is this way the uglifier will drop it, but it won't\n // cause any runtime overhead in development mode without NODE_ENV set, unless spying is enabled\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n this.atom_.reportChanged()\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n notifyArraySplice_(index: number, added: any[], removed: any[]) {\n const notifySpy = !this.owned_ && isSpyEnabled()\n const notify = hasListeners(this)\n const change: IArraySplice | null =\n notify || notifySpy\n ? ({\n observableKind: \"array\",\n object: this.proxy_,\n debugObjectName: this.atom_.name_,\n type: SPLICE,\n index,\n removed,\n added,\n removedCount: removed.length,\n addedCount: added.length\n } as const)\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n this.atom_.reportChanged()\n // conform: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/observe\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n get_(index: number): any | undefined {\n if (this.legacyMode_ && index >= this.values_.length) {\n console.warn(\n __DEV__\n ? `[mobx.array] Attempt to read an array index (${index}) that is out of bounds (${this.values_.length}). Please check length first. Out of bound indices will not be tracked by MobX`\n : `[mobx] Out of bounds read: ${index}`\n )\n return undefined\n }\n this.atom_.reportObserved()\n return this.dehanceValue_(this.values_[index])\n }\n\n set_(index: number, newValue: any) {\n const values = this.values_\n if (this.legacyMode_ && index > values.length) {\n // out of bounds\n die(17, index, values.length)\n }\n if (index < values.length) {\n // update at index in range\n checkIfStateModificationsAreAllowed(this.atom_)\n const oldValue = values[index]\n if (hasInterceptors(this)) {\n const change = interceptChange<IArrayWillChange<any>>(this as any, {\n type: UPDATE,\n object: this.proxy_ as any, // since \"this\" is the real array we need to pass its proxy\n index,\n newValue\n })\n if (!change) {\n return\n }\n newValue = change.newValue\n }\n newValue = this.enhancer_(newValue, oldValue)\n const changed = newValue !== oldValue\n if (changed) {\n values[index] = newValue\n this.notifyArrayChildUpdate_(index, newValue, oldValue)\n }\n } else {\n // For out of bound index, we don't create an actual sparse array,\n // but rather fill the holes with undefined (same as setArrayLength_).\n // This could be considered a bug.\n const newItems = new Array(index + 1 - values.length)\n for (let i = 0; i < newItems.length - 1; i++) {\n newItems[i] = undefined\n } // No Array.fill everywhere...\n newItems[newItems.length - 1] = newValue\n this.spliceWithArray_(values.length, 0, newItems)\n }\n }\n}\n\nexport function createObservableArray<T>(\n initialValues: T[] | undefined,\n enhancer: IEnhancer<T>,\n name = __DEV__ ? \"ObservableArray@\" + getNextId() : \"ObservableArray\",\n owned = false\n): IObservableArray<T> {\n assertProxies()\n const adm = new ObservableArrayAdministration(name, enhancer, owned, false)\n addHiddenFinalProp(adm.values_, $mobx, adm)\n const proxy = new Proxy(adm.values_, arrayTraps) as any\n adm.proxy_ = proxy\n if (initialValues && initialValues.length) {\n const prev = allowStateChangesStart(true)\n adm.spliceWithArray_(0, 0, initialValues)\n allowStateChangesEnd(prev)\n }\n return proxy\n}\n\n// eslint-disable-next-line\nexport var arrayExtensions = {\n clear(): any[] {\n return this.splice(0)\n },\n\n replace(newItems: any[]) {\n const adm: ObservableArrayAdministration = this[$mobx]\n return adm.spliceWithArray_(0, adm.values_.length, newItems)\n },\n\n // Used by JSON.stringify\n toJSON(): any[] {\n return this.slice()\n },\n\n /*\n * functions that do alter the internal structure of the array, (based on lib.es6.d.ts)\n * since these functions alter the inner structure of the array, the have side effects.\n * Because the have side effects, they should not be used in computed function,\n * and for that reason the do not call dependencyState.notifyObserved\n */\n splice(index: number, deleteCount?: number, ...newItems: any[]): any[] {\n const adm: ObservableArrayAdministration = this[$mobx]\n switch (arguments.length) {\n case 0:\n return []\n case 1:\n return adm.spliceWithArray_(index)\n case 2:\n return adm.spliceWithArray_(index, deleteCount)\n }\n return adm.spliceWithArray_(index, deleteCount, newItems)\n },\n\n spliceWithArray(index: number, deleteCount?: number, newItems?: any[]): any[] {\n return (this[$mobx] as ObservableArrayAdministration).spliceWithArray_(\n index,\n deleteCount,\n newItems\n )\n },\n\n push(...items: any[]): number {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.spliceWithArray_(adm.values_.length, 0, items)\n return adm.values_.length\n },\n\n pop() {\n return this.splice(Math.max(this[$mobx].values_.length - 1, 0), 1)[0]\n },\n\n shift() {\n return this.splice(0, 1)[0]\n },\n\n unshift(...items: any[]): number {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.spliceWithArray_(0, 0, items)\n return adm.values_.length\n },\n\n reverse(): any[] {\n // reverse by default mutates in place before returning the result\n // which makes it both a 'derivation' and a 'mutation'.\n if (globalState.trackingDerivation) {\n die(37, \"reverse\")\n }\n this.replace(this.slice().reverse())\n return this\n },\n\n sort(): any[] {\n // sort by default mutates in place before returning the result\n // which goes against all good practices. Let's not change the array in place!\n if (globalState.trackingDerivation) {\n die(37, \"sort\")\n }\n const copy = this.slice()\n copy.sort.apply(copy, arguments)\n this.replace(copy)\n return this\n },\n\n remove(value: any): boolean {\n const adm: ObservableArrayAdministration = this[$mobx]\n const idx = adm.dehanceValues_(adm.values_).indexOf(value)\n if (idx > -1) {\n this.splice(idx, 1)\n return true\n }\n return false\n }\n}\n\n/**\n * Wrap function from prototype\n * Without this, everything works as well, but this works\n * faster as everything works on unproxied values\n */\naddArrayExtension(\"concat\", simpleFunc)\naddArrayExtension(\"flat\", simpleFunc)\naddArrayExtension(\"includes\", simpleFunc)\naddArrayExtension(\"indexOf\", simpleFunc)\naddArrayExtension(\"join\", simpleFunc)\naddArrayExtension(\"lastIndexOf\", simpleFunc)\naddArrayExtension(\"slice\", simpleFunc)\naddArrayExtension(\"toString\", simpleFunc)\naddArrayExtension(\"toLocaleString\", simpleFunc)\n// map\naddArrayExtension(\"every\", mapLikeFunc)\naddArrayExtension(\"filter\", mapLikeFunc)\naddArrayExtension(\"find\", mapLikeFunc)\naddArrayExtension(\"findIndex\", mapLikeFunc)\naddArrayExtension(\"flatMap\", mapLikeFunc)\naddArrayExtension(\"forEach\", mapLikeFunc)\naddArrayExtension(\"map\", mapLikeFunc)\naddArrayExtension(\"some\", mapLikeFunc)\n// reduce\naddArrayExtension(\"reduce\", reduceLikeFunc)\naddArrayExtension(\"reduceRight\", reduceLikeFunc)\n\nfunction addArrayExtension(funcName, funcFactory) {\n if (typeof Array.prototype[funcName] === \"function\") {\n arrayExtensions[funcName] = funcFactory(funcName)\n }\n}\n\n// Report and delegate to dehanced array\nfunction simpleFunc(funcName) {\n return function () {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.atom_.reportObserved()\n const dehancedValues = adm.dehanceValues_(adm.values_)\n return dehancedValues[funcName].apply(dehancedValues, arguments)\n }\n}\n\n// Make sure callbacks recieve correct array arg #2326\nfunction mapLikeFunc(funcName) {\n return function (callback, thisArg) {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.atom_.reportObserved()\n const dehancedValues = adm.dehanceValues_(adm.values_)\n return dehancedValues[funcName]((element, index) => {\n return callback.call(thisArg, element, index, this)\n })\n }\n}\n\n// Make sure callbacks recieve correct array arg #2326\nfunction reduceLikeFunc(funcName) {\n return function () {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.atom_.reportObserved()\n const dehancedValues = adm.dehanceValues_(adm.values_)\n // #2432 - reduce behavior depends on arguments.length\n const callback = arguments[0]\n arguments[0] = (accumulator, currentValue, index) => {\n return callback(accumulator, currentValue, index, this)\n }\n return dehancedValues[funcName].apply(dehancedValues, arguments)\n }\n}\n\nconst isObservableArrayAdministration = createInstanceofPredicate(\n \"ObservableArrayAdministration\",\n ObservableArrayAdministration\n)\n\nexport function isObservableArray(thing): thing is IObservableArray<any> {\n return isObject(thing) && isObservableArrayAdministration(thing[$mobx])\n}\n","import { IComputedDidChange } from \"./computedvalue\"\nimport { IValueDidChange, IBoxDidChange } from \"./../types/observablevalue\"\nimport { IObjectDidChange } from \"./../types/observableobject\"\nimport { IArrayDidChange } from \"./../types/observablearray\"\nimport { Lambda, globalState, once, ISetDidChange, IMapDidChange } from \"../internal\"\n\nexport function isSpyEnabled() {\n return __DEV__ && !!globalState.spyListeners.length\n}\n\nexport type PureSpyEvent =\n | { type: \"action\"; name: string; object: unknown; arguments: unknown[] }\n | { type: \"scheduled-reaction\"; name: string }\n | { type: \"reaction\"; name: string }\n | { type: \"error\"; name: string; message: string; error: string }\n | IComputedDidChange<unknown>\n | IObjectDidChange<unknown>\n | IArrayDidChange<unknown>\n | IMapDidChange<unknown, unknown>\n | ISetDidChange<unknown>\n | IValueDidChange<unknown>\n | IBoxDidChange<unknown>\n | { type: \"report-end\"; spyReportEnd: true; time?: number }\n\ntype SpyEvent = PureSpyEvent & { spyReportStart?: true }\n\nexport function spyReport(event: SpyEvent) {\n if (!__DEV__) {\n return\n } // dead code elimination can do the rest\n if (!globalState.spyListeners.length) {\n return\n }\n const listeners = globalState.spyListeners\n for (let i = 0, l = listeners.length; i < l; i++) {\n listeners[i](event)\n }\n}\n\nexport function spyReportStart(event: PureSpyEvent) {\n if (!__DEV__) {\n return\n }\n const change = { ...event, spyReportStart: true as const }\n spyReport(change)\n}\n\nconst END_EVENT: SpyEvent = { type: \"report-end\", spyReportEnd: true }\n\nexport function spyReportEnd(change?: { time?: number }) {\n if (!__DEV__) {\n return\n }\n if (change) {\n spyReport({ ...change, type: \"report-end\", spyReportEnd: true })\n } else {\n spyReport(END_EVENT)\n }\n}\n\nexport function spy(listener: (change: SpyEvent) => void): Lambda {\n if (!__DEV__) {\n console.warn(`[mobx.spy] Is a no-op in production builds`)\n return function () {}\n } else {\n globalState.spyListeners.push(listener)\n return once(() => {\n globalState.spyListeners = globalState.spyListeners.filter(l => l !== listener)\n })\n }\n}\n","import {\n $mobx,\n IEnhancer,\n IInterceptable,\n IInterceptor,\n IListenable,\n Lambda,\n ObservableValue,\n checkIfStateModificationsAreAllowed,\n createAtom,\n createInstanceofPredicate,\n deepEnhancer,\n getNextId,\n getPlainObjectKeys,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isES6Map,\n isPlainObject,\n isSpyEnabled,\n makeIterable,\n notifyListeners,\n referenceEnhancer,\n registerInterceptor,\n registerListener,\n spyReportEnd,\n spyReportStart,\n stringifyKey,\n transaction,\n untracked,\n onBecomeUnobserved,\n globalState,\n die,\n isFunction,\n UPDATE,\n IAtom,\n PureSpyEvent,\n allowStateChanges\n} from \"../internal\"\n\nexport interface IKeyValueMap<V = any> {\n [key: string]: V\n}\n\nexport type IMapEntry<K = any, V = any> = [K, V]\nexport type IReadonlyMapEntry<K = any, V = any> = readonly [K, V]\nexport type IMapEntries<K = any, V = any> = IMapEntry<K, V>[]\nexport type IReadonlyMapEntries<K = any, V = any> = IReadonlyMapEntry<K, V>[]\n\nexport type IMapDidChange<K = any, V = any> = { observableKind: \"map\"; debugObjectName: string } & (\n | {\n object: ObservableMap<K, V>\n name: K // actual the key or index, but this is based on the ancient .observe proposal for consistency\n type: \"update\"\n newValue: V\n oldValue: V\n }\n | {\n object: ObservableMap<K, V>\n name: K\n type: \"add\"\n newValue: V\n }\n | {\n object: ObservableMap<K, V>\n name: K\n type: \"delete\"\n oldValue: V\n }\n)\n\nexport interface IMapWillChange<K = any, V = any> {\n object: ObservableMap<K, V>\n type: \"update\" | \"add\" | \"delete\"\n name: K\n newValue?: V\n}\n\nconst ObservableMapMarker = {}\n\nexport const ADD = \"add\"\nexport const DELETE = \"delete\"\n\nexport type IObservableMapInitialValues<K = any, V = any> =\n | IMapEntries<K, V>\n | IReadonlyMapEntries<K, V>\n | IKeyValueMap<V>\n | Map<K, V>\n\n// just extend Map? See also https://gist.github.com/nestharus/13b4d74f2ef4a2f4357dbd3fc23c1e54\n// But: https://github.com/mobxjs/mobx/issues/1556\nexport class ObservableMap<K = any, V = any>\n implements Map<K, V>, IInterceptable<IMapWillChange<K, V>>, IListenable {\n [$mobx] = ObservableMapMarker\n data_: Map<K, ObservableValue<V>>\n hasMap_: Map<K, ObservableValue<boolean>> // hasMap, not hashMap >-).\n keysAtom_: IAtom\n interceptors_\n changeListeners_\n dehancer: any\n\n constructor(\n initialData?: IObservableMapInitialValues<K, V>,\n public enhancer_: IEnhancer<V> = deepEnhancer,\n public name_ = __DEV__ ? \"ObservableMap@\" + getNextId() : \"ObservableMap\"\n ) {\n if (!isFunction(Map)) {\n die(18)\n }\n this.keysAtom_ = createAtom(__DEV__ ? `${this.name_}.keys()` : \"ObservableMap.keys()\")\n this.data_ = new Map()\n this.hasMap_ = new Map()\n allowStateChanges(true, () => {\n this.merge(initialData)\n })\n }\n\n private has_(key: K): boolean {\n return this.data_.has(key)\n }\n\n has(key: K): boolean {\n if (!globalState.trackingDerivation) {\n return this.has_(key)\n }\n\n let entry = this.hasMap_.get(key)\n if (!entry) {\n const newEntry = (entry = new ObservableValue(\n this.has_(key),\n referenceEnhancer,\n __DEV__ ? `${this.name_}.${stringifyKey(key)}?` : \"ObservableMap.key?\",\n false\n ))\n this.hasMap_.set(key, newEntry)\n onBecomeUnobserved(newEntry, () => this.hasMap_.delete(key))\n }\n\n return entry.get()\n }\n\n set(key: K, value: V) {\n const hasKey = this.has_(key)\n if (hasInterceptors(this)) {\n const change = interceptChange<IMapWillChange<K, V>>(this, {\n type: hasKey ? UPDATE : ADD,\n object: this,\n newValue: value,\n name: key\n })\n if (!change) {\n return this\n }\n value = change.newValue!\n }\n if (hasKey) {\n this.updateValue_(key, value)\n } else {\n this.addValue_(key, value)\n }\n return this\n }\n\n delete(key: K): boolean {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n if (hasInterceptors(this)) {\n const change = interceptChange<IMapWillChange<K, V>>(this, {\n type: DELETE,\n object: this,\n name: key\n })\n if (!change) {\n return false\n }\n }\n if (this.has_(key)) {\n const notifySpy = isSpyEnabled()\n const notify = hasListeners(this)\n const change: IMapDidChange<K, V> | null =\n notify || notifySpy\n ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: (<any>this.data_.get(key)).value_,\n name: key\n }\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change! as PureSpyEvent)\n } // TODO fix type\n transaction(() => {\n this.keysAtom_.reportChanged()\n this.hasMap_.get(key)?.setNewValue_(false)\n const observable = this.data_.get(key)!\n observable.setNewValue_(undefined as any)\n this.data_.delete(key)\n })\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n return true\n }\n return false\n }\n\n private updateValue_(key: K, newValue: V | undefined) {\n const observable = this.data_.get(key)!\n newValue = (observable as any).prepareNewValue_(newValue) as V\n if (newValue !== globalState.UNCHANGED) {\n const notifySpy = isSpyEnabled()\n const notify = hasListeners(this)\n const change: IMapDidChange<K, V> | null =\n notify || notifySpy\n ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: UPDATE,\n object: this,\n oldValue: (observable as any).value_,\n name: key,\n newValue\n }\n : null\n if (__DEV__ && notifySpy) {\n spyReportStart(change! as PureSpyEvent)\n } // TODO fix type\n observable.setNewValue_(newValue as V)\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n }\n\n private addValue_(key: K, newValue: V) {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n transaction(() => {\n const observable = new ObservableValue(\n newValue,\n this.enhancer_,\n __DEV__ ? `${this.name_}.${stringifyKey(key)}` : \"ObservableMap.key\",\n false\n )\n this.data_.set(key, observable)\n newValue = (observable as any).value_ // value might have been changed\n this.hasMap_.get(key)?.setNewValue_(true)\n this.keysAtom_.reportChanged()\n })\n const notifySpy = isSpyEnabled()\n const notify = hasListeners(this)\n const change: IMapDidChange<K, V> | null =\n notify || notifySpy\n ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n name: key,\n newValue\n }\n : null\n if (__DEV__ && notifySpy) {\n spyReportStart(change! as PureSpyEvent)\n } // TODO fix type\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n get(key: K): V | undefined {\n if (this.has(key)) {\n return this.dehanceValue_(this.data_.get(key)!.get())\n }\n return this.dehanceValue_(undefined)\n }\n\n private dehanceValue_<X extends V | undefined>(value: X): X {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n keys(): IterableIterator<K> {\n this.keysAtom_.reportObserved()\n return this.data_.keys()\n }\n\n values(): IterableIterator<V> {\n const self = this\n const keys = this.keys()\n return makeIterable({\n next() {\n const { done, value } = keys.next()\n return {\n done,\n value: done ? (undefined as any) : self.get(value)\n }\n }\n })\n }\n\n entries(): IterableIterator<IMapEntry<K, V>> {\n const self = this\n const keys = this.keys()\n return makeIterable({\n next() {\n const { done, value } = keys.next()\n return {\n done,\n value: done ? (undefined as any) : ([value, self.get(value)!] as [K, V])\n }\n }\n })\n }\n\n [Symbol.iterator]() {\n return this.entries()\n }\n\n forEach(callback: (value: V, key: K, object: Map<K, V>) => void, thisArg?) {\n for (const [key, value] of this) {\n callback.call(thisArg, value, key, this)\n }\n }\n\n /** Merge another object into this object, returns this. */\n merge(other?: IObservableMapInitialValues<K, V>): ObservableMap<K, V> {\n if (isObservableMap(other)) {\n other = new Map(other)\n }\n transaction(() => {\n if (isPlainObject(other)) {\n getPlainObjectKeys(other).forEach((key: any) =>\n this.set(key as K, (other as IKeyValueMap)[key])\n )\n } else if (Array.isArray(other)) {\n other.forEach(([key, value]) => this.set(key, value))\n } else if (isES6Map(other)) {\n if (other.constructor !== Map) {\n die(19, other)\n }\n other.forEach((value, key) => this.set(key, value))\n } else if (other !== null && other !== undefined) {\n die(20, other)\n }\n })\n return this\n }\n\n clear() {\n transaction(() => {\n untracked(() => {\n for (const key of this.keys()) {\n this.delete(key)\n }\n })\n })\n }\n\n replace(values: IObservableMapInitialValues<K, V>): ObservableMap<K, V> {\n // Implementation requirements:\n // - respect ordering of replacement map\n // - allow interceptors to run and potentially prevent individual operations\n // - don't recreate observables that already exist in original map (so we don't destroy existing subscriptions)\n // - don't _keysAtom.reportChanged if the keys of resulting map are indentical (order matters!)\n // - note that result map may differ from replacement map due to the interceptors\n transaction(() => {\n // Convert to map so we can do quick key lookups\n const replacementMap = convertToMap(values)\n const orderedData = new Map()\n // Used for optimization\n let keysReportChangedCalled = false\n // Delete keys that don't exist in replacement map\n // if the key deletion is prevented by interceptor\n // add entry at the beginning of the result map\n for (const key of this.data_.keys()) {\n // Concurrently iterating/deleting keys\n // iterator should handle this correctly\n if (!replacementMap.has(key)) {\n const deleted = this.delete(key)\n // Was the key removed?\n if (deleted) {\n // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true\n } else {\n // Delete prevented by interceptor\n const value = this.data_.get(key)\n orderedData.set(key, value)\n }\n }\n }\n // Merge entries\n for (const [key, value] of replacementMap.entries()) {\n // We will want to know whether a new key is added\n const keyExisted = this.data_.has(key)\n // Add or update value\n this.set(key, value)\n // The addition could have been prevent by interceptor\n if (this.data_.has(key)) {\n // The update could have been prevented by interceptor\n // and also we want to preserve existing values\n // so use value from _data map (instead of replacement map)\n const value = this.data_.get(key)\n orderedData.set(key, value)\n // Was a new key added?\n if (!keyExisted) {\n // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true\n }\n }\n }\n // Check for possible key order change\n if (!keysReportChangedCalled) {\n if (this.data_.size !== orderedData.size) {\n // If size differs, keys are definitely modified\n this.keysAtom_.reportChanged()\n } else {\n const iter1 = this.data_.keys()\n const iter2 = orderedData.keys()\n let next1 = iter1.next()\n let next2 = iter2.next()\n while (!next1.done) {\n if (next1.value !== next2.value) {\n this.keysAtom_.reportChanged()\n break\n }\n next1 = iter1.next()\n next2 = iter2.next()\n }\n }\n }\n // Use correctly ordered map\n this.data_ = orderedData\n })\n return this\n }\n\n get size(): number {\n this.keysAtom_.reportObserved()\n return this.data_.size\n }\n\n toString(): string {\n return \"[object ObservableMap]\"\n }\n\n toJSON(): [K, V][] {\n return Array.from(this)\n }\n\n get [Symbol.toStringTag]() {\n return \"Map\"\n }\n\n /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */\n observe_(listener: (changes: IMapDidChange<K, V>) => void, fireImmediately?: boolean): Lambda {\n if (__DEV__ && fireImmediately === true) {\n die(\"`observe` doesn't support fireImmediately=true in combination with maps.\")\n }\n return registerListener(this, listener)\n }\n\n intercept_(handler: IInterceptor<IMapWillChange<K, V>>): Lambda {\n return registerInterceptor(this, handler)\n }\n}\n\n// eslint-disable-next-line\nexport var isObservableMap = createInstanceofPredicate(\"ObservableMap\", ObservableMap) as (\n thing: any\n) => thing is ObservableMap<any, any>\n\nfunction convertToMap(dataStructure: any): Map<any, any> {\n if (isES6Map(dataStructure) || isObservableMap(dataStructure)) {\n return dataStructure\n } else if (Array.isArray(dataStructure)) {\n return new Map(dataStructure)\n } else if (isPlainObject(dataStructure)) {\n const map = new Map()\n for (const key in dataStructure) {\n map.set(key, dataStructure[key])\n }\n return map\n } else {\n return die(21, dataStructure)\n }\n}\n","import {\n $mobx,\n createAtom,\n deepEnhancer,\n getNextId,\n IEnhancer,\n isSpyEnabled,\n hasListeners,\n IListenable,\n registerListener,\n Lambda,\n spyReportStart,\n notifyListeners,\n spyReportEnd,\n createInstanceofPredicate,\n hasInterceptors,\n interceptChange,\n IInterceptable,\n IInterceptor,\n registerInterceptor,\n checkIfStateModificationsAreAllowed,\n untracked,\n makeIterable,\n transaction,\n isES6Set,\n IAtom,\n DELETE,\n ADD,\n die,\n isFunction\n} from \"../internal\"\n\nconst ObservableSetMarker = {}\n\nexport type IObservableSetInitialValues<T> = Set<T> | readonly T[]\n\nexport type ISetDidChange<T = any> =\n | {\n object: ObservableSet<T>\n observableKind: \"set\"\n debugObjectName: string\n type: \"add\"\n newValue: T\n }\n | {\n object: ObservableSet<T>\n observableKind: \"set\"\n debugObjectName: string\n type: \"delete\"\n oldValue: T\n }\n\nexport type ISetWillChange<T = any> =\n | {\n type: \"delete\"\n object: ObservableSet<T>\n oldValue: T\n }\n | {\n type: \"add\"\n object: ObservableSet<T>\n newValue: T\n }\n\nexport class ObservableSet<T = any> implements Set<T>, IInterceptable<ISetWillChange>, IListenable {\n [$mobx] = ObservableSetMarker\n private data_: Set<any> = new Set()\n private atom_: IAtom\n changeListeners_\n interceptors_\n dehancer: any\n enhancer_: (newV: any, oldV: any | undefined) => any\n\n constructor(\n initialData?: IObservableSetInitialValues<T>,\n enhancer: IEnhancer<T> = deepEnhancer,\n public name_ = __DEV__ ? \"ObservableSet@\" + getNextId() : \"ObservableSet\"\n ) {\n if (!isFunction(Set)) {\n die(22)\n }\n this.atom_ = createAtom(this.name_)\n this.enhancer_ = (newV, oldV) => enhancer(newV, oldV, name_)\n if (initialData) {\n this.replace(initialData)\n }\n }\n\n private dehanceValue_<X extends T | undefined>(value: X): X {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n clear() {\n transaction(() => {\n untracked(() => {\n for (const value of this.data_.values()) {\n this.delete(value)\n }\n })\n })\n }\n\n forEach(callbackFn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any) {\n for (const value of this) {\n callbackFn.call(thisArg, value, value, this)\n }\n }\n\n get size() {\n this.atom_.reportObserved()\n return this.data_.size\n }\n\n add(value: T) {\n checkIfStateModificationsAreAllowed(this.atom_)\n if (hasInterceptors(this)) {\n const change = interceptChange<ISetWillChange<T>>(this, {\n type: ADD,\n object: this,\n newValue: value\n })\n if (!change) {\n return this\n }\n // ideally, value = change.value would be done here, so that values can be\n // changed by interceptor. Same applies for other Set and Map api's.\n }\n if (!this.has(value)) {\n transaction(() => {\n this.data_.add(this.enhancer_(value, undefined))\n this.atom_.reportChanged()\n })\n const notifySpy = __DEV__ && isSpyEnabled()\n const notify = hasListeners(this)\n const change =\n notify || notifySpy\n ? <ISetDidChange<T>>{\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n newValue: value\n }\n : null\n if (notifySpy && __DEV__) {\n spyReportStart(change!)\n }\n if (notify) {\n notifyListeners(this, change)\n }\n if (notifySpy && __DEV__) {\n spyReportEnd()\n }\n }\n\n return this\n }\n\n delete(value: T) {\n if (hasInterceptors(this)) {\n const change = interceptChange<ISetWillChange<T>>(this, {\n type: DELETE,\n object: this,\n oldValue: value\n })\n if (!change) {\n return false\n }\n }\n if (this.has(value)) {\n const notifySpy = __DEV__ && isSpyEnabled()\n const notify = hasListeners(this)\n const change =\n notify || notifySpy\n ? <ISetDidChange<T>>{\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: value\n }\n : null\n\n if (notifySpy && __DEV__) {\n spyReportStart(change!)\n }\n transaction(() => {\n this.atom_.reportChanged()\n this.data_.delete(value)\n })\n if (notify) {\n notifyListeners(this, change)\n }\n if (notifySpy && __DEV__) {\n spyReportEnd()\n }\n return true\n }\n return false\n }\n\n has(value: T) {\n this.atom_.reportObserved()\n return this.data_.has(this.dehanceValue_(value))\n }\n\n entries() {\n let nextIndex = 0\n const keys = Array.from(this.keys())\n const values = Array.from(this.values())\n return makeIterable<[T, T]>({\n next() {\n const index = nextIndex\n nextIndex += 1\n return index < values.length\n ? { value: [keys[index], values[index]], done: false }\n : { done: true }\n }\n } as any)\n }\n\n keys(): IterableIterator<T> {\n return this.values()\n }\n\n values(): IterableIterator<T> {\n this.atom_.reportObserved()\n const self = this\n let nextIndex = 0\n const observableValues = Array.from(this.data_.values())\n return makeIterable<T>({\n next() {\n return nextIndex < observableValues.length\n ? { value: self.dehanceValue_(observableValues[nextIndex++]), done: false }\n : { done: true }\n }\n } as any)\n }\n\n replace(other: ObservableSet<T> | IObservableSetInitialValues<T>): ObservableSet<T> {\n if (isObservableSet(other)) {\n other = new Set(other)\n }\n\n transaction(() => {\n if (Array.isArray(other)) {\n this.clear()\n other.forEach(value => this.add(value))\n } else if (isES6Set(other)) {\n this.clear()\n other.forEach(value => this.add(value))\n } else if (other !== null && other !== undefined) {\n die(\"Cannot initialize set from \" + other)\n }\n })\n\n return this\n }\n observe_(listener: (changes: ISetDidChange<T>) => void, fireImmediately?: boolean): Lambda {\n // ... 'fireImmediately' could also be true?\n if (__DEV__ && fireImmediately === true) {\n die(\"`observe` doesn't support fireImmediately=true in combination with sets.\")\n }\n return registerListener(this, listener)\n }\n\n intercept_(handler: IInterceptor<ISetWillChange<T>>): Lambda {\n return registerInterceptor(this, handler)\n }\n\n toJSON(): T[] {\n return Array.from(this)\n }\n\n toString(): string {\n return \"[object ObservableSet]\"\n }\n\n [Symbol.iterator]() {\n return this.values()\n }\n\n get [Symbol.toStringTag]() {\n return \"Set\"\n }\n}\n\n// eslint-disable-next-line\nexport var isObservableSet = createInstanceofPredicate(\"ObservableSet\", ObservableSet) as (\n thing: any\n) => thing is ObservableSet<any>\n","import {\n CreateObservableOptions,\n getAnnotationFromOptions,\n propagateChanged,\n isAnnotation,\n $mobx,\n Atom,\n Annotation,\n ComputedValue,\n IAtom,\n IComputedValueOptions,\n IEnhancer,\n IInterceptable,\n IListenable,\n Lambda,\n ObservableValue,\n addHiddenProp,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isObject,\n isPlainObject,\n isSpyEnabled,\n notifyListeners,\n referenceEnhancer,\n registerInterceptor,\n registerListener,\n spyReportEnd,\n spyReportStart,\n startBatch,\n stringifyKey,\n globalState,\n ADD,\n UPDATE,\n die,\n hasProp,\n getDescriptor,\n storedAnnotationsSymbol,\n ownKeys,\n isOverride,\n defineProperty,\n autoAnnotation,\n getAdministration,\n getDebugName,\n objectPrototype,\n MakeResult\n} from \"../internal\"\n\nconst descriptorCache = Object.create(null)\n\nexport type IObjectDidChange<T = any> = {\n observableKind: \"object\"\n name: PropertyKey\n object: T\n debugObjectName: string\n} & (\n | {\n type: \"add\"\n newValue: any\n }\n | {\n type: \"update\"\n oldValue: any\n newValue: any\n }\n | {\n type: \"remove\"\n oldValue: any\n }\n)\n\nexport type IObjectWillChange<T = any> =\n | {\n object: T\n type: \"update\" | \"add\"\n name: PropertyKey\n newValue: any\n }\n | {\n object: T\n type: \"remove\"\n name: PropertyKey\n }\n\nconst REMOVE = \"remove\"\n\nexport class ObservableObjectAdministration\n implements IInterceptable<IObjectWillChange>, IListenable\n{\n keysAtom_: IAtom\n changeListeners_\n interceptors_\n proxy_: any\n isPlainObject_: boolean\n appliedAnnotations_?: object\n private pendingKeys_: undefined | Map<PropertyKey, ObservableValue<boolean>>\n\n constructor(\n public target_: any,\n public values_ = new Map<PropertyKey, ObservableValue<any> | ComputedValue<any>>(),\n public name_: string,\n // Used anytime annotation is not explicitely provided\n public defaultAnnotation_: Annotation = autoAnnotation\n ) {\n this.keysAtom_ = new Atom(__DEV__ ? `${this.name_}.keys` : \"ObservableObject.keys\")\n // Optimization: we use this frequently\n this.isPlainObject_ = isPlainObject(this.target_)\n if (__DEV__ && !isAnnotation(this.defaultAnnotation_)) {\n die(`defaultAnnotation must be valid annotation`)\n }\n if (__DEV__) {\n // Prepare structure for tracking which fields were already annotated\n this.appliedAnnotations_ = {}\n }\n }\n\n getObservablePropValue_(key: PropertyKey): any {\n return this.values_.get(key)!.get()\n }\n\n setObservablePropValue_(key: PropertyKey, newValue): boolean | null {\n const observable = this.values_.get(key)\n if (observable instanceof ComputedValue) {\n observable.set(newValue)\n return true\n }\n\n // intercept\n if (hasInterceptors(this)) {\n const change = interceptChange<IObjectWillChange>(this, {\n type: UPDATE,\n object: this.proxy_ || this.target_,\n name: key,\n newValue\n })\n if (!change) {\n return null\n }\n newValue = (change as any).newValue\n }\n newValue = (observable as any).prepareNewValue_(newValue)\n\n // notify spy & observers\n if (newValue !== globalState.UNCHANGED) {\n const notify = hasListeners(this)\n const notifySpy = __DEV__ && isSpyEnabled()\n const change: IObjectDidChange | null =\n notify || notifySpy\n ? {\n type: UPDATE,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n oldValue: (observable as any).value_,\n name: key,\n newValue\n }\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n ;(observable as ObservableValue<any>).setNewValue_(newValue)\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n return true\n }\n\n get_(key: PropertyKey): any {\n if (globalState.trackingDerivation && !hasProp(this.target_, key)) {\n // Key doesn't exist yet, subscribe for it in case it's added later\n this.has_(key)\n }\n return this.target_[key]\n }\n\n /**\n * @param {PropertyKey} key\n * @param {any} value\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n set_(key: PropertyKey, value: any, proxyTrap: boolean = false): boolean | null {\n // Don't use .has(key) - we care about own\n if (hasProp(this.target_, key)) {\n // Existing prop\n if (this.values_.has(key)) {\n // Observable (can be intercepted)\n return this.setObservablePropValue_(key, value)\n } else if (proxyTrap) {\n // Non-observable - proxy\n return Reflect.set(this.target_, key, value)\n } else {\n // Non-observable\n this.target_[key] = value\n return true\n }\n } else {\n // New prop\n return this.extend_(\n key,\n { value, enumerable: true, writable: true, configurable: true },\n this.defaultAnnotation_,\n proxyTrap\n )\n }\n }\n\n // Trap for \"in\"\n has_(key: PropertyKey): boolean {\n if (!globalState.trackingDerivation) {\n // Skip key subscription outside derivation\n return key in this.target_\n }\n this.pendingKeys_ ||= new Map()\n let entry = this.pendingKeys_.get(key)\n if (!entry) {\n entry = new ObservableValue(\n key in this.target_,\n referenceEnhancer,\n __DEV__ ? `${this.name_}.${stringifyKey(key)}?` : \"ObservableObject.key?\",\n false\n )\n this.pendingKeys_.set(key, entry)\n }\n return entry.get()\n }\n\n /**\n * @param {PropertyKey} key\n * @param {Annotation|boolean} annotation true - use default annotation, false - ignore prop\n */\n make_(key: PropertyKey, annotation: Annotation | boolean): void {\n if (annotation === true) {\n annotation = this.defaultAnnotation_\n }\n if (annotation === false) {\n return\n }\n assertAnnotable(this, annotation, key)\n if (!(key in this.target_)) {\n // Throw on missing key, except for decorators:\n // Decorator annotations are collected from whole prototype chain.\n // When called from super() some props may not exist yet.\n // However we don't have to worry about missing prop,\n // because the decorator must have been applied to something.\n if (this.target_[storedAnnotationsSymbol]?.[key]) {\n return // will be annotated by subclass constructor\n } else {\n die(1, annotation.annotationType_, `${this.name_}.${key.toString()}`)\n }\n }\n let source = this.target_\n while (source && source !== objectPrototype) {\n const descriptor = getDescriptor(source, key)\n if (descriptor) {\n const outcome = annotation.make_(this, key, descriptor, source)\n if (outcome === MakeResult.Cancel) {\n return\n }\n if (outcome === MakeResult.Break) {\n break\n }\n }\n source = Object.getPrototypeOf(source)\n }\n recordAnnotationApplied(this, annotation, key)\n }\n\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n extend_(\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n annotation: Annotation | boolean,\n proxyTrap: boolean = false\n ): boolean | null {\n if (annotation === true) {\n annotation = this.defaultAnnotation_\n }\n if (annotation === false) {\n return this.defineProperty_(key, descriptor, proxyTrap)\n }\n assertAnnotable(this, annotation, key)\n const outcome = annotation.extend_(this, key, descriptor, proxyTrap)\n if (outcome) {\n recordAnnotationApplied(this, annotation, key)\n }\n return outcome\n }\n\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n defineProperty_(\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean = false\n ): boolean | null {\n try {\n startBatch()\n\n // Delete\n const deleteOutcome = this.delete_(key)\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome\n }\n\n // ADD interceptor\n if (hasInterceptors(this)) {\n const change = interceptChange<IObjectWillChange>(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: descriptor.value\n })\n if (!change) {\n return null\n }\n const { newValue } = change as any\n if (descriptor.value !== newValue) {\n descriptor = {\n ...descriptor,\n value: newValue\n }\n }\n }\n\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false\n }\n } else {\n defineProperty(this.target_, key, descriptor)\n }\n\n // Notify\n this.notifyPropertyAddition_(key, descriptor.value)\n } finally {\n endBatch()\n }\n return true\n }\n\n // If original descriptor becomes relevant, move this to annotation directly\n defineObservableProperty_(\n key: PropertyKey,\n value: any,\n enhancer: IEnhancer<any>,\n proxyTrap: boolean = false\n ): boolean | null {\n try {\n startBatch()\n\n // Delete\n const deleteOutcome = this.delete_(key)\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome\n }\n\n // ADD interceptor\n if (hasInterceptors(this)) {\n const change = interceptChange<IObjectWillChange>(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: value\n })\n if (!change) {\n return null\n }\n value = (change as any).newValue\n }\n\n const cachedDescriptor = getCachedObservablePropDescriptor(key)\n const descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: true,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n }\n\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false\n }\n } else {\n defineProperty(this.target_, key, descriptor)\n }\n\n const observable = new ObservableValue(\n value,\n enhancer,\n __DEV__ ? `${this.name_}.${key.toString()}` : \"ObservableObject.key\",\n false\n )\n\n this.values_.set(key, observable)\n\n // Notify (value possibly changed by ObservableValue)\n this.notifyPropertyAddition_(key, observable.value_)\n } finally {\n endBatch()\n }\n return true\n }\n\n // If original descriptor becomes relevant, move this to annotation directly\n defineComputedProperty_(\n key: PropertyKey,\n options: IComputedValueOptions<any>,\n proxyTrap: boolean = false\n ): boolean | null {\n try {\n startBatch()\n\n // Delete\n const deleteOutcome = this.delete_(key)\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome\n }\n\n // ADD interceptor\n if (hasInterceptors(this)) {\n const change = interceptChange<IObjectWillChange>(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: undefined\n })\n if (!change) {\n return null\n }\n }\n options.name ||= __DEV__ ? `${this.name_}.${key.toString()}` : \"ObservableObject.key\"\n options.context = this.proxy_ || this.target_\n const cachedDescriptor = getCachedObservablePropDescriptor(key)\n const descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: false,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n }\n\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false\n }\n } else {\n defineProperty(this.target_, key, descriptor)\n }\n\n this.values_.set(key, new ComputedValue(options))\n\n // Notify\n this.notifyPropertyAddition_(key, undefined)\n } finally {\n endBatch()\n }\n return true\n }\n\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n delete_(key: PropertyKey, proxyTrap: boolean = false): boolean | null {\n // No such prop\n if (!hasProp(this.target_, key)) {\n return true\n }\n\n // Intercept\n if (hasInterceptors(this)) {\n const change = interceptChange<IObjectWillChange>(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: REMOVE\n })\n // Cancelled\n if (!change) {\n return null\n }\n }\n\n // Delete\n try {\n startBatch()\n const notify = hasListeners(this)\n const notifySpy = __DEV__ && isSpyEnabled()\n const observable = this.values_.get(key)\n // Value needed for spies/listeners\n let value = undefined\n // Optimization: don't pull the value unless we will need it\n if (!observable && (notify || notifySpy)) {\n value = getDescriptor(this.target_, key)?.value\n }\n // delete prop (do first, may fail)\n if (proxyTrap) {\n if (!Reflect.deleteProperty(this.target_, key)) {\n return false\n }\n } else {\n delete this.target_[key]\n }\n // Allow re-annotating this field\n if (__DEV__) {\n delete this.appliedAnnotations_![key]\n }\n // Clear observable\n if (observable) {\n this.values_.delete(key)\n // for computed, value is undefined\n if (observable instanceof ObservableValue) {\n value = observable.value_\n }\n // Notify: autorun(() => obj[key]), see #1796\n propagateChanged(observable)\n }\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged()\n\n // Notify \"has\" observers\n // \"in\" as it may still exist in proto\n this.pendingKeys_?.get(key)?.set(key in this.target_)\n\n // Notify spies/listeners\n if (notify || notifySpy) {\n const change: IObjectDidChange = {\n type: REMOVE,\n observableKind: \"object\",\n object: this.proxy_ || this.target_,\n debugObjectName: this.name_,\n oldValue: value,\n name: key\n }\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n } finally {\n endBatch()\n }\n return true\n }\n\n /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */\n observe_(callback: (changes: IObjectDidChange) => void, fireImmediately?: boolean): Lambda {\n if (__DEV__ && fireImmediately === true) {\n die(\"`observe` doesn't support the fire immediately property for observable objects.\")\n }\n return registerListener(this, callback)\n }\n\n intercept_(handler): Lambda {\n return registerInterceptor(this, handler)\n }\n\n notifyPropertyAddition_(key: PropertyKey, value: any) {\n const notify = hasListeners(this)\n const notifySpy = __DEV__ && isSpyEnabled()\n if (notify || notifySpy) {\n const change: IObjectDidChange | null =\n notify || notifySpy\n ? ({\n type: ADD,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n name: key,\n newValue: value\n } as const)\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n this.pendingKeys_?.get(key)?.set(true)\n\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged()\n }\n\n ownKeys_(): ArrayLike<string | symbol> {\n this.keysAtom_.reportObserved()\n return ownKeys(this.target_)\n }\n\n keys_(): PropertyKey[] {\n // Returns enumerable && own, but unfortunately keysAtom will report on ANY key change.\n // There is no way to distinguish between Object.keys(object) and Reflect.ownKeys(object) - both are handled by ownKeys trap.\n // We can either over-report in Object.keys(object) or under-report in Reflect.ownKeys(object)\n // We choose to over-report in Object.keys(object), because:\n // - typically it's used with simple data objects\n // - when symbolic/non-enumerable keys are relevant Reflect.ownKeys works as expected\n this.keysAtom_.reportObserved()\n return Object.keys(this.target_)\n }\n}\n\nexport interface IIsObservableObject {\n $mobx: ObservableObjectAdministration\n}\n\nexport function asObservableObject(\n target: any,\n options?: CreateObservableOptions\n): IIsObservableObject {\n if (__DEV__ && options && isObservableObject(target)) {\n die(`Options can't be provided for already observable objects.`)\n }\n\n if (hasProp(target, $mobx)) {\n if (__DEV__ && !(getAdministration(target) instanceof ObservableObjectAdministration)) {\n die(\n `Cannot convert '${getDebugName(target)}' into observable object:` +\n `\\nThe target is already observable of different type.` +\n `\\nExtending builtins is not supported.`\n )\n }\n return target\n }\n\n if (__DEV__ && !Object.isExtensible(target)) {\n die(\"Cannot make the designated object observable; it is not extensible\")\n }\n\n const name =\n options?.name ??\n (__DEV__\n ? `${\n isPlainObject(target) ? \"ObservableObject\" : target.constructor.name\n }@${getNextId()}`\n : \"ObservableObject\")\n\n const adm = new ObservableObjectAdministration(\n target,\n new Map(),\n String(name),\n getAnnotationFromOptions(options)\n )\n\n addHiddenProp(target, $mobx, adm)\n\n return target\n}\n\nconst isObservableObjectAdministration = createInstanceofPredicate(\n \"ObservableObjectAdministration\",\n ObservableObjectAdministration\n)\n\nfunction getCachedObservablePropDescriptor(key) {\n return (\n descriptorCache[key] ||\n (descriptorCache[key] = {\n get() {\n return this[$mobx].getObservablePropValue_(key)\n },\n set(value) {\n return this[$mobx].setObservablePropValue_(key, value)\n }\n })\n )\n}\n\nexport function isObservableObject(thing: any): boolean {\n if (isObject(thing)) {\n return isObservableObjectAdministration((thing as any)[$mobx])\n }\n return false\n}\n\nexport function recordAnnotationApplied(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey\n) {\n if (__DEV__) {\n adm.appliedAnnotations_![key] = annotation\n }\n // Remove applied decorator annotation so we don't try to apply it again in subclass constructor\n delete adm.target_[storedAnnotationsSymbol]?.[key]\n}\n\nfunction assertAnnotable(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey\n) {\n // Valid annotation\n if (__DEV__ && !isAnnotation(annotation)) {\n die(`Cannot annotate '${adm.name_}.${key.toString()}': Invalid annotation.`)\n }\n\n /*\n // Configurable, not sealed, not frozen\n // Possibly not needed, just a little better error then the one thrown by engine.\n // Cases where this would be useful the most (subclass field initializer) are not interceptable by this.\n if (__DEV__) {\n const configurable = getDescriptor(adm.target_, key)?.configurable\n const frozen = Object.isFrozen(adm.target_)\n const sealed = Object.isSealed(adm.target_)\n if (!configurable || frozen || sealed) {\n const fieldName = `${adm.name_}.${key.toString()}`\n const requestedAnnotationType = annotation.annotationType_\n let error = `Cannot apply '${requestedAnnotationType}' to '${fieldName}':`\n if (frozen) {\n error += `\\nObject is frozen.`\n }\n if (sealed) {\n error += `\\nObject is sealed.`\n }\n if (!configurable) {\n error += `\\nproperty is not configurable.`\n // Mention only if caused by us to avoid confusion\n if (hasProp(adm.appliedAnnotations!, key)) {\n error += `\\nTo prevent accidental re-definition of a field by a subclass, `\n error += `all annotated fields of non-plain objects (classes) are not configurable.`\n }\n }\n die(error)\n }\n }\n */\n\n // Not annotated\n if (__DEV__ && !isOverride(annotation) && hasProp(adm.appliedAnnotations_!, key)) {\n const fieldName = `${adm.name_}.${key.toString()}`\n const currentAnnotationType = adm.appliedAnnotations_![key].annotationType_\n const requestedAnnotationType = annotation.annotationType_\n die(\n `Cannot apply '${requestedAnnotationType}' to '${fieldName}':` +\n `\\nThe field is already annotated with '${currentAnnotationType}'.` +\n `\\nRe-annotating fields is not allowed.` +\n `\\nUse 'override' annotation for methods overridden by subclass.`\n )\n }\n}\n","import {\n getNextId,\n addHiddenFinalProp,\n allowStateChangesStart,\n allowStateChangesEnd,\n makeIterable,\n addHiddenProp,\n ObservableArrayAdministration,\n $mobx,\n arrayExtensions,\n IEnhancer,\n isObservableArray,\n IObservableArray,\n defineProperty\n} from \"../internal\"\n\n// Bug in safari 9.* (or iOS 9 safari mobile). See #364\nconst ENTRY_0 = createArrayEntryDescriptor(0)\n\nconst safariPrototypeSetterInheritanceBug = (() => {\n let v = false\n const p = {}\n Object.defineProperty(p, \"0\", {\n set: () => {\n v = true\n }\n })\n Object.create(p)[\"0\"] = 1\n return v === false\n})()\n\n/**\n * This array buffer contains two lists of properties, so that all arrays\n * can recycle their property definitions, which significantly improves performance of creating\n * properties on the fly.\n */\nlet OBSERVABLE_ARRAY_BUFFER_SIZE = 0\n\n// Typescript workaround to make sure ObservableArray extends Array\nclass StubArray {}\nfunction inherit(ctor, proto) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(ctor.prototype, proto)\n } else if (ctor.prototype.__proto__ !== undefined) {\n ctor.prototype.__proto__ = proto\n } else {\n ctor.prototype = proto\n }\n}\ninherit(StubArray, Array.prototype)\n\n// Weex proto freeze protection was here,\n// but it is unclear why the hack is need as MobX never changed the prototype\n// anyway, so removed it in V6\n\nclass LegacyObservableArray<T> extends StubArray {\n constructor(\n initialValues: T[] | undefined,\n enhancer: IEnhancer<T>,\n name = __DEV__ ? \"ObservableArray@\" + getNextId() : \"ObservableArray\",\n owned = false\n ) {\n super()\n\n const adm = new ObservableArrayAdministration(name, enhancer, owned, true)\n adm.proxy_ = this as any\n addHiddenFinalProp(this, $mobx, adm)\n\n if (initialValues && initialValues.length) {\n const prev = allowStateChangesStart(true)\n // @ts-ignore\n this.spliceWithArray(0, 0, initialValues)\n allowStateChangesEnd(prev)\n }\n\n if (safariPrototypeSetterInheritanceBug) {\n // Seems that Safari won't use numeric prototype setter untill any * numeric property is\n // defined on the instance. After that it works fine, even if this property is deleted.\n Object.defineProperty(this, \"0\", ENTRY_0)\n }\n }\n\n concat(...arrays: T[][]): T[] {\n ;(this[$mobx] as ObservableArrayAdministration).atom_.reportObserved()\n return Array.prototype.concat.apply(\n (this as any).slice(),\n //@ts-ignore\n arrays.map(a => (isObservableArray(a) ? a.slice() : a))\n )\n }\n\n get length(): number {\n return (this[$mobx] as ObservableArrayAdministration).getArrayLength_()\n }\n\n set length(newLength: number) {\n ;(this[$mobx] as ObservableArrayAdministration).setArrayLength_(newLength)\n }\n\n get [Symbol.toStringTag]() {\n return \"Array\"\n }\n\n [Symbol.iterator]() {\n const self = this\n let nextIndex = 0\n return makeIterable({\n next() {\n return nextIndex < self.length\n ? { value: self[nextIndex++], done: false }\n : { done: true, value: undefined }\n }\n })\n }\n}\n\nObject.entries(arrayExtensions).forEach(([prop, fn]) => {\n if (prop !== \"concat\") {\n addHiddenProp(LegacyObservableArray.prototype, prop, fn)\n }\n})\n\nfunction createArrayEntryDescriptor(index: number) {\n return {\n enumerable: false,\n configurable: true,\n get: function () {\n return this[$mobx].get_(index)\n },\n set: function (value) {\n this[$mobx].set_(index, value)\n }\n }\n}\n\nfunction createArrayBufferItem(index: number) {\n defineProperty(LegacyObservableArray.prototype, \"\" + index, createArrayEntryDescriptor(index))\n}\n\nexport function reserveArrayBuffer(max: number) {\n if (max > OBSERVABLE_ARRAY_BUFFER_SIZE) {\n for (let index = OBSERVABLE_ARRAY_BUFFER_SIZE; index < max + 100; index++) {\n createArrayBufferItem(index)\n }\n OBSERVABLE_ARRAY_BUFFER_SIZE = max\n }\n}\n\nreserveArrayBuffer(1000)\n\nexport function createLegacyArray<T>(\n initialValues: T[] | undefined,\n enhancer: IEnhancer<T>,\n name?: string\n): IObservableArray<T> {\n return new LegacyObservableArray(initialValues, enhancer, name) as any\n}\n","import { isAction } from \"../api/action\"\nimport {\n $mobx,\n IDepTreeNode,\n isAtom,\n isComputedValue,\n isObservableArray,\n isObservableMap,\n isObservableObject,\n isReaction,\n isObservableSet,\n die,\n isFunction\n} from \"../internal\"\n\nexport function getAtom(thing: any, property?: PropertyKey): IDepTreeNode {\n if (typeof thing === \"object\" && thing !== null) {\n if (isObservableArray(thing)) {\n if (property !== undefined) {\n die(23)\n }\n return (thing as any)[$mobx].atom_\n }\n if (isObservableSet(thing)) {\n return (thing as any)[$mobx]\n }\n if (isObservableMap(thing)) {\n if (property === undefined) {\n return thing.keysAtom_\n }\n const observable = thing.data_.get(property) || thing.hasMap_.get(property)\n if (!observable) {\n die(25, property, getDebugName(thing))\n }\n return observable\n }\n if (property && !thing[$mobx]) {\n thing[property]\n } // See #1072\n if (isObservableObject(thing)) {\n if (!property) {\n return die(26)\n }\n const observable = (thing as any)[$mobx].values_.get(property)\n if (!observable) {\n die(27, property, getDebugName(thing))\n }\n return observable\n }\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) {\n return thing\n }\n } else if (isFunction(thing)) {\n if (isReaction(thing[$mobx])) {\n // disposer function\n return thing[$mobx]\n }\n }\n die(28)\n}\n\nexport function getAdministration(thing: any, property?: string) {\n if (!thing) {\n die(29)\n }\n if (property !== undefined) {\n return getAdministration(getAtom(thing, property))\n }\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) {\n return thing\n }\n if (isObservableMap(thing) || isObservableSet(thing)) {\n return thing\n }\n if (thing[$mobx]) {\n return thing[$mobx]\n }\n die(24, thing)\n}\n\nexport function getDebugName(thing: any, property?: string): string {\n let named\n if (property !== undefined) {\n named = getAtom(thing, property)\n } else if (isAction(thing)) {\n return thing.name\n } else if (isObservableObject(thing) || isObservableMap(thing) || isObservableSet(thing)) {\n named = getAdministration(thing)\n } else {\n // valid for arrays as well\n named = getAtom(thing)\n }\n return named.name_\n}\n","import {\n isES6Map,\n isObservableArray,\n isObservableMap,\n isES6Set,\n isObservableSet,\n hasProp,\n isFunction,\n objectPrototype\n} from \"../internal\"\n\ndeclare const Symbol\nconst toString = objectPrototype.toString\n\nexport function deepEqual(a: any, b: any, depth: number = -1): boolean {\n return eq(a, b, depth)\n}\n\n// Copied from https://github.com/jashkenas/underscore/blob/5c237a7c682fb68fd5378203f0bf22dce1624854/underscore.js#L1186-L1289\n// Internal recursive comparison function for `isEqual`.\nfunction eq(a: any, b: any, depth: number, aStack?: any[], bStack?: any[]) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) {\n return a !== 0 || 1 / a === 1 / b\n }\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) {\n return false\n }\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) {\n return b !== b\n }\n // Exhaust primitive checks\n const type = typeof a\n if (type !== \"function\" && type !== \"object\" && typeof b != \"object\") {\n return false\n }\n\n // Compare `[[Class]]` names.\n const className = toString.call(a)\n if (className !== toString.call(b)) {\n return false\n }\n switch (className) {\n // Strings, numbers, regular expressions, dates, and booleans are compared by value.\n case \"[object RegExp]\":\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case \"[object String]\":\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return \"\" + a === \"\" + b\n case \"[object Number]\":\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) {\n return +b !== +b\n }\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b\n case \"[object Date]\":\n case \"[object Boolean]\":\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b\n case \"[object Symbol]\":\n return (\n typeof Symbol !== \"undefined\" && Symbol.valueOf.call(a) === Symbol.valueOf.call(b)\n )\n case \"[object Map]\":\n case \"[object Set]\":\n // Maps and Sets are unwrapped to arrays of entry-pairs, adding an incidental level.\n // Hide this extra level by increasing the depth.\n if (depth >= 0) {\n depth++\n }\n break\n }\n // Unwrap any wrapped objects.\n a = unwrap(a)\n b = unwrap(b)\n\n const areArrays = className === \"[object Array]\"\n if (!areArrays) {\n if (typeof a != \"object\" || typeof b != \"object\") {\n return false\n }\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n const aCtor = a.constructor,\n bCtor = b.constructor\n if (\n aCtor !== bCtor &&\n !(\n isFunction(aCtor) &&\n aCtor instanceof aCtor &&\n isFunction(bCtor) &&\n bCtor instanceof bCtor\n ) &&\n \"constructor\" in a &&\n \"constructor\" in b\n ) {\n return false\n }\n }\n\n if (depth === 0) {\n return false\n } else if (depth < 0) {\n depth = -1\n }\n\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || []\n bStack = bStack || []\n let length = aStack.length\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) {\n return bStack[length] === b\n }\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a)\n bStack.push(b)\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length\n if (length !== b.length) {\n return false\n }\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], depth - 1, aStack, bStack)) {\n return false\n }\n }\n } else {\n // Deep compare objects.\n const keys = Object.keys(a)\n let key\n length = keys.length\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (Object.keys(b).length !== length) {\n return false\n }\n while (length--) {\n // Deep compare each member\n key = keys[length]\n if (!(hasProp(b, key) && eq(a[key], b[key], depth - 1, aStack, bStack))) {\n return false\n }\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop()\n bStack.pop()\n return true\n}\n\nfunction unwrap(a: any) {\n if (isObservableArray(a)) {\n return a.slice()\n }\n if (isES6Map(a) || isObservableMap(a)) {\n return Array.from(a.entries())\n }\n if (isES6Set(a) || isObservableSet(a)) {\n return Array.from(a.entries())\n }\n return a\n}\n","export function makeIterable<T>(iterator: Iterator<T>): IterableIterator<T> {\n iterator[Symbol.iterator] = getSelf\n return iterator as any\n}\n\nfunction getSelf() {\n return this\n}\n","import { makeObservable } from \"mobx\"\nimport { useState } from \"react\"\n\nif (!useState) {\n throw new Error(\"mobx-react-lite requires React with Hooks support\")\n}\nif (!makeObservable) {\n throw new Error(\"mobx-react-lite@3 requires mobx at least version 6 to be available\")\n}\n","/**\n * (c) Michel Weststrate 2015 - 2020\n * MIT Licensed\n *\n * Welcome to the mobx sources! To get a global overview of how MobX internally works,\n * this is a good place to start:\n * https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74\n *\n * Source folders:\n * ===============\n *\n * - api/ Most of the public static methods exposed by the module can be found here.\n * - core/ Implementation of the MobX algorithm; atoms, derivations, reactions, dependency trees, optimizations. Cool stuff can be found here.\n * - types/ All the magic that is need to have observable objects, arrays and values is in this folder. Including the modifiers like `asFlat`.\n * - utils/ Utility stuff.\n *\n */\nimport { die } from \"./errors\"\nimport { getGlobal } from \"./utils/global\"\n;[\"Symbol\", \"Map\", \"Set\"].forEach(m => {\n let g = getGlobal()\n if (typeof g[m] === \"undefined\") {\n die(`MobX requires global '${m}' to be available or polyfilled`)\n }\n})\n\nimport { spy, getDebugName, $mobx } from \"./internal\"\n\nexport {\n IObservable,\n IDepTreeNode,\n Reaction,\n IReactionPublic,\n IReactionDisposer,\n untracked,\n IAtom,\n createAtom,\n spy,\n IComputedValue,\n IEqualsComparer,\n comparer,\n IEnhancer,\n IInterceptable,\n IInterceptor,\n IListenable,\n IObjectWillChange,\n IObjectDidChange,\n isObservableObject,\n IValueDidChange,\n IValueWillChange,\n IObservableValue,\n isObservableValue as isBoxedObservable,\n IObservableArray,\n IArrayWillChange,\n IArrayWillSplice,\n IArraySplice,\n IArrayUpdate,\n IArrayDidChange,\n isObservableArray,\n IKeyValueMap,\n ObservableMap,\n IMapEntries,\n IMapEntry,\n IMapWillChange,\n IMapDidChange,\n isObservableMap,\n IObservableMapInitialValues,\n ObservableSet,\n isObservableSet,\n ISetDidChange,\n ISetWillChange,\n IObservableSetInitialValues,\n transaction,\n observable,\n IObservableFactory,\n CreateObservableOptions,\n computed,\n IComputedFactory,\n isObservable,\n isObservableProp,\n isComputed,\n isComputedProp,\n extendObservable,\n observe,\n intercept,\n autorun,\n IAutorunOptions,\n reaction,\n IReactionOptions,\n when,\n IWhenOptions,\n action,\n isAction,\n runInAction,\n IActionFactory,\n keys,\n values,\n entries,\n set,\n remove,\n has,\n get,\n apiOwnKeys as ownKeys,\n apiDefineProperty as defineProperty,\n configure,\n onBecomeObserved,\n onBecomeUnobserved,\n flow,\n isFlow,\n flowResult,\n FlowCancellationError,\n isFlowCancellationError,\n toJS,\n trace,\n IObserverTree,\n IDependencyTree,\n getDependencyTree,\n getObserverTree,\n resetGlobalState as _resetGlobalState,\n getGlobalState as _getGlobalState,\n getDebugName,\n getAtom,\n getAdministration as _getAdministration,\n allowStateChanges as _allowStateChanges,\n runInAction as _allowStateChangesInsideComputed, // This has become the default behavior in Mobx 6\n Lambda,\n $mobx,\n isComputingDerivation as _isComputingDerivation,\n onReactionError,\n interceptReads as _interceptReads,\n IComputedValueOptions,\n IActionRunInfo,\n _startAction,\n _endAction,\n allowStateReadsStart as _allowStateReadsStart,\n allowStateReadsEnd as _allowStateReadsEnd,\n makeObservable,\n makeAutoObservable,\n autoAction as _autoAction,\n AnnotationsMap,\n AnnotationMapEntry,\n override\n} from \"./internal\"\n\n// Devtools support\ndeclare const __MOBX_DEVTOOLS_GLOBAL_HOOK__: { injectMobx: (any) => void }\nif (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === \"object\") {\n // See: https://github.com/andykog/mobx-devtools/\n __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({\n spy,\n extras: {\n getDebugName\n },\n $mobx\n })\n}\n","import { configure } from \"mobx\"\n\nexport function defaultNoopBatch(callback: () => void) {\n callback()\n}\n\nexport function observerBatching(reactionScheduler: any) {\n if (!reactionScheduler) {\n reactionScheduler = defaultNoopBatch\n if (\"production\" !== process.env.NODE_ENV) {\n console.warn(\n \"[MobX] Failed to get unstable_batched updates from react-dom / react-native\"\n )\n }\n }\n configure({ reactionScheduler })\n}\n\nexport const isObserverBatched = () => {\n if (\"production\" !== process.env.NODE_ENV) {\n console.warn(\"[MobX] Deprecated\")\n }\n\n return true\n}\n","import { getDependencyTree, Reaction } from \"mobx\"\n\nexport function printDebugValue(v: Reaction) {\n return getDependencyTree(v)\n}\n","declare class FinalizationRegistryType<T> {\n constructor(cleanup: (cleanupToken: T) => void)\n register(object: object, cleanupToken: T, unregisterToken?: object): void\n unregister(unregisterToken: object): void\n}\n\ndeclare const FinalizationRegistry: typeof FinalizationRegistryType | undefined\n\nconst FinalizationRegistryLocal =\n typeof FinalizationRegistry === \"undefined\" ? undefined : FinalizationRegistry\n\nexport { FinalizationRegistryLocal as FinalizationRegistry }\n","import { Reaction } from \"mobx\"\n\nexport function createTrackingData(reaction: Reaction) {\n const trackingData: IReactionTracking = {\n reaction,\n mounted: false,\n changedBeforeMount: false,\n cleanAt: Date.now() + CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS\n }\n return trackingData\n}\n\n/**\n * Unified api for timers/Finalization registry cleanups\n * This abstraction make useObserver much simpler\n */\nexport interface ReactionCleanupTracking {\n /**\n *\n * @param reaction The reaction to cleanup\n * @param objectRetainedByReact This will be in actual use only when FinalizationRegister is in use\n */\n addReactionToTrack(\n reactionTrackingRef: React.MutableRefObject<IReactionTracking | null>,\n reaction: Reaction,\n objectRetainedByReact: object\n ): IReactionTracking\n recordReactionAsCommitted(reactionRef: React.MutableRefObject<IReactionTracking | null>): void\n forceCleanupTimerToRunNowForTests(): void\n resetCleanupScheduleForTests(): void\n}\n\nexport interface IReactionTracking {\n /** The Reaction created during first render, which may be leaked */\n reaction: Reaction\n /**\n * The time (in ticks) at which point we should dispose of the reaction\n * if this component hasn't yet been fully mounted.\n */\n cleanAt: number\n\n /**\n * Whether the component has yet completed mounting (for us, whether\n * its useEffect has run)\n */\n mounted: boolean\n\n /**\n * Whether the observables that the component is tracking changed between\n * the first render and the first useEffect.\n */\n changedBeforeMount: boolean\n\n /**\n * In case we are using finalization registry based cleanup,\n * this will hold the cleanup token associated with this reaction\n */\n finalizationRegistryCleanupToken?: number\n}\n\n/**\n * The minimum time before we'll clean up a Reaction created in a render\n * for a component that hasn't managed to run its effects. This needs to\n * be big enough to ensure that a component won't turn up and have its\n * effects run without being re-rendered.\n */\nexport const CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS = 10_000\n\n/**\n * The frequency with which we'll check for leaked reactions.\n */\nexport const CLEANUP_TIMER_LOOP_MILLIS = 10_000\n","import { FinalizationRegistry as FinalizationRegistryMaybeUndefined } from \"./FinalizationRegistryWrapper\"\nimport { createReactionCleanupTrackingUsingFinalizationRegister } from \"./createReactionCleanupTrackingUsingFinalizationRegister\"\nimport { createTimerBasedReactionCleanupTracking } from \"./createTimerBasedReactionCleanupTracking\"\nexport { IReactionTracking } from \"./reactionCleanupTrackingCommon\"\n\nconst {\n addReactionToTrack,\n recordReactionAsCommitted,\n resetCleanupScheduleForTests,\n forceCleanupTimerToRunNowForTests\n} = FinalizationRegistryMaybeUndefined\n ? createReactionCleanupTrackingUsingFinalizationRegister(FinalizationRegistryMaybeUndefined)\n : createTimerBasedReactionCleanupTracking()\n\nexport {\n addReactionToTrack,\n recordReactionAsCommitted,\n resetCleanupScheduleForTests,\n forceCleanupTimerToRunNowForTests\n}\n","import { FinalizationRegistry as FinalizationRegistryMaybeUndefined } from \"./FinalizationRegistryWrapper\"\nimport { Reaction } from \"mobx\"\nimport {\n ReactionCleanupTracking,\n IReactionTracking,\n createTrackingData\n} from \"./reactionCleanupTrackingCommon\"\n\n/**\n * FinalizationRegistry-based uncommitted reaction cleanup\n */\nexport function createReactionCleanupTrackingUsingFinalizationRegister(\n FinalizationRegistry: NonNullable<typeof FinalizationRegistryMaybeUndefined>\n): ReactionCleanupTracking {\n const cleanupTokenToReactionTrackingMap = new Map<number, IReactionTracking>()\n let globalCleanupTokensCounter = 1\n\n const registry = new FinalizationRegistry(function cleanupFunction(token: number) {\n const trackedReaction = cleanupTokenToReactionTrackingMap.get(token)\n if (trackedReaction) {\n trackedReaction.reaction.dispose()\n cleanupTokenToReactionTrackingMap.delete(token)\n }\n })\n\n return {\n addReactionToTrack(\n reactionTrackingRef: React.MutableRefObject<IReactionTracking | null>,\n reaction: Reaction,\n objectRetainedByReact: object\n ) {\n const token = globalCleanupTokensCounter++\n\n registry.register(objectRetainedByReact, token, reactionTrackingRef)\n reactionTrackingRef.current = createTrackingData(reaction)\n reactionTrackingRef.current.finalizationRegistryCleanupToken = token\n cleanupTokenToReactionTrackingMap.set(token, reactionTrackingRef.current)\n\n return reactionTrackingRef.current\n },\n recordReactionAsCommitted(reactionRef: React.MutableRefObject<IReactionTracking | null>) {\n registry.unregister(reactionRef)\n\n if (reactionRef.current && reactionRef.current.finalizationRegistryCleanupToken) {\n cleanupTokenToReactionTrackingMap.delete(\n reactionRef.current.finalizationRegistryCleanupToken\n )\n }\n },\n forceCleanupTimerToRunNowForTests() {\n // When FinalizationRegistry in use, this this is no-op\n },\n resetCleanupScheduleForTests() {\n // When FinalizationRegistry in use, this this is no-op\n }\n }\n}\n","import { Reaction } from \"mobx\"\nimport {\n ReactionCleanupTracking,\n IReactionTracking,\n CLEANUP_TIMER_LOOP_MILLIS,\n createTrackingData\n} from \"./reactionCleanupTrackingCommon\"\n\n/**\n * timers, gc-style, uncommitted reaction cleanup\n */\nexport function createTimerBasedReactionCleanupTracking(): ReactionCleanupTracking {\n /**\n * Reactions created by components that have yet to be fully mounted.\n */\n const uncommittedReactionRefs: Set<React.MutableRefObject<IReactionTracking | null>> = new Set()\n\n /**\n * Latest 'uncommitted reactions' cleanup timer handle.\n */\n let reactionCleanupHandle: ReturnType<typeof setTimeout> | undefined\n\n /* istanbul ignore next */\n /**\n * Only to be used by test functions; do not export outside of mobx-react-lite\n */\n function forceCleanupTimerToRunNowForTests() {\n // This allows us to control the execution of the cleanup timer\n // to force it to run at awkward times in unit tests.\n if (reactionCleanupHandle) {\n clearTimeout(reactionCleanupHandle)\n cleanUncommittedReactions()\n }\n }\n\n /* istanbul ignore next */\n function resetCleanupScheduleForTests() {\n if (uncommittedReactionRefs.size > 0) {\n for (const ref of uncommittedReactionRefs) {\n const tracking = ref.current\n if (tracking) {\n tracking.reaction.dispose()\n ref.current = null\n }\n }\n uncommittedReactionRefs.clear()\n }\n\n if (reactionCleanupHandle) {\n clearTimeout(reactionCleanupHandle)\n reactionCleanupHandle = undefined\n }\n }\n\n function ensureCleanupTimerRunning() {\n if (reactionCleanupHandle === undefined) {\n reactionCleanupHandle = setTimeout(cleanUncommittedReactions, CLEANUP_TIMER_LOOP_MILLIS)\n }\n }\n\n function scheduleCleanupOfReactionIfLeaked(\n ref: React.MutableRefObject<IReactionTracking | null>\n ) {\n uncommittedReactionRefs.add(ref)\n\n ensureCleanupTimerRunning()\n }\n\n function recordReactionAsCommitted(\n reactionRef: React.MutableRefObject<IReactionTracking | null>\n ) {\n uncommittedReactionRefs.delete(reactionRef)\n }\n\n /**\n * Run by the cleanup timer to dispose any outstanding reactions\n */\n function cleanUncommittedReactions() {\n reactionCleanupHandle = undefined\n\n // Loop through all the candidate leaked reactions; those older\n // than CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS get tidied.\n\n const now = Date.now()\n uncommittedReactionRefs.forEach(ref => {\n const tracking = ref.current\n if (tracking) {\n if (now >= tracking.cleanAt) {\n // It's time to tidy up this leaked reaction.\n tracking.reaction.dispose()\n ref.current = null\n uncommittedReactionRefs.delete(ref)\n }\n }\n })\n\n if (uncommittedReactionRefs.size > 0) {\n // We've just finished a round of cleanups but there are still\n // some leak candidates outstanding.\n ensureCleanupTimerRunning()\n }\n }\n\n return {\n addReactionToTrack(\n reactionTrackingRef: React.MutableRefObject<IReactionTracking | null>,\n reaction: Reaction,\n /**\n * On timer based implementation we don't really need this object,\n * but we keep the same api\n */\n objectRetainedByReact: unknown\n ) {\n reactionTrackingRef.current = createTrackingData(reaction)\n scheduleCleanupOfReactionIfLeaked(reactionTrackingRef)\n return reactionTrackingRef.current\n },\n recordReactionAsCommitted,\n forceCleanupTimerToRunNowForTests,\n resetCleanupScheduleForTests\n }\n}\n","let globalIsUsingStaticRendering = false\n\nexport function enableStaticRendering(enable: boolean) {\n globalIsUsingStaticRendering = enable\n}\n\nexport function isUsingStaticRendering(): boolean {\n return globalIsUsingStaticRendering\n}\n","import { Reaction } from \"mobx\"\nimport React from \"react\"\nimport { printDebugValue } from \"./utils/printDebugValue\"\nimport {\n addReactionToTrack,\n IReactionTracking,\n recordReactionAsCommitted\n} from \"./utils/reactionCleanupTracking\"\nimport { isUsingStaticRendering } from \"./staticRendering\"\n\nfunction observerComponentNameFor(baseComponentName: string) {\n return `observer${baseComponentName}`\n}\n\n/**\n * We use class to make it easier to detect in heap snapshots by name\n */\nclass ObjectToBeRetainedByReact {}\n\nfunction objectToBeRetainedByReactFactory() {\n return new ObjectToBeRetainedByReact()\n}\n\nexport function useObserver<T>(fn: () => T, baseComponentName: string = \"observed\"): T {\n if (isUsingStaticRendering()) {\n return fn()\n }\n\n const [objectRetainedByReact] = React.useState(objectToBeRetainedByReactFactory)\n // Force update, see #2982\n const [, setState] = React.useState()\n const forceUpdate = () => setState([] as any)\n\n // StrictMode/ConcurrentMode/Suspense may mean that our component is\n // rendered and abandoned multiple times, so we need to track leaked\n // Reactions.\n const reactionTrackingRef = React.useRef<IReactionTracking | null>(null)\n\n if (!reactionTrackingRef.current) {\n // First render for this component (or first time since a previous\n // reaction from an abandoned render was disposed).\n\n const newReaction = new Reaction(observerComponentNameFor(baseComponentName), () => {\n // Observable has changed, meaning we want to re-render\n // BUT if we're a component that hasn't yet got to the useEffect()\n // stage, we might be a component that _started_ to render, but\n // got dropped, and we don't want to make state changes then.\n // (It triggers warnings in StrictMode, for a start.)\n if (trackingData.mounted) {\n // We have reached useEffect(), so we're mounted, and can trigger an update\n forceUpdate()\n } else {\n // We haven't yet reached useEffect(), so we'll need to trigger a re-render\n // when (and if) useEffect() arrives.\n trackingData.changedBeforeMount = true\n }\n })\n\n const trackingData = addReactionToTrack(\n reactionTrackingRef,\n newReaction,\n objectRetainedByReact\n )\n }\n\n const { reaction } = reactionTrackingRef.current!\n React.useDebugValue(reaction, printDebugValue)\n\n React.useEffect(() => {\n // Called on first mount only\n recordReactionAsCommitted(reactionTrackingRef)\n\n if (reactionTrackingRef.current) {\n // Great. We've already got our reaction from our render;\n // all we need to do is to record that it's now mounted,\n // to allow future observable changes to trigger re-renders\n reactionTrackingRef.current.mounted = true\n // Got a change before first mount, force an update\n if (reactionTrackingRef.current.changedBeforeMount) {\n reactionTrackingRef.current.changedBeforeMount = false\n forceUpdate()\n }\n } else {\n // The reaction we set up in our render has been disposed.\n // This can be due to bad timings of renderings, e.g. our\n // component was paused for a _very_ long time, and our\n // reaction got cleaned up\n\n // Re-create the reaction\n reactionTrackingRef.current = {\n reaction: new Reaction(observerComponentNameFor(baseComponentName), () => {\n // We've definitely already been mounted at this point\n forceUpdate()\n }),\n mounted: true,\n changedBeforeMount: false,\n cleanAt: Infinity\n }\n forceUpdate()\n }\n\n return () => {\n reactionTrackingRef.current!.reaction.dispose()\n reactionTrackingRef.current = null\n }\n }, [])\n\n // render the original component, but have the\n // reaction track the observables, so that rendering\n // can be invalidated (see above) once a dependency changes\n let rendering!: T\n let exception\n reaction.track(() => {\n try {\n rendering = fn()\n } catch (e) {\n exception = e\n }\n })\n\n if (exception) {\n throw exception // re-throw any exceptions caught during rendering\n }\n\n return rendering\n}\n","import { forwardRef, memo } from \"react\"\n\nimport { isUsingStaticRendering } from \"./staticRendering\"\nimport { useObserver } from \"./useObserver\"\n\nlet warnObserverOptionsDeprecated = true\n\nconst hasSymbol = typeof Symbol === \"function\" && Symbol.for\n// Using react-is had some issues (and operates on elements, not on types), see #608 / #609\nconst ReactForwardRefSymbol = hasSymbol\n ? Symbol.for(\"react.forward_ref\")\n : typeof forwardRef === \"function\" && forwardRef((props: any) => null)[\"$$typeof\"]\n\nconst ReactMemoSymbol = hasSymbol\n ? Symbol.for(\"react.memo\")\n : typeof memo === \"function\" && memo((props: any) => null)[\"$$typeof\"]\n\nexport interface IObserverOptions {\n readonly forwardRef?: boolean\n}\n\nexport function observer<P extends object, TRef = {}>(\n baseComponent: React.ForwardRefRenderFunction<TRef, P>,\n options: IObserverOptions & { forwardRef: true }\n): React.MemoExoticComponent<\n React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<TRef>>\n>\n\nexport function observer<P extends object, TRef = {}>(\n baseComponent: React.ForwardRefExoticComponent<\n React.PropsWithoutRef<P> & React.RefAttributes<TRef>\n >\n): React.MemoExoticComponent<\n React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<TRef>>\n>\n\nexport function observer<P extends object>(\n baseComponent: React.FunctionComponent<P>,\n options?: IObserverOptions\n): React.FunctionComponent<P>\n\nexport function observer<\n C extends React.FunctionComponent<any> | React.ForwardRefRenderFunction<any>,\n Options extends IObserverOptions\n>(\n baseComponent: C,\n options?: Options\n): Options extends { forwardRef: true }\n ? C extends React.ForwardRefRenderFunction<infer TRef, infer P>\n ? C &\n React.MemoExoticComponent<\n React.ForwardRefExoticComponent<\n React.PropsWithoutRef<P> & React.RefAttributes<TRef>\n >\n >\n : never /* forwardRef set for a non forwarding component */\n : C & { displayName: string }\n\n// n.b. base case is not used for actual typings or exported in the typing files\nexport function observer<P extends object, TRef = {}>(\n baseComponent:\n | React.ForwardRefRenderFunction<TRef, P>\n | React.FunctionComponent<P>\n | React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<TRef>>,\n // TODO remove in next major\n options?: IObserverOptions\n) {\n if (process.env.NODE_ENV !== \"production\" && warnObserverOptionsDeprecated && options) {\n warnObserverOptionsDeprecated = false\n console.warn(\n `[mobx-react-lite] \\`observer(fn, { forwardRef: true })\\` is deprecated, use \\`observer(React.forwardRef(fn))\\``\n )\n }\n\n if (ReactMemoSymbol && baseComponent[\"$$typeof\"] === ReactMemoSymbol) {\n throw new Error(\n `[mobx-react-lite] You are trying to use \\`observer\\` on a function component wrapped in either another \\`observer\\` or \\`React.memo\\`. The observer already applies 'React.memo' for you.`\n )\n }\n\n // The working of observer is explained step by step in this talk: https://www.youtube.com/watch?v=cPF4iBedoF0&feature=youtu.be&t=1307\n if (isUsingStaticRendering()) {\n return baseComponent\n }\n\n let useForwardRef = options?.forwardRef ?? false\n let render = baseComponent\n\n const baseComponentName = baseComponent.displayName || baseComponent.name\n\n // If already wrapped with forwardRef, unwrap,\n // so we can patch render and apply memo\n if (ReactForwardRefSymbol && baseComponent[\"$$typeof\"] === ReactForwardRefSymbol) {\n useForwardRef = true\n render = baseComponent[\"render\"]\n if (typeof render !== \"function\") {\n throw new Error(\n `[mobx-react-lite] \\`render\\` property of ForwardRef was not a function`\n )\n }\n }\n\n let observerComponent = (props: any, ref: React.Ref<TRef>) => {\n return useObserver(() => render(props, ref), baseComponentName)\n }\n\n // Don't set `displayName` for anonymous components,\n // so the `displayName` can be customized by user, see #3192.\n if (baseComponentName !== \"\") {\n ;(observerComponent as React.FunctionComponent).displayName = baseComponentName\n }\n\n // Support legacy context: `contextTypes` must be applied before `memo`\n if ((baseComponent as any).contextTypes) {\n ;(observerComponent as React.FunctionComponent).contextTypes = (\n baseComponent as any\n ).contextTypes\n }\n\n if (useForwardRef) {\n // `forwardRef` must be applied prior `memo`\n // `forwardRef(observer(cmp))` throws:\n // \"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))\"\n observerComponent = forwardRef(observerComponent)\n }\n\n // memo; we are not interested in deep updates\n // in props; we assume that if deep objects are changed,\n // this is in observables, which would have been tracked anyway\n observerComponent = memo(observerComponent)\n\n copyStaticProperties(baseComponent, observerComponent)\n\n if (\"production\" !== process.env.NODE_ENV) {\n Object.defineProperty(observerComponent, \"contextTypes\", {\n set() {\n throw new Error(\n `[mobx-react-lite] \\`${\n this.displayName || this.type?.displayName || \"Component\"\n }.contextTypes\\` must be set before applying \\`observer\\`.`\n )\n }\n })\n }\n\n return observerComponent\n}\n\n// based on https://github.com/mridgway/hoist-non-react-statics/blob/master/src/index.js\nconst hoistBlackList: any = {\n $$typeof: true,\n render: true,\n compare: true,\n type: true,\n // Don't redefine `displayName`,\n // it's defined as getter-setter pair on `memo` (see #3192).\n displayName: true\n}\n\nfunction copyStaticProperties(base: any, target: any) {\n Object.keys(base).forEach(key => {\n if (!hoistBlackList[key]) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(base, key)!)\n }\n })\n}\n","import \"./utils/assertEnvironment\"\n\nimport { unstable_batchedUpdates as batch } from \"./utils/reactBatchedUpdates\"\nimport { observerBatching } from \"./utils/observerBatching\"\nimport { useDeprecated } from \"./utils/utils\"\nimport { useObserver as useObserverOriginal } from \"./useObserver\"\nimport { enableStaticRendering } from \"./staticRendering\"\n\nobserverBatching(batch)\n\nexport { isUsingStaticRendering, enableStaticRendering } from \"./staticRendering\"\nexport { observer, IObserverOptions } from \"./observer\"\nexport { Observer } from \"./ObserverComponent\"\nexport { useLocalObservable } from \"./useLocalObservable\"\nexport { useLocalStore } from \"./useLocalStore\"\nexport { useAsObservableSource } from \"./useAsObservableSource\"\nexport { resetCleanupScheduleForTests as clearTimers } from \"./utils/reactionCleanupTracking\"\n\nexport function useObserver<T>(fn: () => T, baseComponentName: string = \"observed\"): T {\n if (\"production\" !== process.env.NODE_ENV) {\n useDeprecated(\n \"[mobx-react-lite] 'useObserver(fn)' is deprecated. Use `<Observer>{fn}</Observer>` instead, or wrap the entire component in `observer`.\"\n )\n }\n return useObserverOriginal(fn, baseComponentName)\n}\n\nexport { isObserverBatched, observerBatching } from \"./utils/observerBatching\"\n\nexport function useStaticRendering(enable: boolean) {\n if (\"production\" !== process.env.NODE_ENV) {\n console.warn(\n \"[mobx-react-lite] 'useStaticRendering' is deprecated, use 'enableStaticRendering' instead\"\n )\n }\n enableStaticRendering(enable)\n}\n","import {\n makeAutoObservable,\n observable,\n} from 'mobx';\n\nclass AuthorizationStore {\n state: string = 'WAITING';\n\n isInitialization: boolean = true;\n\n constructor() {\n makeAutoObservable(this, {\n state: observable,\n isInitialization: observable,\n });\n }\n}\n\nconst authorizationStore = new AuthorizationStore();\n\nexport default authorizationStore;\n","import { makeObservable, observable, action } from 'mobx';\nimport ICommit from '../interfaces/Commit';\nimport dataGripStore from './DataGrip';\n\ninterface ISettingsStore {\n commits: ICommit[];\n defaultFrom: string;\n defaultTo: string;\n TODAY: Date;\n ONE_DAY: number;\n from: string;\n to: string;\n minCommits: number;\n isFullTime: boolean;\n\n defaultSalary: number;\n defaultWorkDays: number;\n holidaysInYear: number;\n currency: string;\n salary: any;\n workDays: any;\n\n updateByCommits: (commits: ICommit[], first: ICommit, last: ICommit) => void,\n setFilterByDateType: (type: string) => void,\n}\n\nclass SettingsStore implements ISettingsStore {\n commits: ICommit[] = [];\n\n defaultFrom: string = '';\n\n defaultTo: string = '';\n\n TODAY: Date = new Date();\n\n ONE_DAY: number = 24 * 60 * 60 * 1000;\n\n from: string = '';\n\n to: string = '';\n\n minCommits: number = 20;\n\n isFullTime: boolean = true;\n\n defaultSalary: number = 180000;\n\n defaultWorkDays: number = 5;\n\n holidaysInYear: number = 118 + 22; // праздники + выходные + отпуск\n\n currency: string = 'RUB';\n\n salary: any = {};\n\n workDays: any = {};\n\n constructor() {\n makeObservable(this, {\n commits: observable,\n defaultFrom: observable,\n defaultTo: observable,\n TODAY: observable,\n ONE_DAY: observable,\n from: observable,\n to: observable,\n minCommits: observable,\n isFullTime: observable,\n\n defaultSalary: observable,\n defaultWorkDays: observable,\n holidaysInYear: observable,\n currency: observable,\n\n salary: observable,\n workDays: observable,\n\n updateByCommits: action,\n setFilterByDateType: action,\n updateProperty: action,\n setSalary: action,\n });\n }\n\n getMiddleSalaryInMonth(name: string): number {\n return this.salary[name] || this.defaultSalary;\n }\n\n getMiddleSalaryInDay(name: string) {\n const salaryInMonth = this.getMiddleSalaryInMonth(name);\n const workDaysInWeek = this.workDays[name] || this.defaultWorkDays;\n const workDaysInMonth = Math.ceil(4.3 * workDaysInWeek);\n return salaryInMonth / workDaysInMonth;\n }\n\n getValue(property: string) {\n return property.split('.').reduce((acc, key) => acc[key], this);\n }\n\n updateByCommits(commits: ICommit[], firstCommit: ICommit, lastCommit: ICommit) {\n this.commits = commits;\n this.defaultFrom = firstCommit.timestamp;\n this.defaultTo = lastCommit.timestamp;\n this.TODAY = new Date(this.defaultTo);\n this.from = this.defaultFrom;\n this.to = this.defaultTo;\n this.minCommits = 20;\n }\n\n setFilterByDateType(type: string) {\n const count = {\n year: 365,\n halfYear: 183,\n month: 30,\n week: 7,\n day: 1,\n }[type];\n\n this.from = count\n ? (new Date(this.TODAY.getTime() - this.ONE_DAY * count)).toISOString().split('T')[0]\n : this.defaultFrom;\n\n this.to = this.defaultTo;\n\n this.minCommits = {\n all: 20,\n year: 20,\n halfYear: 10,\n month: 2,\n }[type] || 1;\n dataGripStore.updateChars();\n }\n\n updateProperty(propertyName: string, value?: any) {\n this[propertyName] = value ?? null;\n dataGripStore.updateChars();\n }\n\n setSalary(userName: string, salary?: number) {\n this.salary[userName] = salary || this.defaultSalary;\n }\n}\n\nconst settingsStore = new SettingsStore();\n\nexport default settingsStore;\n","import settingsStore from 'ts/store/Settings';\n\nexport function getDayName(index: number, value?: string) {\n const name = [\n 'понедельник',\n 'вторник',\n 'среда',\n 'четверг',\n 'пятница',\n 'суббота',\n 'воскресенье',\n ][index];\n if (value) {\n if (index == 2) return 'среду';\n else if (index == 4) return 'пятницу';\n else if (index == 5) return 'субботу';\n }\n return name;\n}\n\nexport function getDayPrefix(index:number) {\n return [\n 'пн',\n 'вт',\n 'ср',\n 'чт',\n 'пт',\n 'сб',\n 'вс',\n ][index];\n}\n\nexport function getDateByTimestamp(timestamp: string) {\n const date = new Date(timestamp);\n const day = date.getDay() - 1;\n return [\n date.toLocaleString('ru-RU', { day: 'numeric', month: 'long', year: 'numeric' }),\n getDayName(day < 0 ? 6 : day),\n ];\n}\n\nexport function get2Number(time: number) {\n return time < 10 ? `0${time}` : time;\n}\n\nexport function getClearHTML(text: string) {\n return (text || '').trim().replace(/(>[\\s\\r\\n]*<)/gim, '><');\n}\n\nexport function getDate(timestamp: string) {\n if (!timestamp) return '';\n const date = new Date(timestamp);\n return date.toLocaleString('ru-RU', { day: 'numeric', month: 'long', year: 'numeric' });\n}\n\nexport function getShortDate(timestamp: string) {\n if (!timestamp) return '';\n const date = new Date(timestamp);\n return date.toLocaleString('ru-RU', { day: 'numeric', month: 'long' });\n}\n\nexport function getShortTime(timestamp: string) {\n if (!timestamp) return '';\n const date = new Date(timestamp);\n return date.toLocaleString('ru-RU', { hour: 'numeric', minute: 'numeric' });\n}\n\nexport function getMoney(value: number, options?: any) {\n return (value || 0).toLocaleString('ru-RU', {\n style: 'currency',\n currency: settingsStore?.currency || 'USD',\n currencyDisplay: 'symbol',\n maximumFractionDigits: 0,\n ...(options || {}),\n });\n}\n\nexport function getShortMoney(value: number, maximumFractionDigits:number = 1) {\n return getMoney(value, {\n notation: 'compact',\n maximumFractionDigits,\n });\n}\n\nexport function getShortNumber(value: number) {\n if (value === Infinity || value === -Infinity) return '—';\n const fractionDigits = value < 15 ? 1 : 0;\n return (value || 0).toFixed(fractionDigits);\n}\n\nexport function getShortName(name: string) {\n return name?.split(/[\\s.]+/gm)[1] || name;\n}\n\nexport function getShortDateRange({ from, to }: any) {\n return from && to\n ? `${getShortDate(from)} — ${getDate(to)}`\n : `${getDate(from)}${getDate(to)}`;\n}\n","import { getDateByTimestamp } from 'ts/helpers/formatter';\n\nexport default class RecommendationsPersonByTimestamp {\n getTotalInfo(dataGrip: any) {\n return dataGrip.author.list.reduce((acc: any, name: string) => {\n const byTimestamp = dataGrip.timestamp.statisticByAuthor[name];\n const byAuthor = dataGrip.author.statisticByName[name];\n const workInWeek = byTimestamp.workByDay[5] + byTimestamp.workByDay[6];\n acc[name] = [\n workInWeek ? [`${workInWeek} дней`, 'работы на выходных', 'error'] : null,\n byAuthor.daysLosses ? [`${byAuthor.daysLosses} дней`, 'без коммитов, даже с учётом выходных, отпуска и государственных праздников.', 'warning'] : null,\n [`${byAuthor.daysAll} дней`, 'от первого до последнего коммита (включая выходные и праздники)', 'fact'],\n this.getFirstDay(byTimestamp),\n this.getLastDay(byTimestamp),\n ].filter(item => item);\n return acc;\n }, {});\n }\n\n getFirstDay(byTimestamp: any) {\n const commit = byTimestamp.allCommitsByTimestamp[0];\n const [ date, day ] = getDateByTimestamp(commit.timestamp);\n return [date, `сделал первый коммит\\n\\nДень недели: ${day}`, 'fact'];\n }\n\n getLastDay(byTimestamp: any) {\n const commit = byTimestamp.allCommitsByTimestamp[(byTimestamp.allCommitsByTimestamp.length - 1)];\n const [ date, day ] = getDateByTimestamp(commit.timestamp);\n return [date, `сделал последний коммит\\n\\nДень недели: ${day}`, 'fact'];\n }\n}\n\n\n","import localization from 'ts/helpers/Localization';\n\nexport default class RecommendationsPersonByWeek {\n getTotalInfo(dataGrip: any) {\n const lastWeeks = dataGrip.week.statistic.slice(0, 3);\n return dataGrip.author.list.reduce((acc: any, name: string) => {\n acc[name] = [\n this.getLazyDays(lastWeeks, name),\n this.getNotWork(lastWeeks, name),\n this.getUpWork(lastWeeks, name),\n this.getTasks(lastWeeks, name),\n ].filter(item => item);\n return acc;\n }, {});\n }\n\n getLazyDays(lastWeeks: any[], name: string) {\n const lazyDays = lastWeeks.map(statistic => statistic.lazyDays[name]);\n if (lazyDays[0] < lazyDays[1] && lazyDays[1] < lazyDays[2]) return [\n localization.get('recommendations.week.lazyDays.down.title'),\n localization.get('recommendations.week.lazyDays.down.description'),\n 'fact',\n ];\n if (lazyDays[0] > lazyDays[1] && lazyDays[1] > lazyDays[2]) return [\n localization.get('recommendations.week.lazyDays.up.title'),\n localization.get('recommendations.week.lazyDays.up.description'),\n 'error',\n ];\n return null;\n }\n\n getNotWork(lastWeeks: any[], name: string) {\n const lazyDays = lastWeeks.map(statistic => statistic.lazyDays[name]);\n if (lazyDays[0] && lazyDays[1] && lazyDays[2]) return [\n localization.get('recommendations.week.notWork.title'),\n localization.get('recommendations.week.notWork.description'),\n 'error',\n ];\n return null;\n }\n\n getUpWork(lastWeeks: any[], name: string) {\n const weekDays = lastWeeks.map(statistic => statistic.weekDays[name]);\n if (weekDays[0] && weekDays[1] && weekDays[2]) return [\n localization.get('recommendations.week.upWork.title'),\n localization.get('recommendations.week.upWork.description'),\n 'error',\n ];\n return null;\n }\n\n getTasks(lastWeeks: any[], name: string) { // TODO: спорно, это видно по количеству изменений\n const lazyDays = lastWeeks.map(statistic => statistic.taskInDay[name]);\n if (lazyDays[0] < lazyDays[1] && lazyDays[1] < lazyDays[2]) return [\n localization.get('recommendations.week.task.up.title'),\n localization.get('recommendations.week.task.up.description'),\n 'fact',\n ];\n if (lazyDays[0] > lazyDays[1] && lazyDays[1] > lazyDays[2]) return [\n localization.get('recommendations.week.task.down.title'),\n localization.get('recommendations.week.task.down.description'),\n 'error',\n ];\n return null;\n }\n}\n\n\n","import localization from 'ts/helpers/Localization';\n\nexport default class RecommendationsTeamByAuthor {\n getTotalInfo(dataGrip: any) {\n const worker: string[] = [];\n const dismissed: string[] = [];\n const staff: string[] = [];\n const lotOfLazy: string[] = [];\n const manyLazy: string[] = [];\n const oneTypeMans: string[] = [];\n let workLazyTotal = 1;\n\n dataGrip.author.list.forEach((name: string) => {\n const author = dataGrip.author.statisticByName[name];\n if (author.isStaff) {\n staff.push(name);\n return;\n }\n\n if (author.isDismissed) {\n dismissed.push(name);\n return;\n }\n\n worker.push(name);\n\n const workLazy = author.daysWorked / author.daysLosses;\n if (workLazy >= 0 && workLazy < 3) lotOfLazy.unshift(name);\n if (workLazy >= 3 && workLazy < 5) manyLazy.unshift(name);\n workLazyTotal = workLazyTotal * workLazy;\n\n // TODO: Что это за число? Я не помню\n const someNumber = Object.values(author.types).sort().pop() as number;\n const typePercent = (someNumber * 100) / author.commits;\n if (typePercent >= 70) oneTypeMans.unshift(name);\n });\n\n workLazyTotal = workLazyTotal ** (1 / worker.length);\n const projectType = this.getProjectType(workLazyTotal);\n\n return [\n projectType,\n (lotOfLazy.length ? [lotOfLazy, localization.get('recommendations.author.lotOfLazy'), 'error'] : null),\n (manyLazy.length ? [manyLazy, localization.get('recommendations.author.manyLazy'), 'warning'] : null),\n (oneTypeMans.length ? [oneTypeMans, localization.get('recommendations.author.oneTypeMans'), 'warning'] : null),\n (worker.length\n ? [`Работает ${worker.length}`, `над проектом в данный момент.\n\n# Состав: \n- ${worker.join(';\\n- ')};\n\n# Почему именно они:\n- рабочих дней более 50%;\n- работали в течении последних 30 дней;\n`, 'fact'] : null),\n (dismissed.length\n ? [`Уволилось ${dismissed.length}`, `или работало короткий промежуток времени.\n\n# Состав:\n- ${dismissed.join(';\\n- ')};\n\n# Почему именно они:\n- работали в нормальном ритме (видимо, это их основной репозиторий);\n- за последний месяц не было ни одного коммита;\n- отпуск обычно 14 дней (их отсутствие не похоже на отпуск);\n`, 'fact'] : null),\n (staff.length\n ? [`Помогают ${staff.length}`, `Люди другой специализации, которые что-либо коммитили.\n\n# Состав: \n- ${staff.join(';\\n- ')};\n\n# Почему именно они:\n- это не open-source проект;\n- рабочих дней менее 15% от общего числа;\n- изменяют примерно одни и те же файлы;\n`, 'fact']\n : null),\n // ['Планирование', 'Задачи распределены довольно равномерно', 'info'],\n [\n localization.get('recommendations.author.manager.title'),\n localization.get('recommendations.author.manager.description'),\n 'info',\n ],\n [\n localization.get('recommendations.author.shorTalk.title'),\n localization.get('recommendations.author.shorTalk.description'),\n 'info',\n ],\n [\n localization.get('recommendations.author.ipr.title'),\n localization.get('recommendations.author.ipr.description'),\n 'info',\n ],\n [\n localization.get('recommendations.author.oneToOne.title'),\n localization.get('recommendations.author.oneToOne.description'),\n 'info',\n ],\n [\n localization.get('recommendations.author.club.title'),\n localization.get('recommendations.author.club.description'),\n 'info',\n ],\n ].filter(item => item);\n }\n\n getProjectType(workLazyTotal: number) {\n if (workLazyTotal < 1) return [\n localization.get('recommendations.author.projectType.openSource.title'),\n localization.get('recommendations.author.projectType.openSource.description'),\n 'fact',\n ];\n if (workLazyTotal < 5) return [\n localization.get('recommendations.author.projectType.easy.title'),\n localization.get('recommendations.author.projectType.easy.description'),\n 'error',\n ];\n return null;\n }\n}\n\n\n","import localization from 'ts/helpers/Localization';\n\nexport default class RecommendationsTeamByHour {\n getTotalInfo(dataGrip: any) {\n if (dataGrip.author.list.length < 2) return [];\n\n const statistic = dataGrip.team.statistic;\n\n return [\n this.getWeekIsWork(statistic),\n ].filter(item => item);\n }\n\n getWeekIsWork(statistic: any) {\n const weekday = Math.min(...statistic.commitsByDayAndHourTotal.slice(0, 5));\n const weekends = Math.max(...statistic.commitsByDayAndHourTotal.slice(5, 7));\n const workAndWeekends = weekends / weekday;\n\n if (workAndWeekends > 0.45) return [\n localization.get('recommendations.hour.onlyWork.title'),\n localization.get('recommendations.hour.onlyWork.description'),\n 'error',\n ];\n if (workAndWeekends > 0.2) return [\n localization.get('recommendations.hour.weekends.title'),\n localization.get('recommendations.hour.weekends.description'),\n 'error',\n ];\n if (workAndWeekends > 0) return [\n localization.get('recommendations.hour.easy.title'),\n localization.get('recommendations.hour.easy.description'),\n 'warning',\n ];\n return null;\n }\n}\n\n\n","import { getMoney } from 'ts/helpers/formatter';\nimport localization from 'ts/helpers/Localization';\n\nexport default class RecommendationsTeamByScope {\n getTotalInfo(dataGrip: any) {\n const money = getMoney(dataGrip.team.statistic.moneyWorked);\n return [\n this.getBusFactor(dataGrip),\n this.getManyTypes(dataGrip),\n this.getParallelism(dataGrip),\n [money, localization.get('recommendations.scope.money'), 'fact'],\n [\n localization.get('recommendations.scope.plan.title'),\n localization.get('recommendations.scope.plan.description'),\n 'info',\n ],\n [\n localization.get('recommendations.scope.cost.title'),\n localization.get('recommendations.scope.cost.description'),\n 'info',\n ],\n ].filter(item => item);\n }\n\n getParallelism(dataGrip: any) {\n if (dataGrip.author.list.length < 3\n || dataGrip.scope.list.length < 3) return null;\n\n const data: number[] = [];\n dataGrip.scope.statistic.forEach((statistic: any) => {\n let total = 0;\n dataGrip.author.list.forEach((name: string) => {\n total += statistic.authors[name]?.days || 0;\n });\n data.push(total / statistic.days);\n });\n\n const total = data.reduce((sum, value) => sum + value, 0);\n const parallelism = total / data.length;\n\n if (parallelism < 1.3) return [\n localization.get('recommendations.scope.parallelism.not.title'),\n localization.get('recommendations.scope.parallelism.not.description'),\n 'fact',\n ];\n\n if (parallelism < 2) return [\n localization.get('recommendations.scope.parallelism.has.title'),\n localization.get('recommendations.scope.parallelism.has.description'),\n 'fact',\n ];\n\n return [\n localization.get('recommendations.scope.parallelism.every.title'),\n localization.get('recommendations.scope.parallelism.every.description'),\n 'fact',\n ];\n }\n\n getBusFactor(dataGrip: any) {\n if (dataGrip.author.list.length < 3\n || dataGrip.scope.list.length < 3) return null;\n\n const oneMaintainer = dataGrip.scope.statistic.filter((statistic: any) => {\n const limit = statistic.commits * 0.8;\n return dataGrip.author.list.some((name: string) => statistic.authors[name]?.commits >= limit);\n }).map((statistic: any) => statistic.scope);\n\n if (!oneMaintainer.length) return null;\n const everyHasOne = oneMaintainer.length > dataGrip.scope.statistic.length * 0.6;\n if (everyHasOne) return [\n localization.get('recommendations.scope.bus.everyHasOne.title'),\n localization.get('recommendations.scope.bus.everyHasOne.description'),\n 'warning',\n ];\n\n return [\n oneMaintainer,\n localization.get('recommendations.scope.bus.oneMaintainer'),\n 'error',\n ];\n }\n\n getManyTypes(dataGrip: any) {\n if (dataGrip.scope.list.length < 3) return null;\n\n const oneType = dataGrip.scope.statistic.filter((statistic: any) => {\n const limit = statistic.commits * 0.8;\n return dataGrip.type.list.some((type: string) => statistic.types[type] >= limit);\n }).map((statistic: any) => statistic.scope);\n\n const everyHasOne = oneType.length > dataGrip.scope.statistic.length * 0.6;\n if (everyHasOne) return [\n localization.get('recommendations.scope.types.process.title'),\n [\n localization.get('recommendations.scope.types.process.description'),\n localization.get('recommendations.scope.types.common'),\n ].join('\\n'),\n 'warning',\n ];\n\n return [\n oneType,\n [\n localization.get('recommendations.scope.types.one'),\n localization.get('recommendations.scope.types.common'),\n ].join('\\n'),\n 'warning',\n ];\n }\n}\n","import { getDateByTimestamp } from 'ts/helpers/formatter';\n\nexport default class RecommendationsTeamByTimestamp {\n getTotalInfo(dataGrip: any) {\n if (dataGrip.author.list.length < 2) return [];\n\n const byTimestamp = dataGrip.timestamp.statistic;\n const workInWeek = byTimestamp.workByDay[5] + byTimestamp.workByDay[6];\n const totalDays = byTimestamp.allCommitsByTimestamp.length;\n // TODO: all days не верный, я вывожу рабочие дни, а не выходные.\n\n return [\n workInWeek ? [`${workInWeek} дней`, `работы на выходных\n\n# Почему это плохо:\n- заказчик платит двойную цену за работу в выходной день;\n- сотрудники быстрее выгорают;\n`, 'error'] : null,\n this.getWorkOnWeek(byTimestamp.allCommitsByTimestamp.length, workInWeek),\n [`${totalDays} дней работы`, 'от первого до последнего коммита', 'fact'],\n this.getFirstDay(byTimestamp),\n this.getLastDay(byTimestamp),\n ].filter(item => item);\n }\n\n getWorkOnWeek(allWorkDays: number, workOnWeek: number) {\n const percent = (workOnWeek * 100) / allWorkDays;\n const description = `Вероятно, стоит сменить менеджера проекта, аналитика и архитектора.\n\n# Почему это плохо:\n- заказчик платит двойную цену за работу в выходной день;\n- качество продуката, как правило, получается низкое;\n- часть сотрудников увольняется;\n- из-за спешки появляются новые ошибки;\n\n# Скорее всего:\n- неверно оценили сроки в самом начале;\n- тех. задание отсутствует;\n- слабая аналитика;\n- слабая архитектура (архитектора не нанимали, а команда состоит из мидл разработчиков);\n- сначала начали писать код, потом проектировать;\n- нет нормальных процессов, чтобы понять ошибки;\n`;\n if (percent > 13) {\n return ['Регулярные переработки', description, 'error'];\n }\n if (percent > 7) {\n return ['Бывают переработки', description, 'error'];\n }\n if (percent > 2) {\n return ['Обычно без переработок', `Но иногда бывают.\n\n# Почему это плохо:\n- заказчик платит двойную цену за работу в выходной день;\n- сотрудники быстрее выгорают;\n`, 'fact'];\n }\n return null;\n }\n\n getFirstDay(byTimestamp: any) {\n const commit = byTimestamp.allCommitsByTimestamp[0];\n const [ date, day ] = getDateByTimestamp(commit.timestamp);\n return [date, `был первый коммит\\n\\nДень недели: ${day}`, 'fact'];\n }\n\n getLastDay(byTimestamp: any) {\n const commit = byTimestamp.allCommitsByTimestamp[(byTimestamp.allCommitsByTimestamp.length - 1)];\n const [ date, day ] = getDateByTimestamp(commit.timestamp);\n return [date, `был последний коммит\\n\\nДень недели: ${day}`, 'fact'];\n }\n}\n\n\n","import localization from 'ts/helpers/Localization';\n\nexport default class RecommendationsTeamByType {\n getTotalInfo(dataGrip: any) {\n const fewTypes = dataGrip.type.statistic.filter((statistic: any) => (\n statistic.tasks > 20\n )).length < 7;\n\n return [\n this.getBusFactor(dataGrip),\n (fewTypes ? [\n localization.get('recommendations.type.fewTypes.title'),\n localization.get('recommendations.type.fewTypes.description'),\n 'fact',\n ] : null),\n [\n localization.get('recommendations.type.diff.title'),\n localization.get('recommendations.type.diff.description'),\n 'info',\n ],\n [\n localization.get('recommendations.type.buddy.title'),\n localization.get('recommendations.type.buddy.description'),\n 'info',\n ],\n ].filter(item => item);\n }\n\n getBusFactor(dataGrip: any) {\n if (dataGrip.author.list.length < 2) return null;\n\n const oneMaintainer = dataGrip.type.statistic.filter((statistic: any) => {\n const limit = statistic.commits * 0.8;\n return dataGrip.author.list.some((name: string) => statistic.commitsByAuthors[name] >= limit);\n }).map((statistic: any) => statistic.type);\n\n if (!oneMaintainer.length) return null;\n const everyHasOne = oneMaintainer.length > dataGrip.type.statistic.length * 0.6;\n\n if (everyHasOne) return [\n localization.get('recommendations.type.everyHasOne.title'),\n [\n localization.get('recommendations.type.everyHasOne.description'),\n localization.get('recommendations.type.common'),\n ].join('\\n'),\n 'warning',\n ];\n\n return [\n localization.get('recommendations.type.oneMaintainer.title'),\n [\n localization.get('recommendations.type.oneMaintainer.description'),\n `- ${oneMaintainer.join(';\\n- ')}`,\n localization.get('recommendations.type.common'),\n ].join('\\n'),\n 'error',\n ];\n }\n}\n\n\n","export default class RecommendationsTeamByWeek {\n getTotalInfo(dataGrip: any) {\n if (dataGrip.author.list.length < 2) return [];\n\n const lastWeek = dataGrip.week.statistic.slice(0, 3);\n return [\n this.getLazyDays(dataGrip, lastWeek),\n this.getTasks(dataGrip, lastWeek),\n // this.getLazyMaintainer(dataGrip, lastWeek),\n ].filter(item => item);\n }\n\n getLazyDays(dataGrip: any, lastWeek: any) {\n const lazyDays = lastWeek.map((statistic: any) => statistic.lazyDaysTotal / statistic.authorsLength);\n if (lazyDays[0] < lazyDays[1] && lazyDays[1] < lazyDays[2]) {\n return ['Стало меньше прогулов', 'за последние три недели этот показатель упал', 'fact'];\n }\n if (lazyDays[0] > lazyDays[1] && lazyDays[1] > lazyDays[2]) {\n return ['Стало больше прогулов', 'нет задач или нужен более жесткий контроль', 'error'];\n }\n return null;\n }\n\n getTasks(dataGrip: any, lastWeek: any) { // TODO: спорно, это видно по количеству изменений\n const lazyDays = lastWeek.map((statistic: any) => statistic.tasks / statistic.authorsLength);\n if (lazyDays[0] < lazyDays[1] && lazyDays[1] < lazyDays[2]) {\n return ['Растёт производительность', 'или задачи стали слишком мелкие. Нужно проверить. Если гранулярность та же - закрепить результат.', 'fact'];\n }\n if (lazyDays[0] > lazyDays[1] && lazyDays[1] > lazyDays[2]) {\n return ['Падает производительность', 'или задачи хуже разбивают. Нужно проверить. Если гранулярность та же - взять на контроль.', 'error'];\n }\n return null;\n }\n\n getLazyMaintainer(dataGrip: any, lastWeek: any) {\n const lazyMaintainer = lastWeek.map((statistic: any) =>\n Object.entries(statistic.lazyDays)\n .sort((a: any, b: any) => a[1] - b[1]).pop()?.[0],\n );\n // TODO: неверный расчет\n // нужен человек, который встречается в трех массивах лидеров прогула\n return lazyMaintainer[0] === lazyMaintainer[1] === lazyMaintainer[2]\n ? [lazyMaintainer[0], 'стабильный лидер по прогулам. Уволить?', 'error']\n : null;\n }\n}\n\n\n","import RecommendationsPersonByTimestamp from './components/PersonByTimestamp';\nimport RecommendationsPersonByWeek from './components/PersonByWeek';\nimport RecommendationsTeamByAuthor from './components/TeamByAuthor';\nimport RecommendationsTeamByHour from './components/TeamByHour';\nimport RecommendationsTeamByScope from './components/TeamByScope';\nimport RecommendationsTeamByTimestamp from './components/TeamByTimestamp';\nimport RecommendationsTeamByType from './components/TeamByType';\nimport RecommendationsTeamByWeek from './components/TeamByWeek';\n\nexport default class Recommendations {\n byScope:any = new RecommendationsTeamByScope();\n\n byAuthor:any = new RecommendationsTeamByAuthor();\n\n byType:any = new RecommendationsTeamByType();\n\n byWeek:any = new RecommendationsTeamByWeek();\n\n byTimestamp:any = new RecommendationsTeamByTimestamp();\n\n byHour:any = new RecommendationsTeamByHour();\n\n personByWeek:any = new RecommendationsPersonByWeek();\n\n personByTimestamp:any = new RecommendationsPersonByTimestamp();\n\n team:any = {};\n\n person:any = {};\n\n updateTotalInfo(dataGrip: any) {\n this.team = {\n byScope: this.byScope.getTotalInfo(dataGrip),\n byAuthor: this.byAuthor.getTotalInfo(dataGrip),\n byType: this.byType.getTotalInfo(dataGrip),\n byWeek: this.byWeek.getTotalInfo(dataGrip),\n byTimestamp: this.byTimestamp.getTotalInfo(dataGrip),\n byHour: this.byHour.getTotalInfo(dataGrip),\n };\n\n this.person = {\n byWeek: this.personByWeek.getTotalInfo(dataGrip),\n byTimestamp: this.personByTimestamp.getTotalInfo(dataGrip),\n };\n }\n\n clear() {\n this.team = {};\n this.person = {};\n }\n}","import { IUserSetting, IEmployees, IEmployeesSalary } from 'ts/interfaces/UserSetting';\nimport ICommit from 'ts/interfaces/Commit';\n\nlet DEFAULT_VALUES: any = {};\n\nexport function setDefaultValues(firstCommit: ICommit, lastCommit: ICommit) {\n DEFAULT_VALUES = {\n from: firstCommit.timestamp,\n to: lastCommit.timestamp,\n };\n}\n\nexport function getNewEmploymentContract(settings: IUserSetting): IEmployeesSalary {\n return {\n id: Math.random(),\n value: settings.defaultSalary.value,\n currency: settings.defaultSalary.currency,\n workDaysInYear: settings.defaultSalary.workDaysInYear,\n vacationDaysInYear: settings.defaultSalary.vacationDaysInYear,\n workDaysInWeek: [...settings.defaultSalary.workDaysInWeek],\n from: DEFAULT_VALUES.from,\n type: 'full',\n };\n}\n\nexport function getNewEmployeesSettings(\n name: string,\n settings: IUserSetting,\n order: number,\n): IEmployees {\n return {\n id: Math.random(),\n name,\n order,\n salary: [\n getNewEmploymentContract(settings),\n ],\n };\n}\n\nexport default function getEmptySettings(): IUserSetting {\n return {\n version: 1,\n defaultSalary: {\n value: 180000,\n currency: 'RUB',\n workDaysInYear: 247,\n vacationDaysInYear: 28,\n workDaysInWeek: [1, 1, 1, 1, 1, 0, 0],\n type: 'full',\n },\n linksPrefix: {\n task: 'https://jira.com/secure/RapidBoard.jspa?task=',\n pr: 'https://bitbucket.com/projects/assayo/repos/frontend/pull-requests/',\n },\n employees: [],\n };\n}\n","import { IUserSetting } from 'ts/interfaces/UserSetting';\nimport getEmptySettings from 'ts/pages/Settings/helpers/getEmptySettings';\n\nexport default {\n loadSettings(): Promise<IUserSetting> {\n const defaultSettings = getEmptySettings();\n const response = localStorage.getItem('settings');\n const defaultResponse = () => {\n localStorage.removeItem('settings');\n return Promise.resolve(defaultSettings);\n };\n\n if (!response || response === JSON.stringify(defaultSettings)) {\n return defaultResponse();\n }\n\n const jsonFromMemory = JSON.parse(response);\n if (jsonFromMemory.version !== defaultSettings.version) {\n return defaultResponse();\n }\n\n return Promise.resolve(jsonFromMemory);\n },\n\n saveSettings(body: IUserSetting): Promise<any> {\n const defaultSettings = getEmptySettings();\n if (JSON.stringify(defaultSettings) === JSON.stringify(body)) {\n localStorage.removeItem('settings');\n } else {\n localStorage.setItem('settings', JSON.stringify(body));\n }\n return Promise.resolve();\n },\n};\n","import { makeObservable, observable, action } from 'mobx';\n\nimport settingsApi from 'ts/api/settings';\n\nimport { IEmployees, IEmployeesSalary, IUserSetting } from '../interfaces/UserSetting';\n\ninterface IUserSettingsStore {\n settings: any;\n loadUserSettings: () => void,\n}\n\nfunction getWithMilliseconds(userSetting: IUserSetting) {\n return {\n ...userSetting,\n employees: userSetting.employees.map((employee: IEmployees) => ({\n ...employee,\n salary: employee?.salary?.map((contract: IEmployeesSalary) => ({\n ...contract,\n milliseconds: (new Date(contract.from)).getTime(),\n })),\n })),\n };\n}\n\nclass UserSettings implements IUserSettingsStore {\n settings: any = {};\n\n constructor() {\n makeObservable(this, {\n settings: observable,\n loadUserSettings: action,\n });\n }\n\n loadUserSettings() {\n return settingsApi.loadSettings().then((response) => {\n this.settings = getWithMilliseconds(response);\n });\n }\n\n // TODO: перенести?\n getUserByName(name: string) {\n return this.settings.employees\n .find((employee: IEmployees) => employee.name === name);\n }\n\n getEmploymentContract(name: string, milliseconds?: number) {\n const user = this.getUserByName(name);\n const length = user?.salary?.length;\n\n if (!user || !length) {\n return this.settings.defaultSalary;\n }\n\n let actualContract = user.salary[length - 1];\n if (!milliseconds) return actualContract;\n\n user.salary.forEach((сontract: IEmployeesSalary) => {\n // @ts-ignore\n if (сontract.milliseconds >= milliseconds) return;\n actualContract = сontract;\n });\n\n return actualContract;\n }\n\n getCurrentSalaryInMonth(name: string) {\n return this.getEmploymentContract(name).value;\n }\n\n getMiddleSalaryInMonth(\n name: string,\n firstCommitTime: number,\n lastCommitTime: number,\n ) {\n const user = this.getUserByName(name);\n const length = user?.salary?.length;\n\n if (!user || !length) {\n return this.settings.defaultSalary.value;\n }\n\n const axis = (firstCommitTime - lastCommitTime);\n let prevContract = this.settings.defaultSalary;\n let dx = 0;\n let total = 0;\n\n for (let i = 0; i < length; i++) {\n const contract = user.salary[i];\n const minTime = prevContract.milliseconds || firstCommitTime;\n const position = (contract.milliseconds || minTime) - minTime;\n const percentForPrev = position / axis;\n const prevPeriodSalary = percentForPrev * prevContract.value;\n dx += percentForPrev;\n prevContract = contract;\n total += prevPeriodSalary;\n }\n\n total += (1 - dx) * prevContract.value;\n\n return total;\n }\n}\n\nconst userSettings = new UserSettings();\n\nexport default userSettings;\n","import ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport settingsStore from 'ts/store/Settings';\nimport userSettings from 'ts/store/UserSettings';\n\nexport default class DataGripByAuthor {\n list: string[] = [];\n\n commits: IHashMap<any> = {};\n\n statistic: any = [];\n\n statisticByName: IHashMap<any> = {};\n\n employment: IHashMap<string[]> = {};\n\n clear() {\n this.list = [];\n this.commits = {};\n this.statistic = [];\n this.statisticByName = {};\n }\n\n addCommit(commit: ICommit) {\n if (this.commits[commit.author]) {\n this.#updateCommitByAuthor(commit);\n } else {\n this.#addCommitByAuthor(commit);\n }\n this.#setMoneyByMonth(commit);\n }\n\n #updateCommitByAuthor(commit: ICommit) {\n const statistic = this.commits[commit.author];\n statistic.commits += 1;\n statistic.lastCommit = commit;\n statistic.days[commit.timestamp] = true;\n statistic.tasks[commit.task] = commit.added + commit.changes + commit.removed\n + (statistic.tasks[commit.task] ? statistic.tasks[commit.task] : 0);\n statistic.types[commit.type] = statistic.types[commit.type] ? (statistic.types[commit.type] + 1) : 1;\n statistic.scopes[commit.scope] = statistic.scopes[commit.scope] ? (statistic.scopes[commit.scope] + 1) : 1;\n statistic.hours.push(commit.hours);\n statistic.messageLength.push(commit.message.length);\n statistic.totalMessageLength += commit.message.length || 0;\n statistic.maxMessageLength = commit.message.length > statistic.maxMessageLength\n ? commit.message.length\n : statistic.maxMessageLength;\n statistic.commitsByDayAndHour[commit.day][commit.hours] += 1;\n statistic.commitsByHour[commit.hours] += 1;\n statistic.wordStatistics = DataGripByAuthor.#updateWordStatistics(commit, statistic.wordStatistics);\n }\n\n #addCommitByAuthor(commit: ICommit) {\n const commitsByDayAndHour = DataGripByAuthor.getDefaultCommitsByDayAndHour();\n try {\n commitsByDayAndHour[commit.day][commit.hours] += 1;\n } catch (e: any) {\n debugger;\n }\n const commitsByHour = new Array(24).fill(0);\n commitsByHour[commit.hours] += 1;\n\n this.commits[commit.author] = {\n author: commit.author,\n commits: 1,\n firstCommit: commit,\n lastCommit: commit,\n days: { [commit.timestamp]: true },\n tasks: { [commit.task]: commit.added + commit.changes + commit.removed },\n types: { [commit.type]: 1 },\n scopes: { [commit.scope]: 1 },\n hours: [commit.hours],\n commitsByDayAndHour,\n commitsByHour,\n messageLength: [commit.message.length || 0],\n totalMessageLength: commit.message.length || 0,\n maxMessageLength: commit.message.length || 0,\n wordStatistics: DataGripByAuthor.#updateWordStatistics(commit),\n moneyByMonth: {},\n };\n }\n\n #setMoneyByMonth(commit: ICommit) {\n const key = `${commit.year}-${commit.month}`;\n if (this.commits[commit.author].moneyByMonth[key]) {\n this.#updateMoneyByMonth(commit, key);\n } else {\n this.#addMoneyByMonth(commit, key);\n }\n }\n\n #updateMoneyByMonth(commit: ICommit, key: string) {\n const statistic = this.commits[commit.author].moneyByMonth[key];\n if (statistic.alreadyAdded[commit.milliseconds]) return;\n statistic.alreadyAdded[commit.milliseconds] = true;\n\n const isWorkDay = statistic.contract.workDaysInWeek[commit.day];\n if (isWorkDay) {\n statistic.workDay += 1;\n } else {\n statistic.weekDay += 1;\n }\n }\n\n #addMoneyByMonth(commit: ICommit, key: string) {\n const contract = userSettings.getEmploymentContract(commit.author, commit.milliseconds);\n const isWorkDay = contract.workDaysInWeek[commit.day];\n this.commits[commit.author].moneyByMonth[key] = {\n workDay: isWorkDay ? 1 : 0,\n weekDay: isWorkDay ? 0 : 1,\n alreadyAdded: {\n [commit.milliseconds]: true,\n },\n contract,\n };\n }\n\n\n\n static getDefaultCommitsByDayAndHour() {\n return (new Array(7)).fill(1).map(() => (new Array(24)).fill(0));\n }\n\n static #updateWordStatistics(commit: ICommit, total = {}) {\n const LIMIT_WORD_LENGTH = 2;\n const disabledWords = { for: 1, fix: 1 };\n\n commit.message.toLowerCase().split(' ').forEach(word => {\n if (word.length <= LIMIT_WORD_LENGTH || disabledWords[word]) return;\n total[word] = total[word]\n ? (total[word] + 1)\n : 1;\n });\n return total;\n }\n\n updateTotalInfo() {\n const HOLIDAYS = 118 + 22; // праздники + выходные + отпуск\n const WORK_AND_HOLIDAYS = (HOLIDAYS / (365 - HOLIDAYS));\n const lastCommit = settingsStore.commits[settingsStore.commits.length - 1];\n const dismissedLimit = lastCommit?.milliseconds - (settingsStore.ONE_DAY * 32);\n\n this.employment = {\n staff: [],\n dismissed: [],\n active: [],\n };\n\n this.statistic = Object.values(this.commits)\n .sort((dotA: any, dotB: any) => dotB.commits - dotA.commits)\n .map((dot: any) => {\n const from = dot.firstCommit.milliseconds;\n const to = dot.lastCommit.milliseconds;\n\n const workDays = Object.keys(dot.days).length;\n const allDaysInProject = Math.ceil((to - from) / settingsStore.ONE_DAY);\n const lazyDays = Math.floor((allDaysInProject * WORK_AND_HOLIDAYS) - workDays) + 1;\n\n const middleSalaryInMonth = userSettings.getMiddleSalaryInMonth(dot.author, from, to);\n const middleSalaryInDay = middleSalaryInMonth / 22;\n const moneyWorked = Math.ceil(workDays * middleSalaryInDay);\n const moneyLosses = lazyDays > 0\n ? Math.ceil(lazyDays * middleSalaryInDay)\n : 0;\n const salaryInMonth = settingsStore.getMiddleSalaryInMonth(dot.author);\n const moneyAll = Math.ceil((allDaysInProject / 30) * salaryInMonth);\n\n const tasksEntries = Object.entries(dot.tasks).filter(t => t[0]);\n const tasks = tasksEntries.map(t => t[0]);\n const tasksSize = tasksEntries.map(t => t[1]);\n\n dot.hours.sort();\n dot.messageLength.sort();\n const middleMessageLength = Math.round(dot.totalMessageLength / dot.commits);\n const wordStatistics = Object.entries(dot.wordStatistics)\n .sort((dotA: any, dotB: any) => dotB[1] - dotA[1]);\n\n const daysWorkedLosses = workDays + (lazyDays > 0 ? lazyDays : 0);\n const percentWork = workDays * 100 / daysWorkedLosses;\n const isStaff = daysWorkedLosses < 20 || (percentWork < 15);\n\n const authorInfo = {\n ...dot,\n tasks,\n scopes: Object.keys(dot.scopes).length,\n daysForTask: isStaff ? 0 : workDays / tasks.length,\n taskInDay: isStaff ? 0 : tasks.length / workDays,\n changesForTask: DataGripByAuthor.getMiddleValue(tasksSize),\n\n days: workDays,\n money: isStaff ? 0 : moneyWorked,\n allDaysInProject,\n lazyDays,\n\n daysAll: allDaysInProject,\n daysLosses: lazyDays > 0 ? lazyDays : 0,\n daysWorked: workDays,\n daysWorkedLosses: workDays + (lazyDays > 0 ? lazyDays : 0),\n\n moneyAll: isStaff ? 0 : moneyAll,\n moneyLosses: isStaff ? 0 : moneyLosses,\n moneyWorked: isStaff ? 0 : moneyWorked,\n isDismissed: dot.lastCommit.milliseconds < dismissedLimit,\n isStaff,\n\n middleMessageLength,\n maxMessageLength: dot.maxMessageLength,\n commitsByDayAndHourTotal: DataGripByAuthor.getTotalCommitsByDayAndHour(dot.commitsByDayAndHour),\n wordStatistics,\n };\n this.statisticByName[authorInfo.author] = authorInfo;\n\n if (authorInfo.isStaff) this.employment.staff.push(authorInfo.author);\n else if (authorInfo.isDismissed) this.employment.dismissed.push(authorInfo.author);\n else this.employment.active.push(authorInfo.author);\n\n return authorInfo;\n });\n\n this.list = [\n ...this.employment.active,\n ...this.employment.dismissed,\n ...this.employment.staff,\n ];\n\n this.statistic.sort((a: any, b: any) => (\n this.list.indexOf(a.author) - this.list.indexOf(b.author)\n ));\n }\n\n // TODO: зачем эти функции?\n static getMiddleValue(list: any) {\n const length = list.length;\n const gap = Math.round(length * 0.05);\n const middlePart = length > 5\n ? list.sort((a: number, b: number) => a - b).slice(gap, length - gap - 1)\n : list;\n return Math.round(middlePart.reduce((a: number, v: number) => a + v, 0) / middlePart.length);\n }\n\n static getTotalCommitsByDayAndHour(commitsByDayAndHour: any) {\n const total = commitsByDayAndHour.map((week: number[]) => Math.max(...week));\n total.push(Math.min(...total));\n total.push(Math.max(...total));\n return total;\n }\n}","import DataGripByAuthor from './author';\n\nconst PROPERTIES_FOR_SUMMATION = [\n 'commits',\n 'daysForTask',\n 'daysAll',\n 'daysLosses',\n 'daysWorked',\n 'moneyAll',\n 'moneyLosses',\n 'moneyWorked',\n];\n\nexport default class DataGripByTeam {\n statistic: any = {};\n\n clear() {\n this.statistic = {};\n }\n\n updateTotalInfo(dataGripByAuthor: any) {\n const statistic = {\n ...Object.fromEntries(PROPERTIES_FOR_SUMMATION.map(i => [i, 0])),\n wordStatistics: {},\n commitsByDayAndHour: DataGripByAuthor.getDefaultCommitsByDayAndHour(),\n commitsByDayAndHourTotal: [],\n };\n\n dataGripByAuthor.statistic.forEach((author: any) => {\n PROPERTIES_FOR_SUMMATION.forEach((property) => {\n statistic[property] += author[property] || 0;\n });\n author.commitsByDayAndHour.forEach((commits: any[], day: number) => {\n commits.forEach((commitsByHour: any, hour: number) => {\n statistic.commitsByDayAndHour[day][hour] += commitsByHour;\n });\n });\n author.wordStatistics.slice(0, 45).forEach(([key, value]: [string, number]) => {\n statistic.wordStatistics[key] = statistic.wordStatistics[key]\n ? (statistic.wordStatistics[key] + value)\n : value;\n });\n });\n\n statistic.commitsByDayAndHourTotal = DataGripByAuthor.getTotalCommitsByDayAndHour(statistic.commitsByDayAndHour);\n statistic.wordStatistics = Object.entries(statistic.wordStatistics)\n .sort((dotA: any, dotB: any) => dotB[1] - dotA[1]);\n\n this.statistic = statistic;\n }\n}\n","import ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport settingsStore from 'ts/store/Settings';\n\nexport default class DataGripByScope {\n list: string[] = [];\n\n commits: IHashMap<any> = {};\n\n statistic: any = [];\n\n clear() {\n this.list = [];\n this.commits = {};\n this.statistic = [];\n }\n\n addCommit(commit: ICommit) {\n if (this.commits[commit.scope]) {\n this.#updateCommitByScope(commit);\n } else {\n this.#addCommitByScope(commit);\n }\n }\n\n #updateCommitByScope(commit: ICommit) {\n const statistic = this.commits[commit.scope];\n statistic.commits += 1;\n statistic.days[commit.timestamp] = true;\n statistic.tasks[commit.task] = true;\n statistic.types[commit.type] = statistic.types[commit.type] ? (statistic.types[commit.type] + 1) : 1;\n const author = statistic.authors[commit.author];\n if (author) {\n author.commits += 1;\n author.days[commit.timestamp] = true;\n author.types[commit.type] = author.types[commit.type] ? (author.types[commit.type] + 1) : 1;\n } else {\n statistic.authors[commit.author] = this.#getDefaultAuthorForScope(commit);\n }\n }\n\n #addCommitByScope(commit: ICommit) {\n this.commits[commit.scope] = {\n scope: commit.scope,\n commits: 1,\n days: { [commit.timestamp]: true },\n tasks: { [commit.task]: true },\n types: { [commit.type]: 1 },\n authors: { [commit.author]: this.#getDefaultAuthorForScope(commit) },\n };\n }\n\n #getDefaultAuthorForScope(commit: ICommit) {\n return {\n commits: 1,\n days: { [commit.timestamp]: true },\n types: { [commit.type]: 1 },\n };\n }\n\n updateTotalInfo() {\n const salaryCache = {};\n this.statistic = Object.values(this.commits)\n .filter((dot: any) => dot.commits > 5)\n .sort((dotA: any, dotB: any) => dotB.commits - dotA.commits)\n .map((dot: any) => {\n let cost = 0;\n for (let name in dot.authors) {\n const user = dot.authors[name];\n const days: number = Object.keys(user.days).length;\n salaryCache[name] = salaryCache[name] || settingsStore.getMiddleSalaryInDay(name);\n cost += days * salaryCache[name];\n dot.authors[name] = { ...user, days };\n }\n\n return {\n ...dot,\n days: Object.keys(dot.days).length,\n cost,\n tasks: Object.keys(dot.tasks).filter(t => t),\n };\n });\n\n this.list = this.statistic.map((dot: any) => dot.scope);\n }\n}\n","import ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\n\nexport default class DataGripByType {\n list: string[] = [];\n \n commits: IHashMap<any> = {};\n \n statistic: any = [];\n\n clear() {\n this.list = [];\n this.commits = {};\n this.statistic = [];\n }\n\n addCommit(commit: ICommit) {\n if (this.commits[commit.type]) {\n this.#updateCommitByType(commit);\n } else {\n this.#addCommitByType(commit);\n }\n }\n\n #updateCommitByType(commit: ICommit) {\n const statistic = this.commits[commit.type];\n statistic.commits += 1;\n statistic.days[commit.timestamp] = true;\n statistic.tasks[commit.task] = true;\n\n const getIncrement = (v?: number) => v ? (v + 1) : 1;\n const setDefault = (s: any, v: string) => {\n if (!s[v]) s[v] = {};\n return s[v];\n };\n\n statistic.commitsByAuthors[commit.author] = getIncrement(statistic.commitsByAuthors[commit.author]);\n setDefault(statistic.daysByAuthors, commit.author)[commit.timestamp] = getIncrement(statistic.daysByAuthors[commit.author][commit.timestamp]);\n }\n\n #addCommitByType(commit: ICommit) {\n this.commits[commit.type] = {\n type: commit.type,\n commits: 1,\n days: { [commit.timestamp]: true },\n tasks: { [commit.task]: true },\n commitsByAuthors: { [commit.author]: 1 },\n daysByAuthors: { [commit.author]: { [commit.timestamp]: true } },\n };\n }\n\n updateTotalInfo() {\n this.statistic = Object.values(this.commits)\n .filter((dot: any) => dot.commits > 5)\n .map((dot: any) => ({\n ...dot,\n tasks: Object.keys(dot.tasks).length,\n days: Object.keys(dot.days).length,\n daysByAuthorsTotal: Object.values(dot.daysByAuthors)\n .reduce((t: number, v: any) => (t + Object.keys(v).length), 0),\n }))\n .sort((dotA, dotB) => dotB.days - dotA.days);\n\n this.list = this.statistic.map((dot: any) => dot.type);\n }\n}\n","export default class MinMaxCounter {\n min: number = Infinity;\n\n max: number = -Infinity;\n\n minData: any = undefined;\n\n maxData: any = undefined;\n\n update(value?: number, data?: any) {\n if (!value && value !== 0) return;\n if (this.min > value) {\n this.min = value;\n this.minData = data;\n }\n if (this.max < value) {\n this.max = value;\n this.maxData = data;\n }\n }\n\n clear() {\n this.min = Infinity;\n this.max = -Infinity;\n this.minData = undefined;\n this.maxData = undefined;\n }\n}","import ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport settingsStore from 'ts/store/Settings';\n\nimport MinMaxCounter from './counter';\n\nexport default class DataGripByTimestamp {\n commits: IHashMap<any> = {};\n\n commitsByAuthor: IHashMap<any> = {};\n\n statistic: any = [];\n\n statisticByAuthor: any = {};\n\n constructor() {\n this.clear();\n }\n\n clear() {\n this.commits = {};\n this.commitsByAuthor = {};\n this.statistic = [];\n this.statisticByAuthor = {};\n }\n\n addCommit(commit: ICommit) {\n if (this.commits[commit.milliseconds]) {\n this.#updateCommitByTimestamp(commit, this.commits[commit.milliseconds]);\n } else {\n this.commits[commit.milliseconds] = this.#getDefaultCommitByTimestamp(commit);\n }\n if (!this.commitsByAuthor[commit.author]) {\n this.commitsByAuthor[commit.author] = {};\n }\n if (this.commitsByAuthor[commit.author][commit.milliseconds]) {\n this.#updateCommitByTimestamp(commit, this.commitsByAuthor[commit.author][commit.milliseconds]);\n } else {\n this.commitsByAuthor[commit.author][commit.milliseconds] = this.#getDefaultCommitByTimestamp(commit);\n }\n }\n\n #updateCommitByTimestamp(commit: ICommit, statistic: any) {\n statistic.commits += 1;\n statistic.addedAndChanges += commit.added + commit.changes;\n statistic.tasks[commit.task] = statistic.tasks[commit.task]\n ? (statistic.tasks[commit.task] + 1)\n : 1;\n if (!statistic.tasksByAuthor[commit.author]) {\n statistic.tasksByAuthor[commit.author] = {};\n }\n if (statistic.tasksByAuthor[commit.author][commit.task]) {\n statistic.tasksByAuthor[commit.author][commit.task].push(commit);\n } else {\n statistic.tasksByAuthor[commit.author][commit.task] = [commit];\n }\n statistic.messages.push(commit.message);\n }\n\n #getDefaultCommitByTimestamp(commit: ICommit) {\n return {\n commits: 1,\n day: commit.day,\n dayInMonth: commit.dayInMonth,\n month: commit.month,\n year: commit.year,\n week: commit.week,\n timestamp: commit.timestamp,\n milliseconds: commit.milliseconds,\n tasks: { [commit.task]: 1 },\n tasksByAuthor: { [commit.author]: { [commit.task]: [commit] } },\n addedAndChanges: commit.added + commit.changes,\n messages: [commit.message],\n };\n }\n\n updateTotalInfo(dataGripByAuthor: any) {\n this.statistic = this.#getTotalInfo(this.commits);\n this.statistic.weekendPayment = 0;\n for (let author in this.commitsByAuthor) {\n const statistic = this.#getTotalInfo(this.commitsByAuthor[author]);\n statistic.weekendPayment = this.#getWeekendPaymentByAuthor(statistic, dataGripByAuthor.statisticByName[author]);\n this.statisticByAuthor[author] = statistic;\n this.statistic.weekendPayment += statistic.weekendPayment;\n }\n }\n\n #getTotalInfo(uniqCommitsByTimestamp: any) {\n const allCommitsByTimestamp = Object.values(uniqCommitsByTimestamp);\n\n const commitsCounter = new MinMaxCounter();\n const changesCounter = new MinMaxCounter();\n const tasksCounter = new MinMaxCounter();\n const workByDay = (new Array(7)).fill(0);\n\n\n allCommitsByTimestamp.forEach((current: any) => {\n current.tasksInDay = Object.keys(current.tasks).length;\n workByDay[current.day] += 1;\n commitsCounter.update(current.commits, current);\n changesCounter.update(current.addedAndChanges, current);\n tasksCounter.update(current.tasksInDay, current);\n });\n\n return {\n allCommitsByTimestamp,\n commitsByTimestampCounter: commitsCounter,\n changesByTimestampCounter: changesCounter,\n tasksByTimestampCounter: tasksCounter,\n workByDay,\n weekendPayment: 0,\n };\n }\n\n #getMiddleValue(list: any, property: string) {\n const sortList = list.sort((a: any, b: any) => b[property] - a[property]);\n const gap = Math.floor(sortList.length * 0.05);\n return sortList.slice(gap, sortList.length - gap);\n }\n\n #getWeekendPaymentByAuthor(statistic: any, dataGripByAuthor: any) {\n if (dataGripByAuthor.isStaff) return 0;\n const salaryInDay = settingsStore.getMiddleSalaryInDay(dataGripByAuthor.author);\n const saturday = statistic.workByDay[5] * salaryInDay;\n const sunday = statistic.workByDay[6] * salaryInDay;\n return saturday + sunday;\n }\n}\n","import ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport settingsStore from 'ts/store/Settings';\n\nexport default class DataGripByWeek {\n commits: IHashMap<any> = {};\n \n statistic: any = [];\n \n constructor() {\n this.clear();\n }\n\n clear() {\n this.commits = {};\n this.statistic = [];\n }\n\n addCommit(commit: ICommit) {\n if (this.commits[commit.week]) {\n this.#updateCommitByWeek(commit);\n } else {\n this.#addCommitByWeek(commit);\n }\n }\n\n #updateCommitByWeek(commit: ICommit) {\n const statistic = this.commits[commit.week];\n statistic.commits += 1;\n statistic.tasks[commit.task] = true;\n statistic.timestamp.to = commit.timestamp;\n\n const getIncrement = (v?: number) => v ? (v + 1) : 1;\n const setDefault = (s: any, v: string) => {\n if (!s[v]) s[v] = {};\n return s[v];\n };\n\n for (let type in statistic.changes) statistic.changes[type] += (commit[type] || 0);\n\n setDefault(statistic.authors, commit.author)[commit.task] = true;\n setDefault(statistic.workDays, commit.author)[commit.day] = true;\n setDefault(statistic.typeByAuthor, commit.author)[commit.type] = getIncrement(statistic.typeByAuthor[commit.author][commit.type]);\n\n statistic.types[commit.type] = getIncrement(statistic.types[commit.type]);\n }\n\n #addCommitByWeek(commit: ICommit) {\n this.commits[commit.week] = {\n commits: 1,\n timestamp: { from: commit.timestamp },\n tasks: { [commit.task]: true },\n\n types: { [commit.type]: 1 },\n changes: { added: commit.added, changes: commit.changes, removed: commit.removed },\n authors: { [commit.author]: { [commit.task]: true } },\n workDays: { [commit.author]: { [commit.day]: true } },\n typeByAuthor: { [commit.author]: { [commit.type]: 1 } },\n };\n }\n\n updateTotalInfo(dataGripByAuthor: any) {\n this.statistic = Object.values(this.commits)\n .map((dot: any) => {\n const authors = {};\n for (let name in dot.authors) authors[name] = Object.keys(dot.authors[name]).filter(v => v).length;\n\n const workDays = {};\n const lazyDays = {};\n const weekDays = {};\n\n let workDaysTotal = 0;\n let lazyDaysTotal = 0;\n let authorsLength = 0;\n\n for (let name in dot.workDays) {\n if (dataGripByAuthor.statisticByName[name].isStaff) continue;\n authorsLength += 1;\n workDays[name] = Object.keys(dot.workDays[name]).length;\n workDaysTotal += workDays[name];\n\n const limit = settingsStore.workDays[name] || settingsStore.defaultWorkDays;\n const lazyDaysValue = limit - workDays[name];\n const weekDaysValue = workDays[name] - limit;\n\n lazyDays[name] = lazyDaysValue > 0 ? lazyDaysValue : 0;\n weekDays[name] = weekDaysValue > 0 ? weekDaysValue : 0;\n lazyDaysTotal += lazyDays[name];\n }\n\n const taskInDay = {};\n for (let name in dot.workDays) taskInDay[name] = (authors[name] && workDays[name])\n ? (authors[name] / workDays[name])\n : 0;\n\n return {\n ...dot,\n tasks: Object.keys(dot.tasks).filter(n => n).length,\n authors,\n workDays,\n lazyDays,\n weekDays,\n workDaysTotal,\n lazyDaysTotal,\n taskInDay,\n authorsLength,\n changesLength: dot.changes.added + dot.changes.changes + dot.changes.removed,\n };\n }).reverse();\n }\n}","import IHashMap from 'ts/interfaces/HashMap';\n\nimport MinMaxCounter from './counter';\n\nconst IGNORE_LIST = [\n '.eslintrc',\n '.gitignore',\n 'package.json',\n 'package-lock.json',\n 'tsconfig.json',\n];\n\nexport default class DataGripByExtension {\n statistic: any = [];\n\n statisticByName: IHashMap<any> = {};\n\n clear() {\n this.statistic = [];\n this.statisticByName = {};\n }\n\n updateTotalInfo(fileList: any[], byAuthor: any) {\n const byExtension = {};\n\n fileList.forEach((file: any) => {\n if (!file.extension\n || IGNORE_LIST.includes(file.name)) return;\n if (!byExtension[file.extension]) {\n byExtension[file.extension] = {\n extension: file.extension, authors: {}, more: {}, total: { added: 0, changes: 0, removed: 0, total: 0 },\n };\n }\n\n for (let author in file.authors) {\n if (!author\n || byAuthor.statisticByName[author]?.isStaff) return;\n byExtension[file.extension].authors[author] = byExtension[file.extension].authors[author]\n || { added: 0, changes: 0, removed: 0 };\n\n const statistic = file.authors[author];\n const total = byExtension[file.extension].authors[author];\n total.added += statistic.added;\n total.changes += statistic.changes;\n total.removed += statistic.removed;\n\n byExtension[file.extension].total.added += statistic.added;\n byExtension[file.extension].total.changes += statistic.changes;\n byExtension[file.extension].total.removed += statistic.removed;\n byExtension[file.extension].total.total += statistic.added + statistic.changes + statistic.removed;\n }\n });\n\n this.#addMorePercent(byExtension);\n\n this.statistic = Object.entries(byExtension)\n .sort((a: any, b: any) => b[1].total.total - a[1].total.total)\n .map((item: any) => item[1]);\n this.statisticByName = byExtension;\n }\n\n #addMorePercent(byExtension: any) {\n for (let extension in byExtension) {\n const moreAdded = new MinMaxCounter();\n const moreChanges = new MinMaxCounter();\n const moreRemoved = new MinMaxCounter();\n\n for (let author in byExtension[extension].authors) {\n const statistic = byExtension[extension].authors[author];\n const total = statistic.added + statistic.changes + statistic.removed;\n\n statistic.addedPercent = (statistic.added * 100) / total;\n statistic.changesPercent = (statistic.changes * 100) / total;\n statistic.removedPercent = (statistic.removed * 100) / total;\n\n moreAdded.update(statistic.addedPercent, author);\n moreChanges.update(statistic.changesPercent, author);\n moreRemoved.update(statistic.removedPercent, author);\n }\n\n byExtension[extension].more = {\n added: { percent: moreAdded.max, author: moreAdded.maxData },\n changes: { percent: moreChanges.max, author: moreChanges.maxData },\n removed: { percent: moreRemoved.max, author: moreRemoved.maxData },\n };\n }\n }\n}","import ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\n\nexport default class DataGripByGet {\n isGet: IHashMap<boolean> = {};\n\n alreadyAdded: IHashMap<ICommit> = {};\n\n getsByAuthor: IHashMap<ICommit[]> = {};\n\n defaultGets: any = [];\n\n statistic: any = [];\n\n constructor() {\n this.createDefaultGets();\n this.clear();\n }\n\n createDefaultGets() {\n const gets = [ '1234', '12345', '123456', '1234567', '12345678' ];\n for (let size = 3; size < 7; size++) {\n for (let content = 1; content < 9; content++) {\n const firstKey = (new Array(size)).fill(content).join('');\n gets.push(firstKey);\n\n const lastKey = (new Array(size)).fill('0');\n lastKey[0] = content;\n gets.push(lastKey.join(''));\n }\n }\n this.defaultGets = gets;\n }\n\n clear() {\n this.isGet = Object.fromEntries(this.defaultGets.map((key: string) => [key, true]));\n this.alreadyAdded = {};\n this.getsByAuthor = {};\n }\n\n addCommit(commit: ICommit) {\n if (!this.isGet[commit.taskNumber]\n || this.alreadyAdded[commit.taskNumber]) return;\n\n this.alreadyAdded[commit.taskNumber] = commit;\n this.getsByAuthor[commit.author] = this.getsByAuthor[commit.author] || [];\n this.getsByAuthor[commit.author].push(commit);\n }\n}","export interface ILog {\n // date\n date: string; // \"2021-02-09T12:59:17+03:00\",\n day: number; // 1,\n dayInMonth: number; // 9,\n hours: number; // 12,\n minutes: number; // 59,\n month: number; // 1,\n year: number; // 2021,\n timestamp: string; // 2021-02-09\",\n milliseconds: number; // 1612828800000,\n week: number; // 42,\n\n // user\n author: string; // \"Frolov Ivan\",\n email: string; // \"frolov@mail.ru\",\n\n // task\n message: string; // \"JIRA-0000 fix(profile): add new avatar\",\n task: string; // \"JIRA-0000\",\n taskNumber: string; // \"0000\",\n type: string; // feat|fix|docs|style|refactor|test|chore\n scope: string; // table, sale, profile and etc.\n}\n\nexport const COMMIT_TYPE = {\n PR_BITBUCKET: 'PR_BITBUCKET',\n PR_GITHUB: 'PR_GITHUB',\n AUTO_MERGE: 'AUTO_MERGE',\n};\n\nexport interface ISystemCommit extends ILog {\n prId: string; // \"59\"\n repository: string; // \"ASSA/jira-frontend\"\n branch: string; // \"feature/JIRA-151-create-MainPage-without-Banners-slider\"\n toBranch: string; // \"master\"\n commitType: string; // 'PR' | 'MERGE' | 'AUTO_MERGE';\n}\n\nexport default interface ICommit extends ILog {\n // files\n changes: number; // 0,\n added: number; // 0,\n removed: number; // 0\n}\n","import IHashMap from 'ts/interfaces/HashMap';\n\ninterface IValueAndCount {\n value: number;\n count: number;\n}\n\n// получить средневзвешенное значение\nexport class WeightedAverage {\n valueAndCount: IHashMap<IValueAndCount> = {};\n\n update(value: number) {\n if (this.valueAndCount[value]) {\n this.valueAndCount[value].count += 1;\n } else {\n this.valueAndCount[value] = { value, count: 1 };\n }\n }\n\n clear() {\n this.valueAndCount = {};\n }\n\n get() {\n let count = 0;\n let value = 0;\n\n Object\n .values(this.valueAndCount)\n .forEach((item: any) => {\n value += item.value * item.count;\n count += item.count;\n });\n\n return value / count;\n }\n}\n","import { COMMIT_TYPE, ISystemCommit } from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport { WeightedAverage } from 'ts/helpers/Math';\n\nexport default class DataGripByPR {\n pr: IHashMap<any> = {};\n\n prByTask: IHashMap<string> = {};\n\n lastCommitByTaskNumber: IHashMap<any> = {};\n\n statistic: any[] = [];\n\n statisticByName: IHashMap<any> = [];\n\n clear() {\n this.pr = {};\n this.prByTask = {};\n this.lastCommitByTaskNumber = {};\n this.statistic = [];\n }\n\n addCommit(commit: ISystemCommit) {\n if (!commit.commitType) {\n if (!this.lastCommitByTaskNumber[commit.task]) {\n this.#addCommitByTaskNumber(commit);\n } else {\n this.#updateCommitByTaskNumber(commit);\n }\n } else if (commit.commitType !== COMMIT_TYPE.AUTO_MERGE && !this.pr[commit.prId]) {\n this.#addCommitByPR(commit);\n }\n }\n\n #addCommitByTaskNumber(commit: ISystemCommit) {\n this.lastCommitByTaskNumber[commit.task] = {\n commits : 1,\n beginTaskTime: commit.milliseconds,\n endTaskTime: commit.milliseconds,\n commitsByAuthors: {\n [commit.author]: 1,\n },\n firstCommit: commit,\n };\n }\n\n #updateCommitByTaskNumber(commit: ISystemCommit) {\n const statistic = this.lastCommitByTaskNumber[commit.task];\n statistic.endTaskTime = commit.milliseconds;\n statistic.commits += 1;\n statistic.commitsByAuthors[commit.author] = statistic.commitsByAuthors[commit.author]\n ? (statistic.commitsByAuthors[commit.author] + 1)\n : 1;\n }\n\n #addCommitByPR(commit: ISystemCommit) {\n const lastCommit = this.lastCommitByTaskNumber[commit.task];\n if (lastCommit) {\n // коммиты после влития PR сгорают, чтобы не засчитать технические PR мержи веток\n delete this.lastCommitByTaskNumber[commit.task];\n const delay = commit.milliseconds - lastCommit.endTaskTime;\n const work = lastCommit.endTaskTime - lastCommit.beginTaskTime;\n this.pr[commit.prId] = {\n ...commit,\n ...lastCommit,\n delay,\n delayDays: delay / (24 * 60 * 60 * 1000),\n workDays: work === 0 ? 1 : (work / (24 * 60 * 60 * 1000)),\n };\n this.prByTask[commit.task] = commit.prId;\n } else {\n this.pr[commit.prId] = { ...commit };\n }\n }\n\n updateTotalInfo(dataGripByAuthor: any) {\n const employment = dataGripByAuthor.employment;\n const authors = [...employment.active, ...employment.dismissed];\n const refAuthorPR: any = Object.fromEntries(authors.map((name: string) => ([name, []])));\n\n this.statistic = Object.values(this.pr)\n .filter((item: any) => item.delay && item.task)\n .sort((a: any, b: any) => b.delay - a.delay);\n\n this.statistic = [];\n this.statisticByName = {};\n\n Object.values(this.pr).forEach((item: any) => {\n if (!item.delay || !item.task) return;\n\n this.statistic.push(item);\n if (refAuthorPR[item.firstCommit.author]) {\n refAuthorPR[item.firstCommit.author].push(item);\n }\n });\n\n this.statistic.sort((a: any, b: any) => b.delay - a.delay);\n this.updateTotalByAuthor(authors, refAuthorPR);\n\n this.lastCommitByTaskNumber = {};\n }\n\n static getPRByGroups(list: any, propertyName: string) {\n const TITLES = {\n DAY: 'день',\n THREE_DAY: 'три дня',\n WEEK: 'неделя',\n TWO_WEEK: 'две недели',\n MONTH: 'месяц',\n MORE: 'более',\n };\n\n const details = {\n [TITLES.DAY]: 0,\n [TITLES.THREE_DAY]: 0,\n [TITLES.WEEK]: 0,\n [TITLES.TWO_WEEK]: 0,\n [TITLES.MONTH]: 0,\n [TITLES.MORE]: 0,\n };\n\n const weightedAverage = new WeightedAverage();\n\n list.forEach((pr: any) => {\n const value = pr[propertyName];\n\n weightedAverage.update(value);\n\n if (value <= 1) details[TITLES.DAY]++;\n else if (value <= 2) details[TITLES.THREE_DAY]++;\n else if (value <= 7) details[TITLES.WEEK]++;\n else if (value <= 14) details[TITLES.TWO_WEEK]++;\n else if (value <= 30) details[TITLES.MONTH]++;\n else details[TITLES.MORE]++;\n });\n\n const order = Object.keys(details);\n\n return { details, order, weightedAverage: weightedAverage.get() };\n }\n\n updateTotalByAuthor(authors: any, refAuthorPR: IHashMap<any>) {\n this.statisticByName = {};\n authors.map((name: string) => {\n const delayDays = DataGripByPR.getPRByGroups(refAuthorPR[name], 'delayDays');\n const delayDaysWeightedAverage = parseInt(delayDays.weightedAverage.toFixed(1), 10);\n\n const workDays = DataGripByPR.getPRByGroups(refAuthorPR[name], 'workDays');\n const workDaysWeightedAverage = parseInt(workDays.weightedAverage.toFixed(1), 10);\n\n this.statisticByName[name] = {\n author: name,\n workDays: workDays.details,\n delayDays: delayDays.details,\n weightedAverage: workDaysWeightedAverage + delayDaysWeightedAverage,\n weightedAverageDetails: {\n workDays: workDaysWeightedAverage,\n delayDays: delayDaysWeightedAverage,\n },\n };\n });\n }\n}","import ICommit, { ISystemCommit } from 'ts/interfaces/Commit';\nimport settingsStore from 'ts/store/Settings';\nimport Recommendations from 'ts/helpers/Recommendations';\n\nimport DataGripByAuthor from './components/author';\nimport DataGripByTeam from './components/team';\nimport DataGripByScope from './components/scope';\nimport DataGripByType from './components/type';\nimport DataGripByTimestamp from './components/timestamp';\nimport DataGripByWeek from './components/week';\nimport MinMaxCounter from './components/counter';\nimport DataGripByExtension from './components/extension';\nimport DataGripByGet from './components/get';\nimport DataGripByPR from './components/pr';\n\nclass DataGrip {\n firstLastCommit: any = new MinMaxCounter();\n\n author: any = new DataGripByAuthor();\n\n team: any = new DataGripByTeam();\n\n scope: any = new DataGripByScope();\n\n type: any = new DataGripByType();\n\n timestamp: any = new DataGripByTimestamp();\n\n week: any = new DataGripByWeek();\n\n recommendations: any = new Recommendations();\n\n extension: any = new DataGripByExtension();\n\n get: any = new DataGripByGet();\n\n pr: any = new DataGripByPR();\n\n initializationInfo: any = {};\n\n clear() {\n this.firstLastCommit.clear();\n this.author.clear();\n this.team.clear();\n this.scope.clear();\n this.type.clear();\n this.timestamp.clear();\n this.week.clear();\n this.recommendations.clear();\n this.extension.clear();\n this.get.clear();\n this.pr.clear();\n }\n\n addCommit(commit: ICommit | ISystemCommit) {\n if (commit.author === 'GitHub') return;\n this.pr.addCommit(commit); // @ts-ignore\n if (!commit.commitType) {\n this.firstLastCommit.update(commit.milliseconds, commit);\n this.author.addCommit(commit);\n this.scope.addCommit(commit);\n this.type.addCommit(commit);\n this.timestamp.addCommit(commit);\n this.get.addCommit(commit);\n this.week.addCommit(commit);\n }\n }\n\n #updateTotalInfo() {\n this.author.updateTotalInfo();\n this.team.updateTotalInfo(this.author);\n this.scope.updateTotalInfo();\n this.type.updateTotalInfo();\n this.timestamp.updateTotalInfo(this.author);\n this.week.updateTotalInfo(this.author);\n this.recommendations.updateTotalInfo(this);\n this.pr.updateTotalInfo(this.author);\n }\n\n updateByInitialization() {\n this.#updateTotalInfo();\n this.initializationInfo = this.author.statistic\n .reduce((info: any, author: any) => {\n info[author.author] = { ...author };\n return info;\n }, {});\n }\n\n updateByFilters() {\n this.clear();\n settingsStore.commits.forEach((commit: ICommit) => {\n const author = this.initializationInfo[commit.author] || { commits: 0 };\n if (commit.timestamp < settingsStore.from\n || commit.timestamp > settingsStore.to\n || author.commits < settingsStore.minCommits) return;\n this.addCommit(commit);\n });\n this.#updateTotalInfo();\n }\n\n updateByFiles(fileList: any[]) {\n this.extension.updateTotalInfo(fileList, this.author);\n }\n}\n\nconst dataGrip = new DataGrip();\n\nexport default dataGrip;\n","import IHashMap from 'ts/interfaces/HashMap';\nimport dataGrip from 'ts/helpers/DataGrip';\n\nclass AchievementsByCompetition {\n authors: IHashMap<string[]> = {};\n\n get(name: string) {\n return this.authors[name]\n ? [...this.authors[name]]\n : [];\n }\n\n updateByDataGrip(statisticByAuthor: any) {\n // У меня работает - больше всего коммитов с текстом fix\n // 500я на проде - больше всего коммитов с префиксом hotfix\n // Хуяк, хуяк и в продакшен - больше всего коммитов с префиксом add или feat\n // Выпускающий редактор - больше всего коммитов с текстом refactor\n // - больше всего коммитов в час\n const {\n total,\n achievements,\n } = this.#getTotalByAuthor(statisticByAuthor);\n\n const nameLength = this.#getFirstAndLast(total.nameLength);\n // Азим Азиз Иль Ам Кадир Имран II - самое длинное имя\n achievements[nameLength.first].push('longestName');\n // Корнишон - самое короткое имя\n achievements[nameLength.last].push('shortestName');\n\n const midMessage = this.#getFirstAndLast(total.midMessage);\n // Мастер красноречия - стабильно ,самые длинные подписи коммитов\n achievements[midMessage.first].push('everyMessageLong');\n // Нет времени обьяснять - стабильно, самые короткие подписи коммитов\n achievements[midMessage.last].push('everyMessageShort');\n\n const maxMessage = this.#getFirstAndLast(total.maxMessage);\n // Пиздеть, не мешки ворочить - самая длинная подпись коммита за все время\n achievements[maxMessage.first].push('longestMessage');\n\n const tasks = this.#getFirstAndLast(total.tasks);\n // Батя - больше всего закрытых задач\n achievements[tasks.first].push('moreTasks');\n // Зашел и вышел - меньше всего закрытых задач\n achievements[tasks.last].push('lessTasks');\n\n const days = this.#getFirstAndLast(total.days);\n // Ценный работник - больше всего рабочих дней\n achievements[days.first].push('moreWorkDays');\n // Дальше без меня - меньше всего рабочих дней\n achievements[days.last].push('lessWorkDays');\n\n const lazyDays = this.#getFirstAndLast(total.lazyDays);\n // Мысленно я с вами - больше всего дней без коммитов\n achievements[lazyDays.first].push('moreLazyDays');\n // Папа Карло - меньше всего дней без коммитов\n achievements[lazyDays.last].push('lessLazyDays');\n\n const allDaysInProject = this.#getFirstAndLast(total.allDaysInProject);\n // Старожил - больше всего дней на проекте\n achievements[allDaysInProject.first].push('moreDaysInProject');\n // А это кто? - меньше всего дней на проекте\n achievements[allDaysInProject.last].push('lessDaysInProject');\n\n const firstCommit = this.#getFirstAndLast(total.firstCommit);\n // Адам - первый стабильны сотрудник на проекте\n achievements[firstCommit.last].push('adam');\n\n const moreRefactoring = this.#getFirstAndLast(total.moreRefactoring);\n // Главный редактор - сделал больше всех меток «рефакторинг»\n achievements[moreRefactoring.first].push('moreRefactoring');\n\n const tasksInDay = this.#getFirstAndLast(total.tasksInDay);\n // Спиди-гонщик - рекорд по количеству закрытых задач в день\n achievements[tasksInDay.first].push('moreTasksInDay');\n\n const commitsInDay = this.#getFirstAndLast(total.commitsInDay);\n // Zerg Rush - рекорд по количеству коммитов в день\n achievements[commitsInDay.first].push('moreCommits');\n\n this.authors = achievements;\n }\n\n #getTotalByAuthor(statisticByAuthor: any) {\n const achievements = {};\n const total: IHashMap<any> = {};\n\n statisticByAuthor.forEach((statistic: any) => {\n achievements[statistic.author] = [];\n const addData = (property: string, count: number) => {\n if (!total[property]) total[property] = [];\n total[property].push([statistic.author, count]);\n };\n addData('nameLength', statistic.author.length);\n addData('maxMessage', statistic.messageLength[statistic.messageLength.length - 1]);\n addData('midMessage', statistic.middleMessageLength);\n addData('tasks', statistic.tasks.length);\n addData('days', statistic.days);\n addData('moreRefactoring', statistic.types.refactor);\n\n const byTimestamp = dataGrip.timestamp.statisticByAuthor[statistic.author];\n addData('tasksInDay', byTimestamp.tasksByTimestampCounter.max);\n addData('commitsInDay', byTimestamp.commitsByTimestampCounter.max);\n\n if (statistic.isStaff) return;\n addData('allDaysInProject', statistic.allDaysInProject);\n addData('lazyDays', statistic.lazyDays);\n addData('firstCommit', statistic.firstCommit.milliseconds);\n });\n\n Object.keys(total).forEach(achievement => {\n total[achievement].sort((a: any, b: any) => b[1] - a[1]);\n });\n\n return { total, achievements };\n }\n\n #getFirstAndLast(list: any[]) {\n const first = list.shift();\n const last = list.pop() || first;\n\n return {\n first: first[0],\n last: last[0],\n };\n }\n}\n\nconst achievements = new AchievementsByCompetition();\n\nexport default achievements;\n","function addTotalInfo(folder: any) {\n folder.total = { added: 0, changes: 0, removed: 0, commits: 0 };\n const authors = Object.keys(folder.authors);\n authors.forEach(author => {\n folder.total.added += folder.authors[author].added;\n folder.total.changes += folder.authors[author].changes;\n folder.total.removed += folder.authors[author].removed;\n folder.total.commits += folder.authors[author].commits;\n });\n authors.forEach(author => {\n const authorInfo = folder.authors[author];\n authorInfo.addedPercent = Math.round(authorInfo.added * 100 / folder.total.added);\n authorInfo.changesPercent = Math.round(authorInfo.changes * 100 / folder.total.changes);\n authorInfo.removedPercent = Math.round(authorInfo.removed * 100 / folder.total.removed);\n authorInfo.commitsPercent = Math.round(authorInfo.commits * 100 / folder.total.commits);\n });\n}\n\nfunction addInfoFromFile(folderInfo: any, file: any) {\n folderInfo.lines += file.lines;\n for (let author in file.authors) {\n if (!folderInfo.authors[author]) {\n folderInfo.authors[author] = {\n added: 0,\n changes: 0,\n removed: 0,\n commits: 0,\n tasks: {},\n types: {},\n scopes: {},\n };\n }\n const folder = folderInfo.authors[author];\n const fileInfo = file.authors[author];\n folder.added += fileInfo.added;\n folder.changes += fileInfo.changes;\n folder.removed += fileInfo.removed;\n folder.commits += fileInfo.commits;\n }\n}\n\nfunction addInfoFromFolder(parentInfo: any, folder: any, path: string[]) {\n const folderInfo = { lines: 0, authors: {} };\n for (let fileName in folder.content) {\n if (folder.content[fileName].content) {\n addInfoFromFolder(folderInfo, folder.content[fileName], [...path, fileName]);\n } else {\n addInfoFromFile(folderInfo, folder.content[fileName]);\n addTotalInfo(folder.content[fileName]);\n }\n }\n addInfoFromFile(parentInfo, folderInfo);\n folder.path = path;\n folder.lines = folderInfo.lines;\n folder.authors = folderInfo.authors;\n addTotalInfo(folder);\n}\n\nexport default function getFileTreeWithStatistic(rootTree: any) {\n const folderInfo = { lines: 0, authors: {}, path: [] };\n addInfoFromFolder(folderInfo, rootTree, []);\n return rootTree;\n}","const POPULAR_TYPES = [\n 'refactor',\n 'feat',\n 'chore',\n 'code style',\n 'style',\n 'doc',\n 'docs',\n 'test',\n 'update',\n 'improve',\n 'add',\n 'remove',\n 'delete',\n 'optimize',\n 'rename',\n 'eslint',\n 'fix',\n];\n\nconst REPLACE_TYPES = {\n add: 'feat',\n remove: 'refactor',\n delete: 'refactor',\n update: 'refactor',\n improve: 'refactor',\n optimize: 'refactor',\n rename: 'refactor',\n eslint: 'style',\n 'code style': 'refactor',\n};\n\nfunction getType(message: string) {\n const findType = POPULAR_TYPES.find((item: string) => message.indexOf(item) !== -1);\n return REPLACE_TYPES[findType || ''] || findType;\n}\n\nfunction getScope(message: string) {\n return message\n .replace(/[()]/gim, '')\n .split(',')\n .map((text: string) => text.trim())\n ?.[0];\n}\n\nexport function getTypeAndScope(message: string, task: string) {\n let type = '';\n let scope = '';\n\n let formattedMessage = message.replace(task, '').toLowerCase();\n const messageParts = formattedMessage.split(':');\n\n if (messageParts.length > 1) {\n // JIRA-1234 type(scope): message\n [type, scope] = messageParts[0].split(/[()]/g).map(v => v.trim());\n }\n\n if (!type) {\n type = getType(message);\n }\n\n if (type && !scope && messageParts.length > 1) {\n // JIRA-1234 scope: message\n scope = getScope(messageParts[0].replace(type, ''));\n }\n if (type) { // @ts-ignore\n type = type.split(' ').shift();\n }\n return [type, scope];\n}\n\n// ABC-123, #123, gh-123\nexport function getTask(message: string) {\n return ((message || '').match(/(([A-Z]+-)|(#)|(gh-)|(GH-))([0-9]+)/gm) || [])[0] || '';\n}\n\n// ABC-123 => '123';\nexport function getTaskNumber(task?: string) {\n return (task || '').replace(/[^0-9]+/gim, '');\n}\n","import ICommit, { COMMIT_TYPE, ISystemCommit } from 'ts/interfaces/Commit';\n\nimport { getTypeAndScope, getTask, getTaskNumber } from './getTypeAndScope';\n\nexport default function getUserInfo(logString: string): ICommit | ISystemCommit {\n // \"2021-02-09T12:59:17+03:00>Frolov Ivan>frolov@mail.ru>profile\"\n const parts = logString.split('>');\n\n const sourceDate = parts.shift() || '';\n const date = new Date(sourceDate);\n const day = date.getDay() - 1;\n const timestamp = sourceDate.split('T')[0];\n\n const author = parts.shift()?.replace(/\\./gm, ' ') || '';\n const email = parts.shift() || '';\n\n const message = parts.join('>');\n\n const commonInfo: any = {\n date: sourceDate,\n day: day < 0 ? 6 : day,\n dayInMonth: date.getDate(),\n hours: date.getHours(),\n minutes: date.getMinutes(),\n month: date.getMonth(),\n year: date.getUTCFullYear(),\n week: 0,\n timestamp,\n milliseconds: (new Date(timestamp)).getTime(),\n\n author,\n email,\n message,\n\n type: 'не подписан',\n scope: 'неопределенна',\n };\n\n const isSystemPR = message.indexOf('Pull request #') === 0;\n const isSystemMerge = message.indexOf('Merge pull request #') === 0;\n const isAutoMerge = message.indexOf('Merge branch ') === 0\n || message.indexOf('Merge remote-tracking branch') === 0\n || message.indexOf('Merge commit ') === 0\n || message.indexOf('Automatic merge from') === 0;\n const isSystemCommit = isSystemPR\n || isSystemMerge\n || isAutoMerge;\n\n if (isSystemCommit) {\n let commitType = COMMIT_TYPE.AUTO_MERGE;\n let prId, repository, branch, toBranch, task, taskNumber;\n if (isSystemMerge) {\n commitType = COMMIT_TYPE.PR_GITHUB;\n [, prId, repository, branch, toBranch ] = message\n .replace(/(Merge\\spull\\srequest\\s#)|(\\sfrom\\s)|(\\sin\\s)|(\\sto\\s)/gim, ',')\n .split(',');\n task = getTask(branch);\n } else if (isSystemPR) {\n commitType = COMMIT_TYPE.PR_BITBUCKET;\n const messageParts = message.substring(14, Infinity).split(':');\n prId = messageParts.shift();\n task = getTask(messageParts.join(':'));\n }\n taskNumber = getTaskNumber(task);\n\n return {\n ...commonInfo,\n prId: prId || '',\n task: task || '',\n taskNumber: taskNumber || '',\n repository: repository || '',\n branch: branch || '',\n toBranch: toBranch || '',\n commitType,\n };\n }\n\n const task = getTask(message);\n const taskNumber = getTaskNumber(task);\n const [type, scope] = getTypeAndScope(message, task);\n return {\n ...commonInfo,\n task,\n taskNumber,\n type: type || 'не подписан',\n scope: scope || 'неопределенна',\n\n changes: 0,\n added: 0,\n removed: 0,\n };\n}","import { IDirtyFile, IFileTree } from 'ts/interfaces/FileInfo';\nimport IHashMap from 'ts/interfaces/HashMap';\n\nexport function getNewFileName(fileName: string, allFiles: any) {\n const hasRename = (/\\s=>\\s/gim).test(fileName);\n if (!hasRename) return fileName;\n\n let changedName = fileName.match(/\\{[^}]+\\}/gim)?.pop();\n if (!changedName) changedName = fileName;\n\n const [oldName, newName] = changedName\n ? changedName.replace(/[{}]/gim, '').split(' => ')\n : fileName.split(' => ');\n\n let oldPath = fileName.replace(changedName, oldName);\n if (!oldName) oldPath = oldPath.replace('//', '/');\n\n const newPath = fileName.replace(changedName, newName);\n if (!allFiles[oldPath]) return newPath;\n\n allFiles[newPath] = allFiles[oldPath];\n allFiles[newPath].name = newPath;\n\n return newPath;\n}\n\nfunction getFolder(name?: string): IFileTree {\n return {\n id: Math.random(),\n name: name || '',\n content: {},\n };\n}\n\nfunction getFolderTree(fileTree: any, file: IDirtyFile) {\n let prev = fileTree;\n let fileName: string = file.path.pop() || '';\n file.path.forEach((folder: any) => {\n if (!prev[folder] || !prev[folder].content) {\n prev[folder] = getFolder(folder);\n }\n prev = prev[folder].content;\n });\n prev[fileName] = file;\n}\n\n\nexport function getFileList(allFiles: IHashMap<IDirtyFile>) {\n const fileList = Object.values(allFiles);\n const fileTree: IFileTree = getFolder();\n\n fileList.forEach((file: IDirtyFile) => {\n if (!file.name) return;\n file.path = file.name.split('/');\n getFolderTree(fileTree.content, file);\n });\n\n return { fileList, fileTree };\n}\n","import ICommit from 'ts/interfaces/Commit';\n\nexport function getNewFileAuthor(\n addedLines: number,\n prev?: ICommit | null,\n) {\n return {\n added: addedLines,\n changes: addedLines,\n removed: 0,\n commits: 1,\n tasks: { [prev?.task || '']: 1 },\n types: { [prev?.type || '']: 1 },\n scopes: { [prev?.scope || '']: 1 },\n };\n}\n\nexport function getNewFileInfo(\n name: string,\n addedLines: number,\n commit?: ICommit | null,\n) {\n return {\n name,\n extension: name?.split('.')?.pop(),\n lines: addedLines,\n created: commit,\n authors: {\n [commit?.author || '']: getNewFileAuthor(addedLines, commit),\n },\n };\n}","import { IDirtyFile } from 'ts/interfaces/FileInfo';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport ICommit, { ISystemCommit } from 'ts/interfaces/Commit';\nimport settingsStore from 'ts/store/Settings';\n\nimport getUserInfo from './user_info';\nimport { getNewFileName, getFileList } from './files';\nimport { getNewFileInfo } from './file_info';\n\nconst uniq = {};\nexport default function Parser(\n report: string[],\n parseCommit: Function,\n) {\n const allFiles: IHashMap<IDirtyFile> = {};\n const commits: Array<ICommit | ISystemCommit> = [];\n let week: number = 0;\n let weekEndTime: number = 0;\n\n let prev = null;\n\n for (let i = 0, l = report.length; i < l; i += 1) {\n const message = report[i];\n if (!message) continue;\n const index = message.indexOf('\\t');\n if (index > 0 && index < 10) {\n let [addedRaw, removedRaw, fileName] = message.split('\\t');\n fileName = getNewFileName(fileName, allFiles);\n let added = parseInt(addedRaw, 10) || 0;\n let removed = parseInt(removedRaw, 10) || 0;\n const diff = added - removed;\n let changes = added > removed ? removed : added;\n\n if (allFiles[fileName]) {\n const fileInfo: IDirtyFile = allFiles[fileName];\n fileInfo.lines += diff;\n if (!fileInfo.authors[prev?.author || '']) {\n fileInfo.authors[prev?.author || ''] = {\n added: 0,\n changes: 0,\n removed: 0,\n commits: 1,\n tasks: {},\n types: {},\n scopes: {},\n };\n }\n const authorInfo = fileInfo.authors[prev?.author || ''];\n authorInfo.changes = authorInfo.changes + changes;\n if (diff > 0) {\n authorInfo.added = authorInfo.added + diff;\n } else {\n authorInfo.removed = authorInfo.removed + diff * (-1);\n }\n authorInfo.commits += 1;\n authorInfo.tasks[prev?.task || ''] = (authorInfo.tasks[prev?.task || ''] || 0) + 1;\n authorInfo.types[prev?.type || ''] = (authorInfo.tasks[prev?.type || ''] || 0) + 1;\n authorInfo.scopes[prev?.scope || ''] = (authorInfo.tasks[prev?.scope || ''] || 0) + 1;\n if (allFiles[fileName].lines === 0) {\n delete allFiles[fileName];\n }\n } else {\n // @ts-ignore\n allFiles[fileName] = getNewFileInfo(fileName, added, prev);\n }\n if (removed > added) {\n removed -= added;\n changes += added;\n added = 0;\n } else if (added > removed) {\n added -= removed;\n changes += removed;\n removed = 0;\n } else if (added === removed) {\n changes += added;\n added = 0;\n removed = 0;\n }\n if (prev) { // @ts-ignore\n prev.changes += changes; // @ts-ignore\n prev.added += added; // @ts-ignore\n prev.removed += removed;\n }\n } else {\n if (prev) {\n if (uniq[prev.date]) {\n // console.log(`double ${uniq[prev.date]} === ${i}`);\n }\n uniq[prev.date] = i;\n parseCommit(prev);\n }\n\n const next = getUserInfo(message);\n if (next.milliseconds > weekEndTime) {\n week += 1;\n weekEndTime = next.milliseconds + (settingsStore.ONE_DAY * (6 - next.day));\n }\n // @ts-ignore\n next.week = week;\n\n prev = next;\n commits.push(prev); // @ts-ignore\n }\n }\n if (prev) parseCommit(prev);\n\n const { fileList, fileTree } = getFileList(allFiles);\n return {\n commits,\n fileList,\n fileTree,\n };\n}\n","import ICommit from 'ts/interfaces/Commit';\n\nexport default function getUserInfo(message: any): ICommit {\n /*\n \"id\": -999973047,\n \"type\": \"message\",\n \"date\": \"2021-02-03T17:21:10\",\n \"date_unixtime\": \"1612362070\",\n \"from\": \"Дарья Скуратова (ВТБ)\",\n \"from_id\": \"user415945803\",\n \"text\": \"Ребята, привет!\",\n \"text_entities\": [\n {\n \"type\": \"plain\",\n \"text\": \"Ребята, привет!\"\n }\n ]\n */\n\n const date = new Date(message?.date);\n const day = date.getDay() - 1;\n const timestamp = message?.date.split('T')[0];\n\n const author = message?.from || '';\n const email = message?.from_id || '';\n const text = Array.isArray(message?.text)\n ? message.text.map((subString: any) => subString?.text || subString).join(' ')\n : (message?.text || '');\n\n return {\n date: message?.date,\n day: day < 0 ? 6 : day,\n dayInMonth: date.getDate(),\n hours: date.getHours(),\n minutes: date.getMinutes(),\n month: date.getMonth(),\n year: date.getUTCFullYear(),\n week: 0,\n timestamp,\n milliseconds: parseInt(message?.date_unixtime, 10),\n\n author,\n email,\n message: text || '',\n\n task: 'беседа',\n taskNumber: '',\n type: 'не подписан',\n scope: 'неопределенна',\n\n changes: 0,\n added: 0,\n removed: 0,\n };\n}","import ICommit from 'ts/interfaces/Commit';\n\nimport getUserInfo from './user_info';\nimport settingsStore from 'ts/store/Settings';\n\nexport default function ParserTelegramm(\n messages: any[],\n parseCommit: Function,\n) {\n const commits: ICommit[] = [];\n let week: number = 0;\n let weekEndTime: number = 0;\n\n let prev = null;\n\n for (let i = 0, l = messages.length; i < l; i += 1) {\n const message = messages[i];\n if (!message?.text) continue;\n\n if (prev) parseCommit(prev);\n const next = getUserInfo(message);\n if (next.milliseconds > weekEndTime) {\n week += 1;\n weekEndTime = next.milliseconds + (settingsStore.ONE_DAY * (6 - next.day));\n }\n // @ts-ignore\n next.week = week;\n\n prev = next;\n commits.push(prev);\n }\n if (prev) parseCommit(prev);\n\n return {\n commits,\n fileList: [],\n fileTree: {\n id: Math.random(),\n name: '',\n content: {},\n },\n };\n}\n","import { makeObservable, observable, action } from 'mobx';\n\nimport ICommit from 'ts/interfaces/Commit';\nimport { IDirtyFile, IFileTree } from 'ts/interfaces/FileInfo';\nimport achievements from 'ts/helpers/achievement/byCompetition';\nimport dataGrip from 'ts/helpers/DataGrip';\nimport getFileTreeWithStatistic from 'ts/helpers/DataGrip/helpers/tree';\nimport Parser from 'ts/helpers/Parser';\nimport ParserTelegramm from 'ts/helpers/ParserTelegramm';\nimport { setDefaultValues } from 'ts/pages/Settings/helpers/getEmptySettings';\n\nimport settingsStore from './Settings';\n\ninterface IDataGripStore {\n commits: ICommit[];\n dataGrip: any;\n showApplication: boolean;\n setCommits: (log?: string[]) => void;\n}\n\nclass DataGripStore implements IDataGripStore {\n commits: any[] = [];\n\n fileList: IDirtyFile[] = [];\n\n fileTree: IFileTree = {} as IFileTree;\n\n dataGrip: any = null;\n\n showApplication: boolean = false;\n\n constructor() {\n makeObservable(this, {\n commits: observable,\n dataGrip: observable,\n showApplication: observable,\n setCommits: action,\n setTelegrammMessages: action,\n });\n }\n\n setCommits(dump?: string[], type?: string) {\n dataGrip.clear();\n const parser = type === 'telegramm'\n ? ParserTelegramm\n : Parser;\n\n const {\n commits,\n fileList,\n fileTree,\n } = parser(dump || [], (commit: ICommit) => dataGrip.addCommit(commit));\n\n this.commits = commits;\n this.fileList = fileList;\n this.fileTree = getFileTreeWithStatistic(fileTree);\n\n this.showApplication = !!this.commits.length;// && !!dataGrip.author.list.length;\n if (this.showApplication) {\n setDefaultValues(dataGrip.firstLastCommit.minData, dataGrip.firstLastCommit.maxData);\n settingsStore.updateByCommits(\n this.commits,\n dataGrip.firstLastCommit.minData,\n dataGrip.firstLastCommit.maxData,\n );\n\n dataGrip.updateByInitialization();\n dataGrip.updateByFiles(fileList);\n achievements.updateByDataGrip(dataGrip.author.statistic);\n }\n\n this.dataGrip = null;\n this.dataGrip = dataGrip;\n console.dir(dataGrip);\n }\n\n setTelegrammMessages(dump?: any[]) {\n return this.setCommits(dump, 'telegramm');\n }\n\n updateChars() { // todo: remove, never use\n console.log('need update data TODO');\n dataGrip.updateByFilters();\n if (!dataGrip.author.list.length) return;\n achievements.updateByDataGrip(dataGrip.author.statistic);\n this.dataGrip = null;\n this.dataGrip = dataGrip;\n }\n}\n\nconst dataGripStore = new DataGripStore();\n\nexport default dataGripStore;\n","// extracted by mini-css-extract-plugin\nexport default {\"dropzone\":\"DropZone_dropzone__HIhqp\",\"dropzone_icon\":\"DropZone_dropzone_icon__JOeaM\",\"dropzone_title\":\"DropZone_dropzone_title__e1AHm\"};","import React, { useEffect, useState } from 'react';\n\n// import DropZoneIcon from '../../../assets/dropzone.svg';\nimport { getOnDrop, getShowDropZone } from './helpers';\nimport style from './index.module.scss';\n\ninterface IDropZoneProps {\n onChange: Function;\n}\n\nfunction DropZone({\n onChange,\n}: IDropZoneProps) {\n const [isLoading, setLoading] = useState<boolean>(false);\n\n useEffect(() => {\n const onDropCallback = getOnDrop(setLoading, onChange);\n const showDropCallback = getShowDropZone(setLoading);\n document.body.addEventListener('drop', onDropCallback);\n document.body.addEventListener('dragover', showDropCallback);\n return () => {\n document.body.removeEventListener('drop', onDropCallback);\n document.body.removeEventListener('dragover', showDropCallback);\n };\n }, []);\n\n if (!isLoading) return (<></>);\n\n return (\n <div className={style.dropzone}>\n {/*<Dropzone className={style.dropzone_icon}/>*/}\n <p className={style.dropzone_title}>\n Ловлю!\n </p>\n </div>\n );\n}\n\nexport default DropZone;\n","// extracted by mini-css-extract-plugin\nexport default {\"logo\":\"logo_logo__3YcvJ\",\"logo_icon\":\"logo_logo_icon__BAkZB\",\"logo_title\":\"logo_logo_title__PEMqO\"};","import React from 'react';\n\nimport style from '../../styles/logo.module.scss';\n\nfunction Logo() {\n return (\n <figure className={style.logo}>\n <img\n src=\"./assets/logo.svg\"\n className={style.logo_icon}\n />\n </figure>\n );\n}\n\nexport default Logo;\n","// extracted by mini-css-extract-plugin\nexport default {\"splash_screen\":\"SplashScreen_splash_screen__TfV7g\",\"splash_screen_container\":\"SplashScreen_splash_screen_container__LVxvL\",\"splash_screen_description\":\"SplashScreen_splash_screen_description__OWZaZ\"};","// extracted by mini-css-extract-plugin\nexport default {\"progress_bar\":\"progress_progress_bar__5Tc4y\"};","import React, { useEffect, useState } from 'react';\n\nimport Logo from 'ts/pages/PageWrapper/components/sidebar/Logo';\n\nimport style from './index.module.scss';\nimport progress from './progress.module.scss';\n\nconst TEXT: string[] = [\n 'обработка файлов',\n 'обработка коммитов',\n 'нормализация данных',\n 'анализ времени',\n 'анализ состава команды',\n 'оценка стоимости проекта',\n 'оценка затрат на разработку',\n 'расчёт общих рекомендаций',\n 'расчёт частных рекомендаций',\n 'аудит суммарных затрат',\n 'расчёт персональных ачивок',\n 'анализ эффективности',\n].reverse();\n\nfunction SplashScreen(): React.ReactElement | null {\n const [timer, setTimer] = useState<any>(null);\n const [index, setIndex] = useState<number>(0);\n\n useEffect(() => {\n if (timer) return;\n\n let localIndex = 0;\n setTimer(setInterval(() => {\n localIndex = localIndex === 0\n ? TEXT.length - 1\n : localIndex - 1;\n setIndex(localIndex);\n }, 200));\n\n return () => {\n clearInterval(timer);\n };\n }, []);\n\n return (\n <div className={style.splash_screen}>\n <div className={style.splash_screen_container}>\n <Logo />\n <div className={progress.progress_bar}></div>\n <p className={style.splash_screen_description}>\n {TEXT[index] || ''}\n </p>\n </div>\n </div>\n );\n}\n\nexport default SplashScreen;\n","// extracted by mini-css-extract-plugin\nexport default {\"ui_kit_common\":\"styles_ui_kit_common__Z9voL\",\"wrapper\":\"styles_wrapper__bsJev\",\"title\":\"styles_title__sFKi8\",\"description\":\"styles_description__ypVht\",\"help\":\"styles_help__1tlRm\",\"error\":\"styles_error__50Gw2\",\"button\":\"styles_button__ttbbb\",\"button_slim\":\"styles_button_slim__fIcET\",\"button_second\":\"styles_button_second__u9oag\",\"disabled\":\"styles_disabled__IC-gU\",\"ui_kit_select\":\"styles_ui_kit_select__F0UnD\",\"ui_kit_dialog\":\"styles_ui_kit_dialog__vXWXe\",\"ui_kit_button_menu\":\"styles_ui_kit_button_menu__4Di-F\"};","import React from 'react';\n\nimport { IUiKitWrapperProps } from './Wrapper';\nimport style from '../styles/index.module.scss';\n\nexport function getCustomClassName(type?: string, disabled?: boolean) {\n let customClassName = {\n slim: style.button_slim,\n second: style.button_second,\n primary: style.button_primary,\n }[type || 'primary'] || '';\n\n if (disabled) {\n customClassName += ` ${style.disabled}`;\n }\n return customClassName;\n}\n\ninterface IUiKitButtonProps extends IUiKitWrapperProps {\n type?: string,\n onClick: Function,\n}\n\nfunction UiKitButton({\n title,\n type,\n disabled,\n className,\n onClick,\n children,\n}: IUiKitButtonProps) {\n const customClassName = getCustomClassName(type, disabled);\n\n return (\n <button\n title={title}\n className={`${style.button} ${customClassName || ''} ${className || ''}`}\n onClick={() => {\n if (onClick) onClick();\n }}\n >\n {children}\n </button>\n );\n}\n\n\nexport default UiKitButton;\n","// extracted by mini-css-extract-plugin\nexport default {\"modal_window\":\"styles_modal_window__qXkmU\",\"modal_window_wrapper\":\"styles_modal_window_wrapper__PO6Js\",\"modal_window_title\":\"styles_modal_window_title__rkQmp\",\"modal_window_body\":\"styles_modal_window_body__ohtpb\",\"modal_window_footer\":\"styles_modal_window_footer__1PW2B\",\"modal_window_close\":\"styles_modal_window_close__nD7n4\"};","import React, { ReactNode } from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport style from '../styles/index.module.scss';\n\ninterface IHeaderProps {\n id?: string,\n className?: string,\n onClose?: Function,\n children?: ReactNode;\n}\n\nconst Header = observer(({\n id,\n className,\n children,\n onClose,\n}: IHeaderProps) => (\n <div\n id={`${id || ''}-title`}\n className={`${style.modal_window_title} ${className || ''}`}\n >\n {children}\n {onClose ? (\n <img\n id={`${id}-close`}\n src=\"./assets/close.svg\"\n className={`${style.modal_window_close} ${className || ''}`}\n onClick={(event: any) => {\n event.stopPropagation();\n onClose();\n }}\n />\n ) : null}\n </div>\n));\n\nexport default Header;\n","import React, { ReactNode } from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport style from '../styles/index.module.scss';\n\ninterface IBodyProps {\n id?: string,\n className?: string,\n children?: ReactNode;\n}\n\nconst Body = observer(({\n id,\n className,\n children,\n}: IBodyProps) => (\n <div\n id={`${id || ''}-body`}\n className={`${style.modal_window_body} ${className || ''}`}\n >\n {children}\n </div>\n));\n\nexport default Body;\n","import React, { ReactNode } from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport style from '../styles/index.module.scss';\n\ninterface IFooterProps {\n id?: string,\n className?: string,\n children?: ReactNode;\n}\n\nconst Footer = observer(({\n id,\n className,\n children,\n}: IFooterProps) => (\n <div\n id={`${id || ''}-footer`}\n className={`${style.modal_window_footer} ${className || ''}`}\n >\n {children}\n </div>\n));\n\nexport default Footer;\n","import React, { ReactNode } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport Header from './components/Header';\nimport Body from './components/Body';\nimport Footer from './components/Footer';\nimport style from './styles/index.module.scss';\n\ninterface IModalProps {\n id?: string,\n className?: string,\n onClose?: Function,\n children?: ReactNode;\n}\n\nfunction Modal({\n id,\n className,\n onClose,\n children,\n}: IModalProps) {\n const childrenWithProps = React.Children.map(children, (child) => (React.isValidElement(child)\n ? React.cloneElement(\n child, // @ts-ignore\n { onClose },\n ) : child));\n\n return ReactDOM.createPortal((\n <div\n id={`${id}-wrapper`}\n className={`${style.modal_window_wrapper || ''} ${className || ''}`}\n onClick={(event: any) => {\n event.stopPropagation();\n if (event.target?.id !== `${id}-wrapper`) return;\n if (onClose) onClose();\n }}\n >\n <div\n id={id}\n className={`${style.modal_window || ''} ${className || ''}`}\n onClick={(event: any) => {\n event.stopPropagation();\n }}\n >\n {childrenWithProps}\n </div>\n </div>\n ), document.body);\n}\n\nModal.displayName = 'Modal';\n\nModal.defaultProps = {\n id: 'modal-window',\n className: '',\n onClose: undefined,\n children: undefined,\n};\n\nexport {\n Modal,\n Header,\n Body,\n Footer,\n};\n","import { makeObservable, observable, action } from 'mobx';\n\nexport interface IConfirmStore {\n title: string;\n yes: string;\n no: string;\n open: Function;\n close: Function;\n}\n\nclass ConfirmStore implements IConfirmStore {\n title: string = '';\n\n yes: string = '';\n\n no: string = '';\n\n isOpen: boolean = false;\n\n successCallback: Function = () => {};\n\n cancelCallback: Function = () => {};\n\n constructor() {\n makeObservable(this, {\n title: observable,\n yes: observable,\n no: observable,\n successCallback: observable,\n cancelCallback: observable,\n isOpen: observable,\n\n open: action,\n close: action,\n });\n }\n\n open(options?: any) {\n this.title = options?.title || options || 'Вы уверены что хотите удалить?';\n this.yes = options?.yes || 'Да, уверен';\n this.no = options?.no || 'Отмена';\n this.isOpen = true;\n return new Promise((response: any, reject: any) => {\n this.successCallback = response;\n this.cancelCallback = reject;\n });\n }\n\n close() {\n this.isOpen = false;\n }\n\n success() {\n if (!this.isOpen) return;\n this.close();\n this.successCallback();\n }\n\n cancel() {\n if (!this.isOpen) return;\n this.close();\n this.cancelCallback();\n }\n}\n\nconst confirm = new ConfirmStore();\n\nexport default confirm;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport UiKitButton from 'ts/components/UiKit/components/Button';\n\nimport { Modal, Header, Footer } from './index';\nimport confirm from './store/Confirm';\n\n\nconst Confirm = observer(() => {\n if (!confirm.isOpen) return null;\n return (\n <Modal>\n <Header>\n {confirm?.title}\n </Header>\n <Footer>\n <UiKitButton\n onClick={() => {\n confirm.cancel();\n }}\n >\n {confirm.no}\n </UiKitButton>\n <UiKitButton\n type=\"second\"\n onClick={() => {\n confirm.success();\n }}\n >\n {confirm.yes}\n </UiKitButton>\n </Footer>\n </Modal>\n );\n});\n\nexport default Confirm;\n","// extracted by mini-css-extract-plugin\nexport default {\"switch\":\"switch_switch__BWBIW\",\"switch_item\":\"switch_switch_item__qznpI\",\"selected\":\"switch_selected__weWv1\",\"switch_item_icon\":\"switch_switch_item_icon__jXfY6\",\"switch_item_title\":\"switch_switch_item_title__Nt5Uj\"};","import React from 'react';\n\nimport style from '../../styles/switch.module.scss';\n\ninterface ISwitchProps {\n value?: any;\n options: any;\n onChange?: Function;\n}\n\nfunction Switch({\n value,\n options,\n onChange,\n}: ISwitchProps) {\n const buttons = options.map((item: any) => (\n <div\n key={item?.title}\n className={`${style.switch_item} ${value === item?.id ? style.selected : ''}`}\n onClick={() => {\n if (onChange) onChange(item?.id);\n }}\n >\n <img\n className={style.switch_item_icon}\n src={item?.icon || ''}\n alt={item?.title || ''}\n title={item?.title || ''}\n />\n <span className={style.switch_item_title}>\n {item?.title || ''}\n </span>\n </div>\n ));\n\n return (\n <div className={style.switch}>\n {buttons}\n </div>\n );\n}\n\nSwitch.defaultProps = {\n value: '',\n onChange: undefined,\n};\n\nexport default Switch;\n","function getDeepCopy(obj: any): any {\n const copy = {};\n Object.keys(obj).forEach((property) => {\n const value = obj[property];\n const isObject = value\n && typeof value === 'object'\n && !(value instanceof Array);\n copy[property] = isObject ? getDeepCopy(value) : value;\n });\n return copy;\n}\n\nexport default {\n getDeepCopy,\n getUpdatedFormData(\n formData: any,\n propertyName: string | string[],\n value: any,\n ) {\n const keys = this.getKeys(propertyName);\n const lastIndex = keys.length - 1;\n const copy = getDeepCopy(formData);\n let nextValue = copy;\n\n keys.forEach((key: string, index: number) => {\n if (index === lastIndex) {\n nextValue[key] = value;\n } else {\n if (!nextValue[key]) nextValue[key] = {};\n nextValue = nextValue[key];\n }\n });\n\n return copy;\n },\n getKeys(propertyName: string | string[]) {\n if (!propertyName) return [''];\n return Array.isArray(propertyName)\n ? propertyName\n : `${propertyName}`.split('.');\n },\n getValueByKeys(\n originData: any,\n propertyName: string | string[] = [],\n ) {\n const keys = this.getKeys(propertyName);\n return keys.length\n ? keys.reduce((data, key) => data?.[key], originData) ?? ''\n : '';\n },\n};\n","import { makeObservable, observable, action } from 'mobx';\nimport FormData from 'ts/helpers/FormData';\n\ninterface IError {\n id: string;\n message: string;\n}\n\nexport interface IFormStore {\n isSuccess: boolean;\n isLocked: boolean;\n isLoading: boolean;\n isServerError: boolean;\n initState: any;\n state: any;\n\n errorMessage: string;\n errors: IError[];\n setFormError: Function;\n removeFormError: Function;\n\n setState: Function;\n setInitState?: (response: any) => void;\n\n updateState: Function;\n updateInitState?: Function;\n\n clearErrorMessage: () => void;\n clearAllErrors: () => void;\n clear: Function;\n\n setIsLocked: (status: boolean) => void;\n\n getFormattedState: Function;\n validation: Function;\n submit: (loader: Function, data: any, clearForm: boolean) => Promise<any>;\n}\n\nclass FormStore implements IFormStore {\n isEdited: boolean = false;\n\n isSuccess: boolean = false;\n\n isLoading: boolean = false; // блокировка формы для обработки данных в store\n\n isLocked: boolean = false; // блокировка отправки формы для обработки данных вне store\n\n isServerError: boolean = false;\n\n initState: any = {}; // инициализационный стейт для сравнения со state\n\n state: any = {};\n\n errorMessage: string = '';\n\n errors: any = {};\n\n constructor() {\n makeObservable(this, {\n isEdited: observable,\n isSuccess: observable,\n isLoading: observable,\n isLocked: observable,\n isServerError: observable,\n state: observable,\n errorMessage: observable,\n errors: observable,\n\n setIsLocked: action,\n setState: action,\n setInitState: action,\n updateState: action,\n\n setFormError: action,\n removeFormError: action,\n clearErrorMessage: action,\n clearAllErrors: action,\n clear: action,\n\n getFormattedState: action,\n validation: action,\n submit: action,\n });\n }\n\n setIsLocked(status: boolean) {\n this.isLocked = status;\n }\n\n setInitState(response: any) {\n this.initState = response || {};\n this.state = JSON.parse(JSON.stringify(this.initState));\n this.isEdited = false;\n }\n\n setState(response: any) {\n this.state = response || {};\n }\n\n updateState(propertyName: string, value?: any) {\n this.state = FormData.getUpdatedFormData(this.state, propertyName, value);\n this.isEdited = true;\n }\n\n setFormError(propertyName: string, message: string) {\n if (!message) {\n this.removeFormError(propertyName);\n return;\n }\n this.errors = {\n ...this.errors,\n [propertyName]: message,\n };\n }\n\n removeFormError(propertyName: string) {\n if (!this.errors[propertyName]) return;\n const formattedState = { ...this.errors };\n delete formattedState[propertyName];\n this.errors = formattedState;\n }\n\n clearErrorMessage() {\n this.errorMessage = '';\n }\n\n clearAllErrors() {\n this.isServerError = false;\n this.errorMessage = '';\n this.errors = {};\n }\n\n clear() {\n this.clearAllErrors();\n this.state = {};\n this.initState = {};\n }\n\n getFormattedState() {\n return { ...this.state };\n }\n\n validation(data: any) {\n if (this.errors.length) {\n return Promise.reject();\n }\n if (!data) {\n return Promise.reject();\n }\n this.clearErrorMessage();\n return Promise.resolve();\n }\n\n submit(loader: Function, data: any, clearForm: boolean = false): Promise<any> {\n this.clearAllErrors();\n if (this.isLocked) {\n return Promise.resolve();\n }\n return this.validation(data)\n .then(action(() => {\n this.isLoading = true;\n }))\n .then(() => loader(data))\n .then(action((response: any) => {\n this.isSuccess = true;\n if (clearForm) {\n this.clear();\n }\n return Promise.resolve(response);\n }))\n .catch(action((response) => {\n if (response?.code > 204) {\n this.isServerError = true;\n return Promise.reject(response);\n }\n return Promise.reject(response);\n }))\n .finally(action(() => {\n this.isLoading = false;\n }));\n }\n}\n\nexport default FormStore;\n","import { makeObservable, observable, action } from 'mobx';\n\nimport IMessage from '../interfaces/Message';\n\ninterface INotificationsStore {\n timer: any;\n messages: IMessage[];\n show: Function;\n startClearTimer: Function;\n}\n\nclass NotificationsStore implements INotificationsStore {\n timer: any = null;\n\n limit: number = 6;\n\n messages: IMessage[] = [];\n\n constructor() {\n makeObservable(this, {\n messages: observable,\n show: action,\n startClearTimer: action,\n });\n }\n\n static getTime() {\n return (new Date()).getTime();\n }\n\n show(message?: any) {\n this.messages.push({\n id: NotificationsStore.getTime(),\n title: message?.title || message || 'Изменения сохранены',\n description: message?.description || '',\n type: message?.type || 'success',\n });\n if (this.messages.length > this.limit) {\n this.messages.shift();\n }\n this.startClearTimer();\n }\n\n startClearTimer() {\n if (this.timer) return;\n this.timer = setInterval(() => {\n const time = NotificationsStore.getTime() - 3500;\n this.messages = this.messages.filter((item: IMessage) => item?.id > time);\n if (this.messages.length) return;\n clearInterval(this.timer);\n this.timer = null;\n }, 500);\n }\n}\n\nconst notificationsStore = new NotificationsStore();\n\nexport default notificationsStore;\n","import { action, makeObservable } from 'mobx';\n\nimport { IUserSetting } from 'ts/interfaces/UserSetting';\nimport Form from 'ts/store/Form';\nimport settingsApi from 'ts/api/settings';\nimport userSettings from 'ts/store/UserSettings';\nimport notificationsStore from 'ts/components/Notifications/store';\n\nclass FormStore extends Form {\n constructor() {\n super();\n makeObservable(this, {\n save: action,\n });\n }\n\n save(body: IUserSetting): Promise<any> {\n const { saveSettings } = settingsApi;\n return this.submit(saveSettings, body, false)\n .then((response: any) => {\n notificationsStore.show('Настройки сохранены');\n userSettings.loadUserSettings();\n this.setInitState(this.state);\n return Promise.resolve(response);\n });\n }\n}\n\nconst formStore = new FormStore();\n\nexport default formStore;\n","// extracted by mini-css-extract-plugin\nexport default {\"sidebar\":\"sidebar_sidebar__di6aD\",\"sidebar_title\":\"sidebar_sidebar_title__CS5ZL\",\"sidebar_item\":\"sidebar_sidebar_item__0MXwu\",\"selected\":\"sidebar_selected__hZZ4L\",\"sidebar_item_icon\":\"sidebar_sidebar_item_icon__Bve10\",\"sidebar_item_title\":\"sidebar_sidebar_item_title__n7QgB\"};","import React from 'react';\nimport { Link } from 'react-router-dom';\n\nimport localization from 'ts/helpers/Localization';\nimport settingsForm from 'ts/pages/Settings/store/Form';\n\nimport style from '../../styles/sidebar.module.scss';\n\ninterface ISideBarMenuItemProps {\n id: string;\n link: string;\n title?: string;\n icon?: any;\n isSelected?: boolean;\n}\n\nfunction SideBarMenuItem({\n id,\n link,\n title,\n icon,\n isSelected,\n}: ISideBarMenuItemProps) {\n const formattedTitle = localization.get(title);\n return (\n <Link\n key={id}\n className={`${style.sidebar_item} ${isSelected ? style.selected : ''}`}\n to={link}\n title={formattedTitle}\n id={`sidebar-menu-${id}`}\n onClick={() => {\n if (settingsForm.isEdited) {\n settingsForm.clear();\n settingsForm.setInitState(settingsForm.initState);\n }\n }}\n >\n <img\n className={style.sidebar_item_icon}\n src={icon}\n alt={title || ''}\n />\n <figcaption className={style.sidebar_item_title}>\n {formattedTitle}\n </figcaption>\n </Link>\n );\n}\n\nSideBarMenuItem.defaultProps = {\n title: '',\n icon: '',\n isSelected: false,\n};\n\nexport default SideBarMenuItem;\n","import React from 'react';\n\nimport localization from 'ts/helpers/Localization';\n\nimport style from '../../styles/sidebar.module.scss';\n\ninterface ISideBarMenuGapProps {\n title?: string;\n}\n\nfunction SideBarMenuGap({\n title,\n}: ISideBarMenuGapProps) {\n return (\n <div className={style.sidebar_title}>\n {localization.get(title)}\n </div>\n );\n}\n\nSideBarMenuGap.defaultProps = {\n title: '',\n};\n\nexport default SideBarMenuGap;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport SideBarMenuItem from './MenuItem';\nimport SideBarMenuGap from './MenuGap';\n\ninterface ISideBarProps {\n page?: string;\n}\n\nfunction SideBarPerson({ page }: ISideBarProps) {\n const { userId } = useParams<any>();\n const formattedUserId = userId || 0;\n return (\n <>\n <SideBarMenuItem\n id=\"total\"\n link={`/person/total/${formattedUserId}`}\n title=\"sidebar.person.total\"\n icon=\"./assets/menu/team_common.svg\"\n isSelected={page === 'total'}\n />\n <SideBarMenuItem\n id=\"money\"\n link={`/person/money/${formattedUserId}`}\n title=\"sidebar.person.money\"\n icon=\"./assets/menu/per_money.svg\"\n isSelected={page === 'money'}\n />\n <SideBarMenuItem\n id=\"speed\"\n link={`/person/speed/${formattedUserId}`}\n title=\"sidebar.person.speed\"\n icon=\"./assets/menu/per_speed.svg\"\n isSelected={page === 'speed'}\n />\n <SideBarMenuGap/>\n <SideBarMenuItem\n id=\"day\"\n link={`/person/day/${formattedUserId}`}\n title=\"sidebar.person.day\"\n icon=\"./assets/menu/team_week.svg\"\n isSelected={page === 'day'}\n />\n <SideBarMenuItem\n id=\"week\"\n link={`/person/week/${formattedUserId}`}\n title=\"sidebar.person.week\"\n icon=\"./assets/menu/team_week.svg\"\n isSelected={page === 'week'}\n />\n <SideBarMenuItem\n id=\"month\"\n link={`/person/month/${formattedUserId}`}\n title=\"sidebar.person.month\"\n icon=\"./assets/menu/team_date_1.svg\"\n isSelected={page === 'month'}\n />\n <SideBarMenuItem\n id=\"hours\"\n link={`/person/hours/${formattedUserId}`}\n title=\"sidebar.person.hours\"\n icon=\"./assets/menu/team_date_2.svg\"\n isSelected={page === 'hours'}\n />\n <SideBarMenuGap/>\n <SideBarMenuItem\n id=\"commits\"\n link={`/person/commits/${formattedUserId}`}\n title=\"sidebar.person.commits\"\n icon=\"./assets/menu/pull-request.svg\"\n isSelected={page === 'commits'}\n />\n <SideBarMenuItem\n id=\"changes\"\n link={`/person/changes/${formattedUserId}`}\n title=\"sidebar.person.changes\"\n icon=\"./assets/menu/branch.svg\"\n isSelected={page === 'changes'}\n />\n <SideBarMenuItem\n id=\"words\"\n link={`/person/words/${formattedUserId}`}\n title=\"sidebar.person.words\"\n icon=\"./assets/menu/team_words.svg\"\n isSelected={page === 'words'}\n />\n </>\n );\n}\n\nexport default SideBarPerson;\n","import React from 'react';\n\nimport SideBarMenuItem from './MenuItem';\nimport SideBarMenuGap from './MenuGap';\n\ninterface ISideBarProps {\n page?: string;\n}\n\nfunction SideBarTeam({ page }: ISideBarProps) {\n return (\n <>\n <SideBarMenuItem\n id=\"total\"\n link=\"/team/total\"\n title=\"sidebar.team.total\"\n icon=\"./assets/menu/team_common.svg\"\n isSelected={page === 'total' || !page}\n />\n <SideBarMenuItem\n id=\"scope\"\n link=\"/team/scope\"\n title=\"sidebar.team.scope\"\n icon=\"./assets/menu/team_feat.svg\"\n isSelected={page === 'scope'}\n />\n <SideBarMenuItem\n id=\"author\"\n link=\"/team/author\"\n title=\"sidebar.team.author\"\n icon=\"./assets/menu/team_work.svg\"\n isSelected={page === 'author'}\n />\n <SideBarMenuItem\n id=\"type\"\n link=\"/team/type\"\n title=\"sidebar.team.type\"\n icon=\"./assets/menu/team_type.svg\"\n isSelected={page === 'type'}\n />\n <SideBarMenuItem\n id=\"type\"\n link=\"/team/pr\"\n title=\"sidebar.team.pr\"\n icon=\"./assets/menu/pull_request.svg\"\n isSelected={page === 'pr'}\n />\n <SideBarMenuGap/>\n <SideBarMenuItem\n id=\"day\"\n link=\"/team/day\"\n title=\"sidebar.team.day\"\n icon=\"./assets/menu/team_week.svg\"\n isSelected={page === 'day'}\n />\n <SideBarMenuItem\n id=\"week\"\n link=\"/team/week\"\n title=\"sidebar.team.week\"\n icon=\"./assets/menu/team_week.svg\"\n isSelected={page === 'week'}\n />\n <SideBarMenuItem\n id=\"month\"\n link=\"/team/month\"\n title=\"sidebar.team.month\"\n icon=\"./assets/menu/team_date_1.svg\"\n isSelected={page === 'month'}\n />\n <SideBarMenuItem\n id=\"hours\"\n link=\"/team/hours\"\n title=\"sidebar.team.hours\"\n icon=\"./assets/menu/team_date_2.svg\"\n isSelected={page === 'hours'}\n />\n <SideBarMenuGap/>\n <SideBarMenuItem\n id=\"tree\"\n link=\"/team/tree\"\n title=\"sidebar.team.tree\"\n icon=\"./assets/menu/team_files.svg\"\n isSelected={page === 'tree'}\n />\n <SideBarMenuItem\n id=\"commits\"\n link=\"/team/commits\"\n title=\"sidebar.team.commits\"\n icon=\"./assets/menu/pull-request.svg\"\n isSelected={page === 'commits'}\n />\n <SideBarMenuItem\n id=\"changes\"\n link=\"/team/changes\"\n title=\"sidebar.team.changes\"\n icon=\"./assets/menu/branch.svg\"\n isSelected={page === 'changes'}\n />\n <SideBarMenuItem\n id=\"words\"\n link=\"/team/words\"\n title=\"sidebar.team.words\"\n icon=\"./assets/menu/team_words.svg\"\n isSelected={page === 'words'}\n />\n {/*<SideBarMenuGap/>*/}\n {/*<SideBarMenuItem*/}\n {/* id=\"top\"*/}\n {/* link=\"/team/top\"*/}\n {/* title=\"sidebar.team.top\"*/}\n {/* icon=\"./assets/menu/team_words.svg\"*/}\n {/* isSelected={page === 'top'}*/}\n {/*/>*/}\n </>\n );\n}\n\nexport default SideBarTeam;\n","import React from 'react';\nimport { useNavigate, useParams } from 'react-router-dom';\n\nimport Logo from './Logo';\nimport Switch from './Switch';\nimport SideBarPerson from './Person';\nimport SideBarTeam from './Team';\n\nimport style from '../../styles/sidebar.module.scss';\n\nfunction SideBar() {\n const { type, page } = useParams<any>();\n const navigate = useNavigate();\n\n return (\n <aside className={style.sidebar}>\n <Logo/>\n <Switch\n value={type || 'team'}\n options={[\n { id: 'team', title: 'Команда', icon: './assets/switch/team.svg' },\n { id: 'person', title: 'Сотрудник', icon: './assets/switch/person.svg' },\n ]}\n onChange={(newType: string) => {\n if (newType === type) return;\n if (newType === 'person') {\n navigate(`/${newType}/total/0`);\n } else {\n navigate(`/${newType}/total`);\n }\n }}\n />\n {type !== 'person' && (\n <SideBarTeam page={page} />\n )}\n {type === 'person' && (\n <SideBarPerson page={page} />\n )}\n </aside>\n );\n}\n\nexport default SideBar;\n","// extracted by mini-css-extract-plugin\nexport default {\"buttons_header\":\"styles_buttons_header__k-XGN\",\"buttons_footer\":\"styles_buttons_footer__6QBSC\",\"user\":\"styles_user__xONSt\",\"user_title\":\"styles_user_title__tUuIA\",\"user_footer\":\"styles_user_footer__pwvSU\",\"salary\":\"styles_salary__9r8CU\",\"salary_title\":\"styles_salary_title__fhRsw\",\"salary_icons\":\"styles_salary_icons__DXt+D\",\"salary_icons_item\":\"styles_salary_icons_item__2t1qL\",\"salary_footer\":\"styles_salary_footer__UkNJs\"};","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport UiKitButton from 'ts/components/UiKit/components/Button';\n\nimport formStore from '../store/Form';\nimport style from '../styles/index.module.scss';\n\nconst Buttons = observer((): React.ReactElement | null => {\n if (!formStore.isEdited) return null;\n\n return (\n <div className={style.buttons_header}>\n <UiKitButton\n type=\"second\"\n onClick={() => {\n formStore.setInitState(formStore.initState);\n }}\n >\n Отмена\n </UiKitButton>\n <UiKitButton\n onClick={() => {\n formStore.save(formStore.state);\n }}\n >\n Сохранить\n </UiKitButton>\n </div>\n );\n});\n\nexport default Buttons;\n","// extracted by mini-css-extract-plugin\nexport default {\"header\":\"header_header__vlJHY\",\"header_title\":\"header_header_title__56O-e\",\"header_print\":\"header_header_print__ccAOn\",\"header_setting\":\"header_header_setting__XNoXa\"};","import React from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport localization from 'ts/helpers/Localization';\nimport style from '../../styles/header.module.scss';\n\nfunction Logo() {\n const { type, page } = useParams<any>();\n const title = type && page\n ? localization.get(`sidebar.${type}.${page}`)\n : localization.get('sidebar.team.total');\n\n return (\n <h2 className={style.header_title}>\n {title}\n </h2>\n );\n}\n\nexport default Logo;\n","// extracted by mini-css-extract-plugin\nexport default {\"header_filters\":\"filters_header_filters__zxjaI\",\"header_filters_input\":\"filters_header_filters_input__wngQ9\",\"header_filters_fast\":\"filters_header_filters_fast__HaQVC\",\"header_filters_fast_button\":\"filters_header_filters_fast_button__ltmO-\"};","import React from 'react';\n\nimport settingsStore from 'ts/store/Settings';\n\nimport style from '../../styles/filters.module.scss';\n\ninterface IButtonProps {\n title: string;\n type: string;\n}\n\nfunction Button({\n title,\n type,\n}: IButtonProps) {\n return (\n <button\n className={style.header_filters_fast_button}\n onClick={() => {\n settingsStore.setFilterByDateType(type);\n }}\n >\n {title || ''}\n </button>\n );\n}\n\n\nexport default Button;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport settingsStore from 'ts/store/Settings';\n\nimport style from '../../styles/filters.module.scss';\n\ninterface IInputProps {\n type: string;\n placeholder?: string;\n}\n\nconst Input = observer(({\n type,\n placeholder,\n}: IInputProps) => {\n return (\n <input\n type=\"date\"\n placeholder={placeholder || ''}\n value={settingsStore[type] ?? ''}\n className={style.header_filters_input}\n onChange={(event: any) => {\n settingsStore.updateProperty(type, event.target.value);\n }}\n />\n );\n});\n\nexport default Input;\n","import React from 'react';\n\nimport Button from './Button';\nimport Input from './Input';\n\nimport style from '../../styles/filters.module.scss';\n\nfunction Logo() {\n return (\n <div className={style.header_filters}>\n <Input\n type=\"from\"\n placeholder=\"с\"\n />\n {' — '}\n <Input\n type=\"to\"\n placeholder=\"по\"\n />\n <div className={style.header_filters_fast}>\n <Button\n title=\"всё время\"\n type=\"all\"\n />\n <Button\n title=\"год\"\n type=\"year\"\n />\n <Button\n title=\"пол года\"\n type=\"halfYear\"\n />\n <Button\n title=\"месяц\"\n type=\"month\"\n />\n <Button\n title=\"неделя\"\n type=\"week\"\n />\n </div>\n </div>\n );\n}\n\nexport default Logo;\n","import { makeObservable, observable, action } from 'mobx';\n\nexport interface IPrintStore {\n open: Function;\n close: Function;\n}\n\nclass PrintStore implements IPrintStore {\n isOpen: boolean = false;\n\n navigate: any = null;\n\n prevUrl: string = '';\n\n constructor() {\n makeObservable(this, {\n isOpen: observable,\n\n open: action,\n close: action,\n printPage: action,\n printSection: action,\n printAllPages: action,\n triggerPrint: action,\n endPrint: action,\n });\n }\n\n open(navigate: Function, prevUrl: string) {\n this.isOpen = true;\n this.navigate = navigate;\n this.prevUrl = prevUrl;\n }\n\n close() {\n this.isOpen = false;\n this.navigate = null;\n this.prevUrl = '';\n }\n\n printPage() {\n this.triggerPrint();\n }\n\n printSection() {\n let newUrl: any = this.prevUrl.split('/');\n newUrl[2] = 'print';\n newUrl = newUrl.join('/');\n\n this.navigate(newUrl);\n this.triggerPrint();\n }\n\n printAllPages() {\n this.triggerPrint();\n }\n\n triggerPrint() {\n this.isOpen = false;\n setTimeout(() => {\n window.print();\n }, 500);\n }\n\n endPrint() {\n if (this.prevUrl) this.navigate(this.prevUrl);\n this.navigate = null;\n this.prevUrl = '';\n }\n}\n\nconst printStore = new PrintStore();\n\nexport default printStore;\n","import React from 'react';\nimport { useNavigate, useLocation } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport Buttons from 'ts/pages/Settings/components/Buttons';\nimport settingsForm from 'ts/pages/Settings/store/Form';\nimport style from '../../styles/header.module.scss';\n\nimport Title from './Title';\nimport Filters from './Filters';\nimport printStore from '../../store/Print';\n\nconst Header = observer((): React.ReactElement | null => {\n const navigate = useNavigate();\n const location = useLocation();\n\n return (\n <header className={style.header}>\n <Title/>\n {settingsForm.isEdited ? (\n <Buttons/>\n ) : (\n <>\n <Filters/>\n <img\n title=\"Печать\"\n className={style.header_print}\n src=\"./assets/menu/print.svg\"\n onClick={() => {\n printStore.open(navigate, location.pathname);\n }}\n />\n <img\n title=\"Настройки\"\n className={style.header_setting}\n src=\"./assets/menu/setting.svg\"\n onClick={() => {\n navigate('/settings');\n }}\n />\n </>\n )}\n </header>\n );\n});\n\nexport default Header;\n","// extracted by mini-css-extract-plugin\nexport default {\"page_wrapper_print_icon\":\"print_page_wrapper_print_icon__7FXMY\",\"page_wrapper_print_button\":\"print_page_wrapper_print_button__q95x2\"};","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport UiKitButton from 'ts/components/UiKit/components/Button';\nimport { Modal, Header, Body } from 'ts/components/ModalWindow';\n\nimport style from '../styles/print.module.scss';\nimport printStore from '../store/Print';\n\nconst Print = observer(() => {\n if (!printStore.isOpen) return null;\n\n return (\n <Modal onClose={() => {\n printStore.close();\n }}>\n <Header>\n <div style={{ textAlign: 'center' }}>\n Что распечатываем?\n </div>\n </Header>\n <Body>\n <img\n src=\"./assets/cards/print.png\"\n className={style.page_wrapper_print_icon}\n />\n <UiKitButton\n className={style.page_wrapper_print_button}\n onClick={() => {\n printStore.printPage();\n }}\n >\n Текущую страницу\n </UiKitButton>\n <UiKitButton\n className={style.page_wrapper_print_button}\n onClick={() => {\n printStore.printSection();\n }}\n >\n Текущий раздел\n </UiKitButton>\n {false && (\n <UiKitButton\n className={style.page_wrapper_print_button}\n onClick={() => {\n printStore.printAllPages();\n }}\n >\n Всю статистику\n </UiKitButton>\n )}\n <UiKitButton\n type=\"second\"\n className={style.page_wrapper_print_button}\n onClick={() => {\n printStore.close();\n }}\n >\n Отмена\n </UiKitButton>\n </Body>\n </Modal>\n );\n});\n\nexport default Print;\n","// extracted by mini-css-extract-plugin\nexport default {\"page_wrapper\":\"styles_page_wrapper__H6Q0a\",\"page_wrapper_main\":\"styles_page_wrapper_main__IqKL7\"};","import React, { ReactNode } from 'react';\n\nimport SideBar from './components/sidebar';\nimport Header from './components/header';\nimport Print from './components/Print';\nimport style from './styles/index.module.scss';\n\ninterface IPageWrapper {\n children: ReactNode;\n selectedMenuItem?: string;\n}\n\nfunction PageWrapper({\n children,\n}: IPageWrapper) {\n return (\n <div className={style.page_wrapper}>\n <SideBar />\n <Header />\n <div className={style.page_wrapper_main}>\n {children}\n </div>\n <Print />\n </div>\n );\n}\n\nPageWrapper.defaultProps = {\n selectedMenuItem: '',\n};\n\nexport default PageWrapper;\n","// extracted by mini-css-extract-plugin\nexport default {\"main_wrapper\":\"Page_main_wrapper__X6tJd\",\"main_wrapper_white\":\"Page_main_wrapper_white__yh+Sg\",\"main_wrapper_icons\":\"Page_main_wrapper_icons__i2Ce8\",\"main_wrapper_item\":\"Page_main_wrapper_item__TzBUK\",\"page_smart_box\":\"Page_page_smart_box__6mNqx\"};","import React, { ReactNode } from 'react';\n\nimport style from './index.module.scss';\n\ninterface IPageWrapperProps {\n children: ReactNode | string | null;\n template?: 'box' | 'table';\n}\n\nfunction PageWrapper({\n children,\n template,\n}: IPageWrapperProps) {\n const className = template\n ? `${style.main_wrapper} ${style.main_wrapper_white}`\n : `${style.main_wrapper}`;\n\n const css = template === 'table'\n ? { paddingTop: 0 }\n : {};\n\n return (\n <div\n className={className}\n style={css}\n >\n {children}\n </div>\n );\n}\n\n\nexport default PageWrapper;\n","import React, { ReactNode } from 'react';\n\nimport UiKitButton from 'ts/components/UiKit/components/Button';\nimport style from './index.module.scss';\n\ninterface IPageColumnProps {\n className?: string;\n onRemove?: Function;\n children: ReactNode | string | null;\n}\n\nfunction PageBox({\n className,\n onRemove,\n children,\n}: IPageColumnProps) {\n return (\n <div className={`${style.main_wrapper_white} ${className || ''}`}>\n <div className={style.main_wrapper_icons}>\n {onRemove && (\n <UiKitButton\n type=\"second\"\n onClick={() => onRemove()}\n >\n Удалить\n </UiKitButton>\n )}\n </div>\n {children}\n </div>\n );\n}\n\nPageBox.defaultProps = {\n className: undefined,\n};\n\nexport default PageBox;\n","import React, { ReactNode } from 'react';\n\nimport style from './index.module.scss';\nimport PageBox from './Box';\n\ninterface IPageColumnProps {\n template?: string;\n children: ReactNode | string | null;\n}\n\nfunction PageColumn({\n template,\n children,\n}: IPageColumnProps) {\n if (template) return (\n <PageBox className={style.main_wrapper_item}>\n {children}\n </PageBox>\n );\n\n return (\n <div className={style.main_wrapper_item}>\n {children}\n </div>\n );\n}\n\nPageColumn.defaultProps = {\n template: undefined,\n};\n\nexport default PageColumn;\n","// extracted by mini-css-extract-plugin\nexport default {\"nothing_found\":\"NothingFound_nothing_found__ztP0-\",\"nothing_found_wrapper\":\"NothingFound_nothing_found_wrapper__paT+k\",\"nothing_found_icon\":\"NothingFound_nothing_found_icon__7nin9\",\"nothing_found_title\":\"NothingFound_nothing_found_title__cOCN0\",\"nothing_found_text\":\"NothingFound_nothing_found_text__YP8xy\",\"nothing_found_console\":\"NothingFound_nothing_found_console__a56Uc\",\"nothing_found_link\":\"NothingFound_nothing_found_link__WeJ6m\"};","import React from 'react';\n\nimport style from '../index.module.scss';\n\nfunction CommitFormat() {\n return (\n <>\n <p className={style.nothing_found_title}>\n Нет или недостаточно данных для отображения\n </p>\n <p className={style.nothing_found_text}>\n Система обработает больше данных, если коммиты будут подписаны в формате &quot;\n <a\n href=\"https://www.conventionalcommits.org/en/v1.0.0/\"\n target=\"_blank\"\n rel=\"noreferrer\"\n className={style.nothing_found_link}\n >\n Git commit message convention\n </a>\n &quot;. Шаблон:\n </p>\n <p className={style.nothing_found_console}>\n Номерадачи тип(фича): пояснение\n </p>\n <p className={style.nothing_found_text}>\n Например:\n </p>\n <p className={style.nothing_found_console}>\n JIRA-0001 feat(profile): add user avatar<br/>\n JIRA-0002 fix(profile): changed link for user web site<br/>\n JIRA-0003 test(profile): added unit tests for edit phone\n </p>\n </>\n );\n}\n\nexport default CommitFormat;\n","import React, { ReactNode } from 'react';\n\nimport CommitFormat from './components/CommitFormat';\nimport style from './index.module.scss';\n\ninterface INothingFoundProps {\n emptyIcon?: boolean;\n icon?: string | null | undefined;\n message?: string | null | undefined;\n className?: string | null | undefined;\n children?: ReactNode;\n}\n\nfunction NothingFound({\n icon,\n message,\n children,\n className,\n}: INothingFoundProps) {\n return (\n <div className={`${style.nothing_found_wrapper} ${className}`}>\n <div className={style.nothing_found}>\n <img\n src={icon || './assets/cards/nothing_found.png'}\n className={style.nothing_found_icon}\n />\n {!children && message && (\n <p className={style.nothing_found_title}>\n {message}\n </p>\n )}\n {!children && !message && (<CommitFormat />)}\n {children}\n </div>\n </div>\n );\n}\n\nNothingFound.defaultProps = {\n children: null,\n icon: null,\n className: '',\n message: '',\n stylesConfig: { iconWidth: '483px', iconHeight: '332px', margin: '0' },\n};\n\nexport default NothingFound;\n","// extracted by mini-css-extract-plugin\nexport default {\"loading\":\"Loading_loading__zqHF-\"};","import React from 'react';\n\nimport style from './index.module.scss';\n\ninterface ILoadingProps {\n height?: number;\n}\n\nfunction Loading({ height }: ILoadingProps) {\n return (\n <div\n className={style.loading}\n style={{\n minHeight: height ? `${height}px` : 'auto',\n }}\n >\n ...\n </div>\n );\n}\n\nLoading.defaultProps = {\n height: 0,\n};\n\nexport default Loading;\n","import _typeof from \"./typeof.js\";\nexport default function _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n _regeneratorRuntime = function _regeneratorRuntime() {\n return exports;\n };\n var exports = {},\n Op = Object.prototype,\n hasOwn = Op.hasOwnProperty,\n defineProperty = Object.defineProperty || function (obj, key, desc) {\n obj[key] = desc.value;\n },\n $Symbol = \"function\" == typeof Symbol ? Symbol : {},\n iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n function define(obj, key, value) {\n return Object.defineProperty(obj, key, {\n value: value,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), obj[key];\n }\n try {\n define({}, \"\");\n } catch (err) {\n define = function define(obj, key, value) {\n return obj[key] = value;\n };\n }\n function wrap(innerFn, outerFn, self, tryLocsList) {\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n generator = Object.create(protoGenerator.prototype),\n context = new Context(tryLocsList || []);\n return defineProperty(generator, \"_invoke\", {\n value: makeInvokeMethod(innerFn, self, context)\n }), generator;\n }\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n exports.wrap = wrap;\n var ContinueSentinel = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n var getProto = Object.getPrototypeOf,\n NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (\"throw\" !== record.type) {\n var result = record.arg,\n value = result.value;\n return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n result.value = unwrapped, resolve(result);\n }, function (error) {\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n reject(record.arg);\n }\n var previousPromise;\n defineProperty(this, \"_invoke\", {\n value: function value(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(innerFn, self, context) {\n var state = \"suspendedStart\";\n return function (method, arg) {\n if (\"executing\" === state) throw new Error(\"Generator is already running\");\n if (\"completed\" === state) {\n if (\"throw\" === method) throw arg;\n return doneResult();\n }\n for (context.method = method, context.arg = arg;;) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n context.dispatchException(context.arg);\n } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n state = \"executing\";\n var record = tryCatch(innerFn, self, context);\n if (\"normal\" === record.type) {\n if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n return {\n value: record.arg,\n done: context.done\n };\n }\n \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n }\n };\n }\n function maybeInvokeDelegate(delegate, context) {\n var methodName = context.method,\n method = delegate.iterator[methodName];\n if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel;\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n var info = record.arg;\n return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n }\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\", delete record.arg, entry.completion = record;\n }\n function Context(tryLocsList) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) return iteratorMethod.call(iterable);\n if (\"function\" == typeof iterable.next) return iterable;\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n return next.value = undefined, next.done = !0, next;\n };\n return next.next = next;\n }\n }\n return {\n next: doneResult\n };\n }\n function doneResult() {\n return {\n value: undefined,\n done: !0\n };\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n var ctor = \"function\" == typeof genFun && genFun.constructor;\n return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n }, exports.mark = function (genFun) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun;\n }, exports.awrap = function (arg) {\n return {\n __await: arg\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n void 0 === PromiseImpl && (PromiseImpl = Promise);\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n return this;\n }), define(Gp, \"toString\", function () {\n return \"[object Generator]\";\n }), exports.keys = function (val) {\n var object = Object(val),\n keys = [];\n for (var key in object) keys.push(key);\n return keys.reverse(), function next() {\n for (; keys.length;) {\n var key = keys.pop();\n if (key in object) return next.value = key, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, exports.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(skipTempReset) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);\n },\n stop: function stop() {\n this.done = !0;\n var rootRecord = this.tryEntries[0].completion;\n if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(exception) {\n if (this.done) throw exception;\n var context = this;\n function handle(loc, caught) {\n return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i],\n record = entry.completion;\n if (\"root\" === entry.tryLoc) return handle(\"end\");\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n } else {\n if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n var record = finallyEntry ? finallyEntry.completion : {};\n return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n },\n complete: function complete(record, afterLoc) {\n if (\"throw\" === record.type) throw record.arg;\n return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n },\n finish: function finish(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n }\n },\n \"catch\": function _catch(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (\"throw\" === record.type) {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n return this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n }\n }, exports;\n}","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","import {\n makeObservable, observable, action, computed,\n} from 'mobx';\n\nimport ISort from 'ts/interfaces/Sort';\n\nexport interface IDataLoaderStoreProps {\n loader: Function;\n callback?: Function;\n updateUrlCallback?: Function;\n watch?: string | number | null | undefined;\n defaultPageNumber?: number;\n defaultPageSize?: number;\n}\n\nexport interface IDataLoaderStore {\n state: string;\n watchedValue: string | number | null | undefined;\n defaultPageNumber: number;\n defaultPageSize: number;\n sort: ISort[];\n loader: Function;\n response: any;\n fetchData: Function;\n loadMore: Function;\n showAll: Function;\n goToPage: Function;\n updateWatchedValue: Function;\n canSendRequest: boolean;\n}\n\nexport const DataLoaderState = {\n INIT: 'INIT',\n LOADING: 'LOADING',\n LOADING_MORE: 'LOADING_MORE',\n LOADING_ALL: 'LOADING_ALL',\n LOADING_PAGE: 'LOADING_PAGE',\n ERROR: 'ERROR',\n SUCCESS: 'SUCCESS',\n};\n\nexport class DataLoaderStore implements IDataLoaderStore {\n state: string = DataLoaderState.INIT;\n\n watchedValue: string | number | null | undefined = '';\n\n defaultPageNumber: number = 0;\n\n defaultPageSize: number = 10;\n\n pageNumber: number = 0;\n\n pageSize: number = 10;\n\n sort: ISort[] = [];\n\n loader: Function = () => {\n };\n\n callback: Function | undefined = () => {\n };\n\n response: any = null;\n\n constructor({\n loader,\n callback,\n defaultPageNumber,\n defaultPageSize,\n watch,\n }: IDataLoaderStoreProps) {\n this.loader = loader;\n this.callback = callback;\n this.defaultPageNumber = defaultPageNumber || 0;\n this.defaultPageSize = defaultPageSize || 10;\n this.watchedValue = watch || '';\n\n makeObservable(this, {\n state: observable,\n watchedValue: observable,\n response: observable,\n sort: observable,\n fetchData: action,\n successCallback: action,\n errorCallback: action,\n loadMore: action,\n showAll: action,\n updateSort: action,\n canSendRequest: computed,\n });\n }\n\n newSearch() {\n return this.fetchData(DataLoaderState.LOADING, {\n pageNumber: this.defaultPageNumber,\n pageSize: this.defaultPageSize,\n });\n }\n\n updateSort(sort: ISort[]) {\n this.sort = sort || [];\n this.newSearch();\n }\n\n goToPage(pageNumber: number, pageSize: number) {\n return this.fetchData(DataLoaderState.LOADING_PAGE, { pageNumber, pageSize });\n }\n\n loadMore() {\n const pageNumber = this.pageNumber + 1;\n return this.fetchData(DataLoaderState.LOADING_MORE, { pageNumber, pageSize: this.pageSize });\n }\n\n showAll() {\n if (this.pageNumber === 0 && this.response?.totalPages === 2) return this.loadMore();\n const pageSize = this.response?.totalElements || 100;\n return this.fetchData(DataLoaderState.LOADING_ALL, { pageNumber: 0, pageSize });\n }\n\n get canSendRequest() {\n return ![\n DataLoaderState.LOADING,\n DataLoaderState.LOADING_MORE,\n DataLoaderState.LOADING_ALL,\n DataLoaderState.LOADING_PAGE,\n DataLoaderState.ERROR,\n ].includes(this.state);\n }\n\n async fetchData(status: string, parameters: any = {}) {\n if (!this.canSendRequest) return;\n this.state = status;\n try {\n const { pageNumber: page, pageSize: size } = parameters;\n if (this.callback) this.callback();\n const response = await this.loader({ page, size }, this.sort);\n this.successCallback(response);\n } catch (error) {\n const response = await error;\n this.errorCallback(response);\n }\n }\n\n successCallback(response: any) {\n this.setResponse(response);\n this.pageSize = this.response?.size || this.response?.pageSize || 10;\n this.pageNumber = this.response?.number || this.response?.pageNumber || 0;\n if (this.callback) {\n this.callback(this.response);\n }\n this.state = DataLoaderState.SUCCESS;\n }\n\n setResponse(response: any) {\n if (this.state === DataLoaderState.LOADING_MORE) {\n this.response = {\n ...response,\n content: [\n ...this.response.content,\n ...response.content,\n ],\n };\n } else {\n this.response = response;\n }\n }\n\n errorCallback(error: any) {\n if (this.state === DataLoaderState.LOADING) {\n this.response = error;\n }\n this.state = DataLoaderState.ERROR;\n }\n\n updateWatchedValue(watchedValue: string | number | null | undefined) {\n this.watchedValue = watchedValue;\n this.state = DataLoaderState.INIT;\n this.newSearch();\n }\n}\n","import React from 'react';\n\ninterface IErrorDescriptionProps {\n response?: any | null | undefined;\n}\n\nfunction ErrorDescription({ response }: IErrorDescriptionProps) {\n return (\n <div className=\"data-loader-error\">\n <div title=\"Запрос не может быть выполнен\">\n <div>\n {response}\n </div>\n </div>\n </div>\n );\n}\n\nErrorDescription.defaultProps = {\n response: null,\n};\n\nexport default ErrorDescription;\n","import React, { ReactNode, useEffect, useState } from 'react';\nimport { useLocation } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport { IPaginationRequest } from 'ts/interfaces/Pagination';\nimport ISort from 'ts/interfaces/Sort';\nimport NothingFound from 'ts/components/NothingFound';\nimport Loading from 'ts/components/Loading';\n\nimport { DataLoaderStore, IDataLoaderStore, DataLoaderState } from './store';\nimport ErrorDescription from './ErrorDescription';\n\ninterface IDataLoaderProps {\n watch?: string | number | null | undefined;\n children: ReactNode;\n loader: Function;\n callback?: Function;\n to: string;\n id?: string;\n className?: string;\n from?: string;\n height?: number;\n size?: 'l' | 'm' | 's',\n parameterInUrl?: string[];\n pagination?: IPaginationRequest;\n}\n\nfunction getStateAndResponse(store: any = null, from: string = '') {\n let state = DataLoaderState.INIT;\n let response: any = null;\n if (store instanceof DataLoaderStore) {\n state = store.state;\n if ([\n DataLoaderState.SUCCESS,\n DataLoaderState.LOADING_MORE,\n DataLoaderState.LOADING_ALL,\n ].includes(state)) {\n response = from\n ? store.response[from]\n : store.response;\n }\n }\n return { state, response };\n}\n\nfunction isPagination(child: any = null) {\n return ('response' in child?.props\n && 'state' in child?.props\n && 'store' in child?.props)\n || 'parameterInUrl' in child?.props\n || 'pagination' in child?.props;\n}\n\nfunction getNewProps(\n child: any = null,\n store: any = null,\n state: string = '',\n response: any = null,\n to: string = '',\n from: string = '',\n parameterInUrl: string[] = [''],\n pagination: IPaginationRequest = { page: 0, size: 10 },\n) {\n if (isPagination(child)) {\n return {\n response: store?.response,\n to,\n from,\n state,\n store,\n parameterInUrl,\n pagination,\n };\n }\n return {\n [to]: response,\n updateSort: (sort: ISort[]) => store?.updateSort(sort),\n };\n}\n\nfunction useQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nconst DataLoader = observer(({\n watch,\n children,\n loader,\n callback,\n to,\n from,\n height,\n id,\n className,\n parameterInUrl,\n pagination,\n}: IDataLoaderProps) => {\n const query = useQuery();\n const [store, setStore] = useState<IDataLoaderStore>();\n\n const pageNumberFromUrl = parameterInUrl?.includes('pageNumber')\n ? parseInt(query.get('pageNumber') || '', 10) || 0\n : 0;\n\n const pageSizeFromUrl = parameterInUrl?.includes('pageSize')\n ? parseInt(query.get('pageSize') || '', 10) || 10\n : 10;\n\n useEffect(() => {\n if (!(store instanceof DataLoaderStore)) {\n const dataLoaderStore = new DataLoaderStore({\n loader,\n callback,\n defaultPageNumber: pageNumberFromUrl || pagination?.page,\n defaultPageSize: pageSizeFromUrl || pagination?.size,\n watch,\n });\n dataLoaderStore.newSearch();\n setStore(dataLoaderStore);\n } else if (store.response) {\n store.loader = loader;\n store.callback = callback;\n if ((watch || store.watchedValue) && store.watchedValue !== watch) {\n store.updateWatchedValue(watch);\n } else if (parameterInUrl\n && (store.pageNumber !== pageNumberFromUrl || store.pageSize !== pageSizeFromUrl)) {\n store.goToPage(pageNumberFromUrl, pageSizeFromUrl);\n } else if (pagination\n && (store.pageNumber !== pagination?.page\n || store.pageSize !== pagination?.size)) {\n const currentPage = pagination?.page || 0;\n const currentSize = pagination?.size || 10;\n store.goToPage(currentPage, currentSize);\n }\n }\n });\n\n const { state, response } = getStateAndResponse(store, from);\n\n if (state === DataLoaderState.LOADING || state === DataLoaderState.LOADING_PAGE) {\n return <Loading height={height || 80} />;\n }\n\n if (state === DataLoaderState.ERROR) {\n return <ErrorDescription response={store?.response} />;\n }\n\n const childrenWithProps = React.Children.map(\n children,\n (child) => (React.isValidElement(child)\n ? React.cloneElement(\n child,\n getNewProps(child, store, state, response, to, from, parameterInUrl, pagination),\n ) : child),\n );\n\n const nothingFoundBlock = childrenWithProps?.find((child: any) => child.type === NothingFound);\n\n if (state === DataLoaderState.SUCCESS && nothingFoundBlock) {\n if (Object.keys(response || {}).length === 0 || response?.content?.length === 0) {\n return (<>{nothingFoundBlock}</>);\n }\n }\n\n const filteredChildrenWithProps = childrenWithProps?.filter(\n (child: any) => child.type !== NothingFound,\n );\n\n if (!className) {\n return (<>{filteredChildrenWithProps}</>);\n }\n\n return (\n <div\n id={id || ''}\n className={className || ''}\n >\n {filteredChildrenWithProps}\n </div>\n );\n});\n\nexport default DataLoader;\n","import React, { ReactNode } from 'react';\n\nimport style from '../styles/index.module.scss';\n\nexport interface IUiKitWrapperProps {\n title?: string;\n description?: string;\n help?: string;\n example?: string;\n error?: string;\n className?: string;\n disabled?: boolean;\n children?: ReactNode | string | null;\n}\n\nfunction UiKitWrapper({\n title,\n description,\n help,\n example,\n error,\n className,\n children,\n}: IUiKitWrapperProps) {\n return (\n <div\n className={`${style.wrapper} ${className || ''}`}\n title={help}\n >\n {title && (\n <h6 className={style.title}>\n {title}\n </h6>\n )}\n {description && (\n <p className={style.description}>\n {description}\n </p>\n )}\n {children}\n {help && (\n <p className={style.help}>\n {example}\n </p>\n )}\n {error && (\n <p className={style.error}>\n {error}\n </p>\n )}\n </div>\n );\n}\n\nexport default UiKitWrapper;\n","import React, { ChangeEvent } from 'react';\n\nimport Wrapper, { IUiKitWrapperProps } from './Wrapper';\nimport style from '../styles/index.module.scss';\n\ninterface IUiKitSelectProps extends IUiKitWrapperProps {\n value: any;\n placeholder?: string;\n onChange: Function;\n}\n\nfunction UiKitInputString({\n title,\n description,\n help,\n error,\n className,\n\n value,\n placeholder,\n onChange,\n}: IUiKitSelectProps) {\n return (\n <Wrapper\n title={title}\n description={description}\n help={help}\n error={error}\n className={className}\n >\n <input\n type=\"text\"\n value={value}\n placeholder={placeholder}\n className={`${className} ${style.ui_kit_common} }`}\n onChange={(event: ChangeEvent<HTMLInputElement>) => {\n if (onChange) onChange(event.target.value);\n }}\n />\n </Wrapper>\n );\n}\n\nUiKitInputString.defaultProps = {\n placeholder: 'Введите значение',\n};\n\nexport default UiKitInputString;\n","// extracted by mini-css-extract-plugin\nexport default {\"paginator\":\"paginator_paginator__y6ojS\",\"paginator_text\":\"paginator_paginator_text__WJVXu\",\"paginator_page_number\":\"paginator_paginator_page_number__xHIaY\"};","import React from 'react';\n\nimport type { IPagination, IPaginationRequest } from 'ts/interfaces/Pagination';\nimport UiKitInputString from 'ts/components/UiKit/components/InputString';\nimport UiKitButton from 'ts/components/UiKit/components/Button';\nimport Loading from 'ts/components/Loading';\n\nimport { DataLoaderState, IDataLoaderStore } from '../store';\nimport ErrorDescription from '../ErrorDescription';\nimport style from '../styles/paginator.module.scss';\n\ninterface ISimplePaginationProps {\n response?: IPagination<any> | null | undefined;\n state?: string;\n pagination?: IPaginationRequest,\n store?: IDataLoaderStore | null;\n}\n\nfunction SimplePagination({\n response,\n state,\n pagination,\n store,\n}: ISimplePaginationProps) {\n if (!response) return null;\n\n const pageSizeCurrent = pagination?.size || 10;\n\n const {\n number: pageNumber,\n size: pageSize,\n totalElements,\n } = response;\n const totalPages = Math.ceil(totalElements / pageSize);\n\n if (state === DataLoaderState.INIT\n || pageNumber > totalPages\n || totalPages === 1\n || !totalElements) return null;\n\n\n const canShowMore = !(state === DataLoaderState.INIT || pageNumber >= (totalPages - 1));\n\n if ([\n DataLoaderState.LOADING_ALL,\n DataLoaderState.LOADING_MORE,\n ].includes(state || '')) {\n return (\n <Loading height={40} />\n );\n }\n\n if (state === DataLoaderState.ERROR) {\n return (\n <ErrorDescription response={store?.response}/>\n );\n }\n\n return (\n <nav className={style.paginator}>\n <p className={style.paginator_text}>\n Страница\n </p>\n <UiKitButton\n type=\"second\"\n disabled={!pageNumber}\n onClick={() => {\n if (store) store.goToPage(pageNumber - 1, pageSize || pageSizeCurrent);\n }}\n >\n «\n </UiKitButton>\n <UiKitInputString\n className={style.paginator_page_number}\n value={pageNumber + 1}\n onChange={(newPageNumber: string) => {\n let formattedPageNumber = parseInt(newPageNumber || '1', 10);\n if (formattedPageNumber < 1) {\n formattedPageNumber = 1;\n }\n if (formattedPageNumber >= totalPages) {\n formattedPageNumber = totalPages;\n }\n if (store) store.goToPage(formattedPageNumber - 1, pageSize || pageSizeCurrent);\n }}\n />\n <UiKitButton\n type=\"second\"\n disabled={pageNumber === (totalPages - 1)}\n onClick={() => {\n if (store) store.goToPage(pageNumber + 1, pageSize || pageSizeCurrent);\n }}\n >\n »\n </UiKitButton>\n <p className={style.paginator_text}>\n из\n </p>\n <UiKitButton\n type=\"second\"\n onClick={() => {\n if (store) store.goToPage(totalPages - 1, pageSize || pageSizeCurrent);\n }}\n >\n {totalPages}\n </UiKitButton>\n <p className={style.paginator_text}>\n Отображается по\n </p>\n <UiKitInputString\n value={pageSize}\n className={style.paginator_page_number}\n onChange={(newPageSize: string) => {\n let formattedPageSize = parseInt(newPageSize || '10', 10);\n if (formattedPageSize < 1) {\n formattedPageSize = 1;\n }\n if (formattedPageSize > totalElements) {\n formattedPageSize = totalElements;\n }\n if (store) store.goToPage(0, formattedPageSize);\n }}\n />\n <p className={style.paginator_text}>\n строк.\n </p>\n {canShowMore && (\n <UiKitButton\n type=\"slim\"\n onClick={() => {\n if (store) store.showAll();\n }}\n >\n Показать все\n </UiKitButton>\n )}\n </nav>\n );\n}\n\nSimplePagination.defaultProps = {\n response: null,\n state: DataLoaderState.INIT,\n store: null,\n pagination: {},\n};\n\nexport default SimplePagination;","import { IPaginationRequest } from 'ts/interfaces/Pagination';\nimport ISort from 'ts/interfaces/Sort';\n\nfunction getSortedContent(content: any[], sortRules: ISort[]) {\n function getResultForString(a: any, b: any, property: string): number {\n return (a[property] || '').localeCompare(b[property] || '');\n }\n function getResultForNumber(a: any, b: any, property: string): number {\n return (a[property] || 0) - (b[property] || 0);\n }\n function getResultForArray(a: any, b: any, property: string): number {\n return (a[property] || 0).length - (b[property] || 0).length;\n }\n\n const firstRow = content?.[0];\n const methods = sortRules.map((rule: ISort) => {\n const type = typeof firstRow[rule.property];\n if (type === 'string') return getResultForString;\n if (Array.isArray(firstRow[rule.property])) return getResultForArray;\n return getResultForNumber;\n });\n\n const length = sortRules.length;\n return [...content].sort((a: any, b: any) => {\n for (let i = 0; i < length; i++) {\n const rule = sortRules[i];\n const result = methods[i](a, b, rule.property);\n if (result) return result * rule.direction;\n }\n return 0;\n });\n}\n\ninterface IFakeLoader {\n content?: any,\n pagination?: IPaginationRequest,\n query?: string,\n mode?: string,\n sort?: ISort[],\n}\n\nexport default function getFakeLoader({\n content,\n pagination,\n query,\n mode,\n sort,\n}: IFakeLoader) {\n const formattedContent = content || [];\n const filteredContent = query\n ? formattedContent.filter((item:any) => item.name.toLowerCase().includes(query?.toLowerCase()))\n : formattedContent;\n\n const sortedContent = sort\n ? getSortedContent(filteredContent, sort || [])\n : filteredContent;\n\n if (!pagination || mode === 'print') {\n return Promise.resolve({\n size: sortedContent?.length || 0,\n number: 0,\n totalPages: 1,\n totalElements: sortedContent?.length || 0,\n sort: sort || [],\n content: sortedContent || [],\n });\n }\n\n const size = pagination.size || 10;\n const page = pagination.page || 0;\n const begin = size * page;\n const end = begin + size;\n const totalElements = sortedContent.length;\n const totalPages = Math.ceil(totalElements / size);\n\n return Promise.resolve({\n size,\n number: page,\n totalPages,\n totalElements,\n sort: sort || [],\n content: sortedContent.slice(begin, end) || [],\n });\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"Title_title__hMuwZ\"};","import React from 'react';\n\nimport localization from 'ts/helpers/Localization';\n\nimport style from './index.module.scss';\n\ninterface ITitleProps {\n title: string;\n addPadding?: boolean;\n className?: string;\n}\n\nfunction Title({\n title,\n addPadding,\n className,\n}: ITitleProps) {\n return (\n <h3 className={`${style.title} ${addPadding ? style.title_padding : ''} ${className || ''}`}>\n {localization.get(title || '')}\n </h3>\n );\n}\n\nTitle.defaultProps = {\n addPadding: false,\n className: '',\n};\n\nexport default Title;\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"header_title__5ytdz\",\"sort_up\":\"header_sort_up__4bSG1\",\"sort_down\":\"header_sort_down__Sk1jJ\"};","// extracted by mini-css-extract-plugin\nexport default {\"table_wrapper\":\"styles_table_wrapper__roleO\",\"table\":\"styles_table__UsmVZ\",\"table_tree\":\"styles_table_tree__BuuXF\",\"table_row\":\"styles_table_row__bJesh\",\"table_row_hide\":\"styles_table_row_hide__fN3Hz\",\"table_cell\":\"styles_table_cell__5rXYP\",\"table_header_cell\":\"styles_table_header_cell__DJPbZ\",\"table_cell_number\":\"styles_table_cell_number__nILwI\",\"disabled\":\"styles_disabled__g2Z0Q\"};","import React from 'react';\n\nimport localization from 'ts/helpers/Localization';\n\nimport { IColumn } from '../interfaces/Column';\nimport headerStyle from '../styles/header.module.scss';\nimport style from '../styles/index.module.scss';\n\ninterface ITitleProps {\n columns: IColumn[];\n className?: string;\n updateSort?: Function;\n}\n\nfunction Header({\n columns,\n className,\n updateSort,\n}: ITitleProps) {\n const cells = columns.map((column: IColumn, columnIndex: number) => {\n const columnClassName = typeof column.className === 'function'\n ? column.className('header', columnIndex)\n : column.className;\n\n return (\n <div\n key={`${column.title}_${columnIndex}`}\n className={`${style.table_header_cell} ${className} ${columnClassName || ''}`}\n style={{ width: column.width }}\n >\n <span\n onClick={() => {\n if (!column.isSortable || !updateSort) return;\n updateSort([{\n property: typeof column.isSortable === 'string' ? column.isSortable : column.properties,\n direction: [1, -1][column.sortDirection || 0] || 0,\n }]);\n }}\n >\n {localization.get(column.title)}\n </span>\n {column.title && column.sortDirection === -1 && (\n <div className={headerStyle.sort_down} />\n )}\n {column.title && column.sortDirection === 1 && (\n <div className={headerStyle.sort_up} />\n )}\n </div>\n );\n });\n\n return (\n <div className={`${style.table_row} ${className}`}>\n {cells}\n </div>\n );\n}\n\nHeader.defaultProps = {\n className: '',\n updateSort: () => {},\n};\n\nexport default Header;\n","import React, { ReactNode } from 'react';\n\nimport { IColumn } from '../../interfaces/Column';\nimport style from '../../styles/index.module.scss';\n\ninterface IDefaultCellProps {\n column: IColumn,\n row: any,\n className?: string,\n children?: ReactNode | string | number | boolean | null;\n}\n\nfunction DefaultCell({\n column,\n row,\n className,\n children,\n}: IDefaultCellProps): JSX.Element {\n const columnClassName = typeof column.className === 'function'\n ? column.className('body', row)\n : column.className;\n const onClick = column.onClick\n ? (() => { if (column.onClick) column.onClick(row); })\n : undefined;\n\n return (\n <div\n key={column.title}\n className={`${style.table_cell} ${className || ''} ${columnClassName || ''}`}\n style={{\n width: column.width,\n cursor: onClick ? 'pointer' : 'auto',\n }} // @ts-ignore\n onClick={onClick}\n >\n {children}\n </div>\n );\n}\n\nDefaultCell.defaultPeops = {\n className: '',\n};\n\nexport default DefaultCell;\n","import React from 'react';\n\nimport { IColumn } from '../interfaces/Column';\nimport style from '../styles/index.module.scss';\nimport DefaultCell from './cells/CellDefault';\n\ninterface IBodyProps {\n rows: any[];\n columns: IColumn[];\n disabledRow?: (row: any) => boolean;\n className?: string;\n}\n\nfunction Body({\n rows,\n disabledRow,\n columns,\n className,\n}: IBodyProps) {\n const formattedRows = rows?.map((row: any, index: number) => {\n const cells = columns.map((column: IColumn, columnIndex: number) => {\n const value = column.properties\n ? row[column.properties]\n : row;\n const formattedValue = column.formatter\n ? column.formatter(value)\n : value;\n const content: any = typeof column.template === 'function'\n ? column.template(formattedValue, row)\n : `${column.prefixes ?? ''}${formattedValue ?? ''}${column.suffixes ?? ''}`;\n\n return (\n <DefaultCell\n key={`${column.title}_${columnIndex}`}\n column={column}\n row={row}\n >\n {content}\n </DefaultCell>\n );\n });\n\n const rowClassName = disabledRow && disabledRow(row)\n ? style.disabled\n : '';\n\n return (\n <div\n key={index}\n className={`${style.table_row} ${rowClassName} ${className}`}\n >\n {cells}\n </div>\n );\n });\n\n return (\n <>\n {formattedRows}\n </>\n );\n}\n\nBody.defaultProps = {\n className: '',\n};\n\nexport default Body;\n","import ISort from 'ts/interfaces/Sort';\nimport { IColumn } from '../interfaces/Column';\n\nfunction getColumnConfigs(\n dirtyColumns: IColumn[] = [],\n adaptiveWidth: number = 150,\n sort?: ISort[],\n): IColumn[] {\n const sortByColumns = sort?.reduce((ref: any, item: ISort) => {\n ref[item.property] = item.direction;\n return ref;\n }, {});\n\n const columns: IColumn[] = dirtyColumns.map((column: IColumn) => {\n const adaptiveColumnWidth = column.minWidth\n ? Math.max(column.minWidth, adaptiveWidth)\n : adaptiveWidth;\n\n return {\n ...column,\n sortDirection: typeof column?.isSortable === 'string'\n ? (sortByColumns[column?.isSortable || ''] || 0)\n : (sortByColumns[column?.properties || ''] || 0),\n width: column.userWidth || column.defaultWidth || adaptiveColumnWidth, // || column.width || 150,\n };\n });\n\n const middle = Math.floor(columns.length / 2);\n return [\n ...columns.filter((column: IColumn, index: number) => column.isFixed && index <= middle),\n ...columns.filter((column: IColumn) => !column.isFixed),\n ...columns.filter((column: IColumn, index: number) => column.isFixed && index > middle),\n ];\n}\n\nexport default getColumnConfigs;\n","export type ColumnType = 'STRING' | 'NUMBER' | 'SHORT_NUMBER';\n\n/** Тип столбца определяет тип содержимого всех ячеек столбца */\nexport enum ColumnTypesEnum {\n STRING = 'STRING',\n NUMBER = 'NUMBER',\n SHORT_NUMBER = 'SHORT_NUMBER',\n}\n\nexport interface IColumn {\n /** Тип столбца */\n template?: ColumnTypesEnum | Function,\n /** Уникальный ключ столбца */\n properties?: string,\n /** Заголовок столбца */\n title?: string,\n /** Префиксы для заголовка столбца */\n prefixes?: string,\n /** Суффиксы для заголовка столбца (%, $ и т.д.) */\n suffixes?: string,\n /** Функция для форматирования данных в столбце */\n formatter?: Function,\n\n /** Направление сортировки */\n sortDirection?: number,\n\n /** Фиксированный столбец */\n isFixed?: boolean,\n /** Сортировка столбца */\n isSortable?: boolean | string,\n /** Изменение ширины столбца */\n isResizable?: boolean,\n /** Drag-and-Drop столбца */\n isDraggable?: boolean,\n /** Видимость столбца */\n isShow?: boolean,\n /** Клас для колонки */\n className?: string | Function\n /** Стилья для колонки */\n style?: Function,\n /** Минимальная ширина столбца если он адаптивен */\n minWidth?: number,\n /** Ширина столбца заданная в верстке */\n defaultWidth?: number,\n /** Ширина столбца установленная пользователем */\n userWidth?: number,\n /** Ширина столбца итоговая */\n width?: number,\n /** Клик на ячейку */\n onClick?: Function,\n}\n","import React, { useEffect, useState } from 'react';\n\nimport ISort from 'ts/interfaces/Sort';\n\nimport { IColumn } from './interfaces/Column';\nimport Header from './components/Header';\nimport Body from './components/Body';\nimport getAdaptiveColumnWidth from './helpers/getAdaptiveColumnWidth';\nimport getColumnConfigs from './helpers/getColumnConfigs';\nimport getDefaultProps from './helpers/getDefaultProps';\n\nimport style from './styles/index.module.scss';\n\ninterface ITableProps {\n rows: any[];\n sort?: ISort[];\n disabledRow?: (row: any) => boolean;\n updateSort?: Function,\n children: React.ReactNode | React.ReactNode[];\n}\n\nfunction Table({\n rows = [],\n sort = [],\n disabledRow,\n updateSort,\n children,\n}: ITableProps): React.ReactElement | null {\n const [offsetWidth, setOffsetWidth] = useState<number>(0);\n\n if (!rows || !rows.length) return null;\n\n const refTable = React.useRef() as React.MutableRefObject<HTMLDivElement>;\n const currentWidth = refTable?.current?.offsetWidth;\n\n useEffect(() => {\n setOffsetWidth(currentWidth);\n }, [currentWidth]);\n\n const defaultColumns = getDefaultProps(children) as IColumn[];\n const adaptiveWidth = getAdaptiveColumnWidth(defaultColumns, offsetWidth);\n const columns = getColumnConfigs(defaultColumns, adaptiveWidth, sort);\n\n return (\n <div\n ref={refTable}\n className={`${style.table_wrapper}`}\n >\n <div className={`${style.table}`}>\n <Header\n columns={columns}\n updateSort={updateSort}\n />\n <Body\n rows={rows}\n columns={columns}\n disabledRow={disabledRow}\n />\n </div>\n </div>\n );\n}\n\nTable.defaultProps = {\n rows: [],\n sort: [],\n updateSort: () => {\n },\n};\n\nexport default Table;\n","import React from 'react';\n\nimport { ColumnTypesEnum } from '../interfaces/Column';\nimport style from '../styles/index.module.scss';\n\nexport default function getDefaultProps(children: React.ReactNode) {\n return React.Children.map(children, (child: React.ReactNode) => {\n if (!React.isValidElement(child)) return null;\n\n const template = child?.props?.template || ColumnTypesEnum.STRING;\n\n // @ts-ignore\n const className = child?.props?.className || {\n [ColumnTypesEnum.STRING]: '',\n [ColumnTypesEnum.NUMBER]: style.table_cell_number,\n [ColumnTypesEnum.SHORT_NUMBER]: style.table_cell_number,\n }[template || ''] || '';\n\n // @ts-ignore\n const defaultWidth = child?.props?.width || {\n [ColumnTypesEnum.STRING]: 200,\n [ColumnTypesEnum.NUMBER]: 110,\n [ColumnTypesEnum.SHORT_NUMBER]: 70,\n }[template || ''] || 0;\n\n // @ts-ignore\n const minWidth = child?.props?.minWidth || 40;\n\n // @ts-ignore\n const isSortable = child?.props?.isSortable // @ts-ignore\n ? child?.props?.isSortable\n : [ColumnTypesEnum.STRING, ColumnTypesEnum.NUMBER, ColumnTypesEnum.SHORT_NUMBER].includes(template);\n\n return {\n ...child.props as object,\n className,\n template,\n isSortable,\n minWidth,\n defaultWidth,\n width: undefined,\n userWidth: undefined,\n };\n });\n}","import type { IColumn } from '../interfaces/Column';\n\nexport default function getAdaptiveColumnWidth(\n columns: IColumn[],\n offsetWidth: number,\n): number {\n if (!offsetWidth) return 150;\n\n const visibleColumns = columns.filter(({ isShow }: IColumn) => isShow);\n const columnsWidth = visibleColumns.map((column: IColumn) => (\n column.userWidth || column.defaultWidth || 0\n ));\n const fixedWidth = columnsWidth.reduce((sum: number, width: number) => sum + width, 0);\n const adaptiveColumnsCount = columnsWidth.filter((width: number) => !width).length;\n if (!adaptiveColumnsCount) return 40;\n\n const tableWidth = offsetWidth - fixedWidth;\n\n // если адаптив < минималки, то адаптив делает перерасчет\n let adaptiveTableWidth = tableWidth;\n let adaptiveColumnsWidth = adaptiveTableWidth / adaptiveColumnsCount;\n visibleColumns.forEach((column: IColumn) => {\n if (!column.minWidth\n || column.minWidth < adaptiveColumnsWidth) return;\n adaptiveTableWidth -= column.minWidth;\n adaptiveColumnsWidth = adaptiveTableWidth / adaptiveColumnsCount;\n });\n\n return Math.max(adaptiveColumnsWidth, 40);\n}\n","import React from 'react';\n\nimport { IColumn } from '../interfaces/Column';\n\nfunction Column({\n template,\n title,\n properties,\n prefixes,\n suffixes,\n formatter,\n className,\n style,\n isFixed,\n isSortable,\n isResizable,\n isDraggable,\n isShow,\n minWidth,\n width,\n onClick,\n}: IColumn): JSX.Element {\n return (\n <>\n {{\n template,\n title,\n properties,\n prefixes,\n suffixes,\n formatter,\n className,\n style,\n isFixed,\n isSortable,\n isResizable,\n isDraggable,\n isShow,\n minWidth,\n width,\n onClick,\n }}\n </>\n );\n}\n\nColumn.defaultProps = {\n title: '',\n prefixes: [''],\n suffixes: [''],\n formatter: (value: any) => value,\n className: '',\n isDisabled: false,\n isFixed: false,\n isSortable: false,\n isResizable: false,\n isDraggable: false,\n isShow: true,\n minWidth: undefined,\n width: undefined,\n onClick: undefined,\n};\n\nexport default Column;\n","import IHashMap from 'ts/interfaces/HashMap';\n\nimport { IOptions, ISubLine } from '../interfaces';\n\nfunction getWidth(value: number, max: number) {\n return Math.round(value * (100 / max));\n}\n\nfunction getFormattedOther(other: any[], options: any): ISubLine {\n let width = 0;\n let value = 0;\n const titles: string[] = [];\n\n other.forEach((field: any) => {\n width += field.width;\n value += field.value;\n if (field.title) titles.push(field.title);\n });\n\n return {\n title: options.otherTitle,\n value,\n width,\n description: titles.join(', '),\n };\n}\n\nexport default function getSubLines(\n details: IHashMap<number>,\n options: IOptions,\n): ISubLine[] {\n const list = Object.entries(details)\n .sort((dotA, dotB) => options.order.indexOf(dotA[0]) - options.order.indexOf(dotB[0]));\n const currentMax = list.reduce((a, c) => a + c[1], 0);\n const allItems: ISubLine[] = [];\n const normal: ISubLine[] = [];\n const other: ISubLine[] = [];\n\n list.forEach(([title, value]: any) => {\n const width = getWidth(value || 0, currentMax);\n const field: ISubLine = { title, value, width };\n\n allItems.push(field);\n if (width >= options.limit) {\n normal.push(field);\n } else {\n other.push(field);\n }\n });\n\n if (other.length === 0) return normal;\n if (other.length === 1) return allItems;\n return [...normal, getFormattedOther(other, options)];\n}\n","import React from 'react';\n\ninterface ILineProps {\n value?: number;\n width?: number;\n title?: string;\n description?: string;\n suffix?: string;\n color?: { first: string, second: string } | null;\n className?: string;\n formatter?: Function;\n}\n\nfunction Line({\n value,\n width,\n title,\n description,\n suffix,\n color,\n className,\n formatter,\n}: ILineProps): React.ReactElement | null {\n if (!width || width <= 0) return null;\n\n const formattedTitle = title || '';\n const formattedValue = formatter?.(value);\n const formattedSuffix = suffix ? ` ${suffix}` : '';\n const formattedDescription = value\n ? `${width}% (${formattedValue}${formattedSuffix}) ${description || formattedTitle}`\n : `${width}% ${description || formattedTitle}`;\n\n return (\n <div\n className={className}\n style={{\n width: `${width}%`,\n color: color?.second,\n padding: formattedTitle ? '0 0 0 4px' : '0',\n backgroundColor: color?.first,\n }}\n title={formattedDescription}\n >\n {formattedTitle}\n </div>\n );\n}\n\nLine.defaultProps = {\n value: 0,\n width: 0,\n title: '',\n description: '',\n suffix: '',\n color: null,\n className: '',\n formatter: (v: any) => v,\n};\n\nexport default Line;\n","// extracted by mini-css-extract-plugin\nexport default {\"line_chart\":\"styles_line_chart__Os6FB\",\"line_chart_item\":\"styles_line_chart_item__h5Dv1\",\"line_chart_sub_item\":\"styles_line_chart_sub_item__70rAH\"};","import React from 'react';\n\nimport IHashMap from 'ts/interfaces/HashMap';\n\nimport getSubLines from './helpers/getSubLines';\nimport Line from './components/Line';\nimport { IOptions, ISubLine } from './interfaces';\n\nimport style from './styles/index.module.scss';\n\ninterface ILineChartProps {\n options: IOptions;\n value?: number;\n details?: IHashMap<number>;\n className?: string;\n}\n\nfunction LineChart({\n options,\n value,\n details,\n className,\n}: ILineChartProps): React.ReactElement | null {\n if (value === 0) return null;\n\n const width = Math.round((value ?? 100) * (100 / options.max));\n\n if (!details) {\n return (\n <div className={`${style.line_chart} ${className || ''}`}>\n <Line\n value={value ?? 100}\n width={width}\n suffix={options.suffix}\n formatter={options.formatter}\n className={style.line_chart_item}\n />\n </div>\n );\n }\n\n const subLines = getSubLines(details, options)\n .map((item: ISubLine) => (\n <Line\n key={item.title}\n title={item.title}\n value={item.value}\n width={item.width}\n color={options.color.get(item.title)}\n suffix={options.suffix}\n formatter={options.formatter}\n description={item.description}\n className={style.line_chart_sub_item}\n />\n ));\n\n return (\n <div className={`${style.line_chart} ${className || ''}`}>\n <div\n className={style.line_chart_item}\n style={{ width: `${width}%` }}\n >\n {subLines}\n </div>\n </div>\n );\n}\n\nLineChart.defaultProps = {\n value: 100,\n details: undefined,\n className: '',\n};\n\nexport default LineChart;\n","import IHashMap from '../interfaces/HashMap';\n\ninterface IColor {\n first: string;\n second: string;\n}\n\nexport default class ColorGenerator {\n static DEFAULT = '#D0D1D2';\n\n refColorByTitle: IHashMap<IColor> = {};\n\n constructor(titles: string[]) {\n const colors = [\n '#7F9BE0', '#E9A5A1', '#C2ECC1', '#B6BAE9', '#A18BE0',\n '#FFC178', '#75CCE0', '#B2E069', '#EC95B6', '#E2DA84',\n '#A7C0FF', '#D7D4B1', '#E0BA96', '#E0BE69', '#C0D79C',\n '#B6C5C9', '#9E98AD', '#AACFD8', '#BAB2D0', '#DCBAC7',\n ];\n\n this.refColorByTitle = Object.fromEntries(\n titles.map((v, i) => [v, { first: colors[i], second: '#FFFFFF' }]),\n );\n }\n\n get(key: string): IColor {\n return this.refColorByTitle[key] || ColorGenerator.DEFAULT;\n }\n}\n","import ColorGenerator from 'ts/helpers/ColorGenerator';\nimport { IOptions } from '../interfaces';\n\ninterface IOptionsProps {\n order?: string[];\n suffix?: string;\n other?: string;\n max?: number[] | number;\n limit?: number;\n formatter?: Function;\n}\n\nexport default function getOptions({\n order,\n suffix,\n other,\n max,\n limit,\n formatter,\n}: IOptionsProps): IOptions {\n return {\n max: max instanceof Array ? Math.max(...max) : (max || 100),\n order: order || [],\n suffix: suffix ?? 'коммитов',\n otherTitle: other ?? 'Остальные',\n color: order?.length ? (new ColorGenerator(order)) : null,\n limit: limit || 15,\n formatter: formatter || ((v: any) => v),\n };\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"description\":\"Description_description__i8hiu\",\"description_title\":\"Description_description_title__tjXWX\",\"description_text\":\"Description_description_text__eAJ85\",\"description_list\":\"Description_description_list__QM46c\"};","import React from 'react';\n\nimport cssStyle from './index.module.scss';\n\ninterface ICommonProps {\n text: string;\n style: any;\n}\n\nfunction getTextWithStyle(text: string) {\n const parts = (text || '')\n .split('*')\n .map((value: string, index: number) => (index % 2 \n ? (<b key={value}>{value}</b>)\n : (<span key={value}>{value}</span>)\n ));\n return (<>{parts}</>) ;\n}\n\nfunction List({ text, style }: ICommonProps) {\n return (\n <p\n className={cssStyle.description_list}\n style={style || {}}\n >\n {getTextWithStyle(text)}\n </p>\n );\n}\n\nfunction Title({ text, style }: ICommonProps) {\n return (\n <h6\n className={cssStyle.description_title}\n style={style || {}}\n >\n {getTextWithStyle(text)}\n </h6>\n );\n}\n\nfunction SimpleText({ text, style }: ICommonProps) {\n return (\n <p\n className={cssStyle.description_text}\n style={style || {}}\n >\n {getTextWithStyle(text)}\n </p>\n );\n}\n\ninterface IDescriptionProps {\n text?: string | string[];\n style?: any;\n}\n\nfunction Description({ text, style }: IDescriptionProps) {\n const paragraphs = !Array.isArray(text)\n ? (text || '').trim().split(/\\n+/gm)\n : text;\n\n const items = paragraphs.map((paragraph) => {\n const prefix = paragraph.substring(0, 2);\n const mainText = paragraph.substring(2);\n if (prefix === '- ') {\n return (\n <List\n key={mainText}\n text={mainText}\n style={style}\n />\n );\n }\n if (prefix === '# ') {\n return (\n <Title\n key={mainText}\n text={mainText}\n style={style}\n />\n );\n }\n return (\n <SimpleText\n key={mainText}\n text={paragraph}\n style={style}\n />\n );\n });\n\n return (<>{items}</>);\n}\n\nDescription.defaultProps = {\n text: '',\n};\n\nexport default Description;\n","// extracted by mini-css-extract-plugin\nexport default {\"recommendations_short\":\"card_recommendations_short__rVT8k\",\"recommendations_full\":\"card_recommendations_full__AdvOm\",\"more\":\"card_more__ZNxbp\",\"card\":\"card_card__vO+sp\",\"card_wrapper\":\"card_card_wrapper__h9JUE\",\"card_icon\":\"card_card_icon__ixfrD\",\"card_info\":\"card_card_info__I3NvF\",\"card_fact\":\"card_card_fact__bWOUz\",\"card_warning\":\"card_card_warning__jpftf\",\"card_error\":\"card_card_error__oNhke\",\"card_title\":\"card_card_title__T5WoQ\",\"recommendations_title\":\"card_recommendations_title__bAgJy\",\"card_shortcut\":\"card_card_shortcut__JmsFi\"};","import React from 'react';\n\nimport Description from 'ts/components/Description';\nimport style from '../styles/card.module.scss';\n\ninterface IRecommendationsProps {\n recommendation: any;\n}\n\nfunction Card({\n recommendation,\n}: IRecommendationsProps) {\n if (!recommendation) return null;\n\n const [title, description, type] = recommendation;\n \n let formattedTitle = title || '';\n if (Array.isArray(title)) {\n formattedTitle = title.length > 1\n ? `${title[0]} +${title.length - 1}`\n : title[0];\n }\n\n const className = {\n info: style.card_info,\n fact: style.card_fact,\n warning: style.card_warning,\n error: style.card_error,\n }[type || 'info'] ?? style.card_fact;\n\n const parts = (description || '').split('\\n');\n const previewText = parts.shift();\n const mainText = parts.join('\\n');\n\n return (\n <div className={`${style.card} ${className}`}>\n <div className={style.card_wrapper}>\n <h5 className={style.card_title}>\n <span className={style.card_icon}></span>\n {formattedTitle}\n </h5>\n <Description\n style={{ color: '#12131B' }}\n text={previewText || ''}\n />\n <div className={style.card_shortcut}>\n <Description\n style={{ color: '#12131B' }}\n text={mainText || ''}\n />\n </div>\n </div>\n </div>\n );\n}\n\n\nexport default Card;\n","// extracted by mini-css-extract-plugin\nexport default {\"recommendations_short\":\"styles_recommendations_short__DPs77\",\"recommendations_full\":\"styles_recommendations_full__MLMO9\",\"more\":\"styles_more__23zBM\"};","import React, { useLayoutEffect, useRef, useState } from 'react';\n\nimport Card from './components/Card';\nimport style from './styles/index.module.scss';\n\ninterface IRecommendationsProps {\n recommendations: any[];\n}\n\nfunction Recommendations({\n recommendations,\n}: IRecommendationsProps) {\n const [maxCardsOnDisplay, setMaxCardsOnDisplay] = useState<number>(5);\n const [isOpen, setOpen] = useState<boolean>(false);\n const ref = useRef() as React.MutableRefObject<HTMLDivElement>;\n\n useLayoutEffect(() => {\n const width = ref?.current?.offsetWidth;\n const placeForCard = (width - 30) / (220 + 24);\n setMaxCardsOnDisplay(placeForCard);\n }, []);\n\n const className = isOpen\n ? style.recommendations_full\n : style.recommendations_short;\n\n const children = (recommendations || [])\n .filter(item => item)\n .map((recommendation) => (\n <Card\n key={recommendation[1]}\n recommendation={recommendation}\n />\n ));\n const visibleChildren = children.slice(0, isOpen ? Infinity : maxCardsOnDisplay);\n\n if (!children.length) return null;\n\n return (\n <div\n ref={ref}\n className={className}\n >\n {isOpen ? children : visibleChildren}\n {!isOpen && children.length > maxCardsOnDisplay && (\n <div\n className={style.more}\n onClick={() => {\n setOpen(true);\n }}\n >\n »\n </div>\n )}\n </div>\n );\n}\n\n\nexport default Recommendations;\n","import React from 'react';\n\nimport Title from 'ts/components/Title';\nimport localization from 'ts/helpers/Localization';\nimport Recommendations from './index';\n\ninterface IRecommendationsWrapperProps {\n recommendations: any[];\n}\n\nfunction RecommendationsWrapper({\n recommendations,\n}: IRecommendationsWrapperProps) {\n if (!recommendations.length) return null;\n\n const title = localization.get('recommendations.title');\n\n return (\n <>\n <Title title={title}/>\n <Recommendations recommendations={recommendations} />\n </>\n );\n}\n\n\nexport default RecommendationsWrapper;\n","import { IPagination } from 'ts/interfaces/Pagination';\n\nexport function getMax(response: IPagination<any>, property: string, subProperty?: string) {\n return Math.max(...response.content.map((row: any) => (subProperty\n ? (row[property][subProperty] || 0)\n : (row[property] || 0)\n )));\n}\n\nexport function getMaxByLength(response: IPagination<any>, property: string) {\n return getMax(response, property, 'length');\n}","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport ISort from 'ts/interfaces/Sort';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';\nimport { getMoney, getShortNumber } from 'ts/helpers/formatter';\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport localization from 'ts/helpers/Localization';\nimport NothingFound from 'ts/components/NothingFound';\nimport Title from 'ts/components/Title';\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\n\nimport { getMax, getMaxByLength } from 'ts/pages/Common/helpers/getMax';\nimport Description from 'ts/components/Description';\n\ninterface IAuthorViewProps {\n response?: IPagination<any>;\n updateSort?: Function;\n}\n\nfunction AuthorView({ response, updateSort }: IAuthorViewProps) {\n if (!response) return null;\n\n const textWork = localization.get('page.team.author.worked');\n const textLosses = localization.get('page.team.author.losses');\n const daysWorked = getOptions({ order: [textWork, textLosses], suffix: 'дней' });\n const taskChart = getOptions({ max: getMaxByLength(response, 'tasks'), suffix: 'задач' });\n const commitsChart = getOptions({ max: getMax(response, 'commits') });\n const typeChart = getOptions({ order: dataGripStore.dataGrip.type.list });\n\n return (\n <Table\n rows={response.content}\n sort={response.sort}\n updateSort={updateSort}\n >\n <Column\n isFixed\n template={ColumnTypesEnum.STRING}\n properties=\"author\"\n width={200}\n />\n <Column\n isSortable=\"daysWorked\"\n title=\"page.team.author.workedLosses\"\n minWidth={300}\n template={(details: any) => (\n <LineChart\n options={daysWorked}\n details={details}\n />\n )}\n formatter={(row: any) => {\n return { [textWork]: row.daysWorked, [textLosses]: row.daysLosses };\n }}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"tasks\"\n formatter={(tasks: string[]) => (tasks?.length || 0)}\n />\n <Column\n isSortable\n properties=\"tasks\"\n title=\"page.team.author.tasks\"\n minWidth={200}\n template={(value: number) => (\n <LineChart\n options={taskChart}\n value={value}\n />\n )}\n formatter={(tasks: any) => (tasks?.length || 0)}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n title=\"page.team.author.daysForTask\"\n properties=\"daysForTask\"\n formatter={getShortNumber}\n width={120}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n title=\"page.team.author.scopes\"\n properties=\"scopes\"\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"commits\"\n />\n <Column\n isSortable\n title=\"page.team.author.commits\"\n properties=\"commits\"\n minWidth={100}\n template={(value: number) => (\n <LineChart\n options={commitsChart}\n value={value}\n />\n )}\n />\n <Column\n title=\"page.team.author.types\"\n properties=\"types\"\n width={400}\n template={(details: IHashMap<number>) => (\n <LineChart\n options={typeChart}\n details={details}\n />\n )}\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.author.moneyAll\"\n properties=\"moneyAll\"\n formatter={getMoney}\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.author.moneyWorked\"\n properties=\"moneyWorked\"\n formatter={getMoney}\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.author.moneyLosses\"\n properties=\"moneyLosses\"\n formatter={getMoney}\n />\n </Table>\n );\n}\n\nAuthorView.defaultProps = {\n response: undefined,\n};\n\nconst Author = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement | null => {\n const rows = dataGripStore.dataGrip.author.statistic;\n if (!rows?.length) return mode !== 'print' ? (<NothingFound />) : null;\n const recommendations = dataGripStore.dataGrip.recommendations.team?.byAuthor;\n\n return (\n <>\n {mode !== 'print' && (\n <RecommendationsWrapper recommendations={recommendations} />\n )}\n <Title title=\"Статистика по сотрудникам\"/>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({\n content: rows, pagination, sort, mode,\n })}\n >\n <AuthorView />\n <Pagination />\n </DataLoader>\n </PageWrapper>\n <PageWrapper>\n <PageColumn>\n <Description\n text=\"*Часть статитики* (скорость работы, затраченные деньги и т.п.) *по сотрудникам с типом «Помошник» не считается*, т.к. это эпизодическая роль в проекте. Предпологаем, что они не влияют на проект, а их правками можно пренебречь на фоне общего объема работы.\"\n />\n </PageColumn>\n <PageColumn>\n <Description\n text=\"*Сортировка по умолчанию* — это сортировка по количеству задач и группам (текущие, уволенные, помогающие сотрудники).\"\n />\n </PageColumn>\n </PageWrapper>\n </>\n );\n});\n\nexport default Author;\n","// extracted by mini-css-extract-plugin\nexport default {\"vertical_bar\":\"BarChart_vertical_bar__CpfhB\",\"vertical_bar_item\":\"BarChart_vertical_bar_item__cpWYe\"};","import React from 'react';\n\nimport style from './index.module.scss';\n\ninterface IDot {\n title: string;\n value: number;\n color?: string;\n meta?: any;\n}\n\ninterface IBarCharttProps {\n dots: IDot[];\n selected: IDot;\n onClick: Function;\n}\n\nfunction BarChart({\n dots,\n selected,\n onClick,\n}: IBarCharttProps): React.ReactElement | null {\n const width = (100 / dots.length) + '%';\n const scale = 100 / Math.max(...dots.map((dot: IDot) => dot.value));\n const getHeight = (value: number): number => value * scale;\n\n const lines = dots.map((dot: IDot, index: number) => (\n <div\n key={`${dot.title}_${index}`}\n className={style.vertical_bar_item}\n style={{\n width,\n height: `${getHeight(dot.value)}%`,\n backgroundColor: dot.meta === selected ? '#ED675F' : '',\n }}\n title={dot.title}\n onClick={() => {\n if (onClick) onClick(dot);\n }}\n ></div>\n ));\n\n return (\n <div className={style.vertical_bar}>\n {lines}\n </div>\n );\n}\n\nexport default BarChart;\n","// extracted by mini-css-extract-plugin\nexport default {\"external_link\":\"ExternalLink_external_link__F2RSV\"};","import React from 'react';\nimport { Link } from 'react-router-dom';\n\nimport style from './index.module.scss';\n\ninterface IExternalLinkProps {\n link: string,\n text: string,\n}\n\nfunction ExternalLink({ link, text }: IExternalLinkProps) {\n return (\n <Link\n to={link}\n target=\"_blank\"\n className={style.external_link}\n >\n {text}\n </Link>\n );\n}\n\nexport default ExternalLink;\n","// extracted by mini-css-extract-plugin\nexport default {\"day_info_wrapper\":\"DayInfo_day_info_wrapper__3cGCj\",\"day_info_author\":\"DayInfo_day_info_author__C1F-A\",\"day_info_date\":\"DayInfo_day_info_date__8Nk8m\",\"day_info_message\":\"DayInfo_day_info_message__4JhXm\",\"day_info_link\":\"DayInfo_day_info_link__-Ou+n\",\"day_info_row\":\"DayInfo_day_info_row__K-1mt\"};","import React from 'react';\n\nimport IHashMap from 'ts/interfaces/HashMap';\nimport ExternalLink from 'ts/components/ExternalLink';\nimport userSettings from 'ts/store/UserSettings';\nimport { getShortTime } from 'ts/helpers/formatter';\nimport dataGrip from 'ts/helpers/DataGrip';\n\nimport style from './index.module.scss';\n\ninterface ICommit {\n date: string;\n message: string;\n}\n\ntype ITask = IHashMap<ICommit>;\n\ntype IDayInfo = IHashMap<ITask>;\n\nfunction CommitInfo({ commits }: { commits: ICommit[] }): React.ReactElement {\n const items = commits.map((commit: any) => {\n return (\n <div\n key={commit.date}\n className={style.day_info_row}\n >\n <span className={style.day_info_date}>\n {getShortTime(commit.date)}\n </span>\n <span className={style.day_info_message}>\n {commit.message}\n </span>\n </div>\n );\n });\n return (<>{items}</>);\n}\n\nfunction TaskInfo({ tasks }: { tasks: ITask }): React.ReactElement {\n const items = Object.entries(tasks)\n .map(([task, commits]: [string, any]) => {\n const prId = dataGrip.pr.prByTask[task];\n return (\n <>\n <div className={style.day_info_link}>\n <ExternalLink\n link={`${userSettings?.settings?.linksPrefix?.task || '/'}${task}`}\n text={task}\n />\n {prId && (\n <ExternalLink\n link={`${userSettings?.settings?.linksPrefix?.pr || '/'}${prId}`}\n text=\"PR\"\n />\n )}\n </div>\n <CommitInfo commits={commits}/>\n </>\n );\n });\n return (<>{items}</>);\n}\n\ninterface IDayInfoProps {\n day: IDayInfo;\n order: string[];\n events?: any;\n timestamp?: string;\n}\n\nfunction DayInfo({ day, order, events, timestamp }: IDayInfoProps): React.ReactElement {\n const firstCommit = events?.firstCommit?.[timestamp || ''] || [];\n const lastCommit = events?.lastCommit?.[timestamp || ''] || [];\n let taskNumber = 0;\n\n const items = Object.entries(day?.tasksByAuthor)\n .sort((a: any, b: any) => (order.indexOf(a[0]) - order.indexOf(b[0])))\n .map(([author, tasks]: [string, any]) => {\n taskNumber += Object.keys(tasks).length;\n\n let suffix = '';\n if (firstCommit.includes(author)) suffix = '(первый рабочий день)';\n if (lastCommit.includes(author)) suffix = '(последний рабочий день)';\n\n return (\n <div\n key={author}\n className={style.day_info}\n >\n <h3 className={style.day_info_author}>\n {`${author} ${suffix}`}\n </h3>\n <TaskInfo tasks={tasks}/>\n </div>\n );\n });\n\n return (\n <div\n className={style.day_info_wrapper}\n style={{ columnCount: taskNumber > 20 ? 2 : 1 }}\n >\n {items}\n </div>\n );\n}\n\nDayInfo.defaultProps = {\n events: undefined,\n timestamp: undefined,\n};\n\nexport default DayInfo;\n","import React, { useState } from 'react';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport { getDate, getDateByTimestamp } from 'ts/helpers/formatter';\n\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\nimport NothingFound from 'ts/components/NothingFound';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport BarChart from 'ts/components/BarChart';\nimport DayInfo from 'ts/components/DayInfo';\nimport Title from 'ts/components/Title';\n\ninterface ICommitsProps {\n statistic: any;\n}\n\nfunction Commits({ statistic }: ICommitsProps) {\n const maxData = statistic.commitsByTimestampCounter.maxData;\n\n const [selected, setSelected] = useState<any>(maxData);\n\n const dots = statistic.allCommitsByTimestamp\n .map((dot: any) => ({\n title: `${dot.timestamp} - ${dot.commits} коммитов`,\n value: dot.commits,\n meta: dot,\n }));\n if (!dots?.length) return (<NothingFound />);\n\n\n const [fullDay, shortDay] = getDateByTimestamp(maxData.timestamp);\n const recommendations = [\n [fullDay, `(${shortDay}) самый продуктивный день по числу коммитов.`, 'fact'],\n ];\n\n return (\n <>\n <RecommendationsWrapper recommendations={recommendations} />\n <Title title=\"Количество коммитов по дням\"/>\n <PageWrapper template=\"box\">\n <BarChart\n dots={dots}\n selected={selected}\n onClick={(dot: any) => {\n setSelected(dot.meta);\n }}\n />\n </PageWrapper>\n <br/>\n <br/>\n {}\n <Title title={`${getDate(selected?.timestamp)} сделано коммитов: ${selected?.commits || '_'}`}/>\n <PageWrapper template=\"box\">\n <DayInfo\n day={selected}\n order={dataGripStore.dataGrip.author.list}\n />\n </PageWrapper>\n </>\n );\n}\n\nexport default Commits;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport CommonCommits from 'ts/pages/Common/components/Commits';\n\nconst Commits = observer((): React.ReactElement => {\n const statistic = dataGripStore.dataGrip.timestamp.statistic;\n return (\n <CommonCommits statistic={statistic} />\n );\n});\n\nexport default Commits;\n","import React, { useState } from 'react';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport { getDate, getDateByTimestamp } from 'ts/helpers/formatter';\n\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\nimport NothingFound from 'ts/components/NothingFound';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport BarChart from 'ts/components/BarChart';\nimport DayInfo from 'ts/components/DayInfo';\nimport Title from 'ts/components/Title';\n\ninterface IChangesProps {\n statistic: any;\n}\n\nfunction Changes({ statistic }: IChangesProps) {\n const maxData = statistic.changesByTimestampCounter.maxData;\n\n const [selected, setSelected] = useState<any>(maxData);\n\n const dots = statistic.allCommitsByTimestamp\n .map((dot: any) => ({\n title: `${dot.timestamp} - ${dot.addedAndChanges} строк изменили`,\n value: dot.addedAndChanges,\n meta: dot,\n }));\n if (!dots?.length) return (<NothingFound />);\n\n const [fullDay, shortDay] = getDateByTimestamp(maxData.timestamp);\n const recommendations = [\n [fullDay, ` (${shortDay}) было влито больше всего изменений.`, 'fact'],\n ];\n\n return (\n <>\n <RecommendationsWrapper recommendations={recommendations} />\n <Title title=\"Количество изменённых строк по дням\"/>\n <PageWrapper template=\"box\">\n <BarChart\n dots={dots}\n selected={selected}\n onClick={(dot: any) => {\n setSelected(dot.meta);\n }}\n />\n </PageWrapper>\n <br/>\n <br/>\n <Title title={`${getDate(selected?.timestamp)} изменили ${selected?.addedAndChanges || '_'} строк`}/>\n <PageWrapper template=\"box\">\n <DayInfo\n day={selected}\n order={dataGripStore.dataGrip.author.list}\n />\n </PageWrapper>\n </>\n );\n}\n\nexport default Changes;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport CommonChanges from 'ts/pages/Common/components/Changes';\n\nconst Changes = observer((): React.ReactElement => {\n const statistic = dataGripStore.dataGrip.timestamp.statistic;\n return (\n <CommonChanges statistic={statistic} />\n );\n});\n\nexport default Changes;\n","// extracted by mini-css-extract-plugin\nexport default {\"user\":\"HoursChart_user__l-dMO\",\"title\":\"HoursChart_title__QL6hZ\",\"data\":\"HoursChart_data__GMPhj\",\"day\":\"HoursChart_day__8Ql4V\",\"day_time\":\"HoursChart_day_time__S6CP6\",\"day_name\":\"HoursChart_day_name__QX1g4\",\"hour\":\"HoursChart_hour__sPu+v\",\"day_time_mm\":\"HoursChart_day_time_mm__syRje\"};","import React from 'react';\n\nimport { get2Number } from 'ts/helpers/formatter';\nimport style from '../index.module.scss';\n\nfunction Header(): React.ReactElement | null {\n const items = (new Array(25)).fill(1).map((a, hour: number) => {\n if (!hour) return (\n <div\n key={hour}\n className={style.day_name}\n ></div>\n );\n\n return (\n <div\n key={hour}\n className={style.day_time}\n >\n <span className={style.day_time_hh}>\n {get2Number(hour - 1)}\n </span>\n <span className={style.day_time_mm}>\n :00\n </span>\n </div>\n );\n });\n\n return (<>{items}</>);\n}\n\nexport default Header;\n","import React from 'react';\n\nimport style from '../index.module.scss';\n\ninterface IColumnsProps {\n week: number[];\n day: number;\n max: number;\n}\n\nfunction getPercentByMax(countCommit: number, max: number) {\n const value = ((countCommit || 0) * 100) / max;\n return (value - value % 1) / 100;\n}\n\nfunction Columns({ week, day, max }: IColumnsProps): React.ReactElement | null {\n const items = week.map((countCommit, hour: number) => {\n const opacity = getPercentByMax(countCommit, max);\n const isWeekend = day > 4 || hour < 7 || hour > 20;\n const color = opacity > 0.2 ? '#FFFFFF' : '#CBCBCD';\n const backgroundColor = isWeekend ? '237, 103, 95' : '65, 98, 181';\n return (\n <div\n key={hour}\n className={style.hour}\n style={{\n color,\n backgroundColor: `rgba(${backgroundColor}, ${opacity})`,\n }}>\n {countCommit ? countCommit : ''}\n </div>\n );\n });\n\n return (<>{items}</>);\n}\n\nexport default Columns;\n","// extracted by mini-css-extract-plugin\nexport default {\"legend\":\"legend_legend__K8kcS\",\"legend_item\":\"legend_legend_item__TBfpJ\",\"legend_work\":\"legend_legend_work__uDegX\",\"legend_weekend\":\"legend_legend_weekend__X81Jz\",\"legend_count\":\"legend_legend_count__UofVz\",\"legend_title\":\"legend_legend_title__pQJsG\",\"day_time_mm\":\"legend_day_time_mm__gdqbM\",\"user\":\"legend_user__FX46M\",\"day_time\":\"legend_day_time__MfyYa\",\"day_name\":\"legend_day_name__RGD2F\",\"hour\":\"legend_hour__oh6dd\"};","import React from 'react';\n\nimport style from '../styles/legend.module.scss';\n\nfunction Legend(): React.ReactElement | null {\n return (\n <div className={style.legend}>\n <div className={style.legend_item}>\n <div className={style.legend_work}></div>\n <div className={style.legend_title}>\n стандартное рабочее время (будни, с 07:00 до 20:00)\n </div>\n </div>\n <div className={style.legend_item}>\n <div className={style.legend_weekend}></div>\n <div className={style.legend_title}>\n выходные дни или время до/после рабочего дня\n </div>\n </div>\n <div className={style.legend_item}>\n <div className={style.legend_count}>\n 42\n </div>\n <div className={style.legend_title}>\n суммарное количество коммитов за все время в конкретный день и час\n </div>\n </div>\n </div>\n );\n}\n\nexport default Legend;\n","import React from 'react';\n\nimport { getDayPrefix } from 'ts/helpers/formatter';\n\nimport Header from './components/Header';\nimport Columns from './components/Columns';\nimport Legend from './components/Legend';\n\nimport style from './index.module.scss';\n\ninterface IHoursChartProps {\n statistic: any;\n}\n\nfunction HoursChart({\n statistic,\n}: IHoursChartProps): React.ReactElement | null {\n\n const items = statistic.commitsByDayAndHour\n .map((week: number[], day: number) => {\n return (\n <div\n key={day}\n className={style.day}\n >\n <div className={style.day_name}>\n {getDayPrefix(day)}\n </div>\n <Columns\n week={week}\n day={day}\n max={statistic.commitsByDayAndHourTotal[8]}\n />\n </div>\n );\n });\n\n return (\n <div className={style.user}>\n <div className={style.data}>\n <div className={style.day}>\n <Header />\n </div>\n {items}\n </div>\n <Legend />\n </div>\n );\n}\n\nexport default HoursChart;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\nimport HoursChart from 'ts/components/HoursChart';\nimport Title from 'ts/components/Title';\n\nimport PageWrapper from 'ts/components/Page/wrapper';\n\nconst Hours = observer((): React.ReactElement => {\n const statistic = dataGripStore.dataGrip.team.statistic;\n const recommendations = dataGripStore.dataGrip.recommendations.team?.byHour;\n\n return (\n <>\n <RecommendationsWrapper recommendations={recommendations} />\n <Title title=\"Распределение коммитов в течении каждого дня недели\"/>\n <PageWrapper template=\"table\">\n <HoursChart statistic={statistic} />\n </PageWrapper>\n </>\n );\n});\n\nexport default Hours;\n","// extracted by mini-css-extract-plugin\nexport default {\"candy\":\"CandyChart_candy__6xQZk\",\"candy_item\":\"CandyChart_candy_item__rSQb3\",\"candy_title\":\"CandyChart_candy_title__CEfhb\",\"candy_line\":\"CandyChart_candy_line__CFOFP\",\"candy_value\":\"CandyChart_candy_value__+26Oz\",\"candy_prefix\":\"CandyChart_candy_prefix__dboC2\",\"candy_dot\":\"CandyChart_candy_dot__XvYKs\"};","import React from 'react';\n\nimport style from './index.module.scss';\n\ninterface IDot {\n title: string;\n value: number;\n color?: string;\n}\n\ninterface ICandyChartProps {\n dots: IDot[];\n}\n\nfunction CandyChart({\n dots,\n}: ICandyChartProps): React.ReactElement | null {\n const scale = 100 / Math.max(...dots.map((dot: IDot) => dot.value));\n const getWidth = (value: number): number => value * scale;\n\n const lines = dots.map((dot) => (\n <div\n key={dot.title}\n className={style.candy_item}\n >\n <div className={style.candy_title}>\n {dot.title}\n </div>\n <div className={style.candy_line}>\n <div className={style.candy_prefix}>\n {dot.value}\n </div>\n <div\n className={style.candy_value}\n style={{\n width: `${getWidth(dot.value)}%`,\n backgroundColor: dot.color || '',\n }}\n ></div>\n <div\n className={style.candy_dot}\n style={{\n backgroundColor: dot.color || '',\n }}\n ></div>\n </div>\n </div>\n ));\n\n return (\n <div className={style.candy}>\n {lines}\n </div>\n );\n}\n\nexport default CandyChart;\n","import React from 'react';\n\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\nimport NothingFound from 'ts/components/NothingFound';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport CandyChart from 'ts/components/CandyChart';\nimport Title from 'ts/components/Title';\n\ninterface IPopularWordsProps {\n statistic: any[];\n mode?: string;\n}\n\nfunction PopularWords({ statistic, mode }: IPopularWordsProps) {\n const limit = mode === 'print' ? 20 : 40;\n const dots = statistic\n .slice(0, limit)\n .map((titleValue: any) => ({\n title: titleValue[0],\n value: titleValue[1],\n }));\n\n if (!dots?.length) return (<NothingFound />);\n\n // dots[0].color = COLOR.FIRST;\n const recommendations = [\n [dots[0].title, `самое популярное слово. Встречается ${dots[0].value} раза.`, 'fact'],\n ];\n\n return (\n <>\n {mode !== 'print' && (\n <RecommendationsWrapper recommendations={recommendations} />\n )}\n <Title title=\"Статистика по словам\"/>\n <PageWrapper template=\"table\">\n <CandyChart\n dots={dots}\n />\n </PageWrapper>\n </>\n );\n}\n\nexport default PopularWords;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport CommonPopularWords from 'ts/pages/Common/components/PopularWords';\n\nconst PopularWords = observer((): React.ReactElement => {\n const statistic = dataGripStore.dataGrip.team.statistic.wordStatistics;\n return (\n <CommonPopularWords statistic={statistic} />\n );\n});\n\nexport default PopularWords;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';\nimport { getMoney } from 'ts/helpers/formatter';\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport NothingFound from 'ts/components/NothingFound';\nimport Title from 'ts/components/Title';\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\n\ninterface IScopeViewProps {\n response?: IPagination<any>;\n}\n\nfunction ScopeView({ response }: IScopeViewProps) {\n if (!response) return null;\n const typeChart = getOptions({ order: dataGripStore.dataGrip.type.list });\n const authorChart = getOptions({ order: dataGripStore.dataGrip.author.list });\n\n return (\n <Table rows={response.content}>\n <Column\n isFixed\n template={ColumnTypesEnum.STRING}\n title=\"page.team.scope.scope\"\n properties=\"scope\"\n width={200}\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.scope.days\"\n properties=\"days\"\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.scope.authorsDays\"\n properties=\"authors\"\n formatter={(authors: any) => {\n return Object.keys(authors)\n .map(name => (authors[name].days || 0))\n .reduce((t, v) => (t + v), 0);\n }}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n title=\"page.team.scope.tasks\"\n properties=\"tasks\"\n formatter={(v: any[]) => (v?.length || 0)}\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.scope.commits\"\n properties=\"commits\"\n />\n <Column\n title=\"page.team.scope.types\"\n properties=\"types\" // TODO: нужно по числу изменений, а не коммитов\n minWidth={200}\n template={(details: any) => (\n <LineChart\n options={typeChart}\n details={details}\n />\n )}\n />\n <Column\n title=\"page.team.scope.authors\"\n properties=\"authors\"\n minWidth={200}\n formatter={(authors: any) => {\n return Object.fromEntries(\n Object.keys(authors).map(name => [name, authors[name]?.commits || 0]),\n );\n }}\n template={(details: any) => (\n <LineChart\n options={authorChart}\n details={details}\n />\n )}\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.scope.cost\"\n properties=\"cost\"\n formatter={getMoney}\n />\n </Table>\n );\n}\n\nScopeView.defaultProps = {\n response: undefined,\n};\n\nconst Scope = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement | null => {\n const rows = dataGripStore.dataGrip.scope.statistic;\n if (rows?.length < 2) return mode !== 'print' ? (<NothingFound />) : null;\n const recommendations = dataGripStore.dataGrip.recommendations.team?.byScope;\n\n return (\n <>\n {mode !== 'print' && (\n <RecommendationsWrapper recommendations={recommendations} />\n )}\n <Title title=\"Статистика по фичам\"/>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest) => getFakeLoader({\n content: rows, pagination, mode,\n })}\n >\n <ScopeView />\n <Pagination />\n </DataLoader>\n </PageWrapper>\n </>\n );\n});\n\nexport default Scope;\n","import React, { ChangeEvent } from 'react';\n\nimport Wrapper, { IUiKitWrapperProps } from './Wrapper';\nimport style from '../styles/index.module.scss';\n\ninterface IUiKitSelectProps extends IUiKitWrapperProps {\n value: any;\n options: any[];\n onChange: Function;\n}\n\nfunction UiKitSelect({\n title,\n description,\n help,\n error,\n className,\n\n value,\n options,\n onChange,\n}: IUiKitSelectProps) {\n const items = (options || [])\n .map((option: any, index: number) => {\n const formattedOption = typeof option !== 'object'\n ? ({ id: option, title: option })\n : option;\n\n return (\n <option\n key={`${formattedOption?.id}_${index}`}\n value={formattedOption?.id ?? null}\n selected={value === formattedOption?.id}\n >\n {formattedOption?.title ?? formattedOption?.id ?? ''}\n </option>\n );\n });\n\n return (\n <Wrapper\n title={title}\n description={description}\n help={help}\n error={error}\n className={className}\n >\n <select\n className={`${style.ui_kit_common} ${style.ui_kit_select}`}\n onChange={(event: ChangeEvent<HTMLSelectElement>) => {\n const selectedValue = event.target.value;\n const formattedValue = selectedValue !== 'null'\n ? (parseInt(selectedValue, 10) || 0)\n : null;\n if (onChange) onChange(formattedValue, selectedValue);\n }}\n >\n {items}\n </select>\n </Wrapper>\n );\n}\n\nexport default UiKitSelect;\n","// extracted by mini-css-extract-plugin\nexport default {\"tempo\":\"styles_tempo__35OlM\",\"tempo_wrapper\":\"styles_tempo_wrapper__9G8QZ\",\"tempo_column\":\"styles_tempo_column__-MszO\",\"tempo_column_wrapper\":\"styles_tempo_column_wrapper__gOSJN\",\"tempo_header\":\"styles_tempo_header__h8S6V\",\"tempo_author\":\"styles_tempo_author__5oBlm\",\"tempo_task\":\"styles_tempo_task__4-X3t\",\"tempo_header_title\":\"styles_tempo_header_title__fCsQX\",\"tempo_header_day\":\"styles_tempo_header_day__74koH\"};","import React from 'react';\n\nimport { getDate, getDayName } from 'ts/helpers/formatter';\n\nimport style from '../styles/index.module.scss';\n\ninterface IHeaderProps {\n dayInfo: any;\n}\n\nfunction Header({ dayInfo }: IHeaderProps) {\n return (\n <div className={style.tempo_header}>\n <p className={style.tempo_header_title}>\n {getDate(dayInfo?.timestamp)}\n </p>\n <p className={style.tempo_header_day}>\n {getDayName(dayInfo?.day)}\n </p>\n </div>\n );\n}\n\nexport default Header;\n","import React from 'react';\n\nimport style from '../styles/index.module.scss';\n\ninterface IAuthorProps {\n name: string;\n}\n\nfunction Author({ name }: IAuthorProps) {\n return (\n <div className={style.tempo_author}>\n {name || ''}\n </div>\n );\n}\n\nexport default Author;\n","// extracted by mini-css-extract-plugin\nexport default {\"tempo_task\":\"task_tempo_task__TNLYR\",\"tempo_task_wrapper\":\"task_tempo_task_wrapper__nKH-u\",\"tempo_task_header\":\"task_tempo_task_header__XjSvi\",\"tempo_task_link\":\"task_tempo_task_link__jfLY7\",\"tempo_task_value\":\"task_tempo_task_value__smF9i\",\"tempo_task_title\":\"task_tempo_task_title__ZHB4o\",\"tempo_task_tag\":\"task_tempo_task_tag__vpHgX\",\"tempo_task_tags\":\"task_tempo_task_tags__bhnV8\",\"tempo_task_commits\":\"task_tempo_task_commits__I07Se\",\"tempo_task_hours\":\"task_tempo_task_hours__auht3\",\"tempo_task_icon\":\"task_tempo_task_icon__p1+3l\"};","import React from 'react';\n\nimport ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport ExternalLink from 'ts/components/ExternalLink';\nimport userSettings from 'ts/store/UserSettings';\nimport { get2Number } from 'ts/helpers/formatter';\nimport dataGrip from 'ts/helpers/DataGrip';\n\nimport style from '../styles/task.module.scss';\n\nfunction getFormattedTime(time: any) {\n return `${get2Number(time.hours)}:${get2Number(time.minutes)}`;\n}\n\nfunction getFormattedDate(commits: ICommit[]) {\n const from = commits[0];\n const to = commits[commits.length - 1];\n return from !== to\n ? `c ${getFormattedTime(from)} до ${getFormattedTime(to)}`\n : `до ${getFormattedTime(from)}`;\n}\n\nfunction getTags(commits: ICommit[]) {\n const uniqueTypes = new Set(commits.map((commit: ICommit) => commit.type));\n const tags = Array.from(uniqueTypes).map((title: string) => (\n <p\n key={title}\n className={style.tempo_task_tag}\n >\n {title}\n </p>\n ));\n return (<>{tags}</>);\n}\n\ninterface ITaskProps {\n title: string;\n commits: ICommit[];\n}\n\nfunction Task({ title, commits }: ITaskProps) {\n const prId = dataGrip.pr.prByTask[title];\n return (\n <div\n key={title}\n className={style.tempo_task}\n >\n <div className={style.tempo_task_header}>\n <div>\n <ExternalLink\n text={title}\n link={`${userSettings?.settings?.linksPrefix?.task || '/'}${title}`}\n />\n <ExternalLink\n text=\"PR\"\n link={`${userSettings?.settings?.linksPrefix?.pr || '/'}${prId}`}\n />\n </div>\n <div className={style.tempo_task_tags}>\n {getTags(commits)}\n </div>\n </div>\n <figure className={style.tempo_task_commits}>\n <figure>\n <img\n src=\"./assets/chart/commit.svg\"\n className={style.tempo_task_icon}\n />\n <figcaption className={style.tempo_task_value}>\n {commits.length}\n </figcaption>\n </figure>\n <figcaption className={style.tempo_task_title}>\n Коммиты\n </figcaption>\n </figure>\n <figure className={style.tempo_task_hours}>\n <figure>\n <img\n src=\"./assets/chart/clock.svg\"\n className={style.tempo_task_icon}\n />\n <figcaption className={style.tempo_task_value}>\n {getFormattedDate(commits)}\n </figcaption>\n </figure>\n <figcaption className={style.tempo_task_title}>\n Активность\n </figcaption>\n </figure>\n </div>\n );\n}\n\ninterface ITasksProps {\n tasks: IHashMap<ICommit[]>;\n}\n\nfunction Tasks({ tasks }: ITasksProps) {\n const items = Object.entries(tasks).map(([title, commits]) => (\n <Task\n key={title}\n title={title}\n commits={commits}\n />\n ));\n\n return (\n <div className={style.tempo_task_wrapper}>\n {items}\n </div>\n );\n}\n\nexport default Tasks;\n","// extracted by mini-css-extract-plugin\nexport default {\"tempo_chart\":\"chart_tempo_chart__rsJb1\",\"tempo_chart_dashboard\":\"chart_tempo_chart_dashboard__aknVt\",\"tempo_chart_dot\":\"chart_tempo_chart_dot__0JrVm\",\"tempo_chart_legend\":\"chart_tempo_chart_legend__5j88z\",\"tempo_chart_time\":\"chart_tempo_chart_time__ijaMS\"};","import React from 'react';\n\nimport ICommit from 'ts/interfaces/Commit';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport { get2Number } from 'ts/helpers/formatter';\n\nimport style from '../styles/chart.module.scss';\n\ninterface IChartProps {\n tasks: IHashMap<ICommit[]>;\n}\n\nfunction Chart({ tasks }: IChartProps) {\n const oneHours = 100 / 24;\n const commits = Object.values(tasks).flat(1);\n const values = commits.reduce((hours: number[], commit: ICommit) => {\n hours[commit.hours] += commit.changes + commit.added + commit.removed;\n return hours;\n }, (new Array(24)).fill(0));\n\n const dots = values.map((size: number, hours: number) => {\n if (!size) return null;\n const left = oneHours * hours;\n const height = Math.min(80, size / 1.5);\n return (\n <div\n key={hours}\n className={`${style.tempo_chart_dot}`}\n title={`${size} строк с ${get2Number(hours)}:00 до ${get2Number(hours + 1)}:00`}\n style={{ left: `${left}%`, height: `${height}%` }}\n />\n );\n });\n\n return (\n <div className={style.tempo_chart}>\n <div className={style.tempo_chart_dashboard}>\n {dots}\n </div>\n <div className={style.tempo_chart_legend}>\n <span className={style.tempo_chart_time}>00:00</span>\n <span className={style.tempo_chart_time}>06:00</span>\n <span className={style.tempo_chart_time}>12:00</span>\n <span className={style.tempo_chart_time}>18:00</span>\n <span className={style.tempo_chart_time}>00:00</span>\n </div>\n </div>\n );\n}\n\nexport default Chart;\n","import React from 'react';\n\nimport IHashMap from 'ts/interfaces/HashMap';\nimport ICommit from 'ts/interfaces/Commit';\nimport NothingFound from 'ts/components/NothingFound';\n\nimport Header from './Header';\nimport Author from './Author';\nimport Tasks from './Tasks';\nimport Chart from './Chart';\nimport style from '../styles/index.module.scss';\n\ninterface IColumnProps {\n dayInfo: any;\n order: string[];\n author?: string;\n}\n\nfunction Column({ dayInfo, order, author }: IColumnProps) {\n const authors = Object.entries(dayInfo?.tasksByAuthor || {})\n .sort((a: any, b: any) => (order.indexOf(a[0]) - order.indexOf(b[0])) )\n .filter(([name]) => author ? name === author : true)\n .map(([name, tasks]) => (\n <div\n key={name}\n >\n {author ? null : (<Author name={name} />)}\n <Chart tasks={tasks as IHashMap<ICommit[]>} />\n <Tasks tasks={tasks as IHashMap<ICommit[]>} />\n </div>\n ));\n\n return (\n <div className={style.tempo_column}>\n <Header dayInfo={dayInfo} />\n <div className={style.tempo_column_wrapper}>\n {authors.length ? (\n authors\n ) : (\n <NothingFound\n icon=\"./assets/cards/commits.png\"\n message=\"В этот день у этого сотрудника не было ни одного коммита.\"\n />\n )}\n </div>\n </div>\n );\n}\n\nColumn.defaultProps = {\n order: [],\n author: '',\n};\n\nexport default Column;\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport Column from './components/Column';\nimport style from './styles/index.module.scss';\n\ninterface ITempoProps {\n days: any[];\n author?: string;\n order?: string[];\n}\n\nfunction Tempo({\n days,\n author,\n order,\n}: ITempoProps) {\n const [customStyle, setCustomStyle] = useState<any>({});\n const ref = useRef() as React.MutableRefObject<HTMLDivElement>;\n\n useEffect(() => {\n const element = ref?.current;\n if (element?.clientWidth === element?.scrollWidth) {\n setCustomStyle({ overflowX: 'hidden' });\n }\n }, []);\n\n const columns = days.map((dayInfo: any) => (\n <Column\n key={dayInfo?.timestamp}\n dayInfo={dayInfo}\n author={author}\n order={order || []}\n />\n ));\n\n return (\n <div\n ref={ref}\n style={customStyle}\n className={style.tempo_wrapper}\n >\n <div className={style.tempo}>\n {columns}\n </div>\n </div>\n );\n}\n\nColumn.defaultProps = {\n order: [],\n author: '',\n};\n\nexport default Tempo;\n","// extracted by mini-css-extract-plugin\nexport default {\"filter\":\"filters_filter__RAfKX\",\"tempo_page_filters\":\"filters_tempo_page_filters__vA8Zy\",\"date_range\":\"filters_date_range__afEkD\",\"user\":\"filters_user__ldKe-\"};","import React, { useState } from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { IPagination } from 'ts/interfaces/Pagination';\nimport dataGripStore from 'ts/store/DataGrip';\nimport { getShortDateRange } from 'ts/helpers/formatter';\nimport localization from 'ts/helpers/Localization';\n\nimport UiKitButton from 'ts/components/UiKit/components/Button';\nimport UiKitSelect from 'ts/components/UiKit/components/Select';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport DataLoader from 'ts/components/DataLoader';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport NothingFound from 'ts/components/NothingFound';\nimport TempoChart from 'ts/components/Tempo';\nimport Title from 'ts/components/Title';\n\nimport uiKitStyle from 'ts/components/UiKit/styles/index.module.scss';\nimport style from '../styles/filters.module.scss';\n\ninterface ITempoViewProps {\n order: string[];\n user?: string;\n response?: IPagination<any>;\n}\n\nfunction TempoView({ response, order, user }: ITempoViewProps) {\n if (!response) return null;\n return (\n <TempoChart\n days={response.content as any[]}\n author={user}\n order={order}\n />\n );\n}\n\nTempoView.defaultProps = {\n response: undefined,\n};\n\nfunction getPartOfData(filters: any, rows: any[]) {\n return rows.filter((row: any) => (row.week === filters.week)).slice(0, 7);\n}\n\nconst Tempo = observer((): React.ReactElement => {\n const rows = dataGripStore.dataGrip.timestamp.statistic.allCommitsByTimestamp || [];\n const order = dataGripStore.dataGrip.author.list || [];\n const firstIndex = rows.length - 1;\n const firstPoint = rows[firstIndex];\n\n const [week, setWeek] = useState<number>(firstPoint.week);\n const [user, setUser] = useState<string>('');\n\n if (!rows?.length) return (<NothingFound />);\n const partOfData = getPartOfData({ week, user }, rows);\n const firstWeekDay = partOfData[0];\n const lastWeekDay = partOfData[partOfData.length - 1];\n\n if (!partOfData?.length) return (<NothingFound />);\n return (\n <>\n <Title title={localization.get('common.filters')} />\n <PageWrapper>\n <div className={style.tempo_page_filters}>\n <UiKitButton\n type=\"second\"\n disabled={week === 1}\n onClick={() => {\n setWeek(week - 1);\n }}\n >\n «\n </UiKitButton>\n <div className={`${uiKitStyle.ui_kit_common} ${style.date_range}`}>\n {getShortDateRange({\n from: firstWeekDay.timestamp,\n to: lastWeekDay.timestamp,\n })}\n </div>\n <UiKitButton\n type=\"second\"\n disabled={week === firstPoint.week}\n onClick={() => {\n setWeek(week + 1);\n }}\n >\n »\n </UiKitButton>\n\n <UiKitButton\n type=\"second\"\n onClick={() => {\n setUser(order[order.indexOf(user) - 1]);\n }}\n >\n «\n </UiKitButton>\n <UiKitSelect\n className={style.user}\n value={user}\n options={[ '', ...dataGripStore.dataGrip.author.list]}\n onChange={(id: number, name: string) => {\n setUser(name);\n }}\n />\n <UiKitButton\n type=\"second\"\n onClick={() => {\n setUser(order[order.indexOf(user) + 1]);\n }}\n >\n »\n </UiKitButton>\n </div>\n </PageWrapper>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={() => getFakeLoader({ content: partOfData })}\n watch={`${week}${user}`}\n >\n <TempoView\n order={order}\n user={user}\n />\n </DataLoader>\n </PageWrapper>\n </>\n );\n});\n\nexport default Tempo;\n","// extracted by mini-css-extract-plugin\nexport default {\"card_with_icon\":\"CardWithIcon_card_with_icon__3a7zZ\",\"card_with_icon_long\":\"CardWithIcon_card_with_icon_long__wEO+N\",\"card_with_icon_icon\":\"CardWithIcon_card_with_icon_icon__OGrXz\",\"card_with_icon_long_icon\":\"CardWithIcon_card_with_icon_long_icon__ByAzx\",\"card_with_icon_value\":\"CardWithIcon_card_with_icon_value__crR9J\",\"card_with_icon_long_value\":\"CardWithIcon_card_with_icon_long_value__4FeWj\",\"card_with_icon_title\":\"CardWithIcon_card_with_icon_title__tFLQS\",\"card_with_icon_description\":\"CardWithIcon_card_with_icon_description__79tg5\",\"card_with_icon_long_title\":\"CardWithIcon_card_with_icon_long_title__Ro+QA\",\"card_with_icon_long_description\":\"CardWithIcon_card_with_icon_long_description__Qw+Ob\"};","import React from 'react';\n\nimport localization from 'ts/helpers/Localization';\nimport style from './index.module.scss';\n\ninterface ICardWithIconProps {\n title: string;\n description?: string;\n value: number | string | null;\n suffix?: string;\n color?: string;\n icon?: string;\n long?: boolean;\n}\n\nfunction CardWithIcon({\n title,\n description,\n value,\n suffix,\n color,\n icon,\n long = false,\n}: ICardWithIconProps): React.ReactElement | null {\n if (!value && value !== 0) return null;\n\n return (\n <figure className={long\n ? style.card_with_icon_long\n : style.card_with_icon}>\n {icon && (\n <img\n className={style.card_with_icon_icon}\n src={icon}\n />\n )}\n <p\n className={style.card_with_icon_value}\n style={{ color: color || '' }}\n >\n {value}\n {suffix || ''}\n </p>\n <h4 className={style.card_with_icon_title}>\n {localization.get(title)}\n </h4>\n <figcaption className={style.card_with_icon_description}>\n {localization.get(description)}\n </figcaption>\n </figure>\n );\n}\n\nCardWithIcon.defaultProps = {\n description: '',\n suffix: '',\n color: undefined,\n icon: undefined,\n};\n\nexport default CardWithIcon;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport Title from 'ts/components/Title';\nimport localization from 'ts/helpers/Localization';\nimport CardWithIcon from 'ts/components/CardWithIcon';\nimport Description from 'ts/components/Description';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport userSettings from 'ts/store/UserSettings';\nimport { getShortMoney } from 'ts/helpers/formatter';\n\nconst Total = observer((): React.ReactElement => {\n const statistic = dataGripStore.dataGrip.team.statistic;\n const employment = dataGripStore.dataGrip.author.employment;\n const timestamp = dataGripStore.dataGrip.timestamp.statistic;\n const workSpeed = employment.active.reduce((speed: number, name: string) => {\n return speed + dataGripStore.dataGrip.author.statisticByName[name].taskInDay;\n }, 0).toFixed(1);\n const moneySpeed = employment.active.reduce((speed: number, name: string) => {\n return speed + userSettings.getCurrentSalaryInMonth(name);\n }, 0);\n\n return (\n <PageWrapper>\n <PageColumn>\n <Title title={localization.get('page.team.total.titleA')}/>\n <div>\n <CardWithIcon\n value={statistic.daysWorked}\n icon=\"./assets/cards/work_days.png\"\n title=\"page.team.total.daysWorked.title\"\n description=\"page.team.total.daysWorked.description\"\n />\n <CardWithIcon\n value={statistic.commits}\n icon=\"./assets/cards/commits.png\"\n title=\"page.team.total.commits.title\"\n description=\"page.team.total.commits.description\"\n />\n <CardWithIcon\n value={statistic.daysLosses}\n icon=\"./assets/cards/lazy.png\"\n title=\"page.team.total.daysLosses.title\"\n description=\"page.team.total.daysLosses.description\"\n />\n <CardWithIcon\n value={`${employment.active.length} / ${employment.dismissed.length}`}\n icon=\"./assets/cards/dismissal.png\"\n title=\"page.team.total.employment.title\"\n description=\"page.team.total.employment.description\"\n />\n <CardWithIcon\n long\n value={workSpeed}\n icon=\"./assets/cards/tasks_month.png\"\n title=\"page.team.total.workSpeed.title\"\n description=\"page.team.total.workSpeed.description\"\n />\n </div>\n <Description\n text=\"*Человеко-дни* — это работа одного сотрудника в течение одного рабочего дня. Например, за один календарный день, команда из трех сотрудников выдает объем работы в три человеко-дня.\"\n />\n <Description\n text=\"*Днями прогулов* считаются только рабочие дни, когда коммиты могли бы быть сделаны. Выходные, государственные праздники и отпуска в расчёте не участвуют.\"\n />\n <Description\n text=\"Карточка *работает и уволилось* показывает фактический состав сотрудников, которые постоянно участвуют в работе. Кроме этого, есть «помощники» — это сотрудники, как правило другой специализации, которые могут иногда делать коммиты в проект.\"\n />\n </PageColumn>\n <PageColumn>\n <Title title={localization.get('page.team.total.titleB')}/>\n <div>\n <CardWithIcon\n value={getShortMoney(statistic.moneyAll)}\n icon=\"./assets/cards/money_total.png\"\n title=\"page.team.total.moneyAll.title\"\n description=\"page.team.total.moneyAll.description\"\n />\n <CardWithIcon\n value={getShortMoney(statistic.moneyWorked)}\n icon=\"./assets/cards/money_work.png\"\n title=\"page.team.total.moneyWorked.title\"\n description=\"page.team.total.moneyWorked.description\"\n />\n <CardWithIcon\n value={getShortMoney(statistic.moneyLosses)}\n icon=\"./assets/cards/money_lazy.png\"\n title=\"page.team.total.moneyLosses.title\"\n description=\"page.team.total.moneyLosses.description\"\n />\n <CardWithIcon\n value={getShortMoney(timestamp.weekendPayment)}\n icon=\"./assets/cards/money_holidays.png\"\n title=\"page.team.total.weekendPayment.title\"\n description=\"page.team.total.weekendPayment.description\"\n />\n <CardWithIcon\n long\n value={getShortMoney(moneySpeed)}\n icon=\"./assets/cards/money_month.png\"\n title=\"page.team.total.moneySpeed.title\"\n description=\"page.team.total.moneySpeed.description\"\n />\n </div>\n <Description\n text=\"*Переплатой* считаются только рабочие дни, когда коммиты могли бы быть сделаны. Выходные, государственные праздники и отпуска в расчёте не участвуют. Именно поэтому переплата + фактическая стоимость != общей. В общей стоимости заложена оплата выходных, государственных праздников и отпусков.\"\n />\n <Description\n text=\"*Работой на выходных* считается по коэфициенту х2 от оплаты обычного дня. Выше отображена именно переплата (х1), т.к. сам факт переработки в данном контексте не интересен. Мы не смотрим скорость сжигания бюджета. Мы смотрим переплату при увеличении скорости работы.\"\n />\n </PageColumn>\n </PageWrapper>\n );\n});\n\nexport default Total;\n","import React from 'react';\n\nimport { IUiKitWrapperProps } from './Wrapper';\nimport UiKitButton from './Button';\nimport UiKitSelect from './Select';\n\ninterface IUiKitSelectWithButtonsProps extends IUiKitWrapperProps {\n className?: string;\n value: any;\n options: any[];\n onChange: Function;\n}\n\nfunction UiKitSelectWithButtons({\n className,\n value,\n options,\n onChange,\n}: IUiKitSelectWithButtonsProps) {\n let index = options.map((item: any) => item.id).indexOf(value);\n if (index === -1) index = 0;\n return (\n <>\n <UiKitButton\n type=\"second\"\n disabled={index <= 0}\n onClick={() => {\n onChange(options[index - 1]?.id);\n }}\n >\n «\n </UiKitButton>\n <UiKitSelect\n value={value}\n options={options}\n className={className}\n onChange={onChange}\n />\n <UiKitButton\n type=\"second\"\n disabled={index >= (options.length - 1)}\n onClick={() => {\n onChange(options[index + 1]?.id);\n }}\n >\n »\n </UiKitButton>\n </>\n );\n}\n\nUiKitSelectWithButtons.defaultProps = {\n className: '',\n};\n\nexport default UiKitSelectWithButtons;\n","import React, { ChangeEvent } from 'react';\n\nimport Wrapper, { IUiKitWrapperProps } from './Wrapper';\nimport style from '../styles/index.module.scss';\n\ninterface IUiKitSelectProps extends IUiKitWrapperProps {\n value: any;\n placeholder?: string;\n onChange: Function;\n}\n\nfunction UiKitInputNumber({\n title,\n description,\n help,\n error,\n className,\n\n value,\n placeholder,\n onChange,\n}: IUiKitSelectProps) {\n return (\n <Wrapper\n title={title}\n description={description}\n help={help}\n error={error}\n className={className}\n >\n <input\n type=\"number\"\n value={value}\n placeholder={placeholder}\n className={style.ui_kit_common}\n onChange={(event: ChangeEvent<HTMLInputElement>) => {\n if (onChange) onChange(parseInt(event.target.value, 10) || 0);\n }}\n />\n </Wrapper>\n );\n}\n\nUiKitInputNumber.defaultProps = {\n placeholder: 'Введите значение',\n};\n\nexport default UiKitInputNumber;\n","import { makeObservable, observable, action } from 'mobx';\n\ninterface ITreeStore {\n hash: number;\n authorId: number;\n minCommits: number;\n selectedPath: string[];\n updateFilter: (property: string, value: any) => void;\n}\n\nclass TreeStore implements ITreeStore {\n hash: number = 0;\n\n authorId: number = 0;\n\n minCommits: number = 0;\n\n selectedPath: string[] = [];\n\n constructor() {\n makeObservable(this, {\n hash: observable,\n authorId: observable,\n minCommits: observable,\n selectedPath: observable,\n updateFilter: action,\n });\n }\n\n updateFilter(property: string, value: any) {\n this[property] = value;\n this.hash = Math.random();\n }\n}\n\nconst treeStore = new TreeStore();\n\nexport default treeStore;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport UiKitSelect from 'ts/components/UiKit/components/SelectWithButtons';\nimport UiKitInputNumber from 'ts/components/UiKit/components/InputNumber';\n\nimport treeStore from '../store/Tree';\nimport style from '../styles/filters.module.scss';\n\nconst TreeFilters = observer((): React.ReactElement => {\n const authors = dataGripStore.dataGrip.author.list;\n const options = authors.map((title: string, id: number) => ({ id: id + 1, title }));\n options.unshift({ id: 0, title: 'Все сотрудники' });\n\n return (\n <>\n <UiKitSelect\n title=\"Сотрудник\"\n value={treeStore.authorId}\n options={options}\n className={style.filter}\n onChange={(authorId: number) => {\n treeStore.updateFilter('authorId', authorId);\n }}\n />\n <UiKitInputNumber\n title=\"Количество коммитов\"\n help=\"Минимальное количество коммитов, которое сделал сотрудник в файле\"\n value={treeStore.minCommits}\n className={style.filter}\n onChange={(minCommits: number) => {\n treeStore.updateFilter('minCommits', minCommits);\n }}\n />\n </>\n );\n});\n\nexport default TreeFilters;\n","import { IFileTree } from 'ts/interfaces/FileInfo';\n\ninterface IFile {\n name: string;\n path: string[];\n content: IFile[];\n}\n\nexport function getSubTreeByPath(tree: IFileTree, path: string[]) {\n let subTree: any = tree || { content: [] };\n (path || []).forEach((folderName: string) => {\n subTree = subTree.content[folderName] || { content: [] };\n });\n return subTree;\n}\n\n\nfunction getButtonUp(file: IFile) {\n return file?.path?.length ? ({\n title: '..',\n path: file.path.slice(0, -1),\n }) : null;\n}\n\nfunction getFolderView(file: IFile) {\n return {\n file,\n title: `📁 ${file.name}`,\n path: file.path,\n };\n}\n\nfunction getFileView(file: IFile) {\n return {\n file,\n title: `📄 ${file.name.split('/').pop() || ''}`,\n };\n}\n\nexport function getArrayFromTree(tree: any) {\n const folders = [];\n const files = [];\n\n for (let name in tree.content) {\n const file = tree.content[name];\n if (file.content) {\n folders.push(getFolderView(file));\n } else {\n files.push(getFileView(file));\n }\n }\n\n return [\n getButtonUp(tree),\n ...folders,\n ...files,\n ].filter(v => v);\n}","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';\nimport dataGripStore from 'ts/store/DataGrip';\nimport localization from 'ts/helpers/Localization';\n\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport Title from 'ts/components/Title';\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\n\nimport TreeFilters from './TreeFilters';\nimport { getSubTreeByPath, getArrayFromTree } from '../helpers/tree';\nimport treeStore from '../store/Tree';\n\ninterface ITreeViewProps {\n response?: IPagination<any>;\n}\n\nfunction TreeView({ response }: ITreeViewProps) {\n if (!response) return null;\n\n const getDetails = (file: any, property: string) => {\n if (!file) return {};\n return Object.keys(file.authors || {})\n .reduce((details: any, name: any) => {\n details[name] = file.authors[name][property];\n return details;\n }, {});\n };\n\n const fileChart = getOptions({ order: dataGripStore.dataGrip.author.list, suffix: 'строк' });\n const rewriteChart = getOptions({ order: ['добавили', 'изменили'], suffix: 'строк' });\n\n return (\n <Table\n rows={response.content}\n disabledRow={(row: any) => {\n if (row?.title === '..') return false;\n const limit = treeStore.minCommits || 0;\n const name = dataGripStore.dataGrip.author.list[treeStore.authorId || ''] || '';\n const author = row.file?.authors[name];\n const commits = author?.commits || 0;\n return (treeStore.authorId && !author) || (commits < limit);\n }}\n >\n <Column\n isFixed\n template={ColumnTypesEnum.STRING}\n properties=\"title\"\n minWidth={200}\n onClick={(row: any) => {\n treeStore.updateFilter('selectedPath', row.path || []);\n }}\n />\n <Column\n title=\"Процент перезаписи строк\"\n properties=\"file\"\n minWidth={250}\n template={(file: any) => (\n <LineChart\n value={file ? 100 : 0}\n options={rewriteChart}\n details={{\n 'добавили': file?.lines || 0,\n 'изменили': (file?.total?.changes || 0) + (file?.total?.removed || 0),\n }}\n />\n )}\n />\n <Column\n title=\"Кто добавлял\"\n properties=\"file\"\n minWidth={200}\n template={(file: any) => (\n <LineChart\n value={file?.total?.added ? 100 : 0}\n options={fileChart}\n details={getDetails(file, 'addedPercent')}\n />\n )}\n />\n <Column\n title=\"Кто менял\"\n properties=\"file\"\n minWidth={200}\n template={(file: any) => (\n <LineChart\n value={file?.total?.changes ? 100 : 0}\n options={fileChart}\n details={getDetails(file, 'changesPercent')}\n />\n )}\n />\n <Column\n title=\"Кто удалял\"\n properties=\"file\"\n minWidth={200}\n template={(file: any) => (\n <LineChart\n value={file?.total?.removed ? 100 : 0}\n options={fileChart}\n details={getDetails(file, 'removedPercent')}\n />\n )}\n />\n </Table>\n );\n}\n\nTreeView.defaultProps = {\n response: undefined,\n};\n\nconst Tree = observer((): React.ReactElement => {\n const fileTree = dataGripStore.fileTree;\n const subTree = getSubTreeByPath(fileTree, treeStore.selectedPath);\n const fileList = getArrayFromTree(subTree);\n\n return (\n <>\n <Title title={localization.get('common.filters')} />\n <TreeFilters/>\n <Title title=\"Дерево проекта с учётом выбранных фильтров\"/>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest) => getFakeLoader({\n content: fileList, pagination: { ...pagination, size: 500 },\n })}\n watch={treeStore.hash}\n >\n <TreeView />\n <Pagination />\n </DataLoader>\n </PageWrapper>\n </>\n );\n});\n\nexport default Tree;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport IHashMap from 'ts/interfaces/HashMap';\nimport ISort from 'ts/interfaces/Sort';\nimport { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport NothingFound from 'ts/components/NothingFound';\nimport Title from 'ts/components/Title';\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\nimport Description from 'ts/components/Description';\n\nimport { getMax } from 'ts/pages/Common/helpers/getMax';\n\ninterface ITypeViewProps {\n response?: IPagination<any>;\n updateSort?: Function;\n}\n\nfunction TypeView({ response, updateSort }: ITypeViewProps) {\n if (!response) return null;\n\n const taskChart = getOptions({ max: getMax(response, 'tasks'), suffix: 'задач' });\n const daysByAuthorsChart = getOptions({ max: getMax(response, 'daysByAuthorsTotal'), suffix: 'дней' });\n const authorChart = getOptions({ order: dataGripStore.dataGrip.author.list });\n\n return (\n <Table\n rows={response.content}\n sort={response.sort}\n updateSort={updateSort}\n >\n <Column\n isFixed\n template={ColumnTypesEnum.STRING}\n title=\"page.team.type.type\"\n properties=\"type\"\n width={150}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"tasks\"\n />\n <Column\n isSortable\n title=\"page.team.type.tasks\"\n properties=\"tasks\"\n minWidth={120}\n template={(value: number) => (\n <LineChart\n options={taskChart}\n value={value}\n />\n )}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n title=\"page.team.type.days\"\n properties=\"days\"\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"daysByAuthorsTotal\"\n />\n <Column\n isSortable\n title=\"page.team.type.authorsDays\"\n properties=\"daysByAuthorsTotal\"\n minWidth={120}\n template={(value: number) => (\n <LineChart\n options={daysByAuthorsChart}\n value={value}\n />\n )}\n />\n <Column\n template={ColumnTypesEnum.NUMBER}\n title=\"page.team.type.commits\"\n properties=\"commits\"\n />\n <Column\n title=\"page.team.type.authors\"\n properties=\"commitsByAuthors\"\n template={(details: IHashMap<number>) => (\n <LineChart\n options={authorChart}\n details={details}\n />\n )}\n minWidth={500}\n />\n </Table>\n );\n}\n\nTypeView.defaultProps = {\n response: undefined,\n};\n\nconst Type = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement | null => {\n const rows = dataGripStore.dataGrip.type.statistic;\n if (!rows?.length) return mode !== 'print' ? (<NothingFound />) : null;\n const recommendations = dataGripStore.dataGrip.recommendations.team?.byType;\n\n return (\n <>\n {mode !== 'print' && (\n <RecommendationsWrapper recommendations={recommendations} />\n )}\n <Title title=\"Статистика по типам задач\"/>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({\n content: rows, pagination, sort, mode,\n })}\n >\n <TypeView />\n <Pagination />\n </DataLoader>\n </PageWrapper>\n <PageWrapper>\n <Description\n text=\"*Персональный вклад* считается по количеству коммитов, а не объему измененных строк или файлов. Поэтому следует так же смотреть раздел «Анализ файлов», чтобы оценить масштаб изменений.\"\n />\n </PageWrapper>\n </>\n );\n});\n\nexport default Type;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport ISort from 'ts/interfaces/Sort';\nimport IHashMap from 'ts/interfaces/HashMap';\nimport { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';\nimport { getShortDateRange } from 'ts/helpers/formatter';\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport NothingFound from 'ts/components/NothingFound';\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\n\nimport { getMax } from 'ts/pages/Common/helpers/getMax';\n\ninterface IWeekViewProps {\n response?: IPagination<any>;\n updateSort?: Function;\n}\n\nfunction WeekView({ response, updateSort }: IWeekViewProps) {\n if (!response) return null;\n\n const tasksChart = getOptions({ max: getMax(response, 'tasks'), order: dataGripStore.dataGrip.type.list });\n const authorsChart = getOptions({ max: getMax(response, 'authorsLength'), order: dataGripStore.dataGrip.author.list, suffix: 'задач' });\n const changesChart = getOptions({ max: getMax(response, 'changesLength'), order: ['добавили', 'изменили', 'удалили'], suffix: 'строк' });\n const workDaysTotalChart = getOptions({ order: ['были коммиты', 'небыло коммитов'], suffix: 'дней' });\n const workDaysChart = getOptions({ order: dataGripStore.dataGrip.author.list, suffix: 'дней' });\n\n return (\n <Table\n rows={response.content}\n sort={response.sort}\n updateSort={updateSort}\n >\n <Column\n isFixed\n template={ColumnTypesEnum.STRING}\n title=\"Дата\"\n properties=\"timestamp\"\n formatter={getShortDateRange}\n width={260}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"tasks\"\n />\n <Column\n isSortable=\"tasks\"\n title=\"Количество задач\"\n template={(row: any) => (\n <LineChart\n options={tasksChart}\n value={row.tasks}\n details={row.types}\n />\n )}\n minWidth={200}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"authorsLength\"\n />\n <Column\n isSortable=\"authorsLength\"\n title=\"Количество человек\"\n template={(row: any) => (\n <LineChart\n options={authorsChart}\n value={row.authorsLength}\n details={row.authors}\n />\n )}\n minWidth={200}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"changesLength\"\n />\n <Column\n isSortable=\"changesLength\"\n title=\"Изменения строк\"\n template={(row: any) => (\n <LineChart\n options={changesChart}\n value={row.changesLength}\n details={{\n 'добавили': row?.changes?.added,\n 'изменили': row?.changes?.changes,\n 'удалили': row?.changes?.removed,\n }}\n />\n )}\n minWidth={200}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"workDaysTotal\"\n />\n <Column\n isSortable=\"workDaysTotal\"\n title=\"Дни с коммитами и без\"\n template={(row: any) => (\n <LineChart\n options={workDaysTotalChart}\n details={{ // TODO: ошибка суммы, т.к. 5 дневка не у всех. Нужно по автору перебирать.\n 'были коммиты': row?.workDaysTotal,\n 'небыло коммитов': row?.authorsLength * 5 - row?.workDaysTotal,\n }}\n />\n )}\n minWidth={200}\n />\n <Column\n title=\"Кто не коммитил\"\n template={(details: IHashMap<number>) => (\n <LineChart\n options={workDaysChart}\n details={details}\n />\n )}\n formatter={(row: any) => {\n const detailsLikeArray = Object.entries(row?.workDays).map(([name, days]: any) => [name, 5 - days]);\n return Object.fromEntries(detailsLikeArray.filter((nameDays: any) => nameDays[1] > 0));\n }}\n minWidth={200}\n />\n </Table>\n );\n}\n\nWeekView.defaultProps = {\n response: undefined,\n};\n\nconst Week = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement | null => {\n const rows = dataGripStore.dataGrip.week.statistic;\n if (!rows?.length) return mode !== 'print' ? (<NothingFound />) : null;\n const recommendations = dataGripStore.dataGrip.recommendations.team?.byWeek;\n\n return (\n <>\n {mode !== 'print' && (\n <RecommendationsWrapper recommendations={recommendations} />\n )}\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({\n content: rows, pagination, sort,\n })}\n >\n <WeekView />\n {mode !== 'print' && <Pagination />}\n </DataLoader>\n </PageWrapper>\n </>\n );\n});\n\nexport default Week;\n","import IHashMap from 'ts/interfaces/HashMap';\nimport { get2Number } from 'ts/helpers/formatter';\nimport settingsStore from 'ts/store/Settings';\n\nimport IMonth from '../interfaces/Month';\nimport IWorkDay from '../interfaces/WorkDay';\n\nfunction getDefaultMonthInfo(\n month:number,\n year: number,\n authorsByDate: IHashMap<any>,\n): IMonth {\n return {\n id: `${month}-${year}`,\n month,\n year,\n first: false,\n last: false,\n date: new Date(`${year}-${get2Number(month + 1)}-01`),\n firstDay: authorsByDate.firstDay[`${month}-${year}`],\n lastDay: authorsByDate.lastDay[`${month}-${year}`],\n commits: [],\n };\n}\n\nfunction getAllMonths(firstDay: any, lastDay: any, authorsByDate: IHashMap<any>) {\n const months: IMonth[] = [];\n const monthsByDate: IHashMap<IMonth> = {};\n\n for (let year = firstDay.year; year <= lastDay.year; year++) {\n const firstMonth = year === firstDay.year ? firstDay.month : 0;\n const lastMonth = year === lastDay.year ? (lastDay.month + 1) : 12;\n for (let month = firstMonth; month < lastMonth; month++) {\n const data = getDefaultMonthInfo(month, year, authorsByDate);\n months.push(data);\n monthsByDate[data.id] = data;\n }\n }\n\n months.slice(firstDay?.month);\n months.slice(months.length - (12 - lastDay?.month));\n months[0].first = true;\n months[months.length - 1].last = true;\n months[months.length - 1].lastDay = undefined;\n\n return { months, monthsByDate };\n}\n\nfunction addCommitsInMonth(\n workDay: IWorkDay,\n monthsByDate: IHashMap<IMonth>,\n commits: IWorkDay[],\n) {\n const key = `${workDay.month}-${workDay.year}`;\n if (monthsByDate[key]) {\n monthsByDate[key].commits = commits;\n\n const tasks: any = [];\n const authors: any = [];\n commits.forEach((commit: any) => {\n tasks.push(...Object.keys(commit.tasks));\n authors.push(...Object.keys(commit.tasksByAuthor));\n });\n monthsByDate[key].tasks = Array.from(new Set(tasks)).length;\n\n const uniqueAuthors = Array.from(new Set(authors));\n // @ts-ignore\n monthsByDate[key].money = uniqueAuthors.reduce((money: number, name: string) => {\n return money + settingsStore.getMiddleSalaryInMonth(name);\n }, 0);\n }\n}\n\nexport default function getCommitsByMonth(\n wordDays: any[],\n authorsByDate: IHashMap<any>,\n) {\n let prev: any = { month: 0, year: 0 };\n let commits: any = [];\n\n const firstDay = wordDays[0];\n const lastDay = wordDays[wordDays.length - 1];\n const { months, monthsByDate } = getAllMonths(firstDay, lastDay, authorsByDate);\n\n wordDays.forEach((dayInfo: IWorkDay) => {\n if (dayInfo.month !== prev.month || dayInfo.year !== prev.year) {\n addCommitsInMonth(prev, monthsByDate, commits);\n commits = [dayInfo];\n } else {\n commits.push(dayInfo);\n }\n prev = dayInfo;\n });\n\n addCommitsInMonth(prev, monthsByDate, commits);\n\n return months;\n}","// extracted by mini-css-extract-plugin\nexport default {\"year_chart_month\":\"styles_year_chart_month__AdQdi\",\"year_chart_month_header\":\"styles_year_chart_month_header__EifAZ\",\"year_chart_month_header_title\":\"styles_year_chart_month_header_title__rSnWC\",\"year_chart_month_header_money\":\"styles_year_chart_month_header_money__oQO3k\",\"year_chart_month_body\":\"styles_year_chart_month_body__35YkI\",\"year_chart_month_body_day\":\"styles_year_chart_month_body_day__kwGqm\",\"year_chart_month_body_day_arrow\":\"styles_year_chart_month_body_day_arrow__mVJUQ\",\"year_chart_month_body_day_info\":\"styles_year_chart_month_body_day_info__aGly9\"};","import React from 'react';\n\nimport IMonth from '../interfaces/Month';\nimport style from '../styles/index.module.scss';\n\ninterface IHeaderProps {\n month: IMonth;\n}\n\nfunction Header({\n month,\n}: IHeaderProps): React.ReactElement | null {\n const name = month.date.toLocaleString('ru-RU', { month: 'long' });\n const showYear = month.first || month.last || !month.month;\n\n return (\n <div className={style.year_chart_month_header}>\n <span\n className={style.year_chart_month_header_title}\n style={{ fontWeight: showYear ? 'bold' : 100 }}\n >\n {name} {showYear ? month.year : ''}\n </span>\n </div>\n );\n}\n\nexport default Header;\n","import IHashMap from 'ts/interfaces/HashMap';\n\nimport IMonth from '../interfaces/Month';\n\nexport function getPercentByMax(countCommit: number, max: number) {\n const value = ((countCommit || 0) * 100) / max;\n return (value - value % 1) / 100;\n}\n\nexport function getIconUrl(month: IMonth, dayInMonth: number) {\n const addPerson = month.firstDay?.[dayInMonth];\n const removePerson = month.lastDay?.[dayInMonth];\n if (addPerson && removePerson) return './assets/chart/commit.svg';\n if (removePerson) return './assets/chart/commit.svg';\n if (addPerson) return './assets/chart/commit.svg';\n return '';\n}\n\nexport function getColor(isWeekend: boolean, opacity: number): string {\n const colors = isWeekend ? [\n '#ED675F', // 1\n '#EB817C', // 0.8\n '#E98E8A', // 0.7\n '#E89B99', // 0.6\n '#E7A8A7', // 0.5\n '#E7B5B6', // 0.4\n '#E6C3C4', // 0.3\n '#E4CFD3', // 0.2\n ] : [\n '#4162B5', // 0 1\n '#617DC1', // 1 0.8\n '#718AC6', // 2 0.7\n '#8198CD', // 3 0.6\n '#91A6D2', // 4 0.5\n '#A2B3D8', // 5 0.4\n '#B2C1DE', // 6 0.3\n '#C2CEE4', // 7 0.2\n ];\n if (opacity >= 0.8) return colors[1];\n if (opacity >= 0.6) return colors[3];\n if (opacity >= 0.4) return colors[5];\n return colors[7];\n}\n\nexport function getDayText(events: IHashMap<any>, timestamp: string): string {\n const addEmployees = events?.firstCommit?.[timestamp];\n const removeEmployees = events?.lastCommit?.[timestamp];\n if (addEmployees && removeEmployees) return '+-';\n if (removeEmployees) return '-';\n if (addEmployees) return '+';\n return '';\n}\n\nfunction getRefAuthorByTime(list: any[], property: string) {\n return list.reduce((refTimeAuthor: any, item: any) => {\n if (item.isStaff) return refTimeAuthor;\n if (property === 'lastCommit' && !item.isDismissed) return refTimeAuthor;\n const key = item?.[property]?.timestamp;\n if (!refTimeAuthor[key]) refTimeAuthor[key] = [];\n refTimeAuthor[key].push(item.author);\n return refTimeAuthor;\n }, {});\n}\n\nexport function getEvents(dataGripStore: any) {\n const list = dataGripStore.dataGrip.author.statistic;\n return {\n firstCommit: getRefAuthorByTime(list, 'firstCommit'),\n lastCommit: getRefAuthorByTime(list, 'lastCommit'),\n };\n}","import React, { useState } from 'react';\n\nimport IHashMap from 'ts/interfaces/HashMap';\nimport dataGripStore from 'ts/store/DataGrip';\nimport DayInfo from 'ts/components/DayInfo';\nimport Title from 'ts/components/Title';\n\nimport { getDate } from 'ts/helpers/formatter';\n\nimport IMonth from '../interfaces/Month';\nimport style from '../styles/index.module.scss';\n\nimport {\n getPercentByMax,\n getColor,\n getIconUrl, getDayText,\n} from '../helpers/day';\n\ninterface IDayProps {\n maxCommits: number;\n dayNumber: any;\n month: IMonth;\n dayInfo: any;\n events: IHashMap<any>;\n}\n\nfunction Day({\n month,\n dayInfo,\n maxCommits,\n dayNumber,\n events,\n}: IDayProps): React.ReactElement | null {\n const [showInfo, setShowInfo] = useState<boolean>(false);\n const weekend = [5, 6, 12, 13, 19, 20, 26, 27, 33, 34, 40, 41];\n const opacity = getPercentByMax(dayInfo.commits, maxCommits);\n const isWeekend = weekend.includes(dayNumber);\n const backgroundColor = getColor(isWeekend, opacity);\n const iconUrl = getIconUrl(month, dayInfo.dayInMonth);\n const text = getDayText(events, dayInfo.timestamp);\n\n return ( // @ts-ignore\n <div\n className={style.year_chart_month_body_day}\n title={`коммитов: ${dayInfo.commits}, задач: ${dayInfo.tasksInDay || 0}`}\n style={{\n backgroundColor,\n backgroundImage: iconUrl ? `url(${iconUrl})` : '',\n }}\n onClick={() => {\n setShowInfo(!showInfo);\n }}\n >\n {showInfo ? (\n <>\n {'◉'}\n <div className={style.year_chart_month_body_day_arrow} />\n <div className={style.year_chart_month_body_day_info}>\n <Title title={getDate(dayInfo.timestamp)} />\n <DayInfo // @ts-ignore\n day={dayInfo}\n events={events}\n timestamp={dayInfo.timestamp}\n order={dataGripStore.dataGrip.author.list}\n />\n </div>\n </>\n ) : text}\n </div>\n );\n}\n\nDay.defaultProps = {\n rows: [],\n};\n\nexport default Day;\n","import React from 'react';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport Day from './Day';\nimport IMonth from '../interfaces/Month';\nimport style from '../styles/index.module.scss';\nimport { getEvents } from '../helpers/day';\n\ninterface IBodyProps {\n month: IMonth;\n maxCommits: number;\n showEvents: boolean;\n}\n\nfunction Body({\n month,\n maxCommits,\n showEvents,\n}: IBodyProps): React.ReactElement | null {\n const firstDay = month.date.getDay() - 1;\n const daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n const lastDay = firstDay + daysInMonth[month.month];\n const allDays = (new Array(6 * 7)).fill(0);\n let currentDay = 0;\n\n const events = showEvents ? getEvents(dataGripStore) : {};\n const days = allDays.map((v: any, index: number) => {\n const dayInfo = month.commits[currentDay];\n\n if (dayInfo?.dayInMonth === (index - firstDay + 1)) {\n currentDay += 1;\n return (\n <Day\n key={index}\n month={month}\n maxCommits={maxCommits}\n dayNumber={index}\n dayInfo={dayInfo}\n events={events}\n />\n );\n }\n\n return (\n <div\n key={index}\n className={style.year_chart_month_body_day}\n style={{\n opacity: (index < firstDay || index > lastDay) ? 0.3 : 1,\n }}\n />\n );\n });\n\n return (\n <div className={style.year_chart_month_body}>\n {days}\n </div>\n );\n}\n\nBody.defaultProps = {\n rows: [],\n};\n\nexport default Body;\n","// extracted by mini-css-extract-plugin\nexport default {\"year_chart_month_info\":\"line_year_chart_month_info__Cv+xl\",\"year_chart_month_text\":\"line_year_chart_month_text__SEig2\",\"year_chart_month_chart\":\"line_year_chart_month_chart__3XMdb\"};","import React from 'react';\n\nimport IHashMap from 'ts/interfaces/HashMap';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport { getShortMoney } from 'ts/helpers/formatter';\n\nimport IMonth from '../interfaces/Month';\nimport Header from './Header';\nimport Body from './Body';\n\nimport styleChart from '../styles/line.module.scss';\nimport style from '../styles/index.module.scss';\n\ninterface IMonthTotalProps {\n title: string;\n options: any;\n value: any;\n}\n\nfunction MonthTotal({\n title,\n options,\n value,\n}: IMonthTotalProps) {\n return (\n <div className={styleChart.year_chart_month_info}>\n <span className={styleChart.year_chart_month_text}>\n {title}\n </span>\n <LineChart\n options={options}\n value={value}\n className={styleChart.year_chart_month_chart}\n />\n </div>\n );\n}\n\ninterface IMonthProps {\n max: IHashMap<number>;\n month: IMonth;\n showEvents: boolean;\n hideMoney?: boolean;\n}\n\nfunction Month({\n max,\n month,\n showEvents,\n hideMoney,\n}: IMonthProps): React.ReactElement | null {\n const tasksChart = getOptions({ max: max.tasks, suffix: 'задач' });\n const moneyChart = getOptions({\n max: max.money,\n suffix: '',\n formatter: getShortMoney,\n });\n\n return (\n <div className={style.year_chart_month}>\n <Header month={month}/>\n <Body\n month={month}\n maxCommits={max.commits}\n showEvents={showEvents}\n />\n {!hideMoney && (\n <MonthTotal\n title=\"$\"\n options={moneyChart}\n value={month.money}\n />\n )}\n <MonthTotal\n title=\"☑\"\n options={tasksChart}\n value={month.tasks}\n />\n </div>\n );\n}\n\nMonth.defaultProps = {\n hideMoney: false,\n};\n\nexport default Month;\n","import React from 'react';\n\nimport MinMaxCounter from 'ts/helpers/DataGrip/components/counter';\n\nimport getCommitsByMonth from './helpers/getCommitsByMonth';\nimport getAuthorByDate from './helpers/getAuthorByDate';\nimport Month from './components/Month';\nimport IMonth from './interfaces/Month';\n\ninterface IYearChartProps {\n maxCommits: number;\n showEvents?: boolean;\n wordDays: any[];\n authors: any[];\n}\n\nfunction YearChart({\n maxCommits = 100,\n showEvents = true,\n wordDays = [],\n authors = [],\n}: IYearChartProps): React.ReactElement | null {\n if (!wordDays || !wordDays.length) return null;\n\n const authorsByDate = getAuthorByDate(authors);\n const months = getCommitsByMonth(wordDays, authorsByDate);\n const hideMoney = authors?.length === 1;\n\n const max = {\n tasks: new MinMaxCounter(),\n money: new MinMaxCounter(),\n };\n\n months.forEach((month: IMonth) => {\n max.tasks.update(month.tasks);\n max.money.update(month.money);\n });\n\n const elements = months.map((month: IMonth) => (\n <Month\n key={month.id}\n max={{\n tasks: max.tasks.max,\n money: max.money.max,\n commits: maxCommits,\n }}\n month={month}\n showEvents={showEvents}\n hideMoney={hideMoney}\n />\n ));\n\n return (\n <>\n {elements}\n </>\n );\n}\n\nYearChart.defaultProps = {\n showEvents: true,\n};\n\nexport default YearChart;\n","import IHashMap from 'ts/interfaces/HashMap';\n\nexport default function getAuthorByDate(authors: any[]) {\n const firstDay: IHashMap<any> = {};\n const lastDay: IHashMap<any> = {};\n\n authors.forEach((author: any) => {\n if (author.isStaff) return;\n\n const firstKey = `${author.firstCommit.month}-${author.firstCommit.year}`;\n if (!firstDay[firstKey]) firstDay[firstKey] = {};\n firstDay[firstKey][author.firstCommit.dayInMonth] = author;\n\n const lastKey = `${author.lastCommit.month}-${author.lastCommit.year}`;\n if (!lastDay[lastKey]) lastDay[lastKey] = {};\n lastDay[lastKey][author.lastCommit.dayInMonth] = author;\n });\n\n return { firstDay, lastDay };\n}\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport localization from 'ts/helpers/Localization';\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\nimport YearChart from 'ts/components/YearChart';\nimport Title from 'ts/components/Title';\n\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\nimport PageWrapper from 'ts/components/Page/wrapper';\n\nconst Month = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement => {\n const authors = dataGripStore.dataGrip.author.statistic;\n const statistic = dataGripStore.dataGrip.timestamp.statistic;\n const max = statistic.commitsByTimestampCounter.max;\n const recommendations = dataGripStore.dataGrip.recommendations.team?.byTimestamp;\n\n return (\n <>\n {mode !== 'print' && (\n <RecommendationsWrapper recommendations={recommendations}/>\n )}\n <Title title={localization.get('Календарь работы по проекту')}/>\n <PageWrapper template=\"table\">\n <YearChart\n maxCommits={max}\n authors={authors}\n wordDays={statistic.allCommitsByTimestamp}\n />\n </PageWrapper>\n </>\n );\n});\n\nexport default Month;\n","export default {\n GOOD: 0,\n NORMAL: 1,\n BAD: 2,\n};\n","import ACHIEVEMENT_TYPE from './type';\n\nexport default {\n // готово\n commitsAfter1500: ['Сова', '70% коммитов после 15:00', ACHIEVEMENT_TYPE.NORMAL],\n commitsBefore1500: ['Ранняя пташка', '70% коммитов до обеда', ACHIEVEMENT_TYPE.NORMAL],\n workEveryTime: ['Раб божий', 'есть коммит на каждый час суток', ACHIEVEMENT_TYPE.BAD],\n workNotWork: ['Стрельба холостыми', 'коммиты есть, а закрытых задач нет', ACHIEVEMENT_TYPE.BAD],\n userNotWork: ['Залётный', 'это не его основной проект', ACHIEVEMENT_TYPE.NORMAL],\n userIsDied: ['Мёртвая душа', 'работал, но уволился', ACHIEVEMENT_TYPE.NORMAL],\n lessTasks: ['Зашел и вышел', 'меньше всего закрытых задач', ACHIEVEMENT_TYPE.BAD],\n moreTasks: ['Батя грит малаца', 'больше всего закрытых задач', ACHIEVEMENT_TYPE.GOOD],\n everyMessageLong: ['Мастер красноречия', 'стабильно самые длинные подписи коммитов', ACHIEVEMENT_TYPE.NORMAL],\n everyMessageShort: ['Болтун находка для шпиона', 'стабильно, самые короткие подписи коммитов', ACHIEVEMENT_TYPE.BAD],\n shortestName: ['Размер не главное', 'самое короткое имя', ACHIEVEMENT_TYPE.NORMAL], // нет картинки\n longestName: ['Азим Азиз Иль Ам Кадир Имран II', 'самое длинное имя', ACHIEVEMENT_TYPE.NORMAL],\n moreCommits: ['Мастер бекапов', 'больше всего коммитов', ACHIEVEMENT_TYPE.NORMAL],\n lessCommits: ['Редко но метко', 'меньше всего коммитов', ACHIEVEMENT_TYPE.BAD],\n oneCommitOneTask: ['Точно в цель', 'в среднем один коммит на задачу', ACHIEVEMENT_TYPE.NORMAL],\n moreLazyDays: ['Мысленно я с вами', 'больше всего дней без коммитов', ACHIEVEMENT_TYPE.BAD],\n lessLazyDays: ['Папа Карло', 'меньше всего дней без коммитов', ACHIEVEMENT_TYPE.GOOD],\n zeroLazyDays: ['Ни единого разрыва', 'ни одного дня без коммитов', ACHIEVEMENT_TYPE.GOOD],\n moreWorkDays: ['Ценный работник', 'больше всего рабочих дней', ACHIEVEMENT_TYPE.GOOD],\n moreScopes: ['Стартапер', 'сделал больше всего фичей', ACHIEVEMENT_TYPE.GOOD], // нет картинки\n lessScopes: ['Щегол', 'сделал меньше всего фичей', ACHIEVEMENT_TYPE.BAD],\n moreDaysForTask: ['Улитка на склоне', 'работа по задачам идёт медленнее чем у остальных', ACHIEVEMENT_TYPE.BAD],\n more2DaysForTask: ['Cо слоу', 'больше двух дней на задачу', ACHIEVEMENT_TYPE.BAD],\n moreDaysInProject: ['Старожил', 'больше всего дней на проекте', ACHIEVEMENT_TYPE.GOOD],\n lessDaysInProject: ['А это кто?', 'меньше всего дней на проекте', ACHIEVEMENT_TYPE.NORMAL],\n more90DaysInProject: ['Добро пожаловать', 'не уволили на испытательном', ACHIEVEMENT_TYPE.GOOD],\n lessDaysForTask: ['Скорострел', 'одна задача занимает меньше дня', ACHIEVEMENT_TYPE.GOOD],\n adam: ['Адам', 'первый стабильный сотрудник на проекте', ACHIEVEMENT_TYPE.NORMAL],\n more666DaysInProject: ['Чёрт', 'отработал 666 дней на проекте', ACHIEVEMENT_TYPE.GOOD],\n more777DaysInProject: ['Азино 3 топора', 'отработал 777 дней на проекте', ACHIEVEMENT_TYPE.GOOD],\n\n moreRefactoring: ['Выпускающий редактор', 'сделал больше всех меток «рефакторинг»', ACHIEVEMENT_TYPE.GOOD],\n // нет картинки\n longestMessage: ['А разговоров то было...', 'самая длинная подпись коммита за все время', ACHIEVEMENT_TYPE.NORMAL],\n moreTasksInDay: ['Спиди-гонщик', 'рекорд по количеству закрытых задач в день', ACHIEVEMENT_TYPE.GOOD],\n hasCommitFrom0to7: ['Ночной дозор', 'есть коммит на каждый час ночи', ACHIEVEMENT_TYPE.BAD],\n noCommitOnDay: ['Технический перерыв', 'есть определенный час и день в рабочее время в который никогда не комитит', ACHIEVEMENT_TYPE.NORMAL],\n hasCommitEveryTime: ['Умер на работе', 'есть коммит на час каждого дня (включая выходные)', ACHIEVEMENT_TYPE.BAD],\n commitsAfter1800: ['Делу время', 'нет ни одного коммита после 18:00', ACHIEVEMENT_TYPE.GOOD],\n more1488DaysInProject: ['им. Максима Марцинкевича', 'отработал 1488 дней на проекте', ACHIEVEMENT_TYPE.GOOD],\n taskNumber300: ['Знаком с трактористом', 'первый взял в работу задачу с номером 300', ACHIEVEMENT_TYPE.NORMAL],\n\n // нет кода\n // moreFix: ['Bug hunter', 'больше всего закрытых багов', ACHIEVEMENT_TYPE.GOOD],\n lessWorkDays: ['Дальше без меня', 'меньше всего рабочих дней', ACHIEVEMENT_TYPE.BAD],\n moreCreateCode: ['Созидатель', 'склонен больше остальных добавлять код', ACHIEVEMENT_TYPE.NORMAL],\n moreRemoveCode: ['Разрушитель', 'склонен больше остальных удалять код', ACHIEVEMENT_TYPE.NORMAL],\n moreChangeCode: ['Реформатор', 'склонен больше остальных изменять код', ACHIEVEMENT_TYPE.NORMAL], // есть картинка\n moreStyle: ['Полиция моды', 'склонен больше остальных изменять CSS', ACHIEVEMENT_TYPE.GOOD],\n moreOnHoliday: ['Нет жизни', 'относительно много коммитов в нерабочее время', ACHIEVEMENT_TYPE.BAD],\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"achievement_container\":\"styles_achievement_container__+OdlC\",\"achievement\":\"styles_achievement__KB0AO\",\"achievement_icon_container\":\"styles_achievement_icon_container__0xQ3d\",\"achievement_icon\":\"styles_achievement_icon__YbtA0\",\"achievement_icon_svg\":\"styles_achievement_icon_svg__1pahq\",\"achievement_title\":\"styles_achievement_title__AUtfn\",\"achievement_description\":\"styles_achievement_description__FkUIC\",\"achievement_good\":\"styles_achievement_good__12XCY\",\"achievement_bad\":\"styles_achievement_bad__BmbF0\"};","import React from 'react';\n\nimport ALL_ACHIEVEMENTS from 'ts/helpers/achievement/constants/list';\n\nimport style from '../styles/index.module.scss';\n\ninterface IAchievementProps {\n type: string;\n}\n\nfunction Achievement({ type }: IAchievementProps) {\n if (!ALL_ACHIEVEMENTS[type]) return null;\n\n const [title, description, statusIndex] = ALL_ACHIEVEMENTS[type];\n const className = [\n style.achievement_good,\n style.achievement_middle,\n style.achievement_bad,\n ][statusIndex];\n\n return (\n <div className={style.achievement}>\n <div className={style.achievement_icon_container}>\n <div className={`${style.achievement_icon} ${className || ''}`}>\n <img\n className={style.achievement_icon_svg}\n src={`./assets/achievements/${type}.svg`}\n />\n </div>\n </div>\n <div className={style.achievement_title}>\n {title}\n </div>\n <div className={style.achievement_description}>\n {description}\n </div>\n </div>\n );\n}\n\nexport default Achievement;\n","// extracted by mini-css-extract-plugin\nexport default {\"extension\":\"styles_extension__7+ANo\",\"extension_icon\":\"styles_extension_icon__xeEFA\",\"extension_line\":\"styles_extension_line__bhPZA\",\"extension_line_title\":\"styles_extension_line_title__Bd2sv\",\"extension_line_value\":\"styles_extension_line_value__Fov1I\"};","import React from 'react';\n\nimport style from '../styles/index.module.scss';\n\ninterface IExtensionIconProps {\n title: string;\n}\n\nfunction ExtensionIcon({\n title,\n}: IExtensionIconProps): React.ReactElement | null {\n return (\n <div className={style.extension_icon}>\n {title || ''}\n </div>\n );\n}\n\nexport default ExtensionIcon;\n","import React from 'react';\n\nimport style from '../styles/index.module.scss';\n\ninterface IExtensionLineProps {\n title: string;\n value: any;\n}\n\nfunction ExtensionLine({\n title,\n value,\n}: IExtensionLineProps): React.ReactElement | null {\n if (!value || !title) return null;\n\n return (\n <div className={style.extension_line}>\n <div className={style.extension_line_title}>\n {title || ''}\n </div>\n <div className={style.extension_line_value}>\n {value || ''}\n </div>\n </div>\n );\n}\n\nexport default ExtensionLine;\n","import React from 'react';\n\nimport Icon from './components/Icon';\nimport Line from './components/Line';\nimport style from './styles/index.module.scss';\n\ninterface IExtensionProps {\n statistic: any;\n}\n\nfunction Extension({\n statistic,\n}: IExtensionProps): React.ReactElement | null {\n if (!statistic) return null;\n\n const getValue = (more: any) => `${more.author} (${more.percent.toFixed(1)}%)`;\n\n return (\n <div className={style.extension}>\n <Icon title={statistic.extension} />\n <h6>\n Чаще всего\n </h6>\n <Line\n title=\"Добавляет:\"\n value={getValue(statistic.more.added)}\n />\n <Line\n title=\"Меняет:\"\n value={getValue(statistic.more.changes)}\n />\n <Line\n title=\"Удаляет:\"\n value={getValue(statistic.more.removed)}\n />\n </div>\n );\n}\n\nExtension.defaultProps = {\n rows: [],\n};\n\nexport default Extension;\n","// extracted by mini-css-extract-plugin\nexport default {\"races\":\"Races_races__iGwb4\",\"races_track\":\"Races_races_track__BTbit\",\"races_track_car\":\"Races_races_track_car__Dbi2B\",\"races_track_car_title\":\"Races_races_track_car_title__w5QQU\",\"races_track_info\":\"Races_races_track_info__pxgvV\",\"races_track_animation\":\"Races_races_track_animation__sYl4E\",\"races_button\":\"Races_races_button__DUDTm\"};","import React from 'react';\n\nimport style from './index.module.scss';\n\ninterface IInfoProps {\n title: string;\n duration: number;\n}\n\nfunction Info({\n title,\n duration,\n}: IInfoProps): React.ReactElement | null {\n return (\n <div\n className={style.races_track_info}\n style={{\n animationDelay: `${duration + 1}s`,\n }}\n >\n {title}\n </div>\n );\n}\n\nexport default Info;\n","import React, { useEffect, useState } from 'react';\n\nimport { shuffle } from './index';\nimport Info from './Info';\nimport style from './index.module.scss';\n\nconst DURATION = {\n MIN: 5,\n BASE: 10,\n};\n\nconst animations = [\n 'ease',\n 'ease-in',\n 'ease-out',\n 'ease-in-out',\n 'linear',\n 'cubic-bezier(0.1, 0.7, 1, 0.1)',\n];\n\nfunction getRandom(max: number) {\n return Math.floor(Math.random() * (max - 0 + 1)) + 0;\n}\n\ninterface ITrackProps {\n title: string;\n speed: number;\n type?: string;\n canStart?: boolean;\n}\n\nfunction Track({\n title,\n speed,\n type,\n canStart,\n}: ITrackProps): React.ReactElement | null {\n const modeIndex = getRandom(animations.length - 1);\n const [mode] = useState<string>(animations[modeIndex]);\n\n useEffect(() => {\n shuffle(animations);\n }, []);\n\n if (!title) return null;\n const duration = DURATION.MIN + (DURATION.BASE * (1 - speed)) * 3;\n const classForMove = canStart ? style.races_track_animation : '';\n\n return (\n <div className={`${style.races_track} ${type || ''}`}>\n {canStart && (\n <Info\n title={title}\n duration={duration}\n />\n )}\n <div\n className={`${style.races_track_car} ${type || ''} ${classForMove || ''}`}\n style={{\n animationTimingFunction: mode,\n animationDuration: `${duration}s`,\n }}\n >\n <div className={`${style.races_track_car_title} ${type || ''}`}>\n {title}\n </div>\n </div>\n </div>\n );\n}\n\nTrack.defaultProps = {\n type: '',\n canStart: false,\n};\n\nexport default Track;\n","import React, { useState } from 'react';\n\nimport UiKitButton from 'ts/components/UiKit/components/Button';\n\nimport Track from './Track';\nimport style from './index.module.scss';\n\nexport function shuffle(items: any[]) {\n // @ts-ignore\n for (let j, x, i = items.length; i; j = parseInt(Math.random() * i), x = items[--i], items[i] = items[j], items[j] = x) {}\n return items;\n}\n\ninterface IRacesProps {\n tracks: {\n title: string,\n speed: number,\n type?: string,\n }[];\n}\n\nfunction Races({\n tracks,\n}: IRacesProps): React.ReactElement | null {\n const [showAnimation, setShowAnimation] = useState<boolean>(false);\n\n if (!tracks.length) return null;\n\n const lines = shuffle(tracks).map((track: any) => {\n return (\n <Track\n key={track.title}\n title={track.title}\n speed={track.speed}\n canStart={showAnimation}\n />\n );\n });\n\n return (\n <div className={style.races}>\n {!showAnimation && (\n <UiKitButton\n className={style.races_button}\n onClick={() => {\n setShowAnimation(true);\n }}\n >\n Поехали\n </UiKitButton>\n )}\n {lines}\n </div>\n );\n}\n\nexport default Races;\n","// extracted by mini-css-extract-plugin\nexport default {\"tv100and1_row\":\"styles_tv100and1_row__R2iIo\",\"tv100and1_cell_title\":\"styles_tv100and1_cell_title__qttNL\",\"tv100and1_cell_value\":\"styles_tv100and1_cell_value__0-7pU\",\"tv100and1_cell_chart\":\"styles_tv100and1_cell_chart__IYzSh\",\"tv100and1_button\":\"styles_tv100and1_button__9oEjD\",\"animation\":\"styles_animation__99myn\",\"tv_100_and_1\":\"styles_tv_100_and_1__pyFQJ\"};","import React, { useState } from 'react';\n\nimport style from '../styles/index.module.scss';\n\ninterface ITitleProps {\n title: string,\n}\n\nfunction Title({ title }: ITitleProps): React.ReactElement | null {\n const [show, setShow] = useState<boolean>(false);\n\n return (\n <div className={`${style.tv100and1_cell_title}`}>\n {title}\n <button\n className={`${style.tv100and1_button} ${show ? style.animation : ''}`}\n onClick={() => {\n setShow(true);\n }}\n />\n </div>\n );\n}\n\nexport default Title;\n","import React from 'react';\n\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\n\nimport Title from './components/Title';\nimport style from './styles/index.module.scss';\n\ninterface ITv100And1Props {\n rows: {\n title: string,\n value: number,\n }[];\n}\n\nfunction Tv100And1({\n rows = [],\n}: ITv100And1Props): React.ReactElement | null {\n if (!rows || !rows.length) return null;\n\n const chartOptions = getOptions({ max: rows[0].value, suffix: 'сиволов' });\n const formattedRows = rows.map((row: any) => (\n <div\n key={row.title}\n className={`${style.tv100and1_row}`}\n >\n <Title title={row.title} />\n <div className={`${style.tv100and1_cell_value}`}>\n {row.value}\n </div>\n <div className={`${style.tv100and1_cell_chart}`}>\n <LineChart\n options={chartOptions}\n value={row.value}\n />\n </div>\n </div>\n ));\n\n return (\n <div className={`${style.tv100and1}`}>\n {formattedRows}\n </div>\n );\n}\n\nTv100And1.defaultProps = {\n rows: [],\n};\n\nexport default Tv100And1;\n","import ICommit from 'ts/interfaces/Commit';\nimport dataGrip from 'ts/helpers/DataGrip';\n\nimport ALL_ACHIEVEMENTS from './constants/list';\nimport byCompetition from './byCompetition';\n\nexport default function getAchievementByAuthor(author: string) {\n const statistic = dataGrip.author.statisticByName[author];\n const getList = dataGrip.get.getsByAuthor[author];\n if (!statistic) return;\n const list = byCompetition.get(author);\n const commitByHours = statistic.commitsByHour;\n\n if (statistic.commits > 20) {\n // Сова - 70% коммитов после 15:00\n if (statistic.hours.filter((hour: number) => hour >= 15).length > (statistic.commits * 0.7)) list.push('commitsAfter1500');\n // Раняя пташка - 70% коммитов до обеда\n if (statistic.hours.filter((hour: number) => hour <= 13).length > (statistic.commits * 0.7)) list.push('commitsBefore1500');\n }\n\n if (statistic.isStaff) {\n // Залётный - это не его основной проект\n list.push('userNotWork');\n } else {\n // Ночной дозор\n if (commitByHours.slice(0, 7).every((commits: number) => commits)) list.push('hasCommitFrom0to7');\n // Технический перерыв\n if (commitByHours.slice(10, 18).some((commits: number) => !commits)) list.push('noCommitOnDay');\n // Делу время - ни одного коммита после 18:00\n if (commitByHours.slice(0, 5).every((commits: number) => !commits)\n && commitByHours.slice(18, 24).every((commits: number) => !commits)) list.push('commitsAfter1800');\n // Раб божий - есть коммит на каждый час суток\n if (commitByHours.every((commits: number) => commits)) list.push('workEveryTime');\n // Умер на работе\n if (statistic.commitsByDayAndHour.every((day: any) => day.every((v: any) => v))) list.push('hasCommitEveryTime');\n\n // Мёртвая душа - работал, но уволился\n if (statistic.isDismissed) list.push('userIsDied');\n // Скорострел - меньше дня на задачу\n if (statistic.daysForTask < 1) list.push('lessDaysForTask');\n // Со слоу - больше двух дней на задачу (?)\n if (statistic.daysForTask > 2) list.push('more2DaysForTask');\n // Добро пожаловать - не уволили в течении трех месяцев с начала работы\n if (statistic.allDaysInProject > 90) list.push('more90DaysInProject');\n // Чёрт - отработал 666 дней на проекте\n if (statistic.allDaysInProject > 666) list.push('more666DaysInProject');\n // Азино - отработал 777 дней на проекте\n if (statistic.allDaysInProject > 777) list.push('more777DaysInProject');\n // Тесак - отработал 1488 дней на проекте\n if (statistic.allDaysInProject > 1488) list.push('more1488DaysInProject');\n }\n // Ни единого разрыва - 0 дней без коммитов\n if (statistic.lazyDays === 0) list.push('zeroLazyDays');\n // Стрельба холостыми - коммиты есть, а закрытых задач нет\n if (statistic.commits > 0 && statistic.tasks === 0) list.push('workNotWork');\n // сказал как отрезал - в среднем 1 коммит на таск\n if (statistic.tasks / statistic.commits) list.push('oneCommitOneTask');\n\n if (getList?.some((commit: ICommit) => commit.taskNumber === '300')) list.push('taskNumber300');\n\n return list.reduce((acc: any, type: string) => {\n const index = ALL_ACHIEVEMENTS[type][2];\n acc[index].push(type);\n return acc;\n }, [[], [], []]);\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"quiz_achievements\":\"quiz_quiz_achievements__+MW4G\"};","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport Achievement from 'ts/components/Achievement/components/Item';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport Extension from 'ts/components/Extension';\nimport Title from 'ts/components/Title';\nimport Races from 'ts/components/Races';\n\nimport Tv100And1 from 'ts/components/Tv100And1';\n\nimport ACHIEVEMENT_TYPE from 'ts/helpers/achievement/constants/type';\nimport getAchievementByAuthor from 'ts/helpers/achievement/byAuthor';\nimport Description from 'ts/components/Description';\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\n\nimport { getDate } from 'ts/helpers/formatter';\n\nimport style from '../styles/quiz.module.scss';\n\nconst Top = observer((): React.ReactElement => {\n const extensions = dataGripStore.dataGrip.extension.statistic\n .slice(0, 4).map((statistic: any) => {\n return (\n <Extension\n key={statistic.extension}\n statistic={statistic}\n />\n );\n });\n\n const tracksAuth = dataGripStore.dataGrip.author.statistic\n .filter((item: any) => !item.isStaff);\n const value = tracksAuth.map((statistic: any) => statistic.taskInDay);\n const max = Math.max(...value);\n const tracks = tracksAuth.map((statistic: any) => ({\n title: statistic.author,\n speed: statistic.taskInDay / max,\n }));\n\n const maxMessageLength = [...tracksAuth]\n .sort((a: any, b: any) => b.maxMessageLength - a.maxMessageLength)\n .map((item: any) => ({ title: item.author, value: item.maxMessageLength }));\n const chartMessageLength = getOptions({ max: maxMessageLength[0].value, suffix: 'сиволов' });\n\n const authors = dataGripStore.dataGrip.author.statistic.map((statistic: any) => {\n const achievements = getAchievementByAuthor(statistic.author);\n const from = getDate(statistic.firstCommit.date);\n const to = getDate(statistic.lastCommit.date);\n const achievementsList = [\n ...achievements[ACHIEVEMENT_TYPE.GOOD],\n ...achievements[ACHIEVEMENT_TYPE.NORMAL],\n ...achievements[ACHIEVEMENT_TYPE.BAD],\n ].map((type: string) => (\n <Achievement\n key={type}\n type={type}\n />\n ));\n\n return (\n <div key={statistic.author}>\n <Title title={statistic.author}/>\n <Description text={`Всего коммитов: ${statistic.commits}`} />\n <Description text={`Работал с ${from} по ${to} (${statistic.allDaysInProject} дней)`} />\n <PageWrapper>\n <div className={style.quiz_achievements}>\n {achievementsList}\n </div>\n </PageWrapper>\n </div>\n );\n });\n\n return (\n <>\n <Title title=\"Скорость закрытия задач\"/>\n <Races tracks={tracks} />\n\n <Title title=\"Максимальная длинна подписи коммита\"/>\n <PageWrapper template=\"table\">\n <Table rows={maxMessageLength}>\n <Column\n isFixed\n template={ColumnTypesEnum.STRING}\n title=\"Сотрудник\"\n properties=\"title\"\n width={260}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"value\"\n width={40}\n />\n <Column\n title=\"Количество символов\"\n properties=\"value\"\n template={(messageLength: number) => (\n <LineChart\n options={chartMessageLength}\n value={messageLength}\n />\n )}\n />\n </Table>\n </PageWrapper>\n\n <Tv100And1 rows={maxMessageLength} />\n\n {authors}\n <PageWrapper>\n <div style={{ whiteSpace: 'normal' }} >\n {extensions}\n </div>\n </PageWrapper>\n </>\n );\n});\n\nexport default Top;\n","import React from 'react';\n\nfunction PageBreak() {\n return (\n <div style={{\n pageBreakAfter: 'always',\n breakAfter: 'always',\n }}>\n {' '}\n </div>\n );\n}\n\nexport default PageBreak;\n","import React from 'react';\n\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport DataGripByPR from 'ts/helpers/DataGrip/components/pr';\n\nfunction Total() {\n const allPR = dataGripStore.dataGrip.pr.statistic;\n\n const workChart = DataGripByPR.getPRByGroups(allPR, 'workDays');\n const workChartOptions = getOptions({ order: workChart.order, limit: 3, suffix: 'задачь' });\n\n const delayChart = DataGripByPR.getPRByGroups(allPR, 'delayDays');\n const delayChartOptions = getOptions({ order: delayChart.order, limit: 3, suffix: 'PR' });\n\n const workDaysWeightedAverage = Math.round(workChart.weightedAverage);\n const delayDaysWeightedAverage = Math.round(delayChart.weightedAverage);\n const weightedAverage = workDaysWeightedAverage + delayDaysWeightedAverage;\n\n const weightedAverageChart = getOptions({ // @ts-ignore\n order: ['разработка', 'ожидание'],\n suffix: 'дней',\n });\n\n const rows = [\n {\n workDays: workChart.details,\n delayDays: delayChart.details,\n weightedAverage: weightedAverage.toFixed(1),\n weightedAverageDetails: {\n workDays: workDaysWeightedAverage,\n delayDays: delayDaysWeightedAverage,\n },\n },\n ];\n\n return (\n <Table rows={rows}>\n <Column\n title=\"Время разработки\"\n properties=\"workDays\"\n template={(details: any) => (\n <LineChart\n options={workChartOptions}\n details={details}\n />\n )}\n />\n <Column\n title=\"Время ожидания влития\"\n properties=\"delayDays\"\n template={(details: any) => (\n <LineChart\n options={delayChartOptions}\n details={details}\n />\n )}\n />\n <Column\n properties=\"weightedAverage\"\n template={ColumnTypesEnum.SHORT_NUMBER}\n />\n <Column\n title=\"Среднее время поставки (дни)\"\n properties=\"weightedAverageDetails\"\n width={300}\n template={(item: any) => (\n <LineChart\n options={weightedAverageChart}\n details={{\n 'разработка': item.workDays,\n 'ожидание': item.delayDays,\n }}\n />\n )}\n />\n </Table>\n );\n}\n\nexport default Total;\n","import React from 'react';\n\nimport { IPagination } from 'ts/interfaces/Pagination';\n\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport { getMax } from 'ts/pages/Common/helpers/getMax';\n\nconst TITLES = {\n DAY: 'день',\n THREE_DAY: 'три дня',\n WEEK: 'неделя',\n TWO_WEEK: 'две недели',\n MONTH: 'месяц',\n MORE: 'более',\n};\nconst order = Object.values(TITLES);\n\ninterface IAuthorsProps {\n response?: IPagination<any>;\n updateSort?: Function;\n}\n\nfunction Authors({ response, updateSort }: IAuthorsProps) {\n if (!response) return null;\n\n const timeChart = getOptions({ order, limit: 3 });\n const weightedAverageChart = getOptions({\n max: getMax(response, 'weightedAverage'),\n order: ['разработка', 'ожидание'],\n suffix: 'дней',\n });\n\n return (\n <Table\n rows={response.content}\n sort={response.sort}\n updateSort={updateSort}\n >\n <Column\n isSortable\n template={ColumnTypesEnum.STRING}\n title=\"Сотрудник\"\n properties=\"author\"\n width={250}\n />\n <Column\n title=\"Время разработки\"\n properties=\"workDays\"\n template={(details: any) => (\n <LineChart\n options={timeChart}\n details={details}\n />\n )}\n />\n <Column\n title=\"Время ожидания влития\"\n properties=\"delayDays\"\n template={(details: any) => (\n <LineChart\n options={timeChart}\n details={details}\n />\n )}\n />\n <Column\n properties=\"weightedAverage\"\n template={ColumnTypesEnum.SHORT_NUMBER}\n />\n <Column\n title=\"Среднее время поставки (дни)\"\n properties=\"weightedAverageDetails\"\n width={300}\n template={(item: any, row: any) => (\n <LineChart\n options={weightedAverageChart}\n value={row.weightedAverage}\n details={{\n 'разработка': item.workDays,\n 'ожидание': item.delayDays,\n }}\n />\n )}\n />\n </Table>\n );\n}\n\nAuthors.defaultProps = {\n response: undefined,\n};\n\nexport default Authors;\n","import React from 'react';\n\nimport { IPagination } from 'ts/interfaces/Pagination';\nimport dataGripStore from 'ts/store/DataGrip';\nimport userSettings from 'ts/store/UserSettings';\n\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport ExternalLink from 'ts/components/ExternalLink';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\n\nimport { getMax } from 'ts/pages/Common/helpers/getMax';\nimport { getDate } from 'ts/helpers/formatter';\n\ninterface IPRViewProps {\n mode?: string;\n response?: IPagination<any>;\n updateSort?: Function;\n}\n\nfunction AllPR({\n mode,\n response,\n updateSort,\n}: IPRViewProps) {\n if (!response) return null;\n\n const workChart = getOptions({ max: getMax(response, 'workDays') });\n const delayChart = getOptions({ max: getMax(response, 'delayDays') });\n const commitsChart = getOptions({\n max: getMax(response, 'commits'),\n order: dataGripStore.dataGrip.author.list,\n });\n\n return (\n <Table\n rows={response.content}\n sort={response.sort}\n updateSort={updateSort}\n >\n {mode === 'print' ? (\n <Column\n isSortable\n title=\"Задача\"\n properties=\"task\"\n width={120}\n />\n ) : (\n <Column\n isSortable\n template={(value: string, row: any) => {\n return (\n <>\n <ExternalLink\n link={`${userSettings?.settings?.linksPrefix?.task || '/'}${value}`}\n text={value}\n />\n <ExternalLink\n link={`${userSettings?.settings?.linksPrefix?.pr || '/'}${row?.prId}`}\n text=\"PR\"\n />\n </>\n );\n }}\n title=\"Задача\"\n properties=\"task\"\n width={120}\n />\n )}\n <Column\n isSortable\n template={ColumnTypesEnum.STRING}\n title=\"Первый коммит\"\n properties=\"beginTaskTime\"\n formatter={getDate}\n width={130}\n />\n <Column\n isSortable\n template={ColumnTypesEnum.STRING}\n title=\"Последний\"\n properties=\"endTaskTime\"\n formatter={getDate}\n width={130}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"workDays\"\n width={40}\n />\n <Column\n isSortable\n title=\"Дней в работе\"\n properties=\"workDays\"\n minWidth={100}\n template={(value: any) => (\n <LineChart\n options={workChart}\n value={value}\n />\n )}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"commits\"\n width={40}\n />\n <Column\n isSortable\n title=\"Коммиты\"\n properties=\"commitsByAuthors\"\n minWidth={100}\n template={(details: any) => (\n <LineChart\n options={commitsChart}\n details={details}\n />\n )}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"delayDays\"\n width={40}\n />\n <Column\n isSortable\n title=\"Дней ожидания влития\"\n properties=\"delayDays\"\n minWidth={200}\n template={(value: any) => (\n <LineChart\n options={delayChart}\n value={value}\n />\n )}\n />\n <Column\n isSortable\n template={ColumnTypesEnum.STRING}\n title=\"Дата влития\"\n properties=\"milliseconds\"\n formatter={getDate}\n width={130}\n />\n <Column\n isSortable\n template={ColumnTypesEnum.STRING}\n title=\"Влил\"\n properties=\"author\"\n width={250}\n />\n </Table>\n );\n}\n\nAllPR.defaultProps = {\n mode: undefined,\n response: undefined,\n};\n\nexport default AllPR;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport ISort from 'ts/interfaces/Sort';\nimport { IPaginationRequest } from 'ts/interfaces/Pagination';\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport Description from 'ts/components/Description';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport NothingFound from 'ts/components/NothingFound';\nimport Title from 'ts/components/Title';\nimport PageBreak from 'ts/pages/Common/components/PageBreak';\n\nimport Total from './Total';\nimport Authors from './Authors';\nimport All from './All';\n\nconst PR = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement | null => {\n const allPR = dataGripStore.dataGrip.pr.statistic;\n const rows = allPR.filter((item: any) => item.delayDays > 3);\n if (rows?.length < 2) return mode !== 'print' ? (<NothingFound />) : null;\n\n const PRbyName = dataGripStore.dataGrip.pr.statisticByName;\n const authorsStat = Object.values(PRbyName);\n\n return (\n <>\n <Title title=\"Время потраченное на одну задачу\"/>\n <PageWrapper template=\"table\">\n <Total/>\n </PageWrapper>\n\n <PageWrapper>\n <PageColumn>\n <Description\n text=\"*Время разработки* это разница времени от первого до последнего коммита по задаче. Не важно были перерывы в несколько дней между коммитами или нет. Сам факт какого-либо коммита увеличивает время.\"\n />\n <Description\n text=\"*Время ожидания* это время между последним коммитом и влитием кода. Оно показывает фактический простой в ожидании чего-либо.\"\n />\n </PageColumn>\n <PageColumn>\n <Description\n text=\"*Зачем отображать время разработки* без разбивки на кодинг и код-ревью? Затем, чтобы показать бизнесу фактическое время поставки кода. Ожидание тестирования, замечания на ревью, проблемы DevOps и прочие несовершенства процесса, как раз уже заложены в этот срок.\"\n />\n </PageColumn>\n </PageWrapper>\n <br/>\n <br/>\n\n <Title title=\"Статистика по сотрудникам\"/>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({\n content: authorsStat, pagination, sort, mode,\n })}\n >\n <Authors/>\n <Pagination/>\n </DataLoader>\n </PageWrapper>\n\n <PageBreak/>\n <Title title=\"Длительное ожидание влития\"/>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({\n content: rows,\n pagination: mode === 'print'\n ? { size: 20 }\n : pagination,\n sort,\n })}\n >\n <All mode={mode} />\n {mode !== 'print' && <Pagination/>}\n </DataLoader>\n </PageWrapper>\n </>\n );\n});\n\nexport default PR;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport PageBreak from 'ts/pages/Common/components/PageBreak';\n\nimport Author from './Author';\nimport Hours from './Hours';\nimport PopularWords from './PopularWords';\nimport Scope from './Scope';\nimport Total from './Total';\nimport Type from './Type';\nimport Week from './Week';\nimport Month from './Month';\nimport Pr from './PR';\n\nconst Print = observer((): React.ReactElement => {\n return (\n <>\n <Total/>\n <PageBreak/>\n <Scope mode=\"print\"/>\n <PageBreak/>\n <Author mode=\"print\"/>\n <PageBreak/>\n <Type mode=\"print\"/>\n <PageBreak/>\n <Pr mode=\"print\"/>\n <PageBreak/>\n <Week mode=\"print\"/>\n <PageBreak/>\n <Month mode=\"print\"/>\n <Hours/>\n <PopularWords/>\n </>\n );\n});\n\nexport default Print;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport Author from './components/Author';\nimport Commits from './components/Commits';\nimport Changes from './components/Changes';\nimport Hours from './components/Hours';\nimport PopularWords from './components/PopularWords';\nimport Scope from './components/Scope';\nimport Tempo from './components/Tempo';\nimport Total from './components/Total';\nimport Tree from './components/Tree';\nimport Type from './components/Type';\nimport Week from './components/Week';\nimport Month from './components/Month';\nimport Top from './components/Top';\nimport Pr from './components/PR';\nimport Print from './components/Print';\n\nfunction Team() {\n const { type, page } = useParams<any>();\n\n if (type && type !== 'team') return null;\n if (!type) return (<Total/>);\n\n return (\n <>\n {page === 'total' && <Total/>}\n {page === 'scope' && <Scope/>}\n {page === 'author' && <Author/>}\n {page === 'type' && <Type/>}\n {page === 'pr' && <Pr/>}\n {page === 'day' && <Tempo/>}\n {page === 'week' && <Week/>}\n {page === 'month' && <Month/>}\n {page === 'hours' && <Hours/>}\n {page === 'tree' && <Tree/>}\n {page === 'commits' && <Commits/>}\n {page === 'changes' && <Changes/>}\n {page === 'words' && <PopularWords/>}\n {page === 'top' && <Top/>}\n {page === 'print' && <Print/>}\n </>\n );\n}\n\nexport default Team;\n","// extracted by mini-css-extract-plugin\nexport default {\"user_select\":\"styles_user_select__gC2Qh\",\"user_name\":\"styles_user_name__oyiRL\"};","import React from 'react';\nimport { useNavigate, useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport UiKitSelect from 'ts/components/UiKit/components/Select';\nimport UiKitButton from 'ts/components/UiKit/components/Button';\n\nimport style from '../styles/index.module.scss';\n\nconst UserSelect = observer((): React.ReactElement => {\n const { type, page, userId } = useParams<any>();\n const navigate = useNavigate();\n\n const formattedUserId = parseInt(userId || '0', 10) || 0;\n const authors = dataGripStore.dataGrip.author.list;\n const options = authors.map((title: string, id: number) => ({ id, title }));\n\n return (\n <div className={style.user_select}>\n <UiKitButton\n type=\"second\"\n disabled={formattedUserId <= 0}\n onClick={() => {\n navigate(`/${type}/${page}/${formattedUserId - 1}`);\n }}\n >\n «\n </UiKitButton>\n <UiKitSelect\n value={formattedUserId}\n options={options}\n className={style.user_name}\n onChange={(newUserId: string) => {\n navigate(`/${type}/${page}/${newUserId}`);\n }}\n />\n <UiKitButton\n type=\"second\"\n disabled={formattedUserId >= (authors.length - 1)}\n onClick={() => {\n navigate(`/${type}/${page}/${formattedUserId + 1}`);\n }}\n >\n »\n </UiKitButton>\n </div>\n );\n});\n\nexport default UserSelect;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport CommonChanges from 'ts/pages/Common/components/Changes';\n\nconst Changes = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const byTimestamp = dataGripStore.dataGrip.timestamp.statisticByAuthor[statistic.author];\n return (\n <CommonChanges statistic={byTimestamp} />\n );\n});\n\nexport default Changes;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport CommonCommits from 'ts/pages/Common/components/Commits';\n\nconst Commits = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const byTimestamp = dataGripStore.dataGrip.timestamp.statisticByAuthor[statistic.author];\n return (\n <CommonCommits statistic={byTimestamp} />\n );\n});\n\nexport default Commits;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport HoursChart from 'ts/components/HoursChart';\nimport Title from 'ts/components/Title';\n\nimport PageWrapper from 'ts/components/Page/wrapper';\n\nconst Hours = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n\n return (\n <>\n <Title title=\"Распределение коммитов в течении каждого дня недели\"/>\n <PageWrapper template=\"table\">\n <HoursChart statistic={statistic} />\n </PageWrapper>\n </>\n );\n});\n\nexport default Hours;\n","import React from 'react';\n\nimport style from '../index.module.scss';\n\nfunction IsStaff() {\n return (\n <>\n <p className={style.nothing_found_title}>\n Нет данных для этого сотрудника\n </p>\n <p className={style.nothing_found_text}>\n Он вносил правки не каждый рабочий день и получил статус Помошник.\n Работой сотрудников с таким статусом по данному проекту можно пренебречь, т.к. его влад на общем фоне незначителен.\n </p>\n <p className={style.nothing_found_text}>\n Поэтому система не рассчитывает для него ряд показателей.\n Если это ошибка и данного сотрудника надо рассчитать как обычного, перейдите в раздел Настройки и измените его тип.\n </p>\n </>\n );\n}\n\nexport default IsStaff;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport { getShortMoney } from 'ts/helpers/formatter';\nimport localization from 'ts/helpers/Localization';\n\nimport CardWithIcon from 'ts/components/CardWithIcon';\nimport NothingFound from 'ts/components/NothingFound';\nimport IsStaff from 'ts/components/NothingFound/components/IsStaff';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport Title from 'ts/components/Title';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nconst Money = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const byTimestamp = dataGripStore.dataGrip.timestamp.statisticByAuthor[statistic.author];\n const taskNumber = statistic.tasks.length;\n\n if (statistic.isStaff) {\n return (\n <NothingFound>\n <IsStaff />\n </NothingFound>\n );\n }\n\n return (\n <PageWrapper>\n <PageColumn>\n <Title title={localization.get('За всё время')}/>\n <div>\n <CardWithIcon\n value={getShortMoney(statistic.moneyAll)}\n icon=\"./assets/cards/money_total.png\"\n title=\"получил\"\n description=\"Предполагаемая сумма зп с проекта (см. настройки)\"\n />\n <CardWithIcon\n value={getShortMoney(statistic.moneyWorked)}\n icon=\"./assets/cards/money_work.png\"\n title=\"отработал\"\n description=\"Фактически отработанные дни умноженные на среднюю зп\"\n />\n <CardWithIcon\n value={getShortMoney(statistic.moneyLosses)}\n icon=\"./assets/cards/money_lazy.png\"\n title=\"возможная переплата\"\n description=\"Дни без коммитов умноженные на среднюю зп\"\n />\n <CardWithIcon\n value={getShortMoney(byTimestamp.weekendPayment)}\n icon=\"./assets/cards/money_holidays.png\"\n title={localization.get('page.team.total.weekendPayment.title')}\n description={localization.get('page.team.total.weekendPayment.description')}\n />\n </div>\n </PageColumn>\n <PageColumn>\n <Title title={localization.get('Средняя стоимость')}/>\n {taskNumber === 0 ? (\n <NothingFound />\n ) : (\n <div>\n <CardWithIcon\n long\n value={taskNumber\n ? getShortMoney(statistic.moneyWorked / taskNumber, 0)\n : null}\n icon=\"./assets/cards/money_task.png\"\n title=\"задача\"\n description=\"Количество закрытых задач к стоимости дня\"\n />\n <CardWithIcon\n long\n value={taskNumber\n ? getShortMoney(statistic.moneyWorked / statistic.commits, 0)\n : null}\n icon=\"./assets/cards/money_work.png\"\n title=\"коммит\"\n description=\"Количество коммитов к стоимости рабочего дня\"\n />\n </div>\n )}\n </PageColumn>\n </PageWrapper>\n );\n});\n\nexport default Money;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport CommonPopularWords from 'ts/pages/Common/components/PopularWords';\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\n\nconst PopularWords = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0].wordStatistics;\n return (\n <CommonPopularWords\n mode={mode}\n statistic={statistic}\n />\n );\n});\n\nexport default PopularWords;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport { getShortNumber } from 'ts/helpers/formatter';\nimport localization from 'ts/helpers/Localization';\n\nimport CardWithIcon from 'ts/components/CardWithIcon';\nimport NothingFound from 'ts/components/NothingFound';\nimport IsStaff from 'ts/components/NothingFound/components/IsStaff';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport Title from 'ts/components/Title';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nconst Speed = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const byTimestamp = dataGripStore.dataGrip.timestamp.statisticByAuthor[statistic.author];\n const taskNumber = statistic.tasks.length;\n\n if (statistic.isStaff) {\n return (\n <NothingFound>\n <IsStaff />\n </NothingFound>\n );\n }\n\n return (\n <PageWrapper>\n <PageColumn>\n <Title title={localization.get('Одна задача в среднем это')}/>\n {taskNumber === 0 ? (\n <NothingFound />\n ) : (\n <div>\n <CardWithIcon\n value={statistic.daysForTask && taskNumber\n ? getShortNumber(statistic.daysForTask)\n : null}\n icon=\"./assets/cards/month.png\"\n title=\"дней\"\n description=\"Имеются ввиду рабочие дни,<br>если коммиты правильно подписаны\"\n />\n <CardWithIcon\n value={taskNumber\n ? (statistic.commits / taskNumber).toFixed(1)\n : null}\n icon=\"./assets/cards/commits.png\"\n title=\"коммитов\"\n description=\"Отрезаны 10% максимальных и минимальных значений\"\n />\n <CardWithIcon\n value={taskNumber ? statistic.changesForTask : null}\n icon=\"./assets/cards/lines.png\"\n title=\"строк кода\"\n description=\"Отрезаны 10% максимальных и минимальных значений\"\n />\n </div>\n )}\n </PageColumn>\n <PageColumn>\n <Title title={localization.get('Максимальная скорость в день')}/>\n <div>\n <CardWithIcon\n long\n value={byTimestamp.tasksByTimestampCounter.max}\n icon=\"./assets/cards/tasks.png\"\n title=\"задач\"\n description=\"Задача может быть не доделана, но работа по ней должна быть\"\n />\n <CardWithIcon\n long\n value={byTimestamp.commitsByTimestampCounter.max}\n icon=\"./assets/cards/commits.png\"\n title=\"коммитов\"\n description=\"Задача может быть не доделана, но работа по ней должна быть\"\n />\n </div>\n </PageColumn>\n </PageWrapper>\n );\n});\n\nexport default Speed;\n","import React from 'react';\n\nimport Achievement from './components/Item';\nimport style from './styles/index.module.scss';\n\ninterface IAchievementsProps {\n list: string[];\n}\n\nfunction Achievements({ list }: IAchievementsProps) {\n const items = list?.map((type: string) => (\n <Achievement\n key={type}\n type={type}\n />\n ));\n\n return (\n <div className={style.achievement_container}>\n {items}\n </div>\n );\n}\n\nexport default Achievements;\n","// extracted by mini-css-extract-plugin\nexport default {\"character\":\"styles_character__Fsp4D\",\"character_layer\":\"styles_character_layer__r2HBY\",\"character_halo\":\"styles_character_halo__cwqxo\",\"slidein\":\"styles_slidein__vIaYm\"};","import React from 'react';\n\nimport IHashMap from 'ts/interfaces/HashMap';\n\nimport style from '../styles/index.module.scss';\n\ninterface IWeaponProps {\n tasksTypes?: IHashMap<number>;\n}\n\nfunction Weapon({ tasksTypes }: IWeaponProps) {\n if (!tasksTypes) return null;\n\n console.log(tasksTypes);\n // if (tasksNumber > 750) level = 1;\n // if (tasksNumber > 1000) level = 1;\n // if (tasksNumber > 1500) level = 1;\n\n return (\n <div\n className={style.character_halo}\n style={{ backgroundImage: 'url(\"./assets/character/halo/1.png\")' }}\n />\n );\n}\n\nexport default Weapon;\n","export function getWingsLevel(workedDays: number) {\n const month = Math.floor(workedDays / 30);\n return month < 36\n ? [\n 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, // 1 year\n 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, // 2 year\n 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, // 3 year\n ][month] : 9;\n}\n\nexport function getWeaponLevel(tasksNumber: number) {\n if (tasksNumber > 500) return 6;\n if (tasksNumber > 300) return 5;\n if (tasksNumber > 200) return 4;\n if (tasksNumber > 100) return 3;\n if (tasksNumber > 50) return 2;\n if (tasksNumber > 25) return 1;\n return 0;\n}","import React from 'react';\n\nimport style from '../styles/index.module.scss';\n\ninterface ILayersProps {\n type: string;\n level?: number;\n}\n\nfunction Layers({ type, level }: ILayersProps) {\n const content = [];\n\n for (let layer = level || 0; layer > 0; layer--) {\n content.push((\n <img\n key={`${type}_${layer}`}\n className={style.character_layer}\n src={`./assets/character/${type}/${layer}.png`}\n />\n ));\n }\n\n return (<>{content}</>);\n}\n\nexport default Layers;\n","import React from 'react';\n\nimport Halo from './components/Halo';\nimport {\n getWeaponLevel,\n getWingsLevel,\n} from './helpers';\nimport Layers from './components/Layers';\nimport style from './styles/index.module.scss';\n\ninterface ICharacterProps {\n user: any;\n}\n\nfunction Character({ user }: ICharacterProps) {\n if (!user) return null;\n\n return (\n <div className={style.character}>\n <Halo tasksTypes={user?.types} />\n <Layers\n type=\"weapon\"\n level={getWingsLevel(user?.allDaysInProject)}\n />\n <Layers\n type=\"weapon\"\n level={getWeaponLevel(user?.tasks?.length)}\n />\n </div>\n );\n}\n\nexport default Character;\n","// extracted by mini-css-extract-plugin\nexport default {\"get_list_container\":\"styles_get_list_container__YnNGO\",\"get_list\":\"styles_get_list__xuTNI\",\"get_list_title\":\"styles_get_list_title__J-b47\",\"get_list_icon\":\"styles_get_list_icon__I4DqV\",\"get_list_big_number\":\"styles_get_list_big_number__RbCn9\"};","import React from 'react';\n\nimport ICommit from 'ts/interfaces/Commit';\nimport ExternalLink from 'ts/components/ExternalLink';\nimport userSettings from 'ts/store/UserSettings';\nimport dataGrip from 'ts/helpers/DataGrip';\n\nimport style from '../styles/index.module.scss';\n\ninterface IGetItemProps {\n commit: ICommit;\n mode?: string;\n}\n\nfunction GetItem({ commit, mode }: IGetItemProps) {\n const size = commit.taskNumber?.length || 1;\n const className = size > 5\n ? style.get_list_big_number\n : '';\n const prId = dataGrip.pr.prByTask[commit.task];\n\n return (\n <div className={style.get_list}>\n <div className={style.get_list_title}>\n <ExternalLink\n link={`${userSettings?.settings?.linksPrefix?.task || '/'}${commit.task}`}\n text={commit.task}\n />\n {prId && mode !== 'print' && (\n <ExternalLink\n link={`${userSettings?.settings?.linksPrefix?.pr || '/'}${prId}`}\n text=\"PR\"\n />\n )}\n </div>\n <div className={`${style.get_list_icon} ${className}`}>\n {commit.taskNumber}\n </div>\n </div>\n );\n}\n\nexport default GetItem;\n","import React from 'react';\n\nimport ICommit from 'ts/interfaces/Commit';\n\nimport GetItem from './components/Item';\nimport style from './styles/index.module.scss';\n\ninterface IAchievementsProps {\n list: ICommit[];\n mode?: string;\n}\n\nfunction GetList({ list, mode }: IAchievementsProps) {\n const items = list?.map((commit: ICommit) => (\n <GetItem\n key={commit.taskNumber}\n commit={commit}\n mode={mode}\n />\n ));\n\n return (\n <div className={style.get_list_container}>\n {items}\n </div>\n );\n}\n\nexport default GetList;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport getAchievementByAuthor from 'ts/helpers/achievement/byAuthor';\nimport ACHIEVEMENT_TYPE from 'ts/helpers/achievement/constants/type';\nimport localization from 'ts/helpers/Localization';\n\nimport CardWithIcon from 'ts/components/CardWithIcon';\nimport Achievements from 'ts/components/Achievement';\nimport Description from 'ts/components/Description';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport Character from 'ts/components/Character';\nimport Title from 'ts/components/Title';\nimport GetList from 'ts/components/GetList';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\ninterface IAchievementBlockProps {\n title: string;\n achievements: string[];\n}\n\nfunction AchievementBlock({ title, achievements }: IAchievementBlockProps) {\n if (!achievements.length) return null;\n return (\n <>\n <Description text={`# ${localization.get(title)}`}/>\n <Achievements list={achievements} />\n </>\n );\n}\n\nconst Total = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const commitsWithGet = dataGripStore.dataGrip.get.getsByAuthor[statistic.author];\n const taskNumber = statistic.tasks.length;\n const achievements = getAchievementByAuthor(statistic.author);\n\n return (\n <PageWrapper>\n <PageColumn>\n <Title title=\"page.person.total.title\"/>\n <div>\n <CardWithIcon\n value={statistic.daysWorked}\n icon=\"./assets/cards/work_days.png\"\n title=\"page.person.total.daysWorked.title\"\n description=\"page.person.total.daysWorked.description\"\n />\n <CardWithIcon\n value={taskNumber ? taskNumber : null}\n icon=\"./assets/cards/tasks.png\"\n title=\"page.person.total.tasks.title\"\n description=\"page.person.total.tasks.description\"\n />\n <CardWithIcon\n value={statistic.daysLosses}\n icon=\"./assets/cards/lazy.png\"\n title=\"page.team.total.daysLosses.title\"\n description=\"page.team.total.daysLosses.description\"\n />\n <CardWithIcon\n value={statistic.commits}\n icon=\"./assets/cards/commits.png\"\n title=\"page.team.total.commits.title\"\n description=\"page.team.total.commits.description\"\n />\n </div>\n <Title title=\"page.person.character.title\"/>\n <Character user={statistic} />\n </PageColumn>\n <PageColumn>\n <Title title=\"page.person.achievement.title\"/>\n <AchievementBlock\n title=\"page.person.achievement.positive\"\n achievements={achievements[ACHIEVEMENT_TYPE.GOOD]}\n />\n <AchievementBlock\n title=\"page.person.achievement.normal\"\n achievements={achievements[ACHIEVEMENT_TYPE.NORMAL]}\n />\n <AchievementBlock\n title=\"page.person.achievement.negative\"\n achievements={achievements[ACHIEVEMENT_TYPE.BAD]}\n />\n <Description\n text={localization.get('page.person.achievement.description')}\n />\n <br />\n <br />\n {commitsWithGet?.length ? (\n <>\n <Title title=\"page.person.gets.title\"/>\n <GetList list={commitsWithGet} />\n <Description\n text={localization.get('page.person.gets.description')}\n />\n </>\n ) : null}\n </PageColumn>\n </PageWrapper>\n );\n});\n\nexport default Total;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport IHashMap from 'ts/interfaces/HashMap';\nimport { IPaginationRequest, IPagination } from 'ts/interfaces/Pagination';\nimport { getShortDateRange, getShortNumber } from 'ts/helpers/formatter';\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport NothingFound from 'ts/components/NothingFound';\nimport Table from 'ts/components/Table';\nimport Column from 'ts/components/Table/components/Column';\nimport { ColumnTypesEnum } from 'ts/components/Table/interfaces/Column';\nimport LineChart from 'ts/components/LineChart';\nimport getOptions from 'ts/components/LineChart/helpers/getOptions';\nimport RecommendationsWrapper from 'ts/components/Recommendations/wrapper';\n\nimport { getMax } from 'ts/pages/Common/helpers/getMax';\nimport ICommonPageProps from 'ts/components/Page/interfaces/CommonPageProps';\nimport ISort from 'ts/interfaces/Sort';\n\ninterface IWeekViewProps {\n name: string;\n response?: IPagination<any>;\n}\n\nfunction WeekView({ response, name }: IWeekViewProps) {\n if (!response) return null;\n\n const typeChart = getOptions({ max: getMax(response, 'authors', name), order: dataGripStore.dataGrip.type.list });\n const workDaysChart = getOptions({ max: 7, order: ['будни', 'выходные'], suffix: 'дней' });\n const taskInDayChart = getOptions({ max: getMax(response, 'taskInDay', name) });\n\n return (\n <Table rows={response.content}>\n <Column\n isFixed\n template={ColumnTypesEnum.STRING}\n title=\"Дата\"\n properties=\"timestamp\"\n formatter={getShortDateRange}\n width={200}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"authors\"\n formatter={(authors: IHashMap<number>) => authors[name] || 0}\n />\n <Column\n title=\"Количество задач\"\n template={(row: any) => (\n <LineChart\n options={typeChart}\n value={row.authors[name]}\n details={row.typeByAuthor[name]}\n />\n )}\n width={200}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"workDays\"\n formatter={(workDays: IHashMap<number>) => workDays[name] || 0}\n />\n <Column\n title=\"Дни с коммитами\"\n template={([work, week]: any) => (\n <LineChart\n options={workDaysChart}\n value={work + week}\n details={{ 'будни': work, 'выходные': week }}\n />\n )}\n formatter={(row: any) => ( // TODO: не верно, тут сумма, а сб или вс не факт. Он мог прогулять пн, но работать в вс\n row?.workDays[name] > 5\n ? [5, row?.workDays[name] - 5]\n : [row?.workDays[name], 0]\n )}\n width={200}\n />\n <Column\n template={ColumnTypesEnum.SHORT_NUMBER}\n properties=\"taskInDay\"\n formatter={(taskInDay: IHashMap<number>) => getShortNumber(taskInDay[name] || 0)}\n />\n <Column\n title=\"Задач в день\"\n properties=\"taskInDay\"\n template={(taskInDay: any) => (\n <LineChart\n options={taskInDayChart}\n value={taskInDay[name]}\n />\n )}\n width={200}\n />\n </Table>\n );\n}\n\nWeekView.defaultProps = {\n response: undefined,\n};\n\nconst Week = observer(({\n mode,\n}: ICommonPageProps): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const rows = dataGripStore.dataGrip.week.statistic.filter((item: any) => item.authors[statistic.author]);\n if (!rows?.length) return (<NothingFound />);\n const recommendations = dataGripStore.dataGrip.recommendations.person?.byWeek[statistic.author];\n\n return (\n <>\n {mode !== 'print' && (\n <RecommendationsWrapper recommendations={recommendations} />\n )}\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={(pagination?: IPaginationRequest, sort?: ISort[]) => getFakeLoader({\n content: rows, pagination, sort,\n })}\n >\n <WeekView name={statistic.author} />\n {mode !== 'print' && <Pagination />}\n </DataLoader>\n </PageWrapper>\n </>\n );\n});\n\nexport default Week;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport YearChart from 'ts/components/YearChart';\nimport PageWrapper from 'ts/components/Page/wrapper';\n\nconst Month = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const author = dataGripStore.dataGrip.author.statistic[userId || 0];\n const statistic = dataGripStore.dataGrip.timestamp.statisticByAuthor[author.author];\n const max = statistic.commitsByTimestampCounter.max;\n\n return (\n <PageWrapper template=\"table\">\n <YearChart\n showEvents={false}\n maxCommits={max}\n authors={[author]}\n wordDays={statistic.allCommitsByTimestamp}\n />\n </PageWrapper>\n );\n});\n\nexport default Month;\n","import React, { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport { IPagination } from 'ts/interfaces/Pagination';\nimport dataGripStore from 'ts/store/DataGrip';\nimport { getShortDateRange } from 'ts/helpers/formatter';\nimport localization from 'ts/helpers/Localization';\n\nimport UiKitButton from 'ts/components/UiKit/components/Button';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport DataLoader from 'ts/components/DataLoader';\nimport Pagination from 'ts/components/DataLoader/components/Pagination';\nimport getFakeLoader from 'ts/components/DataLoader/helpers/formatter';\nimport NothingFound from 'ts/components/NothingFound';\nimport TempoChart from 'ts/components/Tempo';\nimport Title from 'ts/components/Title';\n\nimport uiKitStyle from 'ts/components/UiKit/styles/index.module.scss';\nimport style from 'ts/pages/Team/styles/filters.module.scss';\n\ninterface ITempoViewProps {\n user?: string;\n response?: IPagination<any>;\n}\n\nfunction TempoView({ response, user }: ITempoViewProps) {\n if (!response) return null;\n return (\n <TempoChart\n days={response.content as any[]}\n author={user}\n />\n );\n}\n\nTempoView.defaultProps = {\n response: undefined,\n};\n\nfunction getPartOfData(filters: any, rows: any[]) {\n return rows.filter((row: any) => (row.week === filters.week)).slice(0, 7);\n}\n\nconst Tempo = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const author = dataGripStore.dataGrip.author.statistic[userId || 0];\n\n const rows = dataGripStore.dataGrip.timestamp.statisticByAuthor[author.author]?.allCommitsByTimestamp || [];\n const firstIndex = rows.length - 1;\n const firstPoint = rows[firstIndex];\n\n const [week, setWeek] = useState<number>(firstPoint.week);\n\n if (!rows?.length) return (<NothingFound />);\n const partOfData = getPartOfData({ week, user: author.author }, rows);\n const firstWeekDay = partOfData[0];\n const lastWeekDay = partOfData[partOfData.length - 1];\n\n if (!partOfData?.length) return (<NothingFound />);\n return (\n <>\n <Title title={localization.get('common.filters')} />\n <PageWrapper>\n <div className={style.tempo_page_filters}>\n <UiKitButton\n type=\"second\"\n disabled={week === 1}\n onClick={() => {\n setWeek(week - 1);\n }}\n >\n «\n </UiKitButton>\n <div className={`${uiKitStyle.ui_kit_common} ${style.date_range}`}>\n {getShortDateRange({\n from: firstWeekDay.timestamp,\n to: lastWeekDay.timestamp,\n })}\n </div>\n <UiKitButton\n type=\"second\"\n disabled={week === firstPoint.week}\n onClick={() => {\n setWeek(week + 1);\n }}\n >\n »\n </UiKitButton>\n </div>\n </PageWrapper>\n <PageWrapper template=\"table\">\n <DataLoader\n to=\"response\"\n loader={() => getFakeLoader({ content: partOfData })}\n watch={week}\n >\n <TempoView\n user={author.author}\n />\n <Pagination />\n </DataLoader>\n </PageWrapper>\n </>\n );\n});\n\nexport default Tempo;\n","// extracted by mini-css-extract-plugin\nexport default {\"place_for_photo\":\"print_place_for_photo__WPPt6\"};","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport CardWithIcon from 'ts/components/CardWithIcon';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport Title from 'ts/components/Title';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport style from '../../styles/print.module.scss';\n\nconst Total = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const taskNumber = statistic.tasks.length;\n\n return (\n <PageWrapper>\n <PageColumn>\n <CardWithIcon\n value=\"\"\n icon=\"./assets/cards/work_days.png\"\n title=\"Фотограция\"\n />\n <div className={style.place_for_photo}>\n место для фотографии\n </div>\n </PageColumn>\n <PageColumn>\n <Title title={statistic.author} />\n <div>\n <CardWithIcon\n value={statistic.daysWorked}\n icon=\"./assets/cards/work_days.png\"\n title=\"дней работы\"\n description=\"page.team.total.daysWorked.description\"\n />\n <CardWithIcon\n value={taskNumber ? taskNumber : null}\n icon=\"./assets/cards/tasks.png\"\n title=\"задач\"\n description=\"Если коммиты правильно подписаны\"\n />\n <CardWithIcon\n value={statistic.daysLosses}\n icon=\"./assets/cards/lazy.png\"\n title=\"page.team.total.daysLosses.title\"\n description=\"page.team.total.daysLosses.description\"\n />\n <CardWithIcon\n value={statistic.commits}\n icon=\"./assets/cards/commits.png\"\n title=\"page.team.total.commits.title\"\n description=\"page.team.total.commits.description\"\n />\n </div>\n </PageColumn>\n </PageWrapper>\n );\n});\n\nexport default Total;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport getAchievementByAuthor from 'ts/helpers/achievement/byAuthor';\nimport ACHIEVEMENT_TYPE from 'ts/helpers/achievement/constants/type';\nimport localization from 'ts/helpers/Localization';\n\nimport Achievements from 'ts/components/Achievement';\nimport Description from 'ts/components/Description';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport Title from 'ts/components/Title';\nimport GetList from 'ts/components/GetList';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\ninterface IAchievementBlockProps {\n title: string;\n achievements: string[];\n}\n\nfunction AchievementBlock({ title, achievements }: IAchievementBlockProps) {\n if (!achievements.length) return null;\n return (\n <>\n <Description text={`# ${title}`}/>\n <Achievements list={achievements} />\n </>\n );\n}\n\nconst Total = observer((): React.ReactElement => {\n const { userId } = useParams<any>();\n const statistic = dataGripStore.dataGrip.author.statistic[userId || 0];\n const commitsWithGet = dataGripStore.dataGrip.get.getsByAuthor[statistic.author];\n const achievements = getAchievementByAuthor(statistic.author);\n\n return (\n <PageWrapper>\n <PageColumn>\n <Title title={localization.get('Достижения')}/>\n <AchievementBlock\n title=\"Позитивные\"\n achievements={achievements[ACHIEVEMENT_TYPE.GOOD]}\n />\n </PageColumn>\n <PageColumn>\n <Title title={localization.get('_')}/>\n <AchievementBlock\n title=\"Нейтральные\"\n achievements={achievements[ACHIEVEMENT_TYPE.NORMAL]}\n />\n <AchievementBlock\n title=\"Негативные\"\n achievements={achievements[ACHIEVEMENT_TYPE.BAD]}\n />\n <br />\n <br />\n {commitsWithGet?.length ? (\n <>\n <Title title={localization.get('Взятые геты:')}/>\n <GetList\n mode=\"print\"\n list={commitsWithGet}\n />\n <Description text=\"&laquo;Взять гет&raquo; в данном случае означает первым оставить коммит к&nbsp;задаче с&nbsp;&laquo;красивым&raquo; номером.\"/>\n </>\n ) : null}\n </PageColumn>\n </PageWrapper>\n );\n});\n\nexport default Total;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport PageBreak from 'ts/pages/Common/components/PageBreak';\n\nimport Hours from './Hours';\nimport Money from './Money';\nimport PopularWords from './PopularWords';\nimport Speed from './Speed';\nimport Total from './print/Total';\nimport Achievements from './print/Achievements';\nimport Week from './Week';\nimport Month from './Month';\n\nconst Print = observer((): React.ReactElement => {\n return (\n <>\n <Total/>\n <Speed/>\n <Money/>\n <PageBreak/>\n <Achievements/>\n <PageBreak/>\n <Hours/>\n <Week mode=\"print\"/>\n <PageBreak/>\n <Month/>\n <Hours/>\n <PopularWords mode=\"print\"/>\n </>\n );\n});\n\nexport default Print;\n","import React from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport Title from 'ts/components/Title';\nimport localization from 'ts/helpers/Localization';\n\nimport UserSelect from './components/UserSelect';\nimport Changes from './components/Changes';\nimport Commits from './components/Commits';\nimport Hours from './components/Hours';\nimport Money from './components/Money';\nimport PopularWords from './components/PopularWords';\nimport Speed from './components/Speed';\nimport Total from './components/Total';\nimport Week from './components/Week';\nimport Month from './components/Month';\nimport Tempo from './components/Tempo';\nimport Print from './components/Print';\n\nfunction Person() {\n const { type, page } = useParams<any>();\n if (type !== 'person') return null;\n return (\n <>\n {!['week', 'print'].includes(page || '') && (\n <>\n <Title title={localization.get('common.filters')} />\n <UserSelect />\n </>\n )}\n {page === 'total' && <Total/>}\n {page === 'hours' && <Hours/>}\n {page === 'money' && <Money/>}\n {page === 'week' && <Week/>}\n {page === 'month' && <Month/>}\n {page === 'commits' && <Commits/>}\n {page === 'changes' && <Changes/>}\n {page === 'words' && <PopularWords/>}\n {page === 'speed' && <Speed/>}\n {page === 'day' && <Tempo/>}\n {page === 'print' && <Print/>}\n </>\n );\n}\n\nexport default Person;\n","// extracted by mini-css-extract-plugin\nexport default {\"console\":\"Console_console__5nFvk\",\"console_header\":\"Console_console_header__XP1IR\",\"console_body\":\"Console_console_body__5PXuM\",\"console_header_icon\":\"Console_console_header_icon__oXixF\",\"console_copy\":\"Console_console_copy__LHjsv\"};","import React, { ReactNode } from 'react';\n\nimport Button from 'ts/components/UiKit/components/Button';\nimport notificationsStore from 'ts/components/Notifications/store';\n\nfunction copyInBuffer(value?: string) {\n if (!value) return;\n const copyTextarea = document.createElement('textarea');\n copyTextarea.style.position = 'fixed';\n copyTextarea.style.opacity = '0';\n copyTextarea.textContent = value;\n\n document.body.appendChild(copyTextarea);\n copyTextarea.select();\n document.execCommand('copy');\n document.body.removeChild(copyTextarea);\n}\n\nimport style from './index.module.scss';\n\ninterface IConsoleProps {\n textForCopy?: string;\n className?: string;\n children?: ReactNode | string | number | null;\n}\n\nfunction Console({ className, textForCopy, children }: IConsoleProps) {\n return (\n <div className={`${style.console} ${className || ''}`}>\n <div className={`${style.console_header}`}>\n <span className={`${style.console_header_icon}`}></span>\n <span className={`${style.console_header_icon}`}></span>\n <span className={`${style.console_header_icon}`}></span>\n </div>\n <div className={`${style.console_body}`}>\n {children || textForCopy}\n </div>\n <Button\n type=\"second\"\n className={`${style.console_copy}`}\n onClick={() => {\n copyInBuffer(textForCopy);\n notificationsStore.show('Текст скопирован');\n }}\n\t >\n Копировать\n </Button>\n </div>\n );\n}\n\nConsole.defaultProps = {\n textForCopy: undefined,\n children: undefined,\n className: '',\n};\n\nexport default Console;\n","// extracted by mini-css-extract-plugin\nexport default {\"welcome\":\"styles_welcome__owZYZ\",\"welcome_console\":\"styles_welcome_console__dmg4D\",\"welcome_row\":\"styles_welcome_row__rormW\",\"welcome_warning\":\"styles_welcome_warning__sf+kx\",\"welcome_warning_bold\":\"styles_welcome_warning_bold__QKZCE\",\"welcome_warning_link\":\"styles_welcome_warning_link__blbk7\",\"welcome_first_title\":\"styles_welcome_first_title__zay7R\",\"welcome_last_title\":\"styles_welcome_last_title__Ef7FS\",\"welcome_link\":\"styles_welcome_link__fxOjA\",\"welcome_description\":\"styles_welcome_description__lB3jg\"};","import React from 'react';\nimport { Link } from 'react-router-dom';\n\nimport Console from 'ts/components/Console';\nimport style from './styles/index.module.scss';\n\nfunction WarningInfo() {\n return (\n <h4 className={style.welcome_warning}>\n <p>\n {'Сервис '}\n <span className={style.welcome_warning_bold}>НЕ ХРАНИТ</span>\n {' и '}\n <span className={style.welcome_warning_bold}>НЕ ПЕРЕДАЁТ</span>\n {' ваши данные. Все расчёты выполняются локально в вашем браузере прямо на вашей машине.'}\n </p>\n <p>\n {'Сервис '}\n <span className={style.welcome_warning_bold}>НЕ СОБИРАЕТ СТАТИСТИКУ</span>\n {' по проектам. Вы можете отключить интернет, проверить трафик и даже собрать локальный билд из '}\n <a\n href='https://github.com/bakhirev/assayo'\n target=\"_blank\"\n rel=\"noreferrer\"\n className={style.welcome_warning_link}\n >\n исходников\n </a>\n {'.'}\n </p>\n </h4>\n );\n}\n\nfunction Welcome() {\n const command = 'git --no-pager log --numstat --oneline --all --reverse --date=iso-strict --pretty=format:\"%ad>%cN>%cE>%s\" > log.txt\\n';\n return (\n <>\n {true && (<WarningInfo />)}\n <section className={style.welcome}>\n <div className={style.welcome_row}>\n <h2 className={style.welcome_first_title}>\n Выполните команду в корне вашего проекта\n </h2>\n <Console\n className={style.welcome_console}\n textForCopy={command}\n />\n <p className={style.welcome_description}>\n Git создаст файл log.txt.\n Он содержит данные для построения отчёта.\n Или git shortlog -s -n -e если отчёт вам не нужен.\n Создайте файл\n <Link\n className={`${style.welcome_link}`}\n target=\"_blank\"\n to=\"https://git-scm.com/docs/gitmailmap\">\n .mailmap\n </Link>\n {' в корне проекта, чтобы обьединить статистику по сотрудникам.'}\n </p>\n <h2 className={style.welcome_last_title}>\n Перетащите файл log.txt на эту страницу\n </h2>\n </div>\n </section>\n </>\n );\n}\n\nexport default Welcome;\n","import React, { useState } from 'react';\n\nimport { IUiKitWrapperProps } from './Wrapper';\nimport { getCustomClassName } from './Button';\n\nimport style from '../styles/index.module.scss';\n\ninterface IUiKitButtonMenuProps extends IUiKitWrapperProps {\n type?: string,\n options?: any[],\n onClick: Function,\n}\n\nfunction UiKitButtonMenu({\n title,\n type,\n disabled,\n className,\n\n options,\n onClick,\n children,\n}: IUiKitButtonMenuProps) {\n if (!options?.length) return null;\n\n const [isOpen, setOpen] = useState<boolean>(false);\n const customClassName = getCustomClassName(type, disabled);\n const buttons = options?.map((option: any) => {\n const buttonTitle = option?.title ?? option?.id ?? option ?? '';\n return (\n <button\n key={title}\n className={style.ui_kit_button_menu}\n onClick={() => {\n if (onClick) onClick(option);\n setOpen(false);\n }}\n >\n {buttonTitle}\n </button>\n );\n });\n\n return (\n <>\n <button\n title={title}\n className={`${style.button} ${customClassName || ''} ${className || ''}`}\n style={{ position: 'relative' }}\n onClick={() => {\n setOpen(!isOpen);\n }}\n >\n {children}\n {isOpen && (\n <div className={style.ui_kit_dialog}>\n {buttons}\n </div>\n )}\n </button>\n </>\n );\n}\n\n\nexport default UiKitButtonMenu;\n","import React, { ReactNode } from 'react';\n\nimport style from '../styles/index.module.scss';\n\nexport interface IUiKitColumnsProps {\n columns?: number;\n className?: string;\n children?: ReactNode | string | null;\n}\n\nfunction UiKitColumns({\n columns,\n className,\n children,\n}: IUiKitColumnsProps) {\n return (\n <div\n className={`${style.wrapper} ${className || ''}`}\n style={{ columnCount: columns || 2 }}\n >\n {children}\n </div>\n );\n}\n\nexport default UiKitColumns;\n","// extracted by mini-css-extract-plugin\nexport default {\"ui_kit_switch\":\"switch_ui_kit_switch__ITpXv\",\"ui_kit_switch_item\":\"switch_ui_kit_switch_item__oGEAZ\",\"ui_kit_switch_item_selected\":\"switch_ui_kit_switch_item_selected__poF9E\"};","import React from 'react';\n\nimport Wrapper, { IUiKitWrapperProps } from './Wrapper';\nimport style from '../styles/switch.module.scss';\n\ninterface IUiKitSwitchProps extends IUiKitWrapperProps {\n multiple?: boolean;\n value: any;\n options: any[];\n onChange: Function;\n}\n\nfunction UiKitSwitch({\n title,\n description,\n help,\n error,\n className,\n\n value,\n options,\n onChange,\n}: IUiKitSwitchProps) {\n const hasValue = value || value === 0 || value === false;\n let selectedIds = value;\n if (hasValue && !Array.isArray(value)) {\n selectedIds = [value];\n }\n\n const items = (options || [])\n .map((option: any, index: number) => {\n const formattedOption = typeof option !== 'object'\n ? ({ id: option, title: option })\n : option;\n const isSelected = hasValue && selectedIds.includes(formattedOption?.id);\n\n return (\n <button\n key={`${formattedOption?.id}_${index}`}\n className={isSelected\n ? `${style.ui_kit_switch_item} ${style.ui_kit_switch_item_selected}`\n : style.ui_kit_switch_item}\n onClick={() => {\n if (!onChange) return;\n\n const newSelected = isSelected\n ? selectedIds.filter((id: any) => id !== formattedOption?.id)\n : [...selectedIds, formattedOption?.id].sort();\n\n onChange(newSelected);\n }}\n >\n {formattedOption?.title ?? formattedOption?.id ?? ''}\n </button>\n );\n });\n\n return (\n <Wrapper\n title={title}\n description={description}\n help={help}\n error={error}\n className={className}\n >\n <div className={style.ui_kit_switch}>\n {items}\n </div>\n </Wrapper>\n );\n}\n\nexport default UiKitSwitch;\n","import React, { ChangeEvent } from 'react';\n\nimport Wrapper, { IUiKitWrapperProps } from './Wrapper';\nimport style from '../styles/index.module.scss';\n\ninterface IUiKitSelectProps extends IUiKitWrapperProps {\n value: any;\n placeholder?: string;\n onChange: Function;\n}\n\nfunction UiKitDate({\n title,\n description,\n help,\n error,\n className,\n\n value,\n placeholder,\n onChange,\n}: IUiKitSelectProps) {\n const formattedValue = value?.length > 10\n ? value.substring(0, 10)\n : value;\n\n return (\n <Wrapper\n title={title}\n description={description}\n help={help}\n error={error}\n className={className}\n >\n <input\n type=\"date\"\n value={formattedValue}\n placeholder={placeholder}\n className={style.ui_kit_common}\n onChange={(event: ChangeEvent<HTMLInputElement>) => {\n if (onChange) onChange(`${event.target.value}T00:00:00.000Z`);\n }}\n />\n </Wrapper>\n );\n}\n\nUiKitDate.defaultProps = {\n placeholder: 'Введите значение',\n};\n\nexport default UiKitDate;\n","import React, { useState } from 'react';\n\nimport { IEmployeesSalary } from 'ts/interfaces/UserSetting';\nimport UiKitInputNumber from 'ts/components/UiKit/components/InputNumber';\nimport UiKitColumns from 'ts/components/UiKit/components/Columns';\nimport UiKitSwitch from 'ts/components/UiKit/components/Switch';\nimport UiKitButton from 'ts/components/UiKit/components/Button';\nimport UiKitDate from 'ts/components/UiKit/components/Date';\nimport confirm from 'ts/components/ModalWindow/store/Confirm';\nimport Title from 'ts/components/Title';\n\nimport style from '../styles/index.module.scss';\n\ninterface IUserSalaryProps {\n salary: IEmployeesSalary;\n index: number;\n onChange: Function;\n onRemove: Function;\n}\n\nfunction UserSalary({\n salary,\n index,\n onChange,\n onRemove,\n}: IUserSalaryProps) {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n return (\n <div className={style.salary}>\n <Title\n title={`Дополнение к трудовому договору №${index}`}\n className={isOpen ? '' : style.salary_title}\n />\n <div className={style.salary_icons}>\n <img\n className={style.salary_icons_item}\n src=\"./assets/list/arrow.svg\"\n onClick={() => setIsOpen(!isOpen)}\n />\n </div>\n {isOpen && (\n <>\n <UiKitColumns>\n <UiKitDate\n title=\"Дата начала действия\"\n value={salary?.from}\n onChange={(from: string) => {\n onChange({ ...salary, from });\n }}\n />\n <UiKitSwitch\n title=\"Количество рабочих дней в неделю\"\n value={salary.workDaysInWeek}\n options={[1, 2, 3, 4, 5, 6, 7]}\n onChange={(workDaysInWeek: number) => {\n onChange({ ...salary, workDaysInWeek });\n }}\n />\n </UiKitColumns>\n <UiKitColumns>\n <UiKitInputNumber\n title=\"Зарплата в месяц\"\n value={salary?.value}\n onChange={(value: number) => {\n onChange({ ...salary, value });\n }}\n />\n <UiKitSwitch\n title=\"Валюта\"\n value={salary?.currency}\n options={['RUB', 'USD', 'EUR']}\n onChange={(currency: string) => {\n onChange({ ...salary, currency });\n }}\n />\n </UiKitColumns>\n <UiKitColumns>\n <UiKitInputNumber\n title=\"Количество рабочих дней в году\"\n value={salary?.workDaysInYear}\n onChange={(workDaysInYear: number) => {\n onChange({ ...salary, workDaysInYear });\n }}\n />\n <UiKitInputNumber\n title=\"Количество дней отпуска в год\"\n value={salary?.vacationDaysInYear}\n onChange={(vacationDaysInYear: number) => {\n onChange({ ...salary, vacationDaysInYear });\n }}\n />\n </UiKitColumns>\n <div className={style.salary_footer}>\n <UiKitButton\n type=\"second\"\n onClick={() => confirm.open().then(() => onRemove())}\n >\n Удалить\n </UiKitButton>\n </div>\n </>\n )}\n </div>\n );\n}\n\nexport default UserSalary;\n","import React from 'react';\n\nimport { IEmployees, IEmployeesSalary } from 'ts/interfaces/UserSetting';\nimport UiKitButton from 'ts/components/UiKit/components/Button';\nimport confirm from 'ts/components/ModalWindow/store/Confirm';\nimport PageBox from 'ts/components/Page/Box';\nimport Title from 'ts/components/Title';\n\nimport { getNewEmploymentContract } from '../helpers/getEmptySettings';\nimport UserSalary from './UserSalary';\nimport formStore from '../store/Form';\nimport style from '../styles/index.module.scss';\n\ninterface IUserSettingProps {\n user: IEmployees;\n onChange: Function;\n onRemove: Function;\n}\n\nfunction UserSetting({\n user,\n onChange,\n onRemove,\n}: IUserSettingProps) {\n const items = user.salary.map((salary: IEmployeesSalary, index: number) => (\n <UserSalary\n key={user.id}\n index={index + 1}\n salary={salary}\n onChange={(newSalary: any) => {\n onChange({\n ...user,\n salary: user.salary.map((setting: IEmployeesSalary) => setting.id === salary.id ? newSalary : setting),\n });\n }}\n onRemove={() => {\n onChange({\n ...user,\n salary: user.salary.filter((setting: IEmployeesSalary) => setting.id !== salary.id),\n });\n }}\n />\n ));\n\n return (\n <PageBox\n className={style.user}\n onRemove={() => confirm.open().then(() => onRemove())}\n >\n <Title\n title={user?.name || ''}\n className={style.user_title}\n />\n {items}\n <div className={style.user_footer}>\n <UiKitButton\n type=\"slim\"\n onClick={() => {\n onChange({\n ...user,\n salary: [\n ...user.salary,\n getNewEmploymentContract(formStore.state),\n ],\n });\n }}\n >\n Добавить трудовой договор\n </UiKitButton>\n </div>\n </PageBox>\n );\n}\n\nexport default UserSetting;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport UiKitInputNumber from 'ts/components/UiKit/components/InputNumber';\nimport UiKitColumns from 'ts/components/UiKit/components/Columns';\nimport UiKitSwitch from 'ts/components/UiKit/components/Switch';\nimport PageBox from 'ts/components/Page/Box';\nimport Title from 'ts/components/Title';\n\nimport formStore from '../store/Form';\n\nconst Common = observer((): React.ReactElement | null => {\n const defaultSalary = formStore.state.defaultSalary;\n if (!defaultSalary) return null;\n\n return (\n <>\n <Title title=\"Общие данные по зарплате\"/>\n <PageBox>\n <UiKitSwitch\n title=\"Тип работы над проектом\"\n value={defaultSalary.type}\n options={[\n { id: 'full', title: 'Полная занятость' },\n { id: 'part', title: 'Проектная работа' },\n ]}\n onChange={(type: any) => {\n formStore.updateState('defaultSalary.type', type?.id);\n }}\n />\n <UiKitColumns>\n <UiKitInputNumber\n title=\"Зарплата в месяц\"\n value={defaultSalary.value}\n onChange={(value: number) => {\n formStore.updateState('defaultSalary.value', value);\n }}\n />\n <UiKitSwitch\n title=\"Валюта\"\n value={defaultSalary.currency}\n options={['RUB', 'USD', 'EUR']}\n onChange={(currency: string) => {\n formStore.updateState('defaultSalary.currency', currency);\n }}\n />\n </UiKitColumns>\n <UiKitColumns>\n <UiKitInputNumber\n title=\"Количество рабочих дней в году\"\n value={defaultSalary.workDaysInYear}\n onChange={(workDaysInYear: number) => {\n formStore.updateState('defaultSalary.workDaysInYear', workDaysInYear);\n }}\n />\n <UiKitInputNumber\n title=\"Количество дней отпуска в год\"\n value={defaultSalary.vacationDaysInYear}\n onChange={(vacationDaysInYear: number) => {\n formStore.updateState('defaultSalary.vacationDaysInYear', vacationDaysInYear);\n }}\n />\n </UiKitColumns>\n <UiKitSwitch\n title=\"Количество рабочих дней в неделю\"\n value={defaultSalary.workDaysInWeek}\n options={[1, 2, 3, 4, 5, 6, 7]}\n onChange={(workDaysInWeek: number) => {\n formStore.updateState('defaultSalary.workDaysInWeek', workDaysInWeek);\n }}\n />\n <UiKitSwitch\n title=\"Рабочие дни\"\n value={defaultSalary.workDaysInWeek.map((v: number, i: number) => v ? (i + 1) : null)}\n options={[\n { id: 1, title: 'Пн' },\n { id: 2, title: 'Вт' },\n { id: 3, title: 'Ср' },\n { id: 4, title: 'Чт' },\n { id: 5, title: 'Пт' },\n { id: 6, title: 'Сб' },\n { id: 7, title: 'Вс' },\n ]}\n onChange={(workDaysInWeek: number[]) => {\n const formattedValue = (new Array(7)).fill(0)\n .map((v: number, i: number) => workDaysInWeek.includes(i + 1));\n console.log(formattedValue);\n formStore.updateState('defaultSalary.workDaysInWeek', formattedValue);\n }}\n />\n </PageBox>\n </>\n );\n});\n\nexport default Common;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport InputString from 'ts/components/UiKit/components/InputString';\nimport PageBox from 'ts/components/Page/Box';\nimport Title from 'ts/components/Title';\n\nimport formStore from '../store/Form';\n\nconst Common = observer((): React.ReactElement | null => {\n return (\n <>\n <Title title=\"Префиксы ссылок\"/>\n <PageBox>\n <InputString\n title=\"Для номеров задач\"\n value={formStore.state?.linksPrefix?.task}\n placeholder=\"https://jira.com/secure/RapidBoard.jspa?task=\"\n onChange={(value: string) => {\n formStore.updateState('linksPrefix.task', value);\n }}\n />\n <InputString\n title=\"Для PR\"\n value={formStore.state.linksPrefix.pr}\n placeholder=\"https://bitbucket.com/projects/assayo/repos/frontend/pull-requests/\"\n onChange={(value: string) => {\n formStore.updateState('linksPrefix.pr', value);\n }}\n />\n </PageBox>\n </>\n );\n});\n\nexport default Common;\n","import React from 'react';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport Console from 'ts/components/Console';\n\nimport style from '../styles/index.module.scss';\n\nfunction MailMap(): React.ReactElement | null {\n const items = dataGripStore.dataGrip.author.statistic.map((item: any) => (\n `${item.author} <${item.firstCommit.email}> <${item.firstCommit.email}>`\n ));\n const commands = items.map((text: string) => (<p key={text}>{text}</p>));\n const commandsForCopy = items.join('\\r\\n');\n\n return (\n <div className={style.races_track}>\n <Console textForCopy={commandsForCopy}>\n {commands}\n </Console>\n </div>\n );\n}\n\nexport default MailMap;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { IEmployees } from 'ts/interfaces/UserSetting';\nimport UiKitButtonMenu from 'ts/components/UiKit/components/ButtonMenu';\nimport PageWrapper from 'ts/components/Page/wrapper';\nimport PageColumn from 'ts/components/Page/column';\nimport NothingFound from 'ts/components/NothingFound';\nimport Title from 'ts/components/Title';\n\nimport dataGripStore from 'ts/store/DataGrip';\n\nimport UserSetting from './User';\nimport Salary from './Salary';\nimport Common from './Common';\n\nimport { getNewEmployeesSettings } from '../helpers/getEmptySettings';\nimport MailMap from './MailMap';\nimport formStore from '../store/Form';\nimport style from '../styles/index.module.scss';\n\nconst SettingForm = observer((response: any): React.ReactElement | null => {\n const employees = formStore.state.employees;\n if (!response || !employees) return null;\n\n\n const selectedNames = employees.map((user: IEmployees) => user.name);\n const authors = dataGripStore.dataGrip.author.list\n .filter((title: string) => !selectedNames.includes(title))\n .map((title: string, id: number) => ({ id, title }));\n\n const users = formStore.state.employees.map((user: IEmployees) => (\n <UserSetting\n key={user.id}\n user={user}\n onChange={(newUser: any) => {\n const newEmployees = employees.map((setting: IEmployees) => setting.id === user.id ? newUser : setting);\n formStore.updateState('employees', newEmployees);\n }}\n onRemove={() => {\n const newEmployees = employees.filter((setting: IEmployees) => setting.id !== user.id);\n formStore.updateState('employees', newEmployees);\n }}\n />\n ));\n\n return (\n <>\n <PageWrapper>\n <PageColumn>\n <Common />\n <Salary />\n </PageColumn>\n <PageColumn>\n <Title title=\"Индивидуальные настройки\"/>\n {employees.length > 0 ? (\n users\n ) : (\n <NothingFound\n message=\"Индивидуальных настроек нет. Данные по всем сотрудникам вычисляются по общим параметрам.\"\n />\n )}\n {authors.length && (\n <div className={style.buttons_footer}>\n <UiKitButtonMenu\n options={authors}\n onClick={(user: any) => {\n formStore.updateState('employees', [\n ...employees,\n getNewEmployeesSettings(user?.title, formStore.state, selectedNames?.length),\n ]);\n }}\n >\n Добавить сотрудника\n </UiKitButtonMenu>\n </div>\n )}\n </PageColumn>\n </PageWrapper>\n <PageWrapper>\n <Title title=\"Настройки .mailmap\"/>\n <MailMap />\n </PageWrapper>\n </>\n );\n});\n\nexport default SettingForm;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport DataLoader from 'ts/components/DataLoader';\nimport SettingForm from './components/Form';\n// import settingsStore from 'ts/store/Settings';\nimport settingsApi from 'ts/api/settings';\nimport formStore from './store/Form';\n//\n// function getDeepCopy(state: any) {\n// const {\n// from,\n// to,\n// minCommits,\n// isFullTime,\n// defaultSalary,\n// defaultWorkDays,\n// holidaysInYear,\n// currency,\n// salary,\n// workDays,\n// } = state;\n// return {\n// from,\n// to,\n// minCommits,\n// isFullTime,\n// defaultSalary,\n// defaultWorkDays,\n// holidaysInYear,\n// currency,\n// salary: { ...salary },\n// workDays: { ...workDays },\n// };\n// }\n\nconst SettingPage = observer((): React.ReactElement | null => {\n return (\n <DataLoader\n to=\"response\"\n loader={() => settingsApi.loadSettings().then((response) => {\n formStore.setInitState(response);\n return Promise.resolve(response);\n })}\n >\n <SettingForm />\n </DataLoader>\n );\n});\n\nexport default SettingPage;\n","import React, { useEffect, useState } from 'react';\nimport { Routes, Route } from 'react-router-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport dataGripStore from 'ts/store/DataGrip';\nimport DropZone from 'ts/components/DropZone';\nimport SplashScreen from 'ts/components/SplashScreen';\nimport Confirm from 'ts/components/ModalWindow/Confirm';\n\nimport PageWrapper from '../../PageWrapper';\n// import Main from '../../Main/index';\nimport Team from '../../Team/index';\nimport Person from '../../Person/index';\nimport Welcome from '../../Welcome/index';\nimport Settings from '../../Settings/index';\n\nconst Success = observer((): React.ReactElement => {\n const [showSplashScreen, setShowSplashScreen] = useState<boolean>(true);\n\n useEffect(() => {\n // @ts-ignore\n dataGripStore.setCommits(window?.report || []);\n }, []);\n\n const dropArea = (\n <DropZone\n onChange={(type: string, data: any[]) => {\n setShowSplashScreen(false);\n if (type === 'dump') dataGripStore.setCommits(data);\n if (type === 'telegramm') dataGripStore.setTelegrammMessages(data);\n setTimeout(() => {\n setShowSplashScreen(true);\n });\n }}\n />\n );\n\n return dataGripStore.showApplication ? (\n <>\n <Confirm />\n {dropArea}\n <Routes>\n <Route\n path=\"/settings\"\n element={(\n <PageWrapper>\n <Settings />\n </PageWrapper>\n )}\n />\n <Route\n path=\"/:type/:page\"\n element={(\n <PageWrapper>\n <Team />\n </PageWrapper>\n )}\n />\n <Route\n path=\"/:type/:page/:userId\"\n element={(\n <PageWrapper>\n <Person />\n </PageWrapper>\n )}\n />\n <Route\n path=\"*\"\n element={(\n <PageWrapper>\n <Team />\n </PageWrapper>\n )}\n />\n </Routes>\n {showSplashScreen && <SplashScreen />}\n </>\n ) : (\n <>\n {dropArea}\n <Routes>\n <Route\n path=\"*\"\n element={(\n <Welcome />\n )}\n />\n </Routes>\n </>\n );\n});\n\nexport default Success;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport authorizationStore from './store/AuthorizationStore';\nimport Success from './components/Success';\n\nconst Authorization = observer(() => {\n const { state, isInitialization } = authorizationStore;\n\n if (true || state === 'SUCCESS') return (<Success />);\n if (isInitialization) return null;\n\n const content = state === 'LOGIN'\n ? (<h1>login</h1>)\n : (<h1>loading</h1>);\n\n return (\n <div>\n {content}\n </div>\n );\n});\n\nexport default Authorization;\n","// extracted by mini-css-extract-plugin\nexport default {\"notifications\":\"styles_notifications__87i8g\",\"notifications_item\":\"styles_notifications_item__5QkTA\",\"notification_item\":\"styles_notification_item__9pWTs\",\"notifications_item_error\":\"styles_notifications_item_error__scoxJ\",\"notifications_item_warning\":\"styles_notifications_item_warning__L7TAD\",\"notifications_item_success\":\"styles_notifications_item_success__Kkmlt\",\"notifications_item_info\":\"styles_notifications_item_info__i59W4\",\"notifications_item_title\":\"styles_notifications_item_title__nX-MS\",\"notifications_item_description\":\"styles_notifications_item_description__ehatL\",\"notification_title\":\"styles_notification_title__XIMTq\"};","import React from 'react';\n\nimport IMessage from '../interfaces/Message';\nimport style from '../styles/index.module.scss';\n\ninterface ICardProps {\n message: IMessage,\n}\n\nfunction Card({ message }: ICardProps) {\n const className = {\n error: style.notifications_item_error,\n warning: style.notifications_item_warning,\n success: style.notifications_item_success,\n info: style.notifications_item_info,\n }[message.type || 'success'] || style.notifications_item_info;\n\n return (\n <div className={`${style.notifications_item} ${className}`}>\n {message.title && (\n <h6 className={style.notifications_item_title}>\n {message.title}\n </h6>\n )}\n {message.description && (\n <p className={style.notifications_item_description}>\n {message.description}\n </p>\n )}\n </div>\n );\n}\n\nexport default Card;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { observer } from 'mobx-react-lite';\n\nimport Message from './components/Message';\nimport IMessage from './interfaces/Message';\nimport notificationsStore from './store/index';\nimport style from './styles/index.module.scss';\n\n\nconst Notifications = observer(() => {\n const items = notificationsStore.messages.map((message: IMessage) => (\n <Message\n key={message.id}\n message={message}\n />\n ));\n\n return ReactDOM.createPortal((\n <div className={style.notifications}>\n {items}\n </div>\n ), document.body);\n});\n\nexport default Notifications;\n","import React from 'react';\nimport { HashRouter } from 'react-router-dom';\nimport { render } from 'react-dom';\n\nimport ru from 'ts/config/translations/ru';\nimport Authorization from 'ts/pages/Authorization';\nimport userSettings from 'ts/store/UserSettings';\nimport Notifications from 'ts/components/Notifications';\nimport printStore from 'ts/pages/PageWrapper/store/Print';\n\nimport './styles/index.scss';\n\n// eslint-disable-next-line\n// @ts-ignore\nif (module.hot) {\n // eslint-disable-next-line\n // @ts-ignore\n module.hot.accept();\n}\n\n// @ts-ignore\nconsole.dir(ru + '');\n\nfunction getParametersFromString(text: string) {\n return Object.fromEntries((text || '')\n .substring(1, Infinity)\n .split('&')\n .map((token: string) => token.split('=')));\n}\n\nfunction renderReactApplication() {\n // @ts-ignore\n console.log(window?.report?.length);\n window.onafterprint = () => {\n printStore.endPrint();\n };\n render(\n <React.StrictMode>\n <HashRouter>\n <Authorization/>\n <Notifications/>\n </HashRouter>\n </React.StrictMode>,\n document.getElementById('root'),\n );\n}\n\nfunction loadApplication() {\n const parameters = {\n ...getParametersFromString(location.search),\n ...getParametersFromString(location.hash),\n };\n\n if (!parameters.dump) {\n return renderReactApplication();\n }\n\n const script = document.createElement('script');\n script.src = parameters.dump;\n script.async = true;\n script.onload = renderReactApplication;\n script.onerror = renderReactApplication;\n document.body.appendChild(script);\n}\n\nuserSettings.loadUserSettings().then(() => {\n loadApplication();\n});\n"],"names":["evalCsvFile","text","onChange","byTaskId","split","forEach","row","taskId","type","scopeOrTitle","scope","evalJsFile","temp","window","report","firstText","slice","eval","e","getOnDrop","setLoading","event","preventDefault","stopPropagation","dropItems","dataTransfer","items","map","file","kind","getAsFile","filter","length","Promise","all","then","item","key","substring","sort","a","b","localeCompare","join","telegrammMessages","JSON","parse","messages","flat","getShowDropZone","aa","require","ca","p","c","arguments","encodeURIComponent","da","Set","ea","fa","ha","add","ia","document","createElement","ja","Object","prototype","hasOwnProperty","ka","la","ma","v","d","f","g","this","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","propertyName","sanitizeURL","removeEmptyString","z","toLowerCase","ra","sa","toUpperCase","ta","pa","isNaN","qa","call","test","oa","removeAttribute","setAttribute","setAttributeNS","replace","xlinkHref","ua","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","va","Symbol","for","wa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","iterator","Ka","La","A","assign","Ma","Error","stack","trim","match","Na","Oa","prepareStackTrace","defineProperty","set","Reflect","construct","l","h","k","displayName","includes","name","Pa","tag","render","Qa","$$typeof","_context","_payload","_init","Ra","Sa","Ta","nodeName","Va","_valueTracker","getOwnPropertyDescriptor","constructor","get","configurable","enumerable","getValue","setValue","stopTracking","Ua","Wa","checked","value","Xa","activeElement","body","Ya","defaultChecked","defaultValue","_wrapperState","initialChecked","Za","initialValue","controlled","ab","bb","cb","db","ownerDocument","eb","Array","isArray","fb","options","selected","defaultSelected","disabled","gb","dangerouslySetInnerHTML","children","hb","ib","jb","textContent","kb","lb","mb","nb","namespaceURI","innerHTML","valueOf","toString","firstChild","removeChild","appendChild","MSApp","execUnsafeLocalFunction","ob","lastChild","nodeType","nodeValue","pb","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","qb","rb","sb","style","indexOf","setProperty","keys","charAt","tb","menuitem","area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","ub","vb","is","wb","xb","target","srcElement","correspondingUseElement","parentNode","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","push","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","addEventListener","removeEventListener","Nb","apply","m","onError","Ob","Pb","Qb","Rb","Sb","Tb","Vb","alternate","return","flags","Wb","memoizedState","dehydrated","Xb","Zb","child","sibling","current","Yb","$b","ac","unstable_scheduleCallback","bc","unstable_cancelCallback","cc","unstable_shouldYield","dc","unstable_requestPaint","B","unstable_now","ec","unstable_getCurrentPriorityLevel","fc","unstable_ImmediatePriority","gc","unstable_UserBlockingPriority","hc","unstable_NormalPriority","ic","unstable_LowPriority","jc","unstable_IdlePriority","kc","lc","oc","Math","clz32","pc","qc","log","LN2","rc","sc","tc","uc","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","vc","xc","yc","zc","Ac","eventTimes","Cc","C","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Map","Pc","Qc","Rc","Sc","delete","pointerId","Tc","nativeEvent","blockedOn","domEventName","eventSystemFlags","targetContainers","Vc","Wc","priority","isDehydrated","containerInfo","Xc","Yc","dispatchEvent","shift","Zc","$c","ad","bd","cd","ReactCurrentBatchConfig","dd","ed","transition","fd","gd","hd","id","Uc","jd","kd","ld","md","nd","od","keyCode","charCode","pd","qd","rd","_reactName","_targetInst","currentTarget","isDefaultPrevented","defaultPrevented","returnValue","isPropagationStopped","cancelBubble","persist","isPersistent","wd","xd","yd","sd","eventPhase","bubbles","cancelable","timeStamp","Date","now","isTrusted","td","ud","view","detail","vd","Ad","screenX","screenY","clientX","clientY","pageX","pageY","ctrlKey","shiftKey","altKey","metaKey","getModifierState","zd","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","Bd","Dd","Fd","Hd","animationName","elapsedTime","pseudoElement","Id","clipboardData","Jd","Ld","data","Md","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","Nd","Od","Alt","Control","Meta","Shift","Pd","Qd","String","fromCharCode","code","location","repeat","locale","which","Rd","Td","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Vd","touches","targetTouches","changedTouches","Xd","Yd","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","$d","ae","be","documentMode","ce","de","ee","fe","ge","he","ie","le","color","date","datetime","email","month","number","password","range","search","tel","time","url","week","me","ne","oe","listeners","pe","qe","re","se","te","ue","ve","we","xe","ye","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","node","offset","nextSibling","Le","contains","compareDocumentPosition","Me","HTMLIFrameElement","contentWindow","href","Ne","contentEditable","Oe","focusedElem","selectionRange","documentElement","start","end","selectionStart","selectionEnd","min","defaultView","getSelection","extend","rangeCount","anchorNode","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","element","left","scrollLeft","top","scrollTop","focus","Pe","Qe","Re","Se","Te","Ue","Ve","We","animationend","animationiteration","animationstart","transitionend","Xe","Ye","Ze","animation","$e","af","bf","cf","df","ef","ff","gf","hf","lf","mf","concat","nf","Ub","instance","listener","D","of","has","pf","qf","rf","random","sf","bind","capture","passive","n","t","J","x","u","w","F","tf","uf","parentWindow","vf","wf","na","xa","$a","ba","je","char","ke","unshift","xf","yf","zf","Af","Bf","Cf","Df","Ef","__html","Ff","setTimeout","Gf","clearTimeout","Hf","Jf","queueMicrotask","resolve","catch","If","Kf","Lf","Mf","previousSibling","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","E","G","Vf","H","Wf","Xf","Yf","contextTypes","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Zf","childContextTypes","$f","ag","bg","getChildContext","cg","__reactInternalMemoizedMergedChildContext","dg","eg","fg","gg","hg","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","I","zg","Ag","Bg","elementType","deletions","Cg","pendingProps","overflow","treeContext","retryLane","Dg","mode","Eg","Fg","Gg","memoizedProps","Hg","Ig","Jg","Kg","Lg","defaultProps","Mg","Ng","Og","Pg","Qg","Rg","_currentValue","Sg","childLanes","Tg","dependencies","firstContext","lanes","Ug","Vg","context","memoizedValue","next","Wg","Xg","Yg","interleaved","Zg","$g","ah","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","pending","effects","bh","ch","eventTime","lane","payload","callback","dh","K","eh","fh","gh","q","r","y","hh","ih","jh","Component","refs","kh","nh","isMounted","_reactInternals","enqueueSetState","L","lh","mh","enqueueReplaceState","enqueueForceUpdate","oh","shouldComponentUpdate","isPureReactComponent","ph","contextType","state","updater","qh","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","rh","props","getDerivedStateFromProps","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","sh","ref","_owner","_stringRef","th","uh","vh","index","wh","xh","yh","implementation","zh","Ah","done","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","tagName","Jh","Kh","Lh","M","Mh","revealOrder","Nh","Oh","_workInProgressVersionPrimary","Ph","ReactCurrentDispatcher","Qh","Rh","N","O","P","Sh","Th","Uh","Vh","Q","Wh","Xh","Yh","Zh","$h","ai","bi","ci","baseQueue","queue","di","ei","fi","lastRenderedReducer","action","hasEagerState","eagerState","lastRenderedState","dispatch","gi","hi","ii","ji","ki","getSnapshot","li","mi","R","ni","lastEffect","stores","oi","pi","qi","ri","create","destroy","deps","si","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","Ci","Di","Ei","Fi","Gi","Hi","Ii","Ji","readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","identifierPrefix","Ki","message","digest","Li","Mi","console","error","Ni","WeakMap","Oi","Pi","Qi","Ri","getDerivedStateFromError","componentDidCatch","Si","componentStack","Ti","pingCache","Ui","Vi","Wi","Xi","ReactCurrentOwner","Yi","Zi","$i","aj","bj","compare","cj","dj","ej","baseLanes","cachePool","transitions","fj","gj","hj","ij","jj","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","kj","lj","pendingContext","mj","Aj","Cj","Dj","nj","oj","pj","fallback","qj","rj","tj","dataset","dgst","uj","vj","_reactRetry","sj","subtreeFlags","wj","xj","isBackwards","rendering","renderingStartTime","last","tail","tailMode","yj","Ej","S","Fj","Gj","wasMultiple","multiple","suppressHydrationWarning","onClick","onclick","size","createElementNS","autoFocus","createTextNode","T","Hj","Ij","Jj","Kj","U","Lj","WeakSet","V","Mj","W","Nj","Oj","Qj","Rj","Sj","Tj","Uj","Vj","Wj","insertBefore","_reactRootContainer","Xj","X","Yj","Zj","ak","onCommitFiberUnmount","componentWillUnmount","bk","ck","dk","ek","fk","isHidden","gk","hk","display","ik","jk","kk","lk","__reactInternalSnapshotBeforeUpdate","src","Wk","mk","ceil","nk","ok","pk","Y","Z","qk","rk","sk","tk","uk","Infinity","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","Ek","callbackNode","expirationTimes","expiredLanes","wc","callbackPriority","ig","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","Ok","Pk","finishedWork","finishedLanes","Qk","timeoutHandle","Rk","Sk","Tk","Uk","Vk","mutableReadLanes","Bc","Pj","onCommitFiberRoot","mc","onRecoverableError","Xk","onPostCommitFiberRoot","Yk","Zk","al","isReactComponent","pendingChildren","bl","mutableSourceEagerHydrationData","cl","cache","pendingSuspenseBoundaries","dl","el","fl","gl","hl","il","jl","zj","$k","ll","reportError","ml","_internalRoot","nl","ol","pl","ql","sl","rl","unmount","unstable_scheduleHydration","splice","querySelectorAll","stringify","form","tl","usingClientEntryPoint","Events","ul","findFiberByHostInstance","bundleType","version","rendererPackageName","vl","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","wl","isDisabled","supportsFiber","inject","exports","createPortal","createRoot","unstable_strictMode","findDOMNode","flushSync","hydrate","hydrateRoot","hydratedSources","_getVersion","_source","unmountComponentAtNode","unstable_batchedUpdates","unstable_renderSubtreeIntoContainer","checkDCE","err","module","__self","__source","Fragment","jsx","jsxs","setState","forceUpdate","escape","_status","_result","default","Children","count","toArray","only","Profiler","PureComponent","StrictMode","Suspense","cloneElement","createContext","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","createFactory","createRef","forwardRef","isValidElement","lazy","memo","startTransition","unstable_act","pop","sortIndex","performance","setImmediate","startTime","expirationTime","priorityLevel","navigator","scheduling","isInputPending","MessageChannel","port2","port1","onmessage","postMessage","unstable_Profiling","unstable_continueExecution","unstable_forceFrameRate","floor","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_runWithPriority","delay","unstable_wrapCallback","_arrayLikeToArray","arr","len","i","arr2","_arrayWithHoles","_iterableToArray","iter","from","_nonIterableRest","TypeError","_slicedToArray","arrayWithHoles","_i","_s","_e","_x","_r","_arr","_n","_d","unsupportedIterableToArray","nonIterableRest","_toConsumableArray","arrayLikeToArray","iterableToArray","_unsupportedIterableToArray","o","minLen","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","__esModule","ns","def","getOwnPropertyNames","definition","globalThis","Function","prop","toStringTag","_typeof","_toPropertyKey","arg","hint","prim","toPrimitive","res","Number","writable","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","_objectSpread2","getOwnPropertyDescriptors","defineProperties","Constructor","_defineProperties","descriptor","protoProps","staticProps","_setPrototypeOf","setPrototypeOf","_inherits","subClass","superClass","_getPrototypeOf","_isNativeReflectConstruct","sham","Proxy","Boolean","_assertThisInitialized","self","ReferenceError","_possibleConstructorReturn","_createSuper","Derived","hasNativeReflectConstruct","result","Super","NewTarget","_construct","Parent","args","Class","_wrapNativeSuper","_cache","fn","Wrapper","Action","ResultType","PopStateEventType","warning","cond","warn","getHistoryState","usr","idx","createLocation","to","pathname","hash","parsePath","substr","_ref","path","parsedPath","hashIndex","searchIndex","getUrlBasedHistory","getLocation","createHref","validateLocation","v5Compat","globalHistory","history","Pop","getIndex","handlePop","nextIndex","delta","createURL","origin","createPath","invariant","URL","replaceState","listen","encodeLocation","Push","historyState","pushState","Replace","go","matchRoutes","routes","locationArg","basename","stripBasename","branches","flattenRoutes","score","siblings","every","compareIndexes","routesMeta","childrenIndex","rankRouteBranches","matches","matchRouteBranch","safelyDecodeURI","parentsMeta","parentPath","flattenRoute","route","relativePath","caseSensitive","startsWith","joinPaths","computeScore","_route$path","allowArrayLike","it","s","normalCompletion","didErr","step","_e2","explodeOptionalSegments","exploded","segments","first","rest","isOptional","endsWith","required","restExploded","subpath","paramRe","isSplat","initialScore","some","reduce","segment","branch","matchedParams","matchedPathname","remainingPathname","matchPath","params","pathnameBase","normalizePathname","pattern","paramNames","regexpSource","_","paramName","matcher","RegExp","compilePath","captureGroups","splatValue","decodeURIComponent","safelyDecodeURIComponent","decodeURI","startIndex","nextChar","getInvalidPathError","field","dest","getPathContributingMatches","resolveTo","toArg","routePathnames","locationPathname","isPathRelative","isEmptyPath","toPathname","routePathnameIndex","toSegments","fromPathname","resolvePathname","normalizeSearch","normalizeHash","resolvePath","hasExplicitTrailingSlash","hasCurrentTrailingSlash","paths","AbortedDeferredError","isRouteErrorResponse","status","statusText","internal","validMutationMethodsArr","validRequestMethodsArr","React","checkIfSnapshotChanged","inst","latestGetSnapshot","prevValue","nextValue","DataRouterContext","DataRouterStateContext","AwaitContext","NavigationContext","LocationContext","RouteContext","outlet","RouteErrorContext","useInRouterContext","useLocation","useNavigate","routePathnamesJson","activeRef","relative","useParams","routeMatch","useResolvedPath","_temp2","DefaultErrorElement","useDataRouterState","DataRouterStateHook","UseRouteError","routeId","useCurrentRouteId","errors","useRouteError","lightgrey","preStyles","padding","backgroundColor","fontStyle","DataRouterHook","RenderErrorBoundary","errorInfo","routeContext","component","RenderedRoute","dataRouterContext","static","staticContext","errorElement","_deepestRenderedBoundaryId","_renderMatches","parentMatches","dataRouterState","renderedMatches","errorIndex","findIndex","reduceRight","getChildren","hookName","useRouteContext","thisRoute","AwaitRenderStatus","Route","_props","Router","_ref4","basenameProp","locationProp","navigationType","NavigationType","staticProp","navigationContext","trailingPathname","Routes","_ref5","dataRouterStateContext","parentParams","parentPathnameBase","locationFromContext","parsedLocationArg","useRoutes","router","createRoutesFromChildren","neverSettledPromise","treePath","loader","hasErrorBoundary","shouldRevalidate","handle","HashRouter","_ref2","historyRef","querySelector","getAttribute","isBrowser","Link","reloadDocument","preventScrollReset","isAbsolute","navigationLocation","isExternal","currentUrl","targetUrl","protocol","_temp","joinedPathname","useHref","internalOnClick","replaceProp","navigate","isModifiedEvent","shouldProcessLinkClick","useLinkClickHandler","_classPrivateFieldBase","receiver","privateKey","_classPrivateFieldKey","Localization","language","translations","dictionary","langId","part","json","localization","die","mockGlobal","getGlobal","global","getDescriptor","objectPrototype","EMPTY_ARRAY","freeze","EMPTY_OBJECT","hasProxy","plainObjectString","assertProxies","once","func","invoked","noop","isFunction","isStringish","isObject","isPlainObject","proto","protoConstructor","isGenerator","addHiddenProp","propName","addHiddenFinalProp","createInstanceofPredicate","theClass","isES6Map","thing","isES6Set","hasGetOwnPropertySymbols","hasProp","storedAnnotationsSymbol","createDecoratorAnnotation","annotation","property","storeAnnotation","annotationType_","OVERRIDE","isOverride","$mobx","Atom","name_","isPendingUnobservation_","isBeingObserved_","observers_","diffValue_","lastAccessedBy_","lowestObserverState_","IDerivationState_","NOT_TRACKING_","onBOL","onBUOL","_proto","onBO","onBUO","reportObserved","reportChanged","startBatch","propagateChanged","endBatch","isAtom","createAtom","onBecomeObservedHandler","onBecomeUnobservedHandler","arg3","atom","interceptHook","ON_BECOME_OBSERVED","onBecomeUnobserved","comparer","identity","structural","deepEqual","shallow","deepEnhancer","isObservable","observable","array","isAction","isFlow","flow","autoAction","referenceEnhancer","newValue","createActionAnnotation","options_","make_","extend_","adm","_this$options_","bound","target_","actionDescriptor","createActionDescriptor","proxyTrap","defineProperty_","safeDescriptors","globalState","_annotation$options_","proxy_","createAction","_annotation$options_2","_annotation$options_3","isPlainObject_","createFlowAnnotation","flowDescriptor","createFlowDescriptor","_this$options_2","isMobXFlow","createComputedAnnotation","process","assertComputedDescriptor","defineComputedProperty_","createObservableAnnotation","assertObservableDescriptor","defineObservableProperty_","enhancer","autoAnnotation","createAutoAnnotation","computed","autoBind","observableAnnotation","deep","_this$options_4","_this$options_5","defaultCreateObservableOptions","defaultDecorator","proxy","asCreateObservableOptions","observableRefAnnotation","observableShallowAnnotation","isObservableObject","isObservableArray","isObservableMap","isObservableSet","observableStructAnnotation","oldValue","observableDecoratorAnnotation","getEnhancerFromOptions","getEnhancerFromAnnotation","createObservable","arg2","box","ObservableValue","equals","initialValues","useProxies","createLegacyArray","createObservableArray","ObservableMap","ObservableSet","decorators","extendObservable","asObservableObject","_target$$mobx","objectProxyTraps","asDynamicObservableObject","struct","COMPUTED","computedAnnotation","computedStructAnnotation","arg1","opts","ComputedValue","currentActionId","nextActionId","isFunctionNameConfigurable","_getDescriptor","tmpNameDescriptor","actionName","executeAction","isMobxAction","canRunAsDerivation","runInfo","notifySpy_","startTime_","prevDerivation_","trackingDerivation","runAsAction","prevAllowStateChanges_","allowStateChanges","untrackedStart","allowStateChangesStart","prevAllowStateReads_","allowStateReadsStart","runAsAction_","actionId_","parentActionId_","_startAction","error_","suppressReactionErrors","allowStateChangesEnd","allowStateReadsEnd","untrackedEnd","_endAction","prev","notifySpy","_this","hasUnreportedChange_","interceptors_","changeListeners_","value_","dehancer","_inheritsLoose","dehanceValue","prepareNewValue_","UNCHANGED","setNewValue_","checkIfStateModificationsAreAllowed","hasInterceptors","change","interceptChange","UPDATE","hasListeners","notifyListeners","intercept_","handler","registerInterceptor","observe_","fireImmediately","observableKind","debugObjectName","registerListener","raw","toJSON","TraceMode","dependenciesState_","observing_","newObserving_","runId_","UP_TO_DATE_","unboundDepsCount_","CaughtException","triggeredBy_","isComputing_","isRunningSetter_","derivation","setter_","isTracing_","NONE","scope_","equals_","requiresReaction_","keepAlive_","compareStructural","requiresReaction","keepAlive","onBecomeStale_","POSSIBLY_STALE_","propagateMaybeChanged","inBatch","shouldCompute","prevTrackingContext","trackingContext","trackAndCompute","STALE_","propagateChangeConfirmed","warnAboutUntrackedRead_","computeValue_","isCaughtException","cause","wasSuspended","changed","trackDerivedFunction","disableErrorBoundaries","suspend_","clearObserving","firstTime","autorun","prevU","isComputedValue","prevAllowStateReads","prevUntracked","obs","changeDependenciesStateTo0","runId","prevTracking","prevObserving","observing","lowestNewObservingDerivationState","i0","dep","removeObserver","addObserver","bindDependencies","untracked","allowStateReads","MobXGlobals","mobxGuid","pendingUnobservations","pendingReactions","isRunningReactions","enforceActions","spyListeners","globalReactionErrorHandlers","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","verifyProxies","canMergeGlobalState","isolateCalled","__mobxInstanceCount","__mobxGlobals","queueForUnobservation","runReactions","list","Reaction","onInvalidate_","errorHandler_","requiresObservable_","isDisposed_","isScheduled_","isTrackPending_","isRunning_","schedule_","isScheduled","runReaction_","reportExceptionInDerivation_","prevReaction","dispose","getDisposer_","trace","enterBreakPoint","getAtomFromArgs","BREAK","LOG","reactionScheduler","runReactionsHelper","allReactions","iterations","remainingReactions","isReaction","ACTION","AUTOACTION","DEFAULT_ACTION_NAME","actionAnnotation","actionBoundAnnotation","autoActionAnnotation","autoActionBoundAnnotation","createActionFactory","reaction","_opts","scheduler","reactionRunner","requiresObservable","createSchedulerFromOptions","run","hook","getAtom","listenersKey","hookListeners","ALWAYS","configure","isolateGlobalState","baseScheduler","setReactionScheduler","properties","annotations","descriptors","getDependencyTree","nodeToDependencyTree","generatorId","FlowCancellationError","flowAnnotation","flowBoundAnnotation","generator","rejector","ctx","gen","pendingPromise","promise","reject","stepId","onFulfilled","ret","onRejected","cancel","cancelPromise","yieldedPromise","_isObservable","values_","transaction","thisArg","getAdm","has_","get_","set_","deleteProperty","delete_","ownKeys_","preventExtensions","interceptable","interceptors","listenable","makeObservable","collectStoredAnnotations","keysSymbol","SPLICE","arrayTraps","getArrayLength_","arrayExtensions","parseInt","setArrayLength_","ObservableArrayAdministration","owned_","legacyMode_","atom_","enhancer_","lastKnownLength_","newV","oldV","dehanceValue_","dehanceValues_","values","added","addedCount","removed","removedCount","newLength","currentLength","newItems","spliceWithArray_","updateArrayLength_","oldLength","reserveArrayBuffer","deleteCount","max","lengthDelta","spliceItemsIntoValues_","notifyArraySplice_","oldItems","notifyArrayChildUpdate_","notify","owned","clear","spliceWithArray","reverse","copy","remove","addArrayExtension","funcName","funcFactory","simpleFunc","dehancedValues","mapLikeFunc","_this2","reduceLikeFunc","accumulator","currentValue","_this3","isObservableArrayAdministration","ObservableMapMarker","ADD","DELETE","initialData","data_","hasMap_","keysAtom_","merge","entry","newEntry","hasKey","updateValue_","addValue_","_this4","makeIterable","entries","other","propertyIsEnumerable","getPlainObjectKeys","_this5","_this6","replacementMap","dataStructure","convertToMap","orderedData","keysReportChangedCalled","_this7","keyExisted","iter1","iter2","next1","next2","_createClass","ObservableSetMarker","callbackFn","observableValues","descriptorCache","REMOVE","ObservableObjectAdministration","defaultAnnotation_","appliedAnnotations_","pendingKeys_","getObservablePropValue_","setObservablePropValue_","assertAnnotable","_this$target_$storedA","outcome","recordAnnotationApplied","deleteOutcome","notifyPropertyAddition_","cachedDescriptor","getCachedObservablePropDescriptor","keys_","getAnnotationFromOptions","isObservableObjectAdministration","_adm$target_$storedAn","ctor","ENTRY_0","createArrayEntryDescriptor","OBSERVABLE_ARRAY_BUFFER_SIZE","StubArray","LegacyObservableArray","arrays","createArrayBufferItem","getDebugName","getAdministration","named","depth","eq","aStack","bStack","className","unwrap","areArrays","aCtor","bCtor","getSelf","__MOBX_DEVTOOLS_GLOBAL_HOOK__","injectMobx","spy","extras","defaultNoopBatch","printDebugValue","FinalizationRegistryLocal","FinalizationRegistry","createTrackingData","mounted","changedBeforeMount","cleanAt","CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS","FinalizationRegistryMaybeUndefined","cleanupTokenToReactionTrackingMap","globalCleanupTokensCounter","registry","token","trackedReaction","addReactionToTrack","reactionTrackingRef","objectRetainedByReact","register","finalizationRegistryCleanupToken","recordReactionAsCommitted","reactionRef","unregister","forceCleanupTimerToRunNowForTests","resetCleanupScheduleForTests","createReactionCleanupTrackingUsingFinalizationRegister","reactionCleanupHandle","uncommittedReactionRefs","ensureCleanupTimerRunning","cleanUncommittedReactions","tracking","createTimerBasedReactionCleanupTracking","globalIsUsingStaticRendering","isUsingStaticRendering","observerComponentNameFor","baseComponentName","objectToBeRetainedByReactFactory","ObjectToBeRetainedByReact","useObserver","newReaction","trackingData_1","exception","hasSymbol","ReactForwardRefSymbol","ReactMemoSymbol","observer","baseComponent","useForwardRef","observerComponent","hoistBlackList","observerBatching","batch","AuthorizationStore","isInitialization","overrides","makeAutoObservable","SettingsStore","commits","defaultFrom","defaultTo","TODAY","ONE_DAY","minCommits","isFullTime","defaultSalary","defaultWorkDays","holidaysInYear","currency","salary","workDays","updateByCommits","setFilterByDateType","updateProperty","setSalary","salaryInMonth","getMiddleSalaryInMonth","workDaysInWeek","acc","firstCommit","lastCommit","timestamp","year","halfYear","day","getTime","toISOString","dataGripStore","userName","getDayName","getDateByTimestamp","getDay","toLocaleString","get2Number","getDate","getMoney","settingsStore","currencyDisplay","maximumFractionDigits","getShortMoney","notation","getShortNumber","fractionDigits","toFixed","getShortDateRange","RecommendationsPersonByTimestamp","dataGrip","author","byTimestamp","statisticByAuthor","byAuthor","statisticByName","workInWeek","workByDay","daysLosses","daysAll","getFirstDay","getLastDay","allCommitsByTimestamp","RecommendationsPersonByWeek","lastWeeks","statistic","getLazyDays","getNotWork","getUpWork","getTasks","lazyDays","weekDays","taskInDay","RecommendationsTeamByAuthor","worker","dismissed","staff","lotOfLazy","manyLazy","oneTypeMans","workLazyTotal","isStaff","isDismissed","workLazy","daysWorked","types","getProjectType","RecommendationsTeamByHour","team","getWeekIsWork","weekday","commitsByDayAndHourTotal","workAndWeekends","RecommendationsTeamByScope","money","moneyWorked","getBusFactor","getManyTypes","getParallelism","total","authors","days","parallelism","sum","oneMaintainer","limit","oneType","RecommendationsTeamByTimestamp","totalDays","getWorkOnWeek","allWorkDays","workOnWeek","percent","description","RecommendationsTeamByType","fewTypes","tasks","commitsByAuthors","RecommendationsTeamByWeek","lastWeek","lazyDaysTotal","authorsLength","lazyMaintainer","Recommendations","byScope","byType","byWeek","byHour","personByWeek","personByTimestamp","person","getTotalInfo","DEFAULT_VALUES","getNewEmploymentContract","settings","workDaysInYear","vacationDaysInYear","getNewEmployeesSettings","defaultSettings","linksPrefix","task","pr","employees","response","localStorage","getItem","defaultResponse","removeItem","jsonFromMemory","setItem","loadUserSettings","settingsApi","userSetting","employee","contract","milliseconds","find","user","getUserByName","actualContract","сontract","getEmploymentContract","firstCommitTime","lastCommitTime","axis","prevContract","dx","minTime","percentForPrev","prevPeriodSalary","DataGripByAuthor","employment","commit","dismissedLimit","active","dotA","dotB","dot","allDaysInProject","HOLIDAYS","middleSalaryInDay","userSettings","moneyLosses","moneyAll","tasksEntries","tasksSize","hours","messageLength","middleMessageLength","round","totalMessageLength","wordStatistics","daysWorkedLosses","authorInfo","scopes","daysForTask","changesForTask","getMiddleValue","maxMessageLength","getTotalCommitsByDayAndHour","commitsByDayAndHour","fill","gap","middlePart","changes","commitsByHour","getDefaultCommitsByDayAndHour","moneyByMonth","alreadyAdded","workDay","weekDay","isWorkDay","LIMIT_WORD_LENGTH","disabledWords","fix","word","PROPERTIES_FOR_SUMMATION","DataGripByTeam","dataGripByAuthor","fromEntries","hour","DataGripByScope","salaryCache","cost","DataGripByType","daysByAuthorsTotal","daysByAuthors","getIncrement","MinMaxCounter","minData","maxData","DataGripByTimestamp","commitsByAuthor","weekendPayment","addedAndChanges","tasksByAuthor","dayInMonth","uniqCommitsByTimestamp","commitsCounter","changesCounter","tasksCounter","tasksInDay","update","commitsByTimestampCounter","changesByTimestampCounter","tasksByTimestampCounter","sortList","salaryInDay","DataGripByWeek","workDaysTotal","lazyDaysValue","weekDaysValue","changesLength","setDefault","typeByAuthor","IGNORE_LIST","DataGripByExtension","fileList","byExtension","extension","more","moreAdded","moreChanges","moreRemoved","addedPercent","changesPercent","removedPercent","DataGripByGet","isGet","getsByAuthor","defaultGets","createDefaultGets","gets","content","firstKey","lastKey","taskNumber","COMMIT_TYPE","WeightedAverage","valueAndCount","DataGripByPR","prByTask","lastCommitByTaskNumber","commitType","prId","refAuthorPR","updateTotalByAuthor","delayDays","getPRByGroups","delayDaysWeightedAverage","weightedAverage","workDaysWeightedAverage","details","weightedAverageDetails","TITLES","beginTaskTime","endTaskTime","work","updateTotalInfo","recommendations","firstLastCommit","initializationInfo","addCommit","info","AchievementsByCompetition","achievements","nameLength","midMessage","maxMessage","moreRefactoring","commitsInDay","addData","refactor","achievement","addTotalInfo","folder","commitsPercent","addInfoFromFile","folderInfo","lines","fileInfo","addInfoFromFolder","parentInfo","fileName","getFileTreeWithStatistic","rootTree","POPULAR_TYPES","REPLACE_TYPES","improve","optimize","rename","eslint","getTypeAndScope","messageParts","findType","getType","getScope","getTask","getTaskNumber","getUserInfo","logString","parts","sourceDate","commonInfo","getHours","minutes","getMinutes","getMonth","getUTCFullYear","isSystemPR","isSystemMerge","isAutoMerge","repository","toBranch","getNewFileName","allFiles","changedName","oldName","newName","oldPath","newPath","getFolder","getFileList","fileTree","getFolderTree","getNewFileAuthor","addedLines","getNewFileInfo","created","uniq","Parser","parseCommit","weekEndTime","addedRaw","removedRaw","diff","from_id","subString","date_unixtime","ParserTelegramm","DataGripStore","showApplication","setCommits","setTelegrammMessages","dump","dir","isLoading","onDropCallback","showDropCallback","TEXT","timer","setTimer","setIndex","localIndex","setInterval","clearInterval","progress","getCustomClassName","customClassName","slim","second","primary","title","Header","onClose","Body","Footer","Modal","childrenWithProps","ReactDOM","yes","no","isOpen","successCallback","cancelCallback","open","close","confirm","Switch","icon","alt","getDeepCopy","getUpdatedFormData","formData","getKeys","lastIndex","getValueByKeys","originData","FormStore","isEdited","isSuccess","isLocked","isServerError","initState","errorMessage","setIsLocked","setInitState","updateState","setFormError","removeFormError","clearErrorMessage","clearAllErrors","getFormattedState","validation","submit","FormData","formattedState","clearForm","finally","show","startClearTimer","NotificationsStore","save","saveSettings","notificationsStore","Form","SideBarMenuItem","isSelected","formattedTitle","settingsForm","SideBarMenuGap","page","formattedUserId","userId","newType","formStore","Input","placeholder","prevUrl","printPage","printSection","printAllPages","triggerPrint","endPrint","newUrl","print","Title","Filters","printStore","textAlign","PageWrapper","selectedMenuItem","template","css","paddingTop","PageBox","onRemove","PageColumn","rel","NothingFound","stylesConfig","iconWidth","iconHeight","margin","Loading","minHeight","Op","hasOwn","desc","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","define","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","Context","makeInvokeMethod","tryCatch","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","NativeIteratorPrototype","Gp","defineIteratorMethods","method","_invoke","AsyncIterator","PromiseImpl","invoke","record","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","methodName","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","isGeneratorFunction","genFun","mark","awrap","async","val","skipTempReset","stop","rootRecord","rval","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","asyncGeneratorStep","_next","_throw","DataLoaderState","INIT","LOADING","LOADING_MORE","LOADING_ALL","LOADING_PAGE","ERROR","SUCCESS","DataLoaderStore","defaultPageNumber","defaultPageSize","watch","watchedValue","pageNumber","pageSize","fetchData","errorCallback","loadMore","showAll","updateSort","canSendRequest","newSearch","totalPages","totalElements","parameters","setResponse","ErrorDescription","isPagination","DataLoader","parameterInUrl","pagination","query","URLSearchParams","store","setStore","pageNumberFromUrl","pageSizeFromUrl","updateWatchedValue","currentPage","currentSize","goToPage","dataLoaderStore","getStateAndResponse","getNewProps","nothingFoundBlock","filteredChildrenWithProps","help","example","UiKitInputString","SimplePagination","pageSizeCurrent","canShowMore","newPageNumber","formattedPageNumber","newPageSize","formattedPageSize","getFakeLoader","formattedContent","filteredContent","sortedContent","sortRules","getResultForString","getResultForNumber","getResultForArray","firstRow","methods","rule","direction","getSortedContent","begin","addPadding","cells","column","columnIndex","columnClassName","isSortable","sortDirection","headerStyle","DefaultCell","cursor","defaultPeops","rows","disabledRow","formattedRows","formattedValue","formatter","prefixes","suffixes","rowClassName","ColumnTypesEnum","dirtyColumns","adaptiveWidth","sortByColumns","adaptiveColumnWidth","minWidth","userWidth","defaultWidth","middle","isFixed","Table","offsetWidth","setOffsetWidth","refTable","currentWidth","defaultColumns","STRING","NUMBER","SHORT_NUMBER","getDefaultProps","visibleColumns","isShow","columnsWidth","fixedWidth","adaptiveColumnsCount","adaptiveTableWidth","adaptiveColumnsWidth","getAdaptiveColumnWidth","getColumnConfigs","Column","isResizable","isDraggable","getFormattedOther","titles","otherTitle","getSubLines","currentMax","allItems","normal","getWidth","Line","suffix","formattedSuffix","formattedDescription","LineChart","subLines","ColorGenerator","refColorByTitle","colors","DEFAULT","getOptions","getTextWithStyle","List","cssStyle","SimpleText","Description","paragraph","prefix","mainText","recommendation","fact","previewText","maxCardsOnDisplay","setMaxCardsOnDisplay","setOpen","visibleChildren","getMax","subProperty","getMaxByLength","AuthorView","textWork","textLosses","taskChart","commitsChart","typeChart","Pagination","dots","scale","CommitInfo","minute","TaskInfo","DayInfo","events","setSelected","fullDay","shortDay","countCommit","getPercentByMax","titleValue","ScopeView","authorChart","option","formattedOption","selectedValue","dayInfo","getFormattedTime","getFormattedDate","getTags","uniqueTypes","tags","Task","customStyle","setCustomStyle","clientWidth","scrollWidth","overflowX","TempoView","Tempo","firstPoint","setWeek","setUser","partOfData","filters","getPartOfData","firstWeekDay","lastWeekDay","uiKitStyle","CardWithIcon","long","workSpeed","speed","moneySpeed","UiKitSelectWithButtons","UiKitInputNumber","authorId","selectedPath","updateFilter","TreeFilters","treeStore","getButtonUp","getFolderView","getFileView","TreeView","getDetails","fileChart","rewriteChart","tree","folders","files","getArrayFromTree","subTree","folderName","getSubTreeByPath","TypeView","daysByAuthorsChart","WeekView","tasksChart","authorsChart","changesChart","workDaysTotalChart","workDaysChart","detailsLikeArray","nameDays","getDefaultMonthInfo","authorsByDate","firstDay","lastDay","addCommitsInMonth","monthsByDate","uniqueAuthors","getCommitsByMonth","wordDays","months","firstMonth","lastMonth","getAllMonths","showYear","getRefAuthorByTime","refTimeAuthor","Day","maxCommits","dayNumber","showInfo","setShowInfo","isWeekend","getColor","iconUrl","addPerson","removePerson","getIconUrl","addEmployees","removeEmployees","getDayText","backgroundImage","showEvents","allDays","currentDay","getEvents","MonthTotal","styleChart","Month","hideMoney","moneyChart","YearChart","getAuthorByDate","elements","commitsAfter1500","ACHIEVEMENT_TYPE","commitsBefore1500","workEveryTime","workNotWork","userNotWork","userIsDied","lessTasks","moreTasks","everyMessageLong","everyMessageShort","shortestName","longestName","moreCommits","lessCommits","oneCommitOneTask","moreLazyDays","lessLazyDays","zeroLazyDays","moreWorkDays","moreScopes","lessScopes","moreDaysForTask","more2DaysForTask","moreDaysInProject","lessDaysInProject","more90DaysInProject","lessDaysForTask","adam","more666DaysInProject","more777DaysInProject","longestMessage","moreTasksInDay","hasCommitFrom0to7","noCommitOnDay","hasCommitEveryTime","commitsAfter1800","more1488DaysInProject","taskNumber300","lessWorkDays","moreCreateCode","moreRemoveCode","moreChangeCode","moreStyle","moreOnHoliday","ALL_ACHIEVEMENTS","statusIndex","Extension","Icon","duration","animationDelay","DURATION","animations","Track","canStart","modeIndex","shuffle","classForMove","animationTimingFunction","animationDuration","j","tracks","showAnimation","setShowAnimation","setShow","Tv100And1","chartOptions","getAchievementByAuthor","getList","byCompetition","commitByHours","Top","extensions","tracksAuth","chartMessageLength","achievementsList","whiteSpace","pageBreakAfter","breakAfter","allPR","workChart","workChartOptions","delayChart","delayChartOptions","weightedAverageChart","DAY","THREE_DAY","WEEK","TWO_WEEK","MONTH","MORE","Authors","timeChart","AllPR","PRbyName","authorsStat","All","UserSelect","newUserId","tasksTypes","getWingsLevel","workedDays","layer","level","tasksNumber","Halo","AchievementBlock","Total","commitsWithGet","taskInDayChart","Console","textForCopy","Button","copyTextarea","position","select","execCommand","copyInBuffer","WarningInfo","buttonTitle","hasValue","selectedIds","newSelected","UiKitDate","setIsOpen","newSalary","setting","Common","InputString","commands","commandsForCopy","SettingForm","selectedNames","users","User","newUser","newEmployees","Salary","Success","showSplashScreen","setShowSplashScreen","dropArea","authorizationStore","success","Message","getParametersFromString","renderReactApplication","onafterprint","getElementById","script","onload","onerror","loadApplication"],"sourceRoot":""}