nolo-cli 0.261.0-alpha.1 → 0.262.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-PODMRXJJ.js → _executeModel-KWURYHY6.js} +97 -96
- package/{accountResolver-NGICIMEE.js → accountResolver-JYG5L7YP.js} +2 -2
- package/{action-NJTYNXXR.js → action-UK3HXGXF.js} +9 -9
- package/{addContentAction-RUPXLROG.js → addContentAction-CAKFVBDM.js} +14 -14
- package/{addDialogAgentAction-57EJ2UBC.js → addDialogAgentAction-KLJ2YWWM.js} +16 -16
- package/{agentDeleteCommand-DRFCOTYP.js → agentDeleteCommand-2U5Q7SNW.js} +135 -131
- package/{agentEmailCommands-FHENHUBF.js → agentEmailCommands-4AWNMWBA.js} +137 -136
- package/{agentGrantCommands-BMVKNYIY.js → agentGrantCommands-2VLLXGIU.js} +10 -9
- package/{agentListCommands-W66W5K3V.js → agentListCommands-436FHOIT.js} +68 -68
- package/{agentMachineCommands-C3BUBCXU.js → agentMachineCommands-EISFUXWT.js} +65 -65
- package/{agentProviderCommands-VIWKP7DM.js → agentProviderCommands-2W3VXDLV.js} +4 -3
- package/{agentPullCommand-5SNSXOY7.js → agentPullCommand-XEGOUYQT.js} +9 -8
- package/{agentRecordCommands-DYMHWTID.js → agentRecordCommands-HDLFE4ZJ.js} +127 -126
- package/{agentRun-QVFG3CI4.js → agentRun-EXDLR6OV.js} +137 -136
- package/{agentRunCommand-YV4V5HSL.js → agentRunCommand-5KXVUONI.js} +139 -138
- package/{agentRunControl-RGBHKPKJ.js → agentRunControl-U2MV74WR.js} +17 -16
- package/{agentRuntimeLocal-LVEMOYS2.js → agentRuntimeLocal-P4MMGIR6.js} +55 -55
- package/{agentSlice-OJCM7OUX.js → agentSlice-ATJWWHSU.js} +17 -17
- package/{appConfigCommands-ZUXQLE7L.js → appConfigCommands-W4JQHMOJ.js} +61 -61
- package/{appDeleteCommands-L5UKUMXY.js → appDeleteCommands-IXR47IAV.js} +61 -61
- package/{appDeployCommands-KX2BRQUW.js → appDeployCommands-LB6DHDF4.js} +61 -61
- package/{appDeployStatusCommands-7LHRSWW7.js → appDeployStatusCommands-UQ6MJL6D.js} +61 -61
- package/{appGetCommands-F7SDFCUK.js → appGetCommands-M5JCTDDQ.js} +61 -61
- package/{appListCommands-U4NJKSMZ.js → appListCommands-TE3ZHE3I.js} +61 -61
- package/{appMigrateCommands-JAPOLYSW.js → appMigrateCommands-FOXH6R4B.js} +61 -61
- package/{appSourceCommands-TLXPWXUH.js → appSourceCommands-3ACYB6I7.js} +61 -61
- package/{authCommand-AU3GZBZ2.js → authCommand-I5OBJP5S.js} +20 -19
- package/{authCommands-JKBWMUQ4.js → authCommands-I6KCGOCN.js} +13 -12
- package/{builtinSkillRegistry-6XUWMAV5.js → builtinSkillRegistry-MIXYSZUU.js} +3 -6
- package/{chromeCommands-O4IIKTBD.js → chromeCommands-MVEEIY4R.js} +2 -2
- package/{chromeOpsCommands-F47WYQWF.js → chromeOpsCommands-IZRCYDSW.js} +7 -6
- package/{chunk-LUTSMSIL.js → chunk-23X7C23G.js} +7 -7
- package/{chunk-GF4LYNNZ.js → chunk-24BICQPB.js} +2 -2
- package/{chunk-LTCZOOAM.js → chunk-2AJLG6PY.js} +4 -4
- package/{chunk-HMFKYZKP.js → chunk-2JMYAH5O.js} +16 -16
- package/{chunk-WMBJDXMY.js → chunk-2LFYMWM3.js} +13 -16
- package/{chunk-VOO3YQQP.js → chunk-2O72G3U2.js} +1 -1
- package/{chunk-2I4R6ZRV.js → chunk-2QAZCYOM.js} +38 -10
- package/{chunk-CNYPQYXT.js → chunk-2R6M34JP.js} +75 -75
- package/{chunk-ULPU4C43.js → chunk-36RT7KMI.js} +24 -24
- package/{chunk-ZB2E724W.js → chunk-37DGW762.js} +4 -4
- package/{chunk-3A5NNQCN.js → chunk-3BQDF4QB.js} +46 -12
- package/{chunk-RWXHGPWJ.js → chunk-3UH7SS4W.js} +1 -1
- package/chunk-3VXVE2LF.js +12 -0
- package/{chunk-HAZ6UVH4.js → chunk-47T3QP4V.js} +3 -3
- package/{chunk-YRPIUIEQ.js → chunk-4DBTBNTX.js} +3 -6
- package/chunk-4MEKE5D3.js +229 -0
- package/{chunk-NJCTPWJU.js → chunk-4X6FTGMU.js} +6 -6
- package/{chunk-2FGFY72B.js → chunk-4ZM3UL4E.js} +14 -14
- package/chunk-526GLZJE.js +275 -0
- package/{chunk-TJXO66M2.js → chunk-5MKPNTJP.js} +5 -5
- package/{chunk-L43DGEPZ.js → chunk-5YI447UL.js} +1 -1
- package/{chunk-U5PSCTMR.js → chunk-6NYQHXMV.js} +13 -13
- package/chunk-6R4IY46J.js +14 -0
- package/{chunk-A4O76A6V.js → chunk-6VQIFSWL.js} +11 -11
- package/{chunk-MMXHIHJZ.js → chunk-7K4J76JQ.js} +20 -20
- package/{chunk-NLS7F5DW.js → chunk-7T54GD3I.js} +22 -22
- package/{chunk-SU4NCTW4.js → chunk-B767MA64.js} +1 -1
- package/{chunk-RNLKWUVY.js → chunk-BAZCS5XG.js} +4 -4
- package/{chunk-NTBTVKKB.js → chunk-BWJLEN6X.js} +7 -7
- package/{chunk-UB7NV7NN.js → chunk-C36L6ZID.js} +1 -1
- package/{chunk-TXMFSGRY.js → chunk-D2LTQAGN.js} +1 -1
- package/{chunk-DDKA6V6X.js → chunk-DBJAJ4UD.js} +3 -3
- package/{chunk-2MIZHEND.js → chunk-DFI7MVCQ.js} +4 -4
- package/{chunk-LHJB4BXJ.js → chunk-E2KZNP6C.js} +1 -1
- package/{chunk-IN4B6Z2D.js → chunk-E5JV4DCB.js} +4 -4
- package/{chunk-OIOMBPCA.js → chunk-EHFDVQF5.js} +2 -2
- package/{chunk-XJW6SLBZ.js → chunk-EZKIRVLJ.js} +6 -6
- package/{chunk-ER6NTALN.js → chunk-FGXG6OLW.js} +1 -1
- package/{chunk-ERCSHBUD.js → chunk-G2JNJRTO.js} +95 -95
- package/{chunk-CL33RFD7.js → chunk-GH34JXNV.js} +1 -1
- package/{chunk-WY6DMHMG.js → chunk-GWB6AGME.js} +1 -1
- package/{chunk-KALCFXQO.js → chunk-HCXCKCNT.js} +200 -151
- package/{chunk-SWJRX4M5.js → chunk-HI5RS2O4.js} +328 -9
- package/{chunk-J22PFCQN.js → chunk-HRWRIPTB.js} +7 -7
- package/{chunk-VZDSNDUD.js → chunk-HT6MY27X.js} +35 -35
- package/{chunk-KAHYBAEN.js → chunk-HYCVEESH.js} +12 -72
- package/{chunk-7X4BFUJV.js → chunk-I5BYFTYK.js} +3 -3
- package/{chunk-AQNWWJLH.js → chunk-I6YIA2TY.js} +1 -1
- package/{chunk-ZQAADXSF.js → chunk-IB5AR52X.js} +1 -1
- package/{chunk-TCOHWKDM.js → chunk-IYRZKHA6.js} +1 -1
- package/{chunk-XUDXQT7R.js → chunk-J44TXB4J.js} +20 -18
- package/{chunk-VC3MAT33.js → chunk-J6Y6ZDS3.js} +195 -151
- package/{chunk-FNLT7NKG.js → chunk-K7HLFORE.js} +3 -3
- package/{chunk-UBOTXA3Z.js → chunk-KGBASAB5.js} +6 -6
- package/chunk-KJ4J2XQB.js +129 -0
- package/{chunk-Z7EP5HDL.js → chunk-KYHNSSL2.js} +1 -1
- package/chunk-KZO2MTVM.js +140 -0
- package/{chunk-FP46RAJQ.js → chunk-LCCDDHAO.js} +3 -3
- package/{chunk-72VWN4VK.js → chunk-LHTXSC2E.js} +18 -6
- package/{chunk-MSFKHPA6.js → chunk-LRLLWD4P.js} +1 -1
- package/{chunk-RIOAPUGV.js → chunk-M75RM77T.js} +9 -0
- package/{chunk-SARJZIGR.js → chunk-MI6HRMCK.js} +1 -1
- package/{chunk-A454UXB6.js → chunk-MKR6KDD3.js} +13 -9
- package/{chunk-MPWQI36J.js → chunk-MTNQNLSE.js} +12 -12
- package/{chunk-JPYOHIHX.js → chunk-NFE75Q5M.js} +18 -18
- package/{chunk-M7VNNPVX.js → chunk-NGGXRK2P.js} +117 -121
- package/{chunk-D3ONA3FP.js → chunk-NH4PUEWK.js} +2 -2
- package/{chunk-OSZNERNW.js → chunk-NICEA4IW.js} +11 -11
- package/{chunk-SRVLHMES.js → chunk-NLADA5ZM.js} +32 -32
- package/{chunk-IWWJSSST.js → chunk-NTUNHTJV.js} +4 -4
- package/{chunk-XREMPMNK.js → chunk-OKUSDVRS.js} +3 -3
- package/{chunk-63G7JWEA.js → chunk-OQH3TAB7.js} +6 -6
- package/{chunk-WEEB2JKA.js → chunk-P62DHV4F.js} +4 -4
- package/{chunk-3QMN3T6L.js → chunk-PEXGRTTQ.js} +4 -4
- package/{chunk-4HZCBA4Q.js → chunk-PHIERFHT.js} +4 -4
- package/{chunk-QZYQ3Y3G.js → chunk-PKDFU6MY.js} +1 -1
- package/{chunk-EQOWWSNQ.js → chunk-PRVXRSDG.js} +13 -13
- package/chunk-PSJJBBWV.js +42 -0
- package/{chunk-3B7OTHDW.js → chunk-Q6FKWH66.js} +14 -14
- package/{chunk-6BBXJGIQ.js → chunk-QUF3LDVD.js} +36 -36
- package/{chunk-7LS5ATRP.js → chunk-QXHFIX7W.js} +82 -2
- package/{chunk-W2Z5E2R7.js → chunk-QY4NZCDA.js} +10 -10
- package/{chunk-BUGLH2A7.js → chunk-RIRFHJTW.js} +4 -4
- package/{chunk-UJL23HBL.js → chunk-RQKCLVCB.js} +24 -24
- package/{chunk-G5IAIGGD.js → chunk-RYMLMTPZ.js} +10 -10
- package/{chunk-XKNDVHF5.js → chunk-S6FAHQDH.js} +4 -4
- package/{chunk-GH6SS2DZ.js → chunk-SVFFKLMR.js} +11 -11
- package/{chunk-YVOUSIIA.js → chunk-SVKWZ3EG.js} +1 -1
- package/{chunk-Q5IXZF3S.js → chunk-T7KODHYS.js} +3 -3
- package/{chunk-P4XAHM4B.js → chunk-TA5QI4MM.js} +1 -1
- package/{chunk-VCESLFF4.js → chunk-TEFD5E2D.js} +3 -3
- package/{chunk-GEC4CHS2.js → chunk-TXLXASSY.js} +5 -5
- package/{chunk-UEZL3RBG.js → chunk-UAO54ORL.js} +37 -36
- package/{chunk-EDKMRDET.js → chunk-UMADT6B2.js} +3 -3
- package/{chunk-3TII7WCF.js → chunk-V6K5U4YE.js} +9 -9
- package/{chunk-LHCIIUCX.js → chunk-VI4SWTUO.js} +7 -7
- package/{chunk-P4I55ASV.js → chunk-VLAPKV76.js} +12 -12
- package/{chunk-Z27AH6A5.js → chunk-VXUQWCEZ.js} +4 -4
- package/{chunk-QXWXRBOL.js → chunk-WJ5IXN23.js} +3 -3
- package/{chunk-T3Y2NA4H.js → chunk-WRHVVIGI.js} +4 -4
- package/chunk-WTIJKWCI.js +118 -0
- package/{chunk-CK2LMTYO.js → chunk-Y3KGWZKF.js} +5 -5
- package/{chunk-SJFL32RD.js → chunk-YCITCYSJ.js} +2 -2
- package/{chunk-HB4J5HA6.js → chunk-YR4J7RFS.js} +3 -3
- package/{chunk-CEIWXKHP.js → chunk-ZCLSM5AK.js} +12 -12
- package/{chunk-L45P4JTE.js → chunk-ZHWTBHT3.js} +17 -17
- package/{chunk-FF5ZRKW7.js → chunk-ZJACPM5O.js} +2 -2
- package/{cliAgentConfigHelpers-BJJEXHSZ.js → cliAgentConfigHelpers-WB2S7PDO.js} +16 -15
- package/{cliAuthorityBrokerProcess-VIJEKQSX.js → cliAuthorityBrokerProcess-BMBVXPKU.js} +7 -17
- package/{chunk-O77F26YB.js → cliAuthorityBrokerServer-27C5YBYP.js} +31 -504
- package/{cliEnvHelpers-NDMKN4X2.js → cliEnvHelpers-7V5ZWUJA.js} +4 -3
- package/{cliLocalAgentRecordReader-KCZS2MZU.js → cliLocalAgentRecordReader-QKKRK53P.js} +61 -61
- package/{cloudAutomationCommands-2WQUGQSW.js → cloudAutomationCommands-S52NKCLL.js} +61 -61
- package/{commandRegistry-C64JBZJ3.js → commandRegistry-I2WAEYSQ.js} +131 -131
- package/{contentThunks-G3HEIRXC.js → contentThunks-W4OUEDRF.js} +48 -47
- package/{cooldownCommands-FPAFS7XG.js → cooldownCommands-ZFDAL4MR.js} +1 -1
- package/{createAgentAutomationAction-DSBL3X3A.js → createAgentAutomationAction-VQBQDCAD.js} +50 -49
- package/{createDialogAction-OHFUHC53.js → createDialogAction-YSZU5IE4.js} +49 -48
- package/{createPageAction-E6JZSZLU.js → createPageAction-HLT7DUBR.js} +51 -50
- package/{db-KTQ3LL2Q.js → db-LTHLW7QA.js} +6 -4
- package/{dbSlice-U3GPLEL3.js → dbSlice-WNUHTF4C.js} +13 -13
- package/{deleteDbKey-DRXKWJX5.js → deleteDbKey-ZFWKDNAP.js} +49 -48
- package/{dialogCommands-4EX2OTIC.js → dialogCommands-4MOLJW4G.js} +71 -71
- package/{dialogNotifyCommand-4SCE2Z2R.js → dialogNotifyCommand-YL2GFKLO.js} +19 -18
- package/{dialogPortabilityCommands-ZSFFHRX4.js → dialogPortabilityCommands-YQJNB2KL.js} +4 -3
- package/{dialogSlice-PRZCIJCH.js → dialogSlice-EOZLTLFB.js} +46 -45
- package/{dialogTraceCommand-RKB76OVX.js → dialogTraceCommand-HWXGIGZX.js} +79 -79
- package/{dialogUsageCommand-BP7HMRYP.js → dialogUsageCommand-IO2BQKL2.js} +6 -5
- package/{docCreateCommands-JGPNGIZ7.js → docCreateCommands-OYLRBK2M.js} +60 -60
- package/{docDeleteCommands-XRJTNRDH.js → docDeleteCommands-3NF6QPJU.js} +61 -61
- package/{docReadCommands-6GFO4ARS.js → docReadCommands-CBAERJAP.js} +60 -60
- package/{docStore-QRLIWFTU.js → docStore-G5NLVWCF.js} +15 -15
- package/{docUpdateCommands-W2GXMUXW.js → docUpdateCommands-BAMCGX6F.js} +60 -60
- package/{ebookDownloaderAgentCommand-2DHPGEOQ.js → ebookDownloaderAgentCommand-NOIZ6U7Y.js} +8 -7
- package/{fetchMessages-RGPIYEPZ.js → fetchMessages-P7FSCSXV.js} +2 -2
- package/{getPricing-BK6CUBAE.js → getPricing-KNXVEIUI.js} +6 -6
- package/{handleSendMessageAction-DHGWURJZ.js → handleSendMessageAction-6U3CWHQZ.js} +95 -93
- package/{hostCredentialCreate-FPUZ7RMI.js → hostCredentialCreate-7Z7JIE57.js} +130 -129
- package/i18n-SAK6DDY4.js +51 -0
- package/index.js +163 -184
- package/levelAuthorityStore-L5SVDM5O.js +10 -0
- package/{localAutomationCommands-ZMU22RQJ.js → localAutomationCommands-P56DPCU7.js} +32 -31
- package/{localAutomationRuntime-MU5FGJ3V.js → localAutomationRuntime-KPMMJZAU.js} +30 -29
- package/{localDialogRead-W2EVXISA.js → localDialogRead-GWGWSL5K.js} +2 -2
- package/{localRuntimeAdapter-YBXQBV4G.js → localRuntimeAdapter-724CCDG5.js} +123 -122
- package/{localRuntimeAuthority-LDXMEDO5.js → localRuntimeAuthority-Q5C2KWGF.js} +11 -10
- package/{localRuntimeDb-6TQZDLNU.js → localRuntimeDb-MM3DINZM.js} +1 -1
- package/{machineCommands-57RTUYRV.js → machineCommands-KLZ73HOC.js} +132 -131
- package/{machineInfo-BJIU3WQ5.js → machineInfo-HNPJHQFU.js} +5 -3
- package/{machineWsRunDispatch-VBKV3FFE.js → machineWsRunDispatch-WFSV66WP.js} +124 -123
- package/{mcpLocalAuthorizeCommand-J76SOJVZ.js → mcpLocalAuthorizeCommand-IKOFKY5U.js} +32 -31
- package/{mcpLocalManageCommands-USETIMHB.js → mcpLocalManageCommands-KUDZQRM4.js} +32 -31
- package/{memberThunks-7UERUEMI.js → memberThunks-NSYL7QZA.js} +20 -20
- package/{memoryCommands-N7NHEE55.js → memoryCommands-SVLAVFCV.js} +4 -3
- package/{offlineMarxistsAgentCommand-WZBJBCPZ.js → offlineMarxistsAgentCommand-MFURGWHL.js} +5 -4
- package/package.json +1 -1
- package/{parityCommands-LYDLWSLK.js → parityCommands-5OCBPVES.js} +61 -61
- package/{projectArchive-KCNQDVWJ.js → projectArchive-63LQ5IOO.js} +55 -54
- package/{read-SPSQ6NLR.js → read-D4WYJQJQ.js} +10 -10
- package/{readDocTool-ENUL2GNL.js → readDocTool-3S3OQFOH.js} +2 -2
- package/{readlineWorkspace-MKS7TAEF.js → readlineWorkspace-ECCRLGE5.js} +223 -222
- package/{rememberExplicit-7KX4HXQC.js → rememberExplicit-ZPI6KK5M.js} +3 -2
- package/{remove-TNNDO635.js → remove-AHRMUDMH.js} +10 -10
- package/{removeDialogAgentAction-POPUZ3WU.js → removeDialogAgentAction-AALRBFSA.js} +19 -19
- package/{runAgentClientLoop-KVILXQNI.js → runAgentClientLoop-4644DF32.js} +93 -92
- package/{runtimeDoctorCommands-4J2DP4LZ.js → runtimeDoctorCommands-52MBG5JN.js} +25 -24
- package/{secretCommands-CSTQYB6T.js → secretCommands-2PSS3QNZ.js} +2 -2
- package/{setDialogExtraReferencesAction-35THMVBP.js → setDialogExtraReferencesAction-SLHQ3GYL.js} +15 -15
- package/{setPrimaryDialogAgentAction-WLXBNIG7.js → setPrimaryDialogAgentAction-XKCSGJ7M.js} +19 -19
- package/{settingThunks-6Y5U5M5N.js → settingThunks-PNC7ZISV.js} +22 -22
- package/{spaceCommands-LXNJBO2U.js → spaceCommands-Z2CTQD6G.js} +62 -62
- package/{spacePruneCommand-2ITUFYBM.js → spacePruneCommand-YKIEUIDQ.js} +4 -3
- package/{streamAgentChatTurn-EY6MFKCA.js → streamAgentChatTurn-EGRXP3Q6.js} +123 -122
- package/{switchDialogAgentAction-TG6BQRDA.js → switchDialogAgentAction-YJIWQGIR.js} +16 -16
- package/{tableCommands-35G34R4B.js → tableCommands-FCPDULSU.js} +19 -18
- package/{toolApiClient-MPQIFYXP.js → toolApiClient-FVXTIIEN.js} +9 -9
- package/{tools-CSLTRRUR.js → tools-X25IU3XJ.js} +73 -72
- package/{tuiRestart-ALR4Q3JM.js → tuiRestart-LU2BDLAW.js} +18 -17
- package/{tuiSummaryLlmCaller-3Y3JEXJK.js → tuiSummaryLlmCaller-Z2ZVBIGN.js} +23 -22
- package/{updateCommands-GHQVP6Z5.js → updateCommands-4QP7WJLA.js} +9 -8
- package/{updateDialogTitleAction-LFAWF5EW.js → updateDialogTitleAction-5WP7TUDJ.js} +51 -50
- package/{usageCommand-5VKW6T4C.js → usageCommand-AZX7D3LB.js} +2 -2
- package/{usageRebuildCommand-VUQETFMW.js → usageRebuildCommand-XV5QQCHK.js} +3 -3
- package/versionChangeNotice-RFABJGJE.js +35 -0
- package/{windowsSelfUpdate-SXSVXK4X.js → windowsSelfUpdate-5OFKSW6Y.js} +2 -2
- package/chunk-AMNZPQCY.js +0 -635
- package/chunk-IVK2KT3H.js +0 -209
- package/chunk-KGWE224L.js +0 -246
- package/{chunk-YY7IGJMN.js → chunk-ADMRXWXJ.js} +3 -3
- package/{chunk-CW6LRDSF.js → chunk-LLP2NDED.js} +6 -6
- package/{chunk-GX2MFKF3.js → chunk-SSGTV4FC.js} +3 -3
- package/{chunk-FOC4TORM.js → chunk-TSBJVMNW.js} +5 -5
- package/{chunk-O7ZY6SUK.js → chunk-UYQILGDR.js} +9 -9
- package/{chunk-HXER7YJF.js → chunk-VXL2FZTP.js} +3 -3
- package/{chunk-WSQLCWLQ.js → chunk-YECCIUYU.js} +3 -3
- package/{chunk-U6RD332P.js → chunk-YQJEXXDK.js} +3 -3
- package/{chunk-HVRG27HI.js → chunk-ZV7ZY46L.js} +7 -7
- package/{providerPresetApply-IRJ56XIZ.js → providerPresetApply-YCVSP2WX.js} +3 -3
package/chunk-AMNZPQCY.js
DELETED
|
@@ -1,635 +0,0 @@
|
|
|
1
|
-
// node_modules/reselect/dist/reselect.mjs
|
|
2
|
-
var CACHE_SIZE_CHECK_THRESHOLD = 1e3;
|
|
3
|
-
var runCacheSizeCheck = (cacheSize, funcName) => {
|
|
4
|
-
let stack = void 0;
|
|
5
|
-
try {
|
|
6
|
-
throw new Error();
|
|
7
|
-
} catch (e) {
|
|
8
|
-
;
|
|
9
|
-
({ stack } = e);
|
|
10
|
-
}
|
|
11
|
-
console.warn(
|
|
12
|
-
`A function memoized with weakMapMemoize${funcName ? ` (\`${funcName}\`)` : ""} has seen over ${cacheSize} distinct values for the same primitive argument position.
|
|
13
|
-
Results keyed by primitive arguments are held strongly and are only released by \`clearCache()\`, so this cache will keep growing for as long as the function keeps seeing new values.
|
|
14
|
-
If it is called with ever-changing primitives (ids, offsets, timestamps), pass the \`maxSize\` option to bound the cache, switch to \`lruMemoize\`, or call \`.clearCache()\` at a suitable point.
|
|
15
|
-
See https://reselect.js.org/api/development-only-checks#cachesizecheck for details.`,
|
|
16
|
-
{ stack }
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
var globalDevModeChecks = {
|
|
20
|
-
inputStabilityCheck: "once",
|
|
21
|
-
identityFunctionCheck: "once",
|
|
22
|
-
cacheSizeCheck: "once"
|
|
23
|
-
};
|
|
24
|
-
var StrongRef = class {
|
|
25
|
-
constructor(value) {
|
|
26
|
-
this.value = value;
|
|
27
|
-
}
|
|
28
|
-
deref() {
|
|
29
|
-
return this.value;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var getWeakRef = () => typeof WeakRef === "undefined" ? StrongRef : WeakRef;
|
|
33
|
-
var Ref = /* @__PURE__ */ getWeakRef();
|
|
34
|
-
var UNTERMINATED = 0;
|
|
35
|
-
var TERMINATED = 1;
|
|
36
|
-
function createCacheNode() {
|
|
37
|
-
return {
|
|
38
|
-
s: UNTERMINATED,
|
|
39
|
-
v: void 0,
|
|
40
|
-
o: null,
|
|
41
|
-
p: null
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function maybeDeref(r) {
|
|
45
|
-
if (r instanceof Ref) {
|
|
46
|
-
return r.deref();
|
|
47
|
-
}
|
|
48
|
-
return r;
|
|
49
|
-
}
|
|
50
|
-
function weakMapMemoize(func, options = {}) {
|
|
51
|
-
let fnNode = createCacheNode();
|
|
52
|
-
const { resultEqualityCheck, maxSize } = options;
|
|
53
|
-
const useGenerations = maxSize !== void 0;
|
|
54
|
-
if (useGenerations && (!Number.isInteger(maxSize) || maxSize < 1)) {
|
|
55
|
-
throw new TypeError(
|
|
56
|
-
`maxSize must be a positive integer, received: ${maxSize}`
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
let prevNode = null;
|
|
60
|
-
let insertionCount = 0;
|
|
61
|
-
let lastResult;
|
|
62
|
-
let resultsCount = 0;
|
|
63
|
-
let hasWarnedAboutCacheSize = false;
|
|
64
|
-
function maybeFlipGenerations() {
|
|
65
|
-
if (insertionCount >= maxSize) {
|
|
66
|
-
prevNode = fnNode;
|
|
67
|
-
fnNode = createCacheNode();
|
|
68
|
-
insertionCount = 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function memoized() {
|
|
72
|
-
let cacheNode = fnNode;
|
|
73
|
-
const { length } = arguments;
|
|
74
|
-
for (let i = 0, l = length; i < l; i++) {
|
|
75
|
-
const arg = arguments[i];
|
|
76
|
-
if (typeof arg === "function" || typeof arg === "object" && arg !== null) {
|
|
77
|
-
let objectCache = cacheNode.o;
|
|
78
|
-
if (objectCache === null) {
|
|
79
|
-
cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap();
|
|
80
|
-
}
|
|
81
|
-
const objectNode = objectCache.get(arg);
|
|
82
|
-
if (objectNode === void 0) {
|
|
83
|
-
cacheNode = createCacheNode();
|
|
84
|
-
objectCache.set(arg, cacheNode);
|
|
85
|
-
} else {
|
|
86
|
-
cacheNode = objectNode;
|
|
87
|
-
}
|
|
88
|
-
} else {
|
|
89
|
-
let primitiveCache = cacheNode.p;
|
|
90
|
-
if (primitiveCache === null) {
|
|
91
|
-
cacheNode.p = primitiveCache = /* @__PURE__ */ new Map();
|
|
92
|
-
}
|
|
93
|
-
const primitiveNode = primitiveCache.get(arg);
|
|
94
|
-
if (primitiveNode === void 0) {
|
|
95
|
-
cacheNode = createCacheNode();
|
|
96
|
-
primitiveCache.set(arg, cacheNode);
|
|
97
|
-
insertionCount++;
|
|
98
|
-
if (process.env.NODE_ENV !== "production") {
|
|
99
|
-
if (primitiveCache.size > CACHE_SIZE_CHECK_THRESHOLD) {
|
|
100
|
-
const { cacheSizeCheck } = globalDevModeChecks;
|
|
101
|
-
if (cacheSizeCheck === "always" || cacheSizeCheck === "once" && !hasWarnedAboutCacheSize) {
|
|
102
|
-
hasWarnedAboutCacheSize = true;
|
|
103
|
-
runCacheSizeCheck(primitiveCache.size, func.name);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
cacheNode = primitiveNode;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
if (cacheNode.s === TERMINATED) {
|
|
113
|
-
return cacheNode.v;
|
|
114
|
-
}
|
|
115
|
-
if (prevNode !== null) {
|
|
116
|
-
let prevCacheNode = prevNode;
|
|
117
|
-
for (let i = 0, l = length; i < l; i++) {
|
|
118
|
-
const arg = arguments[i];
|
|
119
|
-
let next;
|
|
120
|
-
if (typeof arg === "function" || typeof arg === "object" && arg !== null) {
|
|
121
|
-
const prevObjectCache = prevCacheNode.o;
|
|
122
|
-
next = prevObjectCache !== null ? prevObjectCache.get(arg) : void 0;
|
|
123
|
-
} else {
|
|
124
|
-
const prevPrimitiveCache = prevCacheNode.p;
|
|
125
|
-
next = prevPrimitiveCache !== null ? prevPrimitiveCache.get(arg) : void 0;
|
|
126
|
-
}
|
|
127
|
-
if (next === void 0) {
|
|
128
|
-
prevCacheNode = null;
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
prevCacheNode = next;
|
|
132
|
-
}
|
|
133
|
-
if (prevCacheNode !== null && prevCacheNode.s === TERMINATED) {
|
|
134
|
-
const promotedNode = cacheNode;
|
|
135
|
-
promotedNode.s = TERMINATED;
|
|
136
|
-
promotedNode.v = prevCacheNode.v;
|
|
137
|
-
maybeFlipGenerations();
|
|
138
|
-
return prevCacheNode.v;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
const terminatedNode = cacheNode;
|
|
142
|
-
let result = func.apply(null, arguments);
|
|
143
|
-
resultsCount++;
|
|
144
|
-
if (resultEqualityCheck) {
|
|
145
|
-
const lastResultValue = maybeDeref(lastResult);
|
|
146
|
-
if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) {
|
|
147
|
-
result = lastResultValue;
|
|
148
|
-
resultsCount !== 0 && resultsCount--;
|
|
149
|
-
}
|
|
150
|
-
const needsWeakRef = typeof result === "object" && result !== null || typeof result === "function";
|
|
151
|
-
lastResult = needsWeakRef ? /* @__PURE__ */ new Ref(result) : result;
|
|
152
|
-
}
|
|
153
|
-
terminatedNode.s = TERMINATED;
|
|
154
|
-
terminatedNode.v = result;
|
|
155
|
-
if (useGenerations) {
|
|
156
|
-
maybeFlipGenerations();
|
|
157
|
-
}
|
|
158
|
-
return result;
|
|
159
|
-
}
|
|
160
|
-
memoized.clearCache = () => {
|
|
161
|
-
fnNode = createCacheNode();
|
|
162
|
-
prevNode = null;
|
|
163
|
-
insertionCount = 0;
|
|
164
|
-
memoized.resetResultsCount();
|
|
165
|
-
if (process.env.NODE_ENV !== "production") {
|
|
166
|
-
hasWarnedAboutCacheSize = false;
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
memoized.resultsCount = () => resultsCount;
|
|
170
|
-
memoized.resetResultsCount = () => {
|
|
171
|
-
resultsCount = 0;
|
|
172
|
-
};
|
|
173
|
-
return memoized;
|
|
174
|
-
}
|
|
175
|
-
var runIdentityFunctionCheck = (resultFunc, inputSelectorsResults, outputSelectorResult) => {
|
|
176
|
-
if (inputSelectorsResults.length === 1 && inputSelectorsResults[0] === outputSelectorResult) {
|
|
177
|
-
let isInputSameAsOutput = false;
|
|
178
|
-
try {
|
|
179
|
-
const emptyObject = {};
|
|
180
|
-
if (resultFunc(emptyObject) === emptyObject) isInputSameAsOutput = true;
|
|
181
|
-
} catch {
|
|
182
|
-
}
|
|
183
|
-
if (isInputSameAsOutput) {
|
|
184
|
-
let stack = void 0;
|
|
185
|
-
try {
|
|
186
|
-
throw new Error();
|
|
187
|
-
} catch (e) {
|
|
188
|
-
;
|
|
189
|
-
({ stack } = e);
|
|
190
|
-
}
|
|
191
|
-
console.warn(
|
|
192
|
-
"The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",
|
|
193
|
-
{ stack }
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
var withoutResultEqualityCheck = (option) => {
|
|
199
|
-
if (option === null || typeof option !== "object" || !("resultEqualityCheck" in option)) {
|
|
200
|
-
return option;
|
|
201
|
-
}
|
|
202
|
-
const optionCopy = { ...option };
|
|
203
|
-
delete optionCopy.resultEqualityCheck;
|
|
204
|
-
return optionCopy;
|
|
205
|
-
};
|
|
206
|
-
var runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelectorArgs) => {
|
|
207
|
-
const { memoize, memoizeOptions } = options;
|
|
208
|
-
const { inputSelectorResults, inputSelectorResultsCopy } = inputSelectorResultsObject;
|
|
209
|
-
const probeMemoizeOptions = [];
|
|
210
|
-
const { length } = memoizeOptions;
|
|
211
|
-
for (let i = 0; i < length; i++) {
|
|
212
|
-
probeMemoizeOptions.push(withoutResultEqualityCheck(memoizeOptions[i]));
|
|
213
|
-
}
|
|
214
|
-
const createAnEmptyObject = memoize(() => ({}), ...probeMemoizeOptions);
|
|
215
|
-
const areInputSelectorResultsEqual = createAnEmptyObject.apply(null, inputSelectorResults) === createAnEmptyObject.apply(null, inputSelectorResultsCopy);
|
|
216
|
-
if (!areInputSelectorResultsEqual) {
|
|
217
|
-
let stack = void 0;
|
|
218
|
-
try {
|
|
219
|
-
throw new Error();
|
|
220
|
-
} catch (e) {
|
|
221
|
-
;
|
|
222
|
-
({ stack } = e);
|
|
223
|
-
}
|
|
224
|
-
console.warn(
|
|
225
|
-
"An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",
|
|
226
|
-
{
|
|
227
|
-
arguments: inputSelectorArgs,
|
|
228
|
-
firstInputs: inputSelectorResults,
|
|
229
|
-
secondInputs: inputSelectorResultsCopy,
|
|
230
|
-
stack
|
|
231
|
-
}
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
function assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) {
|
|
236
|
-
if (typeof func !== "function") {
|
|
237
|
-
throw new TypeError(errorMessage);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
function assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) {
|
|
241
|
-
if (!array.every((item) => typeof item === "function")) {
|
|
242
|
-
const itemTypes = array.map(
|
|
243
|
-
(item) => typeof item === "function" ? `function ${item.name || "unnamed"}()` : typeof item
|
|
244
|
-
).join(", ");
|
|
245
|
-
throw new TypeError(`${errorMessage}[${itemTypes}]`);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
var ensureIsArray = (item) => {
|
|
249
|
-
return Array.isArray(item) ? item : [item];
|
|
250
|
-
};
|
|
251
|
-
function getDependencies(createSelectorArgs) {
|
|
252
|
-
const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs;
|
|
253
|
-
assertIsArrayOfFunctions(
|
|
254
|
-
dependencies,
|
|
255
|
-
`createSelector expects all input-selectors to be functions, but received the following types: `
|
|
256
|
-
);
|
|
257
|
-
return dependencies;
|
|
258
|
-
}
|
|
259
|
-
function collectInputSelectorResults(dependencies, inputSelectorArgs) {
|
|
260
|
-
const inputSelectorResults = [];
|
|
261
|
-
const { length } = dependencies;
|
|
262
|
-
for (let i = 0; i < length; i++) {
|
|
263
|
-
inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs));
|
|
264
|
-
}
|
|
265
|
-
return inputSelectorResults;
|
|
266
|
-
}
|
|
267
|
-
function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {
|
|
268
|
-
const createSelectorCreatorOptions = typeof memoizeOrOptions === "function" ? {
|
|
269
|
-
memoize: memoizeOrOptions,
|
|
270
|
-
memoizeOptions: memoizeOptionsFromArgs
|
|
271
|
-
} : memoizeOrOptions;
|
|
272
|
-
const createSelector2 = (...createSelectorArgs) => {
|
|
273
|
-
let recomputations = 0;
|
|
274
|
-
let dependencyRecomputations = 0;
|
|
275
|
-
let lastResult;
|
|
276
|
-
let directlyPassedOptions = {};
|
|
277
|
-
let resultFunc = createSelectorArgs.pop();
|
|
278
|
-
if (typeof resultFunc === "object") {
|
|
279
|
-
directlyPassedOptions = resultFunc;
|
|
280
|
-
resultFunc = createSelectorArgs.pop();
|
|
281
|
-
}
|
|
282
|
-
assertIsFunction(
|
|
283
|
-
resultFunc,
|
|
284
|
-
`createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`
|
|
285
|
-
);
|
|
286
|
-
const combinedOptions = {
|
|
287
|
-
...createSelectorCreatorOptions,
|
|
288
|
-
...directlyPassedOptions
|
|
289
|
-
};
|
|
290
|
-
const {
|
|
291
|
-
memoize,
|
|
292
|
-
memoizeOptions = [],
|
|
293
|
-
argsMemoize = weakMapMemoize,
|
|
294
|
-
argsMemoizeOptions = []
|
|
295
|
-
} = combinedOptions;
|
|
296
|
-
const finalMemoizeOptions = ensureIsArray(memoizeOptions);
|
|
297
|
-
const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions);
|
|
298
|
-
const dependencies = getDependencies(createSelectorArgs);
|
|
299
|
-
const memoizedResultFunc = memoize(function recomputationWrapper() {
|
|
300
|
-
recomputations++;
|
|
301
|
-
return resultFunc.apply(
|
|
302
|
-
null,
|
|
303
|
-
arguments
|
|
304
|
-
);
|
|
305
|
-
}, ...finalMemoizeOptions);
|
|
306
|
-
let firstRun = true;
|
|
307
|
-
const selector = argsMemoize(function dependenciesChecker() {
|
|
308
|
-
dependencyRecomputations++;
|
|
309
|
-
const { length } = dependencies;
|
|
310
|
-
const inputSelectorResults = new Array(length);
|
|
311
|
-
for (let i = 0; i < length; i++) {
|
|
312
|
-
inputSelectorResults[i] = dependencies[i].apply(null, arguments);
|
|
313
|
-
}
|
|
314
|
-
lastResult = memoizedResultFunc.apply(null, inputSelectorResults);
|
|
315
|
-
if (process.env.NODE_ENV !== "production") {
|
|
316
|
-
const { devModeChecks } = combinedOptions;
|
|
317
|
-
const identityFunctionCheck = devModeChecks !== void 0 && Object.prototype.hasOwnProperty.call(
|
|
318
|
-
devModeChecks,
|
|
319
|
-
"identityFunctionCheck"
|
|
320
|
-
) ? devModeChecks.identityFunctionCheck : globalDevModeChecks.identityFunctionCheck;
|
|
321
|
-
const inputStabilityCheck = devModeChecks !== void 0 && Object.prototype.hasOwnProperty.call(
|
|
322
|
-
devModeChecks,
|
|
323
|
-
"inputStabilityCheck"
|
|
324
|
-
) ? devModeChecks.inputStabilityCheck : globalDevModeChecks.inputStabilityCheck;
|
|
325
|
-
if (identityFunctionCheck === "always" || identityFunctionCheck === "once" && firstRun) {
|
|
326
|
-
runIdentityFunctionCheck(
|
|
327
|
-
resultFunc,
|
|
328
|
-
inputSelectorResults,
|
|
329
|
-
lastResult
|
|
330
|
-
);
|
|
331
|
-
}
|
|
332
|
-
if (inputStabilityCheck === "always" || inputStabilityCheck === "once" && firstRun) {
|
|
333
|
-
const inputSelectorResultsCopy = collectInputSelectorResults(
|
|
334
|
-
dependencies,
|
|
335
|
-
arguments
|
|
336
|
-
);
|
|
337
|
-
runInputStabilityCheck(
|
|
338
|
-
{ inputSelectorResults, inputSelectorResultsCopy },
|
|
339
|
-
{ memoize, memoizeOptions: finalMemoizeOptions },
|
|
340
|
-
arguments
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
if (firstRun) firstRun = false;
|
|
344
|
-
}
|
|
345
|
-
return lastResult;
|
|
346
|
-
}, ...finalArgsMemoizeOptions);
|
|
347
|
-
return Object.assign(selector, {
|
|
348
|
-
resultFunc,
|
|
349
|
-
memoizedResultFunc,
|
|
350
|
-
dependencies,
|
|
351
|
-
dependencyRecomputations: () => dependencyRecomputations,
|
|
352
|
-
resetDependencyRecomputations: () => {
|
|
353
|
-
dependencyRecomputations = 0;
|
|
354
|
-
},
|
|
355
|
-
lastResult: () => lastResult,
|
|
356
|
-
recomputations: () => recomputations,
|
|
357
|
-
resetRecomputations: () => {
|
|
358
|
-
recomputations = 0;
|
|
359
|
-
},
|
|
360
|
-
memoize,
|
|
361
|
-
argsMemoize
|
|
362
|
-
});
|
|
363
|
-
};
|
|
364
|
-
Object.assign(createSelector2, {
|
|
365
|
-
withTypes: () => createSelector2
|
|
366
|
-
});
|
|
367
|
-
return createSelector2;
|
|
368
|
-
}
|
|
369
|
-
var createSelector = /* @__PURE__ */ createSelectorCreator(weakMapMemoize);
|
|
370
|
-
|
|
371
|
-
// node_modules/redux/dist/redux.mjs
|
|
372
|
-
var randomString = () => Math.random().toString(36).substring(7).split("").join(".");
|
|
373
|
-
var ActionTypes = {
|
|
374
|
-
INIT: `@@redux/INIT${/* @__PURE__ */ randomString()}`,
|
|
375
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ randomString()}`,
|
|
376
|
-
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`
|
|
377
|
-
};
|
|
378
|
-
function isPlainObject(obj) {
|
|
379
|
-
if (typeof obj !== "object" || obj === null)
|
|
380
|
-
return false;
|
|
381
|
-
let proto = obj;
|
|
382
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
|
383
|
-
proto = Object.getPrototypeOf(proto);
|
|
384
|
-
}
|
|
385
|
-
return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;
|
|
386
|
-
}
|
|
387
|
-
function compose(...funcs) {
|
|
388
|
-
if (funcs.length === 0) {
|
|
389
|
-
return (arg) => arg;
|
|
390
|
-
}
|
|
391
|
-
if (funcs.length === 1) {
|
|
392
|
-
return funcs[0];
|
|
393
|
-
}
|
|
394
|
-
return funcs.reduce((a, b) => (...args) => a(b(...args)));
|
|
395
|
-
}
|
|
396
|
-
function isAction(action) {
|
|
397
|
-
return isPlainObject(action) && "type" in action && typeof action.type === "string";
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
// node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs
|
|
401
|
-
var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
402
|
-
if (arguments.length === 0) return void 0;
|
|
403
|
-
if (typeof arguments[0] === "object") return compose;
|
|
404
|
-
return compose.apply(null, arguments);
|
|
405
|
-
};
|
|
406
|
-
typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
407
|
-
var hasMatchFunction = (v) => {
|
|
408
|
-
return v && typeof v.match === "function";
|
|
409
|
-
};
|
|
410
|
-
function createAction(type, prepareAction) {
|
|
411
|
-
function actionCreator(...args) {
|
|
412
|
-
if (prepareAction) {
|
|
413
|
-
let prepared = prepareAction(...args);
|
|
414
|
-
if (!prepared) throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(0) : "prepareAction did not return an object");
|
|
415
|
-
return {
|
|
416
|
-
type,
|
|
417
|
-
payload: prepared.payload,
|
|
418
|
-
..."meta" in prepared && { meta: prepared.meta },
|
|
419
|
-
..."error" in prepared && { error: prepared.error }
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
return {
|
|
423
|
-
type,
|
|
424
|
-
payload: args[0]
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
actionCreator.toString = () => `${type}`;
|
|
428
|
-
actionCreator.type = type;
|
|
429
|
-
actionCreator.match = (action) => action != null && action.type === type && isAction(action);
|
|
430
|
-
return actionCreator;
|
|
431
|
-
}
|
|
432
|
-
var matches = (matcher, action) => {
|
|
433
|
-
if (hasMatchFunction(matcher)) return matcher.match(action);
|
|
434
|
-
else return matcher(action);
|
|
435
|
-
};
|
|
436
|
-
function isAnyOf(...matchers) {
|
|
437
|
-
return (action) => {
|
|
438
|
-
return matchers.some((matcher) => matches(matcher, action));
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
|
|
442
|
-
var nanoid = (size = 21) => {
|
|
443
|
-
let id = "";
|
|
444
|
-
let i = size;
|
|
445
|
-
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
446
|
-
return id;
|
|
447
|
-
};
|
|
448
|
-
var commonProperties = [
|
|
449
|
-
"name",
|
|
450
|
-
"message",
|
|
451
|
-
"stack",
|
|
452
|
-
"code"
|
|
453
|
-
];
|
|
454
|
-
var RejectWithValue = class {
|
|
455
|
-
payload;
|
|
456
|
-
meta;
|
|
457
|
-
_type;
|
|
458
|
-
constructor(payload, meta) {
|
|
459
|
-
this.payload = payload;
|
|
460
|
-
this.meta = meta;
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
|
-
var FulfillWithMeta = class {
|
|
464
|
-
payload;
|
|
465
|
-
meta;
|
|
466
|
-
_type;
|
|
467
|
-
constructor(payload, meta) {
|
|
468
|
-
this.payload = payload;
|
|
469
|
-
this.meta = meta;
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
var miniSerializeError = (value) => {
|
|
473
|
-
if (typeof value === "object" && value !== null) {
|
|
474
|
-
const simpleError = {};
|
|
475
|
-
for (const property of commonProperties) if (typeof value[property] === "string") simpleError[property] = value[property];
|
|
476
|
-
return simpleError;
|
|
477
|
-
}
|
|
478
|
-
return { message: String(value) };
|
|
479
|
-
};
|
|
480
|
-
var externalAbortMessage = "External signal was aborted";
|
|
481
|
-
var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
482
|
-
function createAsyncThunk2(typePrefix, payloadCreator, options) {
|
|
483
|
-
const fulfilled = createAction(typePrefix + "/fulfilled", (payload, requestId, arg, meta) => ({
|
|
484
|
-
payload,
|
|
485
|
-
meta: {
|
|
486
|
-
...meta || {},
|
|
487
|
-
arg,
|
|
488
|
-
requestId,
|
|
489
|
-
requestStatus: "fulfilled"
|
|
490
|
-
}
|
|
491
|
-
}));
|
|
492
|
-
const pending = createAction(typePrefix + "/pending", (requestId, arg, meta) => ({
|
|
493
|
-
payload: void 0,
|
|
494
|
-
meta: {
|
|
495
|
-
...meta || {},
|
|
496
|
-
arg,
|
|
497
|
-
requestId,
|
|
498
|
-
requestStatus: "pending"
|
|
499
|
-
}
|
|
500
|
-
}));
|
|
501
|
-
const rejected = createAction(typePrefix + "/rejected", (error, requestId, arg, payload, meta) => ({
|
|
502
|
-
payload,
|
|
503
|
-
error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
|
|
504
|
-
meta: {
|
|
505
|
-
...meta || {},
|
|
506
|
-
arg,
|
|
507
|
-
requestId,
|
|
508
|
-
rejectedWithValue: payload !== void 0,
|
|
509
|
-
requestStatus: "rejected",
|
|
510
|
-
aborted: error?.name === "AbortError",
|
|
511
|
-
condition: error?.name === "ConditionError"
|
|
512
|
-
}
|
|
513
|
-
}));
|
|
514
|
-
function actionCreator(arg, { signal } = {}) {
|
|
515
|
-
return (dispatch, getState, extra) => {
|
|
516
|
-
const requestId = options?.idGenerator ? options.idGenerator(arg) : nanoid();
|
|
517
|
-
const abortController = new AbortController();
|
|
518
|
-
let abortHandler;
|
|
519
|
-
let abortReason;
|
|
520
|
-
function abort(reason) {
|
|
521
|
-
abortReason = reason;
|
|
522
|
-
abortController.abort();
|
|
523
|
-
}
|
|
524
|
-
if (signal) {
|
|
525
|
-
if (signal.aborted) abort(externalAbortMessage);
|
|
526
|
-
else signal.addEventListener("abort", () => abort(externalAbortMessage), { once: true });
|
|
527
|
-
}
|
|
528
|
-
const promise = async function() {
|
|
529
|
-
let finalAction;
|
|
530
|
-
try {
|
|
531
|
-
let conditionResult = options?.condition?.(arg, {
|
|
532
|
-
getState,
|
|
533
|
-
extra
|
|
534
|
-
});
|
|
535
|
-
if (isThenable(conditionResult)) conditionResult = await conditionResult;
|
|
536
|
-
if (conditionResult === false) throw {
|
|
537
|
-
name: "ConditionError",
|
|
538
|
-
message: "Aborted due to condition callback returning false."
|
|
539
|
-
};
|
|
540
|
-
if (abortController.signal.aborted) throw {
|
|
541
|
-
name: "AbortError",
|
|
542
|
-
message: abortReason || "Aborted"
|
|
543
|
-
};
|
|
544
|
-
const abortedPromise = new Promise((_, reject) => {
|
|
545
|
-
abortHandler = () => {
|
|
546
|
-
reject({
|
|
547
|
-
name: "AbortError",
|
|
548
|
-
message: abortReason || "Aborted"
|
|
549
|
-
});
|
|
550
|
-
};
|
|
551
|
-
abortController.signal.addEventListener("abort", abortHandler, { once: true });
|
|
552
|
-
});
|
|
553
|
-
dispatch(pending(requestId, arg, options?.getPendingMeta?.({
|
|
554
|
-
requestId,
|
|
555
|
-
arg
|
|
556
|
-
}, {
|
|
557
|
-
getState,
|
|
558
|
-
extra
|
|
559
|
-
})));
|
|
560
|
-
finalAction = await Promise.race([abortedPromise, Promise.resolve(payloadCreator(arg, {
|
|
561
|
-
dispatch,
|
|
562
|
-
getState,
|
|
563
|
-
extra,
|
|
564
|
-
requestId,
|
|
565
|
-
signal: abortController.signal,
|
|
566
|
-
abort,
|
|
567
|
-
rejectWithValue: (value, meta) => {
|
|
568
|
-
return new RejectWithValue(value, meta);
|
|
569
|
-
},
|
|
570
|
-
fulfillWithValue: (value, meta) => {
|
|
571
|
-
return new FulfillWithMeta(value, meta);
|
|
572
|
-
}
|
|
573
|
-
})).then((result) => {
|
|
574
|
-
if (result instanceof RejectWithValue) throw result;
|
|
575
|
-
if (result instanceof FulfillWithMeta) return fulfilled(result.payload, requestId, arg, result.meta);
|
|
576
|
-
return fulfilled(result, requestId, arg);
|
|
577
|
-
})]);
|
|
578
|
-
} catch (err) {
|
|
579
|
-
finalAction = err instanceof RejectWithValue ? rejected(null, requestId, arg, err.payload, err.meta) : rejected(err, requestId, arg);
|
|
580
|
-
} finally {
|
|
581
|
-
if (abortHandler) abortController.signal.removeEventListener("abort", abortHandler);
|
|
582
|
-
}
|
|
583
|
-
if (!(options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition)) dispatch(finalAction);
|
|
584
|
-
return finalAction;
|
|
585
|
-
}();
|
|
586
|
-
return Object.assign(promise, {
|
|
587
|
-
abort,
|
|
588
|
-
requestId,
|
|
589
|
-
arg,
|
|
590
|
-
unwrap() {
|
|
591
|
-
return promise.then(unwrapResult);
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
return Object.assign(actionCreator, {
|
|
597
|
-
pending,
|
|
598
|
-
rejected,
|
|
599
|
-
fulfilled,
|
|
600
|
-
settled: isAnyOf(rejected, fulfilled),
|
|
601
|
-
typePrefix
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
createAsyncThunk2.withTypes = () => createAsyncThunk2;
|
|
605
|
-
return createAsyncThunk2;
|
|
606
|
-
})();
|
|
607
|
-
function unwrapResult(action) {
|
|
608
|
-
if (action.meta && action.meta.rejectedWithValue) throw action.payload;
|
|
609
|
-
if (action.error) throw action.error;
|
|
610
|
-
return action.payload;
|
|
611
|
-
}
|
|
612
|
-
function isThenable(value) {
|
|
613
|
-
return value !== null && typeof value === "object" && typeof value.then === "function";
|
|
614
|
-
}
|
|
615
|
-
var listener = "listener";
|
|
616
|
-
var completed = "completed";
|
|
617
|
-
var cancelled = "cancelled";
|
|
618
|
-
var taskCancelled = `task-${cancelled}`;
|
|
619
|
-
var taskCompleted = `task-${completed}`;
|
|
620
|
-
var listenerCancelled = `${listener}-${cancelled}`;
|
|
621
|
-
var listenerCompleted = `${listener}-${completed}`;
|
|
622
|
-
var { assign } = Object;
|
|
623
|
-
var alm = "listenerMiddleware";
|
|
624
|
-
var addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), { withTypes: () => addListener });
|
|
625
|
-
var clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`);
|
|
626
|
-
var removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), { withTypes: () => removeListener });
|
|
627
|
-
var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
|
|
628
|
-
function formatProdErrorMessage(code) {
|
|
629
|
-
return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
export {
|
|
633
|
-
createSelector,
|
|
634
|
-
createAsyncThunk
|
|
635
|
-
};
|