e 1 سال پیش
والد
کامیت
16f588217e
100فایلهای تغییر یافته به همراه73 افزوده شده و 12414 حذف شده
  1. 73 76
      day24/js/6.宏任务 微任务.js
  2. 0 12
      react/study8/proect/node_modules/.bin/loose-envify
  3. 0 17
      react/study8/proect/node_modules/.bin/loose-envify.cmd
  4. 0 28
      react/study8/proect/node_modules/.bin/loose-envify.ps1
  5. 0 201
      react/study8/proect/node_modules/.package-lock.json
  6. 0 21
      react/study8/proect/node_modules/@reduxjs/toolkit/LICENSE
  7. 0 106
      react/study8/proect/node_modules/@reduxjs/toolkit/README.md
  8. 0 12
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/actionCreatorInvariantMiddleware.d.ts
  9. 0 40
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/autoBatchEnhancer.d.ts
  10. 0 6
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/index.js
  11. 0 2256
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.development.cjs
  12. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.development.cjs.map
  13. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.production.min.cjs
  14. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.production.min.cjs.map
  15. 0 231
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/combineSlices.d.ts
  16. 0 74
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/configureStore.d.ts
  17. 0 189
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/createAction.d.ts
  18. 0 244
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/createAsyncThunk.d.ts
  19. 0 10
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/createDraftSafeSelector.d.ts
  20. 0 117
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/createReducer.d.ts
  21. 0 336
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/createSlice.d.ts
  22. 0 217
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/devtoolsExtension.d.ts
  23. 0 3
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/dynamicMiddleware/index.d.ts
  24. 0 20
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/dynamicMiddleware/react/index.d.ts
  25. 0 41
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/dynamicMiddleware/types.d.ts
  26. 0 14
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/create_adapter.d.ts
  27. 0 8
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/entity_state.d.ts
  28. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/index.d.ts
  29. 0 89
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/models.d.ts
  30. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/sorted_state_adapter.d.ts
  31. 0 6
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/state_adapter.d.ts
  32. 0 14
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/state_selectors.d.ts
  33. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/unsorted_state_adapter.d.ts
  34. 0 4
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/utils.d.ts
  35. 0 8
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/formatProdErrorMessage.d.ts
  36. 0 15
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/getDefaultEnhancers.d.ts
  37. 0 31
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/getDefaultMiddleware.d.ts
  38. 0 48
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/immutableStateInvariantMiddleware.d.ts
  39. 0 42
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/index.d.ts
  40. 0 11
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/exceptions.d.ts
  41. 0 23
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/index.d.ts
  42. 0 37
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/task.d.ts
  43. 0 398
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/types.d.ts
  44. 0 15
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/utils.d.ts
  45. 0 112
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/mapBuilders.d.ts
  46. 0 171
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/matchers.d.ts
  47. 0 5
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/nanoid.d.ts
  48. 0 5
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/HandledError.d.ts
  49. 0 41
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/apiTypes.d.ts
  50. 0 40
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/baseQueryTypes.d.ts
  51. 0 6
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/index.js
  52. 0 2383
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.development.cjs
  53. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.development.cjs.map
  54. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.production.min.cjs
  55. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.production.min.cjs.map
  56. 0 199
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/apiState.d.ts
  57. 0 148
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildInitiate.d.ts
  58. 0 5
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/batchActions.d.ts
  59. 0 16
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/cacheCollection.d.ts
  60. 0 95
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/cacheLifecycle.d.ts
  61. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/devMiddleware.d.ts
  62. 0 10
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/index.d.ts
  63. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/invalidationByTags.d.ts
  64. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/polling.d.ts
  65. 0 142
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/queryLifecycle.d.ts
  66. 0 62
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/types.d.ts
  67. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/windowEventHandling.d.ts
  68. 0 56
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildSelectors.d.ts
  69. 0 67
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildSlice.d.ts
  70. 0 141
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildThunks.d.ts
  71. 0 4
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/index.d.ts
  72. 0 316
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/module.d.ts
  73. 0 1
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/rtkImports.d.ts
  74. 0 27
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/setupListeners.d.ts
  75. 0 217
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/createApi.d.ts
  76. 0 13
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/defaultSerializeQueryArgs.d.ts
  77. 0 526
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/endpointDefinitions.d.ts
  78. 0 9
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/fakeBaseQuery.d.ts
  79. 0 135
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/fetchBaseQuery.d.ts
  80. 0 21
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/index.d.ts
  81. 0 34
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/ApiProvider.d.ts
  82. 0 369
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/buildHooks.d.ts
  83. 0 6
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/index.js
  84. 0 626
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.development.cjs
  85. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.development.cjs.map
  86. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.production.min.cjs
  87. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.production.min.cjs.map
  88. 0 2
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/constants.d.ts
  89. 0 6
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/index.d.ts
  90. 0 90
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/module.d.ts
  91. 0 19
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/namedHooks.d.ts
  92. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.browser.mjs
  93. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.browser.mjs.map
  94. 0 594
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.legacy-esm.js
  95. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.legacy-esm.js.map
  96. 0 594
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.mjs
  97. 0 0
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.mjs.map
  98. 0 3
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/useSerializedStableValue.d.ts
  99. 0 1
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/useShallowStableValue.d.ts
  100. 0 63
      react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/retry.d.ts

+ 73 - 76
day24/js/6.宏任务 微任务.js

@@ -7,85 +7,82 @@
  * 先执行所有的微任务 全部执行完成后 在执行宏任务
  */
 
-// setTimeout(function() {
-//     console.log('1');//a1
-// })
-// new Promise(function(resolve) {
-//     console.log('2');
-//     resolve()
-// }).then(function() {
-//     console.log('3');//b1
-// })
-// console.log('4');
-// 2 4 3 1
-
-
-console.log(1)
-setTimeout(function(){
-  console.log(2);
-  let promise = new Promise(function(resolve, reject) {
-      console.log(7);
-      resolve()
-  }).then(function(){
-    console.log(8)
-  });
-},1000);// 宏1
-setTimeout(function(){
-  console.log(10);
-  let promise = new Promise(function(resolve, reject) {
-      console.log(11);
-      resolve()
-  }).then(function(){
-    console.log(12)
-  });
-},0);//宏2
-let promise = new Promise(function(resolve, reject) {
-    console.log(3);
-    resolve()
-}).then(function(){
-  console.log(4) //b1
-}).then(function(){
-  console.log(9) // b2
+setTimeout(function () {
+  console.log("1"); //a1
 });
-console.log(5)
-
-// 1 3 5 4 9 10 11 12 2 7 8
-
-
-console.log('1');
-setTimeout(function() {
-    console.log('2');
-    // process.nextTick(function() {
-    //     console.log('3');
-    // })//a1
-    new Promise(function(resolve) {
-        console.log('4');
-        resolve();
-    }).then(function() {
-        console.log('5')//a2
-    })
-})//宏1
-// process.nextTick(function() {
-//     console.log('6');
-// }) //微1
 new Promise(function(resolve) {
-    console.log('7');
-    resolve();
+    console.log('2');
+    resolve()
 }).then(function() {
-    console.log('8') // 微2
+console.log('3');//b1
 })
-setTimeout(function() {
-    console.log('9');
-    // process.nextTick(function() {
-    //     console.log('10');
-    // })
-    new Promise(function(resolve) {
-        console.log('11');
-        resolve();
-    }).then(function() {
-        console.log('12')
-    })
-})//宏2
+console.log("4");
+// 2 4 3 1
+
+// console.log(1)
+// setTimeout(function(){
+//   console.log(2);
+//   let promise = new Promise(function(resolve, reject) {
+//       console.log(7);
+//       resolve()
+//   }).then(function(){
+//     console.log(8)
+//   });
+// },1000);// 宏1
+// setTimeout(function(){
+//   console.log(10);
+//   let promise = new Promise(function(resolve, reject) {
+//       console.log(11);
+//       resolve()
+//   }).then(function(){
+//     console.log(12)
+//   });
+// },0);//宏2
+// let promise = new Promise(function(resolve, reject) {
+//     console.log(3);
+//     resolve()
+// }).then(function(){
+//   console.log(4) //b1
+// }).then(function(){
+//   console.log(9) // b2
+// });
+// console.log(5)
+
+// 1 3 5 4 9 10 11 12 2 7 8
 
+// console.log('1');
+// setTimeout(function() {
+//     console.log('2');
+//     // process.nextTick(function() {
+//     //     console.log('3');
+//     // })//a1
+//     new Promise(function(resolve) {
+//         console.log('4');
+//         resolve();
+//     }).then(function() {
+//         console.log('5')//a2
+//     })
+// })//宏1
+// // process.nextTick(function() {
+// //     console.log('6');
+// // }) //微1
+// new Promise(function(resolve) {
+//     console.log('7');
+//     resolve();
+// }).then(function() {
+//     console.log('8') // 微2
+// })
+// setTimeout(function() {
+//     console.log('9');
+//     // process.nextTick(function() {
+//     //     console.log('10');
+//     // })
+//     new Promise(function(resolve) {
+//         console.log('11');
+//         resolve();
+//     }).then(function() {
+//         console.log('12')
+//     })
+// })//宏2
 
-// 1 7  8 2 4  5 9 11 12
+// 1 7  8 2 4  5 9 11 12

+ 0 - 12
react/study8/proect/node_modules/.bin/loose-envify

@@ -1,12 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
-    *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
-  exec "$basedir/node"  "$basedir/../loose-envify/cli.js" "$@"
-else 
-  exec node  "$basedir/../loose-envify/cli.js" "$@"
-fi

+ 0 - 17
react/study8/proect/node_modules/.bin/loose-envify.cmd

@@ -1,17 +0,0 @@
-@ECHO off
-GOTO start
-:find_dp0
-SET dp0=%~dp0
-EXIT /b
-:start
-SETLOCAL
-CALL :find_dp0
-
-IF EXIST "%dp0%\node.exe" (
-  SET "_prog=%dp0%\node.exe"
-) ELSE (
-  SET "_prog=node"
-  SET PATHEXT=%PATHEXT:;.JS;=;%
-)
-
-endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\loose-envify\cli.js" %*

+ 0 - 28
react/study8/proect/node_modules/.bin/loose-envify.ps1

@@ -1,28 +0,0 @@
-#!/usr/bin/env pwsh
-$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
-
-$exe=""
-if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
-  # Fix case when both the Windows and Linux builds of Node
-  # are installed in the same directory
-  $exe=".exe"
-}
-$ret=0
-if (Test-Path "$basedir/node$exe") {
-  # Support pipeline input
-  if ($MyInvocation.ExpectingInput) {
-    $input | & "$basedir/node$exe"  "$basedir/../loose-envify/cli.js" $args
-  } else {
-    & "$basedir/node$exe"  "$basedir/../loose-envify/cli.js" $args
-  }
-  $ret=$LASTEXITCODE
-} else {
-  # Support pipeline input
-  if ($MyInvocation.ExpectingInput) {
-    $input | & "node$exe"  "$basedir/../loose-envify/cli.js" $args
-  } else {
-    & "node$exe"  "$basedir/../loose-envify/cli.js" $args
-  }
-  $ret=$LASTEXITCODE
-}
-exit $ret

+ 0 - 201
react/study8/proect/node_modules/.package-lock.json

@@ -1,201 +0,0 @@
-{
-  "name": "proect",
-  "lockfileVersion": 3,
-  "requires": true,
-  "packages": {
-    "node_modules/@reduxjs/toolkit": {
-      "version": "2.0.1",
-      "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.0.1.tgz",
-      "integrity": "sha512-fxIjrR9934cmS8YXIGd9e7s1XRsEU++aFc9DVNMFMRTM5Vtsg2DCRMj21eslGtDt43IUf9bJL3h5bwUlZleibA==",
-      "dependencies": {
-        "immer": "^10.0.3",
-        "redux": "^5.0.0",
-        "redux-thunk": "^3.1.0",
-        "reselect": "^5.0.1"
-      },
-      "peerDependencies": {
-        "react": "^16.9.0 || ^17.0.0 || ^18",
-        "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0"
-      },
-      "peerDependenciesMeta": {
-        "react": {
-          "optional": true
-        },
-        "react-redux": {
-          "optional": true
-        }
-      }
-    },
-    "node_modules/@reduxjs/toolkit/node_modules/immer": {
-      "version": "10.0.3",
-      "resolved": "https://registry.npmjs.org/immer/-/immer-10.0.3.tgz",
-      "integrity": "sha512-pwupu3eWfouuaowscykeckFmVTpqbzW+rXFCX8rQLkZzM9ftBmU/++Ra+o+L27mz03zJTlyV4UUr+fdKNffo4A==",
-      "funding": {
-        "type": "opencollective",
-        "url": "https://opencollective.com/immer"
-      }
-    },
-    "node_modules/@types/prop-types": {
-      "version": "15.7.11",
-      "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz",
-      "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==",
-      "optional": true,
-      "peer": true
-    },
-    "node_modules/@types/react": {
-      "version": "18.2.42",
-      "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.42.tgz",
-      "integrity": "sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==",
-      "optional": true,
-      "peer": true,
-      "dependencies": {
-        "@types/prop-types": "*",
-        "@types/scheduler": "*",
-        "csstype": "^3.0.2"
-      }
-    },
-    "node_modules/@types/react-dom": {
-      "version": "18.2.17",
-      "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.17.tgz",
-      "integrity": "sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg==",
-      "optional": true,
-      "peer": true,
-      "dependencies": {
-        "@types/react": "*"
-      }
-    },
-    "node_modules/@types/scheduler": {
-      "version": "0.16.8",
-      "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz",
-      "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==",
-      "optional": true,
-      "peer": true
-    },
-    "node_modules/@types/use-sync-external-store": {
-      "version": "0.0.3",
-      "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz",
-      "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA=="
-    },
-    "node_modules/csstype": {
-      "version": "3.1.2",
-      "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
-      "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==",
-      "optional": true,
-      "peer": true
-    },
-    "node_modules/js-tokens": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
-      "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
-      "peer": true
-    },
-    "node_modules/loose-envify": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
-      "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
-      "peer": true,
-      "dependencies": {
-        "js-tokens": "^3.0.0 || ^4.0.0"
-      },
-      "bin": {
-        "loose-envify": "cli.js"
-      }
-    },
-    "node_modules/react": {
-      "version": "18.2.0",
-      "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
-      "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
-      "peer": true,
-      "dependencies": {
-        "loose-envify": "^1.1.0"
-      },
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/react-dom": {
-      "version": "18.2.0",
-      "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
-      "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
-      "optional": true,
-      "peer": true,
-      "dependencies": {
-        "loose-envify": "^1.1.0",
-        "scheduler": "^0.23.0"
-      },
-      "peerDependencies": {
-        "react": "^18.2.0"
-      }
-    },
-    "node_modules/react-redux": {
-      "version": "9.0.2",
-      "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.0.2.tgz",
-      "integrity": "sha512-34EI42cYZxJF59Iht6RDM5xDun5EdhV8CbJcTe+mYx97XMHLNYA6RrH9r/ZOZX3CetVCYfBEU9oAY9h3sZarsw==",
-      "dependencies": {
-        "@types/use-sync-external-store": "^0.0.3",
-        "use-sync-external-store": "^1.0.0"
-      },
-      "peerDependencies": {
-        "@types/react": "^18.2.41",
-        "@types/react-dom": "^18.2.17",
-        "react": "^18.0",
-        "react-dom": "^18.0",
-        "react-native": ">=0.71",
-        "redux": "^5.0.0"
-      },
-      "peerDependenciesMeta": {
-        "@types/react": {
-          "optional": true
-        },
-        "@types/react-dom": {
-          "optional": true
-        },
-        "react-dom": {
-          "optional": true
-        },
-        "react-native": {
-          "optional": true
-        },
-        "redux": {
-          "optional": true
-        }
-      }
-    },
-    "node_modules/redux": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.0.tgz",
-      "integrity": "sha512-blLIYmYetpZMET6Q6uCY7Jtl/Im5OBldy+vNPauA8vvsdqyt66oep4EUpAMWNHauTC6xa9JuRPhRB72rY82QGA=="
-    },
-    "node_modules/redux-thunk": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz",
-      "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==",
-      "peerDependencies": {
-        "redux": "^5.0.0"
-      }
-    },
-    "node_modules/reselect": {
-      "version": "5.0.1",
-      "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.0.1.tgz",
-      "integrity": "sha512-D72j2ubjgHpvuCiORWkOUxndHJrxDaSolheiz5CO+roz8ka97/4msh2E8F5qay4GawR5vzBt5MkbDHT+Rdy/Wg=="
-    },
-    "node_modules/scheduler": {
-      "version": "0.23.0",
-      "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
-      "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
-      "optional": true,
-      "peer": true,
-      "dependencies": {
-        "loose-envify": "^1.1.0"
-      }
-    },
-    "node_modules/use-sync-external-store": {
-      "version": "1.2.0",
-      "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",
-      "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
-      "peerDependencies": {
-        "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
-      }
-    }
-  }
-}

+ 0 - 21
react/study8/proect/node_modules/@reduxjs/toolkit/LICENSE

@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2018 Mark Erikson
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

+ 0 - 106
react/study8/proect/node_modules/@reduxjs/toolkit/README.md

@@ -1,106 +0,0 @@
-# Redux Toolkit
-
-![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/reduxjs/redux-toolkit/tests.yml?style=flat-square)
-[![npm version](https://img.shields.io/npm/v/@reduxjs/toolkit.svg?style=flat-square)](https://www.npmjs.com/package/@reduxjs/toolkit)
-[![npm downloads](https://img.shields.io/npm/dm/@reduxjs/toolkit.svg?style=flat-square&label=RTK+downloads)](https://www.npmjs.com/package/@reduxjs/toolkit)
-
-**The official, opinionated, batteries-included toolset for efficient Redux development**
-
-## Installation
-
-### Create a React Redux App
-
-The recommended way to start new apps with React and Redux Toolkit is by using [our official Redux Toolkit + TS template for Vite](https://github.com/reduxjs/redux-templates), or by creating a new Next.js project using [Next's `with-redux` template](https://github.com/vercel/next.js/tree/canary/examples/with-redux).
-
-Both of these already have Redux Toolkit and React-Redux configured appropriately for that build tool, and come with a small example app that demonstrates how to use several of Redux Toolkit's features.
-
-```bash
-# Vite with our Redux+TS template
-# (using the `degit` tool to clone and extract the template)
-npx degit reduxjs/redux-templates/packages/vite-template-redux my-app
-
-# Next.js using the `with-redux` template
-npx create-next-app --example with-redux my-app
-```
-
-We do not currently have official React Native templates, but recommend these templates for standard React Native and for Expo:
-
-- https://github.com/rahsheen/react-native-template-redux-typescript
-- https://github.com/rahsheen/expo-template-redux-typescript
-
-### An Existing App
-
-Redux Toolkit is available as a package on NPM for use with a module bundler or in a Node application:
-
-```bash
-# NPM
-npm install @reduxjs/toolkit
-
-# Yarn
-yarn add @reduxjs/toolkit
-```
-
-The package includes a precompiled ESM build that can be used as a [`<script type="module">` tag](https://unpkg.com/@reduxjs/toolkit/dist/redux-toolkit.browser.mjs) directly in the browser.
-
-## Documentation
-
-The Redux Toolkit docs are available at **https://redux-toolkit.js.org**, including API references and usage guides for all of the APIs included in Redux Toolkit.
-
-The Redux core docs at https://redux.js.org includes the full Redux tutorials, as well usage guides on general Redux patterns.
-
-## Purpose
-
-The **Redux Toolkit** package is intended to be the standard way to write Redux logic. It was originally created to help address three common concerns about Redux:
-
-- "Configuring a Redux store is too complicated"
-- "I have to add a lot of packages to get Redux to do anything useful"
-- "Redux requires too much boilerplate code"
-
-We can't solve every use case, but in the spirit of [`create-react-app`](https://github.com/facebook/create-react-app), we can try to provide some tools that abstract over the setup process and handle the most common use cases, as well as include some useful utilities that will let the user simplify their application code.
-
-Because of that, this package is deliberately limited in scope. It does _not_ address concepts like "reusable encapsulated Redux modules", folder or file structures, managing entity relationships in the store, and so on.
-
-Redux Toolkit also includes a powerful data fetching and caching capability that we've dubbed "RTK Query". It's included in the package as a separate set of entry points. It's optional, but can eliminate the need to hand-write data fetching logic yourself.
-
-## What's Included
-
-Redux Toolkit includes these APIs:
-
-- `configureStore()`: wraps `createStore` to provide simplified configuration options and good defaults. It can automatically combine your slice reducers, add whatever Redux middleware you supply, includes `redux-thunk` by default, and enables use of the Redux DevTools Extension.
-- `createReducer()`: lets you supply a lookup table of action types to case reducer functions, rather than writing switch statements. In addition, it automatically uses the [`immer` library](https://github.com/mweststrate/immer) to let you write simpler immutable updates with normal mutative code, like `state.todos[3].completed = true`.
-- `createAction()`: generates an action creator function for the given action type string. The function itself has `toString()` defined, so that it can be used in place of the type constant.
-- `createSlice()`: combines `createReducer()` + `createAction()`. Accepts an object of reducer functions, a slice name, and an initial state value, and automatically generates a slice reducer with corresponding action creators and action types.
-- `combineSlices()`: combines multiple slices into a single reducer, and allows "lazy loading" of slices after initialisation.
-- `createListenerMiddleware()`: lets you define "listener" entries that contain an "effect" callback with additional logic, and a way to specify when that callback should run based on dispatched actions or state changes. A lightweight alternative to Redux async middleware like sagas and observables.
-- `createAsyncThunk()`: accepts an action type string and a function that returns a promise, and generates a thunk that dispatches `pending/resolved/rejected` action types based on that promise
-- `createEntityAdapter()`: generates a set of reusable reducers and selectors to manage normalized data in the store
-- The `createSelector()` utility from the [Reselect](https://github.com/reduxjs/reselect) library, re-exported for ease of use.
-
-For details, see [the Redux Toolkit API Reference section in the docs](https://redux-toolkit.js.org/api/configureStore).
-
-## RTK Query
-
-**RTK Query** is provided as an optional addon within the `@reduxjs/toolkit` package. It is purpose-built to solve the use case of data fetching and caching, supplying a compact, but powerful toolset to define an API interface layer for your app. It is intended to simplify common cases for loading data in a web application, eliminating the need to hand-write data fetching & caching logic yourself.
-
-RTK Query is built on top of the Redux Toolkit core for its implementation, using [Redux](https://redux.js.org/) internally for its architecture. Although knowledge of Redux and RTK are not required to use RTK Query, you should explore all of the additional global store management capabilities they provide, as well as installing the [Redux DevTools browser extension](https://github.com/reduxjs/redux-devtools), which works flawlessly with RTK Query to traverse and replay a timeline of your request & cache behavior.
-
-RTK Query is included within the installation of the core Redux Toolkit package. It is available via either of the two entry points below:
-
-```ts no-transpile
-import { createApi } from '@reduxjs/toolkit/query'
-
-/* React-specific entry point that automatically generates
-   hooks corresponding to the defined endpoints */
-import { createApi } from '@reduxjs/toolkit/query/react'
-```
-
-### What's included
-
-RTK Query includes these APIs:
-
-- `createApi()`: The core of RTK Query's functionality. It allows you to define a set of endpoints describe how to retrieve data from a series of endpoints, including configuration of how to fetch and transform that data. In most cases, you should use this once per app, with "one API slice per base URL" as a rule of thumb.
-- `fetchBaseQuery()`: A small wrapper around fetch that aims to simplify requests. Intended as the recommended baseQuery to be used in createApi for the majority of users.
-- `<ApiProvider />`: Can be used as a Provider if you do not already have a Redux store.
-- `setupListeners()`: A utility used to enable refetchOnMount and refetchOnReconnect behaviors.
-
-See the [**RTK Query Overview**](https://redux-toolkit.js.org/rtk-query/overview) page for more details on what RTK Query is, what problems it solves, and how to use it.

+ 0 - 12
react/study8/proect/node_modules/@reduxjs/toolkit/dist/actionCreatorInvariantMiddleware.d.ts

@@ -1,12 +0,0 @@
-import type { Middleware } from 'redux';
-export interface ActionCreatorInvariantMiddlewareOptions {
-    /**
-     * The function to identify whether a value is an action creator.
-     * The default checks for a function with a static type property and match method.
-     */
-    isActionCreator?: (action: unknown) => action is Function & {
-        type?: unknown;
-    };
-}
-export declare function getMessage(type?: unknown): string;
-export declare function createActionCreatorInvariantMiddleware(options?: ActionCreatorInvariantMiddlewareOptions): Middleware;

+ 0 - 40
react/study8/proect/node_modules/@reduxjs/toolkit/dist/autoBatchEnhancer.d.ts

@@ -1,40 +0,0 @@
-import type { StoreEnhancer } from 'redux';
-export declare const SHOULD_AUTOBATCH = "RTK_autoBatch";
-export declare const prepareAutoBatched: <T>() => (payload: T) => {
-    payload: T;
-    meta: unknown;
-};
-export type AutoBatchOptions = {
-    type: 'tick';
-} | {
-    type: 'timer';
-    timeout: number;
-} | {
-    type: 'raf';
-} | {
-    type: 'callback';
-    queueNotification: (notify: () => void) => void;
-};
-/**
- * A Redux store enhancer that watches for "low-priority" actions, and delays
- * notifying subscribers until either the queued callback executes or the
- * next "standard-priority" action is dispatched.
- *
- * This allows dispatching multiple "low-priority" actions in a row with only
- * a single subscriber notification to the UI after the sequence of actions
- * is finished, thus improving UI re-render performance.
- *
- * Watches for actions with the `action.meta[SHOULD_AUTOBATCH]` attribute.
- * This can be added to `action.meta` manually, or by using the
- * `prepareAutoBatched` helper.
- *
- * By default, it will queue a notification for the end of the event loop tick.
- * However, you can pass several other options to configure the behavior:
- * - `{type: 'tick'}`: queues using `queueMicrotask`
- * - `{type: 'timer, timeout: number}`: queues using `setTimeout`
- * - `{type: 'raf'}`: queues using `requestAnimationFrame` (default)
- * - `{type: 'callback', queueNotification: (notify: () => void) => void}`: lets you provide your own callback
- *
- *
- */
-export declare const autoBatchEnhancer: (options?: AutoBatchOptions) => StoreEnhancer;

+ 0 - 6
react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/index.js

@@ -1,6 +0,0 @@
-'use strict'
-if (process.env.NODE_ENV === 'production') {
-  module.exports = require('./redux-toolkit.production.min.cjs')
-} else {
-  module.exports = require('./redux-toolkit.development.cjs')
-}

+ 0 - 2256
react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.development.cjs

@@ -1,2256 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
-  for (var name in all)
-    __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
-  if (from && typeof from === "object" || typeof from === "function") {
-    for (let key of __getOwnPropNames(from))
-      if (!__hasOwnProp.call(to, key) && key !== except)
-        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
-  }
-  return to;
-};
-var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-
-// src/index.ts
-var src_exports = {};
-__export(src_exports, {
-  ReducerType: () => ReducerType,
-  SHOULD_AUTOBATCH: () => SHOULD_AUTOBATCH,
-  TaskAbortError: () => TaskAbortError,
-  Tuple: () => Tuple,
-  addListener: () => addListener,
-  asyncThunkCreator: () => asyncThunkCreator,
-  autoBatchEnhancer: () => autoBatchEnhancer,
-  buildCreateSlice: () => buildCreateSlice,
-  clearAllListeners: () => clearAllListeners,
-  combineSlices: () => combineSlices,
-  configureStore: () => configureStore,
-  createAction: () => createAction,
-  createActionCreatorInvariantMiddleware: () => createActionCreatorInvariantMiddleware,
-  createAsyncThunk: () => createAsyncThunk,
-  createDraftSafeSelector: () => createDraftSafeSelector,
-  createDraftSafeSelectorCreator: () => createDraftSafeSelectorCreator,
-  createDynamicMiddleware: () => createDynamicMiddleware,
-  createEntityAdapter: () => createEntityAdapter,
-  createImmutableStateInvariantMiddleware: () => createImmutableStateInvariantMiddleware,
-  createListenerMiddleware: () => createListenerMiddleware,
-  createNextState: () => import_immer5.produce,
-  createReducer: () => createReducer,
-  createSelector: () => import_reselect2.createSelector,
-  createSelectorCreator: () => import_reselect2.createSelectorCreator,
-  createSerializableStateInvariantMiddleware: () => createSerializableStateInvariantMiddleware,
-  createSlice: () => createSlice,
-  current: () => import_immer5.current,
-  findNonSerializableValue: () => findNonSerializableValue,
-  formatProdErrorMessage: () => formatProdErrorMessage,
-  freeze: () => import_immer5.freeze,
-  isActionCreator: () => isActionCreator,
-  isAllOf: () => isAllOf,
-  isAnyOf: () => isAnyOf,
-  isAsyncThunkAction: () => isAsyncThunkAction,
-  isDraft: () => import_immer5.isDraft,
-  isFluxStandardAction: () => isFSA,
-  isFulfilled: () => isFulfilled,
-  isImmutableDefault: () => isImmutableDefault,
-  isPending: () => isPending,
-  isPlain: () => isPlain,
-  isRejected: () => isRejected,
-  isRejectedWithValue: () => isRejectedWithValue,
-  lruMemoize: () => import_reselect2.lruMemoize,
-  miniSerializeError: () => miniSerializeError,
-  nanoid: () => nanoid,
-  original: () => import_immer5.original,
-  prepareAutoBatched: () => prepareAutoBatched,
-  removeListener: () => removeListener,
-  unwrapResult: () => unwrapResult,
-  weakMapMemoize: () => import_reselect2.weakMapMemoize
-});
-module.exports = __toCommonJS(src_exports);
-__reExport(src_exports, require("redux"), module.exports);
-var import_immer5 = require("immer");
-var import_reselect2 = require("reselect");
-
-// src/createDraftSafeSelector.ts
-var import_immer = require("immer");
-var import_reselect = require("reselect");
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = (0, import_reselect.createSelectorCreator)(...args);
-  return (...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector((0, import_immer.isDraft)(value) ? (0, import_immer.current)(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  };
-};
-var createDraftSafeSelector = createDraftSafeSelectorCreator(import_reselect.weakMapMemoize);
-
-// src/configureStore.ts
-var import_redux4 = require("redux");
-
-// src/devtoolsExtension.ts
-var import_redux = require("redux");
-var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
-  if (arguments.length === 0)
-    return void 0;
-  if (typeof arguments[0] === "object")
-    return import_redux.compose;
-  return import_redux.compose.apply(null, arguments);
-};
-var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function() {
-  return function(noop3) {
-    return noop3;
-  };
-};
-
-// src/getDefaultMiddleware.ts
-var import_redux_thunk = require("redux-thunk");
-
-// src/createAction.ts
-var import_redux2 = require("redux");
-
-// src/tsHelpers.ts
-var hasMatchFunction = (v) => {
-  return v && typeof v.match === "function";
-};
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    if (prepareAction) {
-      let prepared = prepareAction(...args);
-      if (!prepared) {
-        throw new Error(false ? _formatProdErrorMessage(0) : "prepareAction did not return an object");
-      }
-      return {
-        type,
-        payload: prepared.payload,
-        ..."meta" in prepared && {
-          meta: prepared.meta
-        },
-        ..."error" in prepared && {
-          error: prepared.error
-        }
-      };
-    }
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => (0, import_redux2.isAction)(action) && action.type === type;
-  return actionCreator;
-}
-function isActionCreator(action) {
-  return typeof action === "function" && "type" in action && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
-  hasMatchFunction(action);
-}
-function isFSA(action) {
-  return (0, import_redux2.isAction)(action) && Object.keys(action).every(isValidKey);
-}
-function isValidKey(key) {
-  return ["type", "payload", "error", "meta"].indexOf(key) > -1;
-}
-
-// src/actionCreatorInvariantMiddleware.ts
-function getMessage(type) {
-  const splitType = type ? `${type}`.split("/") : [];
-  const actionName = splitType[splitType.length - 1] || "actionCreator";
-  return `Detected an action creator with type "${type || "unknown"}" being dispatched. 
-Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${actionName}())\` instead of \`dispatch(${actionName})\`. This is necessary even if the action has no payload.`;
-}
-function createActionCreatorInvariantMiddleware(options = {}) {
-  if (false) {
-    return () => (next) => (action) => next(action);
-  }
-  const {
-    isActionCreator: isActionCreator2 = isActionCreator
-  } = options;
-  return () => (next) => (action) => {
-    if (isActionCreator2(action)) {
-      console.warn(getMessage(action.type));
-    }
-    return next(action);
-  };
-}
-
-// src/utils.ts
-var import_immer2 = require("immer");
-function getTimeMeasureUtils(maxDelay, fnName) {
-  let elapsed = 0;
-  return {
-    measureTime(fn) {
-      const started = Date.now();
-      try {
-        return fn();
-      } finally {
-        const finished = Date.now();
-        elapsed += finished - started;
-      }
-    },
-    warnIfExceeded() {
-      if (elapsed > maxDelay) {
-        console.warn(`${fnName} took ${elapsed}ms, which is more than the warning threshold of ${maxDelay}ms. 
-If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
-It is disabled in production builds, so you don't need to worry about that.`);
-      }
-    }
-  };
-}
-function find(iterable, comparator) {
-  for (const entry of iterable) {
-    if (comparator(entry)) {
-      return entry;
-    }
-  }
-  return void 0;
-}
-var Tuple = class _Tuple extends Array {
-  constructor(...items) {
-    super(...items);
-    Object.setPrototypeOf(this, _Tuple.prototype);
-  }
-  static get [Symbol.species]() {
-    return _Tuple;
-  }
-  concat(...arr) {
-    return super.concat.apply(this, arr);
-  }
-  prepend(...arr) {
-    if (arr.length === 1 && Array.isArray(arr[0])) {
-      return new _Tuple(...arr[0].concat(this));
-    }
-    return new _Tuple(...arr.concat(this));
-  }
-};
-function freezeDraftable(val) {
-  return (0, import_immer2.isDraftable)(val) ? (0, import_immer2.produce)(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(false ? _formatProdErrorMessage(10) : "No insert provided for key not already in map");
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}
-
-// src/immutableStateInvariantMiddleware.ts
-function isImmutableDefault(value) {
-  return typeof value !== "object" || value == null || Object.isFrozen(value);
-}
-function trackForMutations(isImmutable, ignorePaths, obj) {
-  const trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
-  return {
-    detectMutations() {
-      return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
-    }
-  };
-}
-function trackProperties(isImmutable, ignorePaths = [], obj, path = "", checkedObjects = /* @__PURE__ */ new Set()) {
-  const tracked = {
-    value: obj
-  };
-  if (!isImmutable(obj) && !checkedObjects.has(obj)) {
-    checkedObjects.add(obj);
-    tracked.children = {};
-    for (const key in obj) {
-      const childPath = path ? path + "." + key : key;
-      if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
-        continue;
-      }
-      tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
-    }
-  }
-  return tracked;
-}
-function detectMutations(isImmutable, ignoredPaths = [], trackedProperty, obj, sameParentRef = false, path = "") {
-  const prevObj = trackedProperty ? trackedProperty.value : void 0;
-  const sameRef = prevObj === obj;
-  if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
-    return {
-      wasMutated: true,
-      path
-    };
-  }
-  if (isImmutable(prevObj) || isImmutable(obj)) {
-    return {
-      wasMutated: false
-    };
-  }
-  const keysToDetect = {};
-  for (let key in trackedProperty.children) {
-    keysToDetect[key] = true;
-  }
-  for (let key in obj) {
-    keysToDetect[key] = true;
-  }
-  const hasIgnoredPaths = ignoredPaths.length > 0;
-  for (let key in keysToDetect) {
-    const nestedPath = path ? path + "." + key : key;
-    if (hasIgnoredPaths) {
-      const hasMatches = ignoredPaths.some((ignored) => {
-        if (ignored instanceof RegExp) {
-          return ignored.test(nestedPath);
-        }
-        return nestedPath === ignored;
-      });
-      if (hasMatches) {
-        continue;
-      }
-    }
-    const result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
-    if (result.wasMutated) {
-      return result;
-    }
-  }
-  return {
-    wasMutated: false
-  };
-}
-function createImmutableStateInvariantMiddleware(options = {}) {
-  if (false) {
-    return () => (next) => (action) => next(action);
-  } else {
-    let stringify2 = function(obj, serializer, indent, decycler) {
-      return JSON.stringify(obj, getSerialize2(serializer, decycler), indent);
-    }, getSerialize2 = function(serializer, decycler) {
-      let stack = [], keys = [];
-      if (!decycler)
-        decycler = function(_, value) {
-          if (stack[0] === value)
-            return "[Circular ~]";
-          return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
-        };
-      return function(key, value) {
-        if (stack.length > 0) {
-          var thisPos = stack.indexOf(this);
-          ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
-          ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
-          if (~stack.indexOf(value))
-            value = decycler.call(this, key, value);
-        } else
-          stack.push(value);
-        return serializer == null ? value : serializer.call(this, key, value);
-      };
-    };
-    var stringify = stringify2, getSerialize = getSerialize2;
-    let {
-      isImmutable = isImmutableDefault,
-      ignoredPaths,
-      warnAfter = 32
-    } = options;
-    const track = trackForMutations.bind(null, isImmutable, ignoredPaths);
-    return ({
-      getState
-    }) => {
-      let state = getState();
-      let tracker = track(state);
-      let result;
-      return (next) => (action) => {
-        const measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
-        measureUtils.measureTime(() => {
-          state = getState();
-          result = tracker.detectMutations();
-          tracker = track(state);
-          if (result.wasMutated) {
-            throw new Error(false ? _formatProdErrorMessage(19) : `A state mutation was detected between dispatches, in the path '${result.path || ""}'.  This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
-          }
-        });
-        const dispatchedAction = next(action);
-        measureUtils.measureTime(() => {
-          state = getState();
-          result = tracker.detectMutations();
-          tracker = track(state);
-          if (result.wasMutated) {
-            throw new Error(false ? _formatProdErrorMessage2(20) : `A state mutation was detected inside a dispatch, in the path: ${result.path || ""}. Take a look at the reducer(s) handling the action ${stringify2(action)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
-          }
-        });
-        measureUtils.warnIfExceeded();
-        return dispatchedAction;
-      };
-    };
-  }
-}
-
-// src/serializableStateInvariantMiddleware.ts
-var import_redux3 = require("redux");
-function isPlain(val) {
-  const type = typeof val;
-  return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || (0, import_redux3.isPlainObject)(val);
-}
-function findNonSerializableValue(value, path = "", isSerializable = isPlain, getEntries, ignoredPaths = [], cache) {
-  let foundNestedSerializable;
-  if (!isSerializable(value)) {
-    return {
-      keyPath: path || "<root>",
-      value
-    };
-  }
-  if (typeof value !== "object" || value === null) {
-    return false;
-  }
-  if (cache?.has(value))
-    return false;
-  const entries = getEntries != null ? getEntries(value) : Object.entries(value);
-  const hasIgnoredPaths = ignoredPaths.length > 0;
-  for (const [key, nestedValue] of entries) {
-    const nestedPath = path ? path + "." + key : key;
-    if (hasIgnoredPaths) {
-      const hasMatches = ignoredPaths.some((ignored) => {
-        if (ignored instanceof RegExp) {
-          return ignored.test(nestedPath);
-        }
-        return nestedPath === ignored;
-      });
-      if (hasMatches) {
-        continue;
-      }
-    }
-    if (!isSerializable(nestedValue)) {
-      return {
-        keyPath: nestedPath,
-        value: nestedValue
-      };
-    }
-    if (typeof nestedValue === "object") {
-      foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
-      if (foundNestedSerializable) {
-        return foundNestedSerializable;
-      }
-    }
-  }
-  if (cache && isNestedFrozen(value))
-    cache.add(value);
-  return false;
-}
-function isNestedFrozen(value) {
-  if (!Object.isFrozen(value))
-    return false;
-  for (const nestedValue of Object.values(value)) {
-    if (typeof nestedValue !== "object" || nestedValue === null)
-      continue;
-    if (!isNestedFrozen(nestedValue))
-      return false;
-  }
-  return true;
-}
-function createSerializableStateInvariantMiddleware(options = {}) {
-  if (false) {
-    return () => (next) => (action) => next(action);
-  } else {
-    const {
-      isSerializable = isPlain,
-      getEntries,
-      ignoredActions = [],
-      ignoredActionPaths = ["meta.arg", "meta.baseQueryMeta"],
-      ignoredPaths = [],
-      warnAfter = 32,
-      ignoreState = false,
-      ignoreActions = false,
-      disableCache = false
-    } = options;
-    const cache = !disableCache && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
-    return (storeAPI) => (next) => (action) => {
-      if (!(0, import_redux3.isAction)(action)) {
-        return next(action);
-      }
-      const result = next(action);
-      const measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
-      if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
-        measureUtils.measureTime(() => {
-          const foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
-          if (foundActionNonSerializableValue) {
-            const {
-              keyPath,
-              value
-            } = foundActionNonSerializableValue;
-            console.error(`A non-serializable value was detected in an action, in the path: \`${keyPath}\`. Value:`, value, "\nTake a look at the logic that dispatched this action: ", action, "\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)", "\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)");
-          }
-        });
-      }
-      if (!ignoreState) {
-        measureUtils.measureTime(() => {
-          const state = storeAPI.getState();
-          const foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
-          if (foundStateNonSerializableValue) {
-            const {
-              keyPath,
-              value
-            } = foundStateNonSerializableValue;
-            console.error(`A non-serializable value was detected in the state, in the path: \`${keyPath}\`. Value:`, value, `
-Take a look at the reducer(s) handling this action type: ${action.type}.
-(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
-          }
-        });
-        measureUtils.warnIfExceeded();
-      }
-      return result;
-    };
-  }
-}
-
-// src/getDefaultMiddleware.ts
-function isBoolean(x) {
-  return typeof x === "boolean";
-}
-var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
-  const {
-    thunk = true,
-    immutableCheck = true,
-    serializableCheck = true,
-    actionCreatorCheck = true
-  } = options ?? {};
-  let middlewareArray = new Tuple();
-  if (thunk) {
-    if (isBoolean(thunk)) {
-      middlewareArray.push(import_redux_thunk.thunk);
-    } else {
-      middlewareArray.push((0, import_redux_thunk.withExtraArgument)(thunk.extraArgument));
-    }
-  }
-  if (true) {
-    if (immutableCheck) {
-      let immutableOptions = {};
-      if (!isBoolean(immutableCheck)) {
-        immutableOptions = immutableCheck;
-      }
-      middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
-    }
-    if (serializableCheck) {
-      let serializableOptions = {};
-      if (!isBoolean(serializableCheck)) {
-        serializableOptions = serializableCheck;
-      }
-      middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
-    }
-    if (actionCreatorCheck) {
-      let actionCreatorOptions = {};
-      if (!isBoolean(actionCreatorCheck)) {
-        actionCreatorOptions = actionCreatorCheck;
-      }
-      middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
-    }
-  }
-  return middlewareArray;
-};
-
-// src/autoBatchEnhancer.ts
-var SHOULD_AUTOBATCH = "RTK_autoBatch";
-var prepareAutoBatched = () => (payload) => ({
-  payload,
-  meta: {
-    [SHOULD_AUTOBATCH]: true
-  }
-});
-var createQueueWithTimer = (timeout) => {
-  return (notify) => {
-    setTimeout(notify, timeout);
-  };
-};
-var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
-var autoBatchEnhancer = (options = {
-  type: "raf"
-}) => (next) => (...args) => {
-  const store = next(...args);
-  let notifying = true;
-  let shouldNotifyAtEndOfTick = false;
-  let notificationQueued = false;
-  const listeners = /* @__PURE__ */ new Set();
-  const queueCallback = options.type === "tick" ? queueMicrotask : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
-  const notifyListeners = () => {
-    notificationQueued = false;
-    if (shouldNotifyAtEndOfTick) {
-      shouldNotifyAtEndOfTick = false;
-      listeners.forEach((l) => l());
-    }
-  };
-  return Object.assign({}, store, {
-    // Override the base `store.subscribe` method to keep original listeners
-    // from running if we're delaying notifications
-    subscribe(listener2) {
-      const wrappedListener = () => notifying && listener2();
-      const unsubscribe = store.subscribe(wrappedListener);
-      listeners.add(listener2);
-      return () => {
-        unsubscribe();
-        listeners.delete(listener2);
-      };
-    },
-    // Override the base `store.dispatch` method so that we can check actions
-    // for the `shouldAutoBatch` flag and determine if batching is active
-    dispatch(action) {
-      try {
-        notifying = !action?.meta?.[SHOULD_AUTOBATCH];
-        shouldNotifyAtEndOfTick = !notifying;
-        if (shouldNotifyAtEndOfTick) {
-          if (!notificationQueued) {
-            notificationQueued = true;
-            queueCallback(notifyListeners);
-          }
-        }
-        return store.dispatch(action);
-      } finally {
-        notifying = true;
-      }
-    }
-  });
-};
-
-// src/getDefaultEnhancers.ts
-var buildGetDefaultEnhancers = (middlewareEnhancer) => function getDefaultEnhancers(options) {
-  const {
-    autoBatch = true
-  } = options ?? {};
-  let enhancerArray = new Tuple(middlewareEnhancer);
-  if (autoBatch) {
-    enhancerArray.push(autoBatchEnhancer(typeof autoBatch === "object" ? autoBatch : void 0));
-  }
-  return enhancerArray;
-};
-
-// src/configureStore.ts
-var IS_PRODUCTION = false;
-function configureStore(options) {
-  const getDefaultMiddleware = buildGetDefaultMiddleware();
-  const {
-    reducer = void 0,
-    middleware,
-    devTools = true,
-    preloadedState = void 0,
-    enhancers = void 0
-  } = options || {};
-  let rootReducer;
-  if (typeof reducer === "function") {
-    rootReducer = reducer;
-  } else if ((0, import_redux4.isPlainObject)(reducer)) {
-    rootReducer = (0, import_redux4.combineReducers)(reducer);
-  } else {
-    throw new Error(false ? _formatProdErrorMessage(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
-  }
-  if (!IS_PRODUCTION && middleware && typeof middleware !== "function") {
-    throw new Error(false ? _formatProdErrorMessage2(2) : "`middleware` field must be a callback");
-  }
-  let finalMiddleware;
-  if (typeof middleware === "function") {
-    finalMiddleware = middleware(getDefaultMiddleware);
-    if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
-      throw new Error(false ? _formatProdErrorMessage3(3) : "when using a middleware builder function, an array of middleware must be returned");
-    }
-  } else {
-    finalMiddleware = getDefaultMiddleware();
-  }
-  if (!IS_PRODUCTION && finalMiddleware.some((item) => typeof item !== "function")) {
-    throw new Error(false ? _formatProdErrorMessage4(4) : "each middleware provided to configureStore must be a function");
-  }
-  let finalCompose = import_redux4.compose;
-  if (devTools) {
-    finalCompose = composeWithDevTools({
-      // Enable capture of stack traces for dispatched Redux actions
-      trace: !IS_PRODUCTION,
-      ...typeof devTools === "object" && devTools
-    });
-  }
-  const middlewareEnhancer = (0, import_redux4.applyMiddleware)(...finalMiddleware);
-  const getDefaultEnhancers = buildGetDefaultEnhancers(middlewareEnhancer);
-  if (!IS_PRODUCTION && enhancers && typeof enhancers !== "function") {
-    throw new Error(false ? _formatProdErrorMessage5(5) : "`enhancers` field must be a callback");
-  }
-  let storeEnhancers = typeof enhancers === "function" ? enhancers(getDefaultEnhancers) : getDefaultEnhancers();
-  if (!IS_PRODUCTION && !Array.isArray(storeEnhancers)) {
-    throw new Error(false ? _formatProdErrorMessage6(6) : "`enhancers` callback must return an array");
-  }
-  if (!IS_PRODUCTION && storeEnhancers.some((item) => typeof item !== "function")) {
-    throw new Error(false ? _formatProdErrorMessage7(7) : "each enhancer provided to configureStore must be a function");
-  }
-  if (!IS_PRODUCTION && finalMiddleware.length && !storeEnhancers.includes(middlewareEnhancer)) {
-    console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
-  }
-  const composedEnhancer = finalCompose(...storeEnhancers);
-  return (0, import_redux4.createStore)(rootReducer, preloadedState, composedEnhancer);
-}
-
-// src/createReducer.ts
-var import_immer3 = require("immer");
-
-// src/mapBuilders.ts
-function executeReducerBuilderCallback(builderCallback) {
-  const actionsMap = {};
-  const actionMatchers = [];
-  let defaultCaseReducer;
-  const builder = {
-    addCase(typeOrActionCreator, reducer) {
-      if (true) {
-        if (actionMatchers.length > 0) {
-          throw new Error(false ? _formatProdErrorMessage(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
-        }
-        if (defaultCaseReducer) {
-          throw new Error(false ? _formatProdErrorMessage2(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
-        }
-      }
-      const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
-      if (!type) {
-        throw new Error(false ? _formatProdErrorMessage3(28) : "`builder.addCase` cannot be called with an empty action type");
-      }
-      if (type in actionsMap) {
-        throw new Error(false ? _formatProdErrorMessage4(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${type}'`);
-      }
-      actionsMap[type] = reducer;
-      return builder;
-    },
-    addMatcher(matcher, reducer) {
-      if (true) {
-        if (defaultCaseReducer) {
-          throw new Error(false ? _formatProdErrorMessage5(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
-        }
-      }
-      actionMatchers.push({
-        matcher,
-        reducer
-      });
-      return builder;
-    },
-    addDefaultCase(reducer) {
-      if (true) {
-        if (defaultCaseReducer) {
-          throw new Error(false ? _formatProdErrorMessage6(31) : "`builder.addDefaultCase` can only be called once");
-        }
-      }
-      defaultCaseReducer = reducer;
-      return builder;
-    }
-  };
-  builderCallback(builder);
-  return [actionsMap, actionMatchers, defaultCaseReducer];
-}
-
-// src/createReducer.ts
-function isStateFunction(x) {
-  return typeof x === "function";
-}
-function createReducer(initialState, mapOrBuilderCallback) {
-  if (true) {
-    if (typeof mapOrBuilderCallback === "object") {
-      throw new Error(false ? _formatProdErrorMessage(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
-    }
-  }
-  let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] = executeReducerBuilderCallback(mapOrBuilderCallback);
-  let getInitialState;
-  if (isStateFunction(initialState)) {
-    getInitialState = () => freezeDraftable(initialState());
-  } else {
-    const frozenInitialState = freezeDraftable(initialState);
-    getInitialState = () => frozenInitialState;
-  }
-  function reducer(state = getInitialState(), action) {
-    let caseReducers = [actionsMap[action.type], ...finalActionMatchers.filter(({
-      matcher
-    }) => matcher(action)).map(({
-      reducer: reducer2
-    }) => reducer2)];
-    if (caseReducers.filter((cr) => !!cr).length === 0) {
-      caseReducers = [finalDefaultCaseReducer];
-    }
-    return caseReducers.reduce((previousState, caseReducer) => {
-      if (caseReducer) {
-        if ((0, import_immer3.isDraft)(previousState)) {
-          const draft = previousState;
-          const result = caseReducer(draft, action);
-          if (result === void 0) {
-            return previousState;
-          }
-          return result;
-        } else if (!(0, import_immer3.isDraftable)(previousState)) {
-          const result = caseReducer(previousState, action);
-          if (result === void 0) {
-            if (previousState === null) {
-              return previousState;
-            }
-            throw new Error(false ? _formatProdErrorMessage2(9) : "A case reducer on a non-draftable value must not return undefined");
-          }
-          return result;
-        } else {
-          return (0, import_immer3.produce)(previousState, (draft) => {
-            return caseReducer(draft, action);
-          });
-        }
-      }
-      return previousState;
-    }, state);
-  }
-  reducer.getInitialState = getInitialState;
-  return reducer;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/matchers.ts
-var matches = (matcher, action) => {
-  if (hasMatchFunction(matcher)) {
-    return matcher.match(action);
-  } else {
-    return matcher(action);
-  }
-};
-function isAnyOf(...matchers) {
-  return (action) => {
-    return matchers.some((matcher) => matches(matcher, action));
-  };
-}
-function isAllOf(...matchers) {
-  return (action) => {
-    return matchers.every((matcher) => matches(matcher, action));
-  };
-}
-function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
-  const hasValidRequestId = typeof action.meta.requestId === "string";
-  const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
-  return hasValidRequestId && hasValidRequestStatus;
-}
-function isAsyncThunkArray(a) {
-  return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
-}
-function isPending(...asyncThunks) {
-  if (asyncThunks.length === 0) {
-    return (action) => hasExpectedRequestMetadata(action, ["pending"]);
-  }
-  if (!isAsyncThunkArray(asyncThunks)) {
-    return isPending()(asyncThunks[0]);
-  }
-  return (action) => {
-    const matchers = asyncThunks.map((asyncThunk) => asyncThunk.pending);
-    const combinedMatcher = isAnyOf(...matchers);
-    return combinedMatcher(action);
-  };
-}
-function isRejected(...asyncThunks) {
-  if (asyncThunks.length === 0) {
-    return (action) => hasExpectedRequestMetadata(action, ["rejected"]);
-  }
-  if (!isAsyncThunkArray(asyncThunks)) {
-    return isRejected()(asyncThunks[0]);
-  }
-  return (action) => {
-    const matchers = asyncThunks.map((asyncThunk) => asyncThunk.rejected);
-    const combinedMatcher = isAnyOf(...matchers);
-    return combinedMatcher(action);
-  };
-}
-function isRejectedWithValue(...asyncThunks) {
-  const hasFlag = (action) => {
-    return action && action.meta && action.meta.rejectedWithValue;
-  };
-  if (asyncThunks.length === 0) {
-    return (action) => {
-      const combinedMatcher = isAllOf(isRejected(...asyncThunks), hasFlag);
-      return combinedMatcher(action);
-    };
-  }
-  if (!isAsyncThunkArray(asyncThunks)) {
-    return isRejectedWithValue()(asyncThunks[0]);
-  }
-  return (action) => {
-    const combinedMatcher = isAllOf(isRejected(...asyncThunks), hasFlag);
-    return combinedMatcher(action);
-  };
-}
-function isFulfilled(...asyncThunks) {
-  if (asyncThunks.length === 0) {
-    return (action) => hasExpectedRequestMetadata(action, ["fulfilled"]);
-  }
-  if (!isAsyncThunkArray(asyncThunks)) {
-    return isFulfilled()(asyncThunks[0]);
-  }
-  return (action) => {
-    const matchers = asyncThunks.map((asyncThunk) => asyncThunk.fulfilled);
-    const combinedMatcher = isAnyOf(...matchers);
-    return combinedMatcher(action);
-  };
-}
-function isAsyncThunkAction(...asyncThunks) {
-  if (asyncThunks.length === 0) {
-    return (action) => hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]);
-  }
-  if (!isAsyncThunkArray(asyncThunks)) {
-    return isAsyncThunkAction()(asyncThunks[0]);
-  }
-  return (action) => {
-    const matchers = [];
-    for (const asyncThunk of asyncThunks) {
-      matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
-    }
-    const combinedMatcher = isAnyOf(...matchers);
-    return combinedMatcher(action);
-  };
-}
-
-// src/createAsyncThunk.ts
-var commonProperties = ["name", "message", "stack", "code"];
-var RejectWithValue = class {
-  constructor(payload, meta) {
-    this.payload = payload;
-    this.meta = meta;
-  }
-  /*
-  type-only property to distinguish between RejectWithValue and FulfillWithMeta
-  does not exist at runtime
-  */
-  _type;
-};
-var FulfillWithMeta = class {
-  constructor(payload, meta) {
-    this.payload = payload;
-    this.meta = meta;
-  }
-  /*
-  type-only property to distinguish between RejectWithValue and FulfillWithMeta
-  does not exist at runtime
-  */
-  _type;
-};
-var miniSerializeError = (value) => {
-  if (typeof value === "object" && value !== null) {
-    const simpleError = {};
-    for (const property of commonProperties) {
-      if (typeof value[property] === "string") {
-        simpleError[property] = value[property];
-      }
-    }
-    return simpleError;
-  }
-  return {
-    message: String(value)
-  };
-};
-var createAsyncThunk = /* @__PURE__ */ (() => {
-  function createAsyncThunk2(typePrefix, payloadCreator, options) {
-    const fulfilled = createAction(typePrefix + "/fulfilled", (payload, requestId, arg, meta) => ({
-      payload,
-      meta: {
-        ...meta || {},
-        arg,
-        requestId,
-        requestStatus: "fulfilled"
-      }
-    }));
-    const pending = createAction(typePrefix + "/pending", (requestId, arg, meta) => ({
-      payload: void 0,
-      meta: {
-        ...meta || {},
-        arg,
-        requestId,
-        requestStatus: "pending"
-      }
-    }));
-    const rejected = createAction(typePrefix + "/rejected", (error, requestId, arg, payload, meta) => ({
-      payload,
-      error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
-      meta: {
-        ...meta || {},
-        arg,
-        requestId,
-        rejectedWithValue: !!payload,
-        requestStatus: "rejected",
-        aborted: error?.name === "AbortError",
-        condition: error?.name === "ConditionError"
-      }
-    }));
-    function actionCreator(arg) {
-      return (dispatch, getState, extra) => {
-        const requestId = options?.idGenerator ? options.idGenerator(arg) : nanoid();
-        const abortController = new AbortController();
-        let abortReason;
-        function abort(reason) {
-          abortReason = reason;
-          abortController.abort();
-        }
-        const promise = async function() {
-          let finalAction;
-          try {
-            let conditionResult = options?.condition?.(arg, {
-              getState,
-              extra
-            });
-            if (isThenable(conditionResult)) {
-              conditionResult = await conditionResult;
-            }
-            if (conditionResult === false || abortController.signal.aborted) {
-              throw {
-                name: "ConditionError",
-                message: "Aborted due to condition callback returning false."
-              };
-            }
-            const abortedPromise = new Promise((_, reject) => abortController.signal.addEventListener("abort", () => reject({
-              name: "AbortError",
-              message: abortReason || "Aborted"
-            })));
-            dispatch(pending(requestId, arg, options?.getPendingMeta?.({
-              requestId,
-              arg
-            }, {
-              getState,
-              extra
-            })));
-            finalAction = await Promise.race([abortedPromise, Promise.resolve(payloadCreator(arg, {
-              dispatch,
-              getState,
-              extra,
-              requestId,
-              signal: abortController.signal,
-              abort,
-              rejectWithValue: (value, meta) => {
-                return new RejectWithValue(value, meta);
-              },
-              fulfillWithValue: (value, meta) => {
-                return new FulfillWithMeta(value, meta);
-              }
-            })).then((result) => {
-              if (result instanceof RejectWithValue) {
-                throw result;
-              }
-              if (result instanceof FulfillWithMeta) {
-                return fulfilled(result.payload, requestId, arg, result.meta);
-              }
-              return fulfilled(result, requestId, arg);
-            })]);
-          } catch (err) {
-            finalAction = err instanceof RejectWithValue ? rejected(null, requestId, arg, err.payload, err.meta) : rejected(err, requestId, arg);
-          }
-          const skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
-          if (!skipDispatch) {
-            dispatch(finalAction);
-          }
-          return finalAction;
-        }();
-        return Object.assign(promise, {
-          abort,
-          requestId,
-          arg,
-          unwrap() {
-            return promise.then(unwrapResult);
-          }
-        });
-      };
-    }
-    return Object.assign(actionCreator, {
-      pending,
-      rejected,
-      fulfilled,
-      settled: isAnyOf(rejected, fulfilled),
-      typePrefix
-    });
-  }
-  createAsyncThunk2.withTypes = () => createAsyncThunk2;
-  return createAsyncThunk2;
-})();
-function unwrapResult(action) {
-  if (action.meta && action.meta.rejectedWithValue) {
-    throw action.payload;
-  }
-  if (action.error) {
-    throw action.error;
-  }
-  return action.payload;
-}
-function isThenable(value) {
-  return value !== null && typeof value === "object" && typeof value.then === "function";
-}
-
-// src/createSlice.ts
-var asyncThunkSymbol = Symbol.for("rtk-slice-createasyncthunk");
-var asyncThunkCreator = {
-  [asyncThunkSymbol]: createAsyncThunk
-};
-var ReducerType = /* @__PURE__ */ ((ReducerType2) => {
-  ReducerType2["reducer"] = "reducer";
-  ReducerType2["reducerWithPrepare"] = "reducerWithPrepare";
-  ReducerType2["asyncThunk"] = "asyncThunk";
-  return ReducerType2;
-})(ReducerType || {});
-function getType(slice, actionKey) {
-  return `${slice}/${actionKey}`;
-}
-function buildCreateSlice({
-  creators
-} = {}) {
-  const cAT = creators?.asyncThunk?.[asyncThunkSymbol];
-  return function createSlice2(options) {
-    const {
-      name,
-      reducerPath = name
-    } = options;
-    if (!name) {
-      throw new Error(false ? _formatProdErrorMessage(11) : "`name` is a required option for createSlice");
-    }
-    if (typeof process !== "undefined" && true) {
-      if (options.initialState === void 0) {
-        console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
-      }
-    }
-    const reducers = (typeof options.reducers === "function" ? options.reducers(buildReducerCreators()) : options.reducers) || {};
-    const reducerNames = Object.keys(reducers);
-    const context = {
-      sliceCaseReducersByName: {},
-      sliceCaseReducersByType: {},
-      actionCreators: {},
-      sliceMatchers: []
-    };
-    const contextMethods = {
-      addCase(typeOrActionCreator, reducer) {
-        const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
-        if (!type) {
-          throw new Error(false ? _formatProdErrorMessage2(12) : "`context.addCase` cannot be called with an empty action type");
-        }
-        if (type in context.sliceCaseReducersByType) {
-          throw new Error(false ? _formatProdErrorMessage3(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + type);
-        }
-        context.sliceCaseReducersByType[type] = reducer;
-        return contextMethods;
-      },
-      addMatcher(matcher, reducer) {
-        context.sliceMatchers.push({
-          matcher,
-          reducer
-        });
-        return contextMethods;
-      },
-      exposeAction(name2, actionCreator) {
-        context.actionCreators[name2] = actionCreator;
-        return contextMethods;
-      },
-      exposeCaseReducer(name2, reducer) {
-        context.sliceCaseReducersByName[name2] = reducer;
-        return contextMethods;
-      }
-    };
-    reducerNames.forEach((reducerName) => {
-      const reducerDefinition = reducers[reducerName];
-      const reducerDetails = {
-        reducerName,
-        type: getType(name, reducerName),
-        createNotation: typeof options.reducers === "function"
-      };
-      if (isAsyncThunkSliceReducerDefinition(reducerDefinition)) {
-        handleThunkCaseReducerDefinition(reducerDetails, reducerDefinition, contextMethods, cAT);
-      } else {
-        handleNormalReducerDefinition(reducerDetails, reducerDefinition, contextMethods);
-      }
-    });
-    function buildReducer() {
-      if (true) {
-        if (typeof options.extraReducers === "object") {
-          throw new Error(false ? _formatProdErrorMessage4(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
-        }
-      }
-      const [extraReducers = {}, actionMatchers = [], defaultCaseReducer = void 0] = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers];
-      const finalCaseReducers = {
-        ...extraReducers,
-        ...context.sliceCaseReducersByType
-      };
-      return createReducer(options.initialState, (builder) => {
-        for (let key in finalCaseReducers) {
-          builder.addCase(key, finalCaseReducers[key]);
-        }
-        for (let sM of context.sliceMatchers) {
-          builder.addMatcher(sM.matcher, sM.reducer);
-        }
-        for (let m of actionMatchers) {
-          builder.addMatcher(m.matcher, m.reducer);
-        }
-        if (defaultCaseReducer) {
-          builder.addDefaultCase(defaultCaseReducer);
-        }
-      });
-    }
-    const selectSelf = (state) => state;
-    const injectedSelectorCache = /* @__PURE__ */ new WeakMap();
-    let _reducer;
-    const slice = {
-      name,
-      reducerPath,
-      reducer(state, action) {
-        if (!_reducer)
-          _reducer = buildReducer();
-        return _reducer(state, action);
-      },
-      actions: context.actionCreators,
-      caseReducers: context.sliceCaseReducersByName,
-      getInitialState() {
-        if (!_reducer)
-          _reducer = buildReducer();
-        return _reducer.getInitialState();
-      },
-      getSelectors(selectState = selectSelf) {
-        const selectorCache = emplace(injectedSelectorCache, this, {
-          insert: () => /* @__PURE__ */ new WeakMap()
-        });
-        return emplace(selectorCache, selectState, {
-          insert: () => {
-            const map = {};
-            for (const [name2, selector] of Object.entries(options.selectors ?? {})) {
-              map[name2] = wrapSelector(this, selector, selectState, this !== slice);
-            }
-            return map;
-          }
-        });
-      },
-      selectSlice(state) {
-        let sliceState = state[this.reducerPath];
-        if (typeof sliceState === "undefined") {
-          if (this !== slice) {
-            sliceState = this.getInitialState();
-          } else if (true) {
-            throw new Error(false ? _formatProdErrorMessage5(15) : "selectSlice returned undefined for an uninjected slice reducer");
-          }
-        }
-        return sliceState;
-      },
-      get selectors() {
-        return this.getSelectors(this.selectSlice);
-      },
-      injectInto(injectable, {
-        reducerPath: pathOpt,
-        ...config
-      } = {}) {
-        const reducerPath2 = pathOpt ?? this.reducerPath;
-        injectable.inject({
-          reducerPath: reducerPath2,
-          reducer: this.reducer
-        }, config);
-        return {
-          ...this,
-          reducerPath: reducerPath2
-        };
-      }
-    };
-    return slice;
-  };
-}
-function wrapSelector(slice, selector, selectState, injected) {
-  function wrapper(rootState, ...args) {
-    let sliceState = selectState.call(slice, rootState);
-    if (typeof sliceState === "undefined") {
-      if (injected) {
-        sliceState = slice.getInitialState();
-      } else if (true) {
-        throw new Error(false ? _formatProdErrorMessage6(16) : "selectState returned undefined for an uninjected slice reducer");
-      }
-    }
-    return selector(sliceState, ...args);
-  }
-  wrapper.unwrapped = selector;
-  return wrapper;
-}
-var createSlice = buildCreateSlice();
-function buildReducerCreators() {
-  function asyncThunk(payloadCreator, config) {
-    return {
-      _reducerDefinitionType: "asyncThunk" /* asyncThunk */,
-      payloadCreator,
-      ...config
-    };
-  }
-  asyncThunk.withTypes = () => asyncThunk;
-  return {
-    reducer(caseReducer) {
-      return Object.assign({
-        // hack so the wrapping function has the same name as the original
-        // we need to create a wrapper so the `reducerDefinitionType` is not assigned to the original
-        [caseReducer.name](...args) {
-          return caseReducer(...args);
-        }
-      }[caseReducer.name], {
-        _reducerDefinitionType: "reducer" /* reducer */
-      });
-    },
-    preparedReducer(prepare, reducer) {
-      return {
-        _reducerDefinitionType: "reducerWithPrepare" /* reducerWithPrepare */,
-        prepare,
-        reducer
-      };
-    },
-    asyncThunk
-  };
-}
-function handleNormalReducerDefinition({
-  type,
-  reducerName,
-  createNotation
-}, maybeReducerWithPrepare, context) {
-  let caseReducer;
-  let prepareCallback;
-  if ("reducer" in maybeReducerWithPrepare) {
-    if (createNotation && !isCaseReducerWithPrepareDefinition(maybeReducerWithPrepare)) {
-      throw new Error(false ? _formatProdErrorMessage7(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
-    }
-    caseReducer = maybeReducerWithPrepare.reducer;
-    prepareCallback = maybeReducerWithPrepare.prepare;
-  } else {
-    caseReducer = maybeReducerWithPrepare;
-  }
-  context.addCase(type, caseReducer).exposeCaseReducer(reducerName, caseReducer).exposeAction(reducerName, prepareCallback ? createAction(type, prepareCallback) : createAction(type));
-}
-function isAsyncThunkSliceReducerDefinition(reducerDefinition) {
-  return reducerDefinition._reducerDefinitionType === "asyncThunk" /* asyncThunk */;
-}
-function isCaseReducerWithPrepareDefinition(reducerDefinition) {
-  return reducerDefinition._reducerDefinitionType === "reducerWithPrepare" /* reducerWithPrepare */;
-}
-function handleThunkCaseReducerDefinition({
-  type,
-  reducerName
-}, reducerDefinition, context, cAT) {
-  if (!cAT) {
-    throw new Error(false ? _formatProdErrorMessage8(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
-  }
-  const {
-    payloadCreator,
-    fulfilled,
-    pending,
-    rejected,
-    settled,
-    options
-  } = reducerDefinition;
-  const thunk = cAT(type, payloadCreator, options);
-  context.exposeAction(reducerName, thunk);
-  if (fulfilled) {
-    context.addCase(thunk.fulfilled, fulfilled);
-  }
-  if (pending) {
-    context.addCase(thunk.pending, pending);
-  }
-  if (rejected) {
-    context.addCase(thunk.rejected, rejected);
-  }
-  if (settled) {
-    context.addMatcher(thunk.settled, settled);
-  }
-  context.exposeCaseReducer(reducerName, {
-    fulfilled: fulfilled || noop,
-    pending: pending || noop,
-    rejected: rejected || noop,
-    settled: settled || noop
-  });
-}
-function noop() {
-}
-
-// src/entities/entity_state.ts
-function getInitialEntityState() {
-  return {
-    ids: [],
-    entities: {}
-  };
-}
-function createInitialStateFactory() {
-  function getInitialState(additionalState = {}) {
-    return Object.assign(getInitialEntityState(), additionalState);
-  }
-  return {
-    getInitialState
-  };
-}
-
-// src/entities/state_selectors.ts
-function createSelectorsFactory() {
-  function getSelectors(selectState, options = {}) {
-    const {
-      createSelector: createSelector2 = createDraftSafeSelector
-    } = options;
-    const selectIds = (state) => state.ids;
-    const selectEntities = (state) => state.entities;
-    const selectAll = createSelector2(selectIds, selectEntities, (ids, entities) => ids.map((id) => entities[id]));
-    const selectId = (_, id) => id;
-    const selectById = (entities, id) => entities[id];
-    const selectTotal = createSelector2(selectIds, (ids) => ids.length);
-    if (!selectState) {
-      return {
-        selectIds,
-        selectEntities,
-        selectAll,
-        selectTotal,
-        selectById: createSelector2(selectEntities, selectId, selectById)
-      };
-    }
-    const selectGlobalizedEntities = createSelector2(selectState, selectEntities);
-    return {
-      selectIds: createSelector2(selectState, selectIds),
-      selectEntities: selectGlobalizedEntities,
-      selectAll: createSelector2(selectState, selectAll),
-      selectTotal: createSelector2(selectState, selectTotal),
-      selectById: createSelector2(selectGlobalizedEntities, selectId, selectById)
-    };
-  }
-  return {
-    getSelectors
-  };
-}
-
-// src/entities/state_adapter.ts
-var import_immer4 = require("immer");
-var isDraftTyped = import_immer4.isDraft;
-function createSingleArgumentStateOperator(mutator) {
-  const operator = createStateOperator((_, state) => mutator(state));
-  return function operation(state) {
-    return operator(state, void 0);
-  };
-}
-function createStateOperator(mutator) {
-  return function operation(state, arg) {
-    function isPayloadActionArgument(arg2) {
-      return isFSA(arg2);
-    }
-    const runMutator = (draft) => {
-      if (isPayloadActionArgument(arg)) {
-        mutator(arg.payload, draft);
-      } else {
-        mutator(arg, draft);
-      }
-    };
-    if (isDraftTyped(state)) {
-      runMutator(state);
-      return state;
-    }
-    return (0, import_immer4.produce)(state, runMutator);
-  };
-}
-
-// src/entities/utils.ts
-function selectIdValue(entity, selectId) {
-  const key = selectId(entity);
-  if (key === void 0) {
-    console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", entity, "The `selectId` implementation:", selectId.toString());
-  }
-  return key;
-}
-function ensureEntitiesArray(entities) {
-  if (!Array.isArray(entities)) {
-    entities = Object.values(entities);
-  }
-  return entities;
-}
-function splitAddedUpdatedEntities(newEntities, selectId, state) {
-  newEntities = ensureEntitiesArray(newEntities);
-  const added = [];
-  const updated = [];
-  for (const entity of newEntities) {
-    const id = selectIdValue(entity, selectId);
-    if (id in state.entities) {
-      updated.push({
-        id,
-        changes: entity
-      });
-    } else {
-      added.push(entity);
-    }
-  }
-  return [added, updated];
-}
-
-// src/entities/unsorted_state_adapter.ts
-function createUnsortedStateAdapter(selectId) {
-  function addOneMutably(entity, state) {
-    const key = selectIdValue(entity, selectId);
-    if (key in state.entities) {
-      return;
-    }
-    state.ids.push(key);
-    state.entities[key] = entity;
-  }
-  function addManyMutably(newEntities, state) {
-    newEntities = ensureEntitiesArray(newEntities);
-    for (const entity of newEntities) {
-      addOneMutably(entity, state);
-    }
-  }
-  function setOneMutably(entity, state) {
-    const key = selectIdValue(entity, selectId);
-    if (!(key in state.entities)) {
-      state.ids.push(key);
-    }
-    state.entities[key] = entity;
-  }
-  function setManyMutably(newEntities, state) {
-    newEntities = ensureEntitiesArray(newEntities);
-    for (const entity of newEntities) {
-      setOneMutably(entity, state);
-    }
-  }
-  function setAllMutably(newEntities, state) {
-    newEntities = ensureEntitiesArray(newEntities);
-    state.ids = [];
-    state.entities = {};
-    addManyMutably(newEntities, state);
-  }
-  function removeOneMutably(key, state) {
-    return removeManyMutably([key], state);
-  }
-  function removeManyMutably(keys, state) {
-    let didMutate = false;
-    keys.forEach((key) => {
-      if (key in state.entities) {
-        delete state.entities[key];
-        didMutate = true;
-      }
-    });
-    if (didMutate) {
-      state.ids = state.ids.filter((id) => id in state.entities);
-    }
-  }
-  function removeAllMutably(state) {
-    Object.assign(state, {
-      ids: [],
-      entities: {}
-    });
-  }
-  function takeNewKey(keys, update, state) {
-    const original3 = state.entities[update.id];
-    if (original3 === void 0) {
-      return false;
-    }
-    const updated = Object.assign({}, original3, update.changes);
-    const newKey = selectIdValue(updated, selectId);
-    const hasNewKey = newKey !== update.id;
-    if (hasNewKey) {
-      keys[update.id] = newKey;
-      delete state.entities[update.id];
-    }
-    state.entities[newKey] = updated;
-    return hasNewKey;
-  }
-  function updateOneMutably(update, state) {
-    return updateManyMutably([update], state);
-  }
-  function updateManyMutably(updates, state) {
-    const newKeys = {};
-    const updatesPerEntity = {};
-    updates.forEach((update) => {
-      if (update.id in state.entities) {
-        updatesPerEntity[update.id] = {
-          id: update.id,
-          // Spreads ignore falsy values, so this works even if there isn't
-          // an existing update already at this key
-          changes: {
-            ...updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null,
-            ...update.changes
-          }
-        };
-      }
-    });
-    updates = Object.values(updatesPerEntity);
-    const didMutateEntities = updates.length > 0;
-    if (didMutateEntities) {
-      const didMutateIds = updates.filter((update) => takeNewKey(newKeys, update, state)).length > 0;
-      if (didMutateIds) {
-        state.ids = Object.values(state.entities).map((e) => selectIdValue(e, selectId));
-      }
-    }
-  }
-  function upsertOneMutably(entity, state) {
-    return upsertManyMutably([entity], state);
-  }
-  function upsertManyMutably(newEntities, state) {
-    const [added, updated] = splitAddedUpdatedEntities(newEntities, selectId, state);
-    updateManyMutably(updated, state);
-    addManyMutably(added, state);
-  }
-  return {
-    removeAll: createSingleArgumentStateOperator(removeAllMutably),
-    addOne: createStateOperator(addOneMutably),
-    addMany: createStateOperator(addManyMutably),
-    setOne: createStateOperator(setOneMutably),
-    setMany: createStateOperator(setManyMutably),
-    setAll: createStateOperator(setAllMutably),
-    updateOne: createStateOperator(updateOneMutably),
-    updateMany: createStateOperator(updateManyMutably),
-    upsertOne: createStateOperator(upsertOneMutably),
-    upsertMany: createStateOperator(upsertManyMutably),
-    removeOne: createStateOperator(removeOneMutably),
-    removeMany: createStateOperator(removeManyMutably)
-  };
-}
-
-// src/entities/sorted_state_adapter.ts
-function createSortedStateAdapter(selectId, sort) {
-  const {
-    removeOne,
-    removeMany,
-    removeAll
-  } = createUnsortedStateAdapter(selectId);
-  function addOneMutably(entity, state) {
-    return addManyMutably([entity], state);
-  }
-  function addManyMutably(newEntities, state) {
-    newEntities = ensureEntitiesArray(newEntities);
-    const models = newEntities.filter((model) => !(selectIdValue(model, selectId) in state.entities));
-    if (models.length !== 0) {
-      merge(models, state);
-    }
-  }
-  function setOneMutably(entity, state) {
-    return setManyMutably([entity], state);
-  }
-  function setManyMutably(newEntities, state) {
-    newEntities = ensureEntitiesArray(newEntities);
-    if (newEntities.length !== 0) {
-      merge(newEntities, state);
-    }
-  }
-  function setAllMutably(newEntities, state) {
-    newEntities = ensureEntitiesArray(newEntities);
-    state.entities = {};
-    state.ids = [];
-    addManyMutably(newEntities, state);
-  }
-  function updateOneMutably(update, state) {
-    return updateManyMutably([update], state);
-  }
-  function updateManyMutably(updates, state) {
-    let appliedUpdates = false;
-    for (let update of updates) {
-      const entity = state.entities[update.id];
-      if (!entity) {
-        continue;
-      }
-      appliedUpdates = true;
-      Object.assign(entity, update.changes);
-      const newId = selectId(entity);
-      if (update.id !== newId) {
-        delete state.entities[update.id];
-        state.entities[newId] = entity;
-      }
-    }
-    if (appliedUpdates) {
-      resortEntities(state);
-    }
-  }
-  function upsertOneMutably(entity, state) {
-    return upsertManyMutably([entity], state);
-  }
-  function upsertManyMutably(newEntities, state) {
-    const [added, updated] = splitAddedUpdatedEntities(newEntities, selectId, state);
-    updateManyMutably(updated, state);
-    addManyMutably(added, state);
-  }
-  function areArraysEqual(a, b) {
-    if (a.length !== b.length) {
-      return false;
-    }
-    for (let i = 0; i < a.length && i < b.length; i++) {
-      if (a[i] === b[i]) {
-        continue;
-      }
-      return false;
-    }
-    return true;
-  }
-  function merge(models, state) {
-    models.forEach((model) => {
-      state.entities[selectId(model)] = model;
-    });
-    resortEntities(state);
-  }
-  function resortEntities(state) {
-    const allEntities = Object.values(state.entities);
-    allEntities.sort(sort);
-    const newSortedIds = allEntities.map(selectId);
-    const {
-      ids
-    } = state;
-    if (!areArraysEqual(ids, newSortedIds)) {
-      state.ids = newSortedIds;
-    }
-  }
-  return {
-    removeOne,
-    removeMany,
-    removeAll,
-    addOne: createStateOperator(addOneMutably),
-    updateOne: createStateOperator(updateOneMutably),
-    upsertOne: createStateOperator(upsertOneMutably),
-    setOne: createStateOperator(setOneMutably),
-    setMany: createStateOperator(setManyMutably),
-    setAll: createStateOperator(setAllMutably),
-    addMany: createStateOperator(addManyMutably),
-    updateMany: createStateOperator(updateManyMutably),
-    upsertMany: createStateOperator(upsertManyMutably)
-  };
-}
-
-// src/entities/create_adapter.ts
-function createEntityAdapter(options = {}) {
-  const {
-    selectId,
-    sortComparer
-  } = {
-    sortComparer: false,
-    selectId: (instance) => instance.id,
-    ...options
-  };
-  const stateFactory = createInitialStateFactory();
-  const selectorsFactory = createSelectorsFactory();
-  const stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
-  return {
-    selectId,
-    sortComparer,
-    ...stateFactory,
-    ...selectorsFactory,
-    ...stateAdapter
-  };
-}
-
-// src/listenerMiddleware/index.ts
-var import_redux5 = require("redux");
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(false ? _formatProdErrorMessage(32) : `${expected} is not a function`);
-  }
-};
-var noop2 = () => {
-};
-var catchRejection = (promise, onError = noop2) => {
-  promise.catch(onError);
-  return promise;
-};
-var addAbortSignalListener = (abortSignal, callback) => {
-  abortSignal.addEventListener("abort", callback, {
-    once: true
-  });
-  return () => abortSignal.removeEventListener("abort", callback);
-};
-var abortControllerWithReason = (abortController, reason) => {
-  const signal = abortController.signal;
-  if (signal.aborted) {
-    return;
-  }
-  if (!("reason" in signal)) {
-    Object.defineProperty(signal, "reason", {
-      enumerable: true,
-      value: reason,
-      configurable: true,
-      writable: true
-    });
-  }
-  ;
-  abortController.abort(reason);
-};
-
-// src/listenerMiddleware/exceptions.ts
-var task = "task";
-var listener = "listener";
-var completed = "completed";
-var cancelled = "cancelled";
-var taskCancelled = `task-${cancelled}`;
-var taskCompleted = `task-${completed}`;
-var listenerCancelled = `${listener}-${cancelled}`;
-var listenerCompleted = `${listener}-${completed}`;
-var TaskAbortError = class {
-  constructor(code) {
-    this.code = code;
-    this.message = `${task} ${cancelled} (reason: ${code})`;
-  }
-  name = "TaskAbortError";
-  message;
-};
-
-// src/listenerMiddleware/task.ts
-var validateActive = (signal) => {
-  if (signal.aborted) {
-    const {
-      reason
-    } = signal;
-    throw new TaskAbortError(reason);
-  }
-};
-function raceWithSignal(signal, promise) {
-  let cleanup = noop2;
-  return new Promise((resolve, reject) => {
-    const notifyRejection = () => reject(new TaskAbortError(signal.reason));
-    if (signal.aborted) {
-      notifyRejection();
-      return;
-    }
-    cleanup = addAbortSignalListener(signal, notifyRejection);
-    promise.finally(() => cleanup()).then(resolve, reject);
-  }).finally(() => {
-    cleanup = noop2;
-  });
-}
-var runTask = async (task2, cleanUp) => {
-  try {
-    await Promise.resolve();
-    const value = await task2();
-    return {
-      status: "ok",
-      value
-    };
-  } catch (error) {
-    return {
-      status: error instanceof TaskAbortError ? "cancelled" : "rejected",
-      error
-    };
-  } finally {
-    cleanUp?.();
-  }
-};
-var createPause = (signal) => {
-  return (promise) => {
-    return catchRejection(raceWithSignal(signal, promise).then((output) => {
-      validateActive(signal);
-      return output;
-    }));
-  };
-};
-var createDelay = (signal) => {
-  const pause = createPause(signal);
-  return (timeoutMs) => {
-    return pause(new Promise((resolve) => setTimeout(resolve, timeoutMs)));
-  };
-};
-
-// src/listenerMiddleware/index.ts
-var {
-  assign
-} = Object;
-var INTERNAL_NIL_TOKEN = {};
-var alm = "listenerMiddleware";
-var createFork = (parentAbortSignal, parentBlockingPromises) => {
-  const linkControllers = (controller) => addAbortSignalListener(parentAbortSignal, () => abortControllerWithReason(controller, parentAbortSignal.reason));
-  return (taskExecutor, opts) => {
-    assertFunction(taskExecutor, "taskExecutor");
-    const childAbortController = new AbortController();
-    linkControllers(childAbortController);
-    const result = runTask(async () => {
-      validateActive(parentAbortSignal);
-      validateActive(childAbortController.signal);
-      const result2 = await taskExecutor({
-        pause: createPause(childAbortController.signal),
-        delay: createDelay(childAbortController.signal),
-        signal: childAbortController.signal
-      });
-      validateActive(childAbortController.signal);
-      return result2;
-    }, () => abortControllerWithReason(childAbortController, taskCompleted));
-    if (opts?.autoJoin) {
-      parentBlockingPromises.push(result);
-    }
-    return {
-      result: createPause(parentAbortSignal)(result),
-      cancel() {
-        abortControllerWithReason(childAbortController, taskCancelled);
-      }
-    };
-  };
-};
-var createTakePattern = (startListening, signal) => {
-  const take = async (predicate, timeout) => {
-    validateActive(signal);
-    let unsubscribe = () => {
-    };
-    const tuplePromise = new Promise((resolve, reject) => {
-      let stopListening = startListening({
-        predicate,
-        effect: (action, listenerApi) => {
-          listenerApi.unsubscribe();
-          resolve([action, listenerApi.getState(), listenerApi.getOriginalState()]);
-        }
-      });
-      unsubscribe = () => {
-        stopListening();
-        reject();
-      };
-    });
-    const promises = [tuplePromise];
-    if (timeout != null) {
-      promises.push(new Promise((resolve) => setTimeout(resolve, timeout, null)));
-    }
-    try {
-      const output = await raceWithSignal(signal, Promise.race(promises));
-      validateActive(signal);
-      return output;
-    } finally {
-      unsubscribe();
-    }
-  };
-  return (predicate, timeout) => catchRejection(take(predicate, timeout));
-};
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) {
-  } else {
-    throw new Error(false ? _formatProdErrorMessage(21) : "Creating or removing a listener requires one of the known fields for matching an action");
-  }
-  assertFunction(effect, "options.listener");
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = (options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(false ? _formatProdErrorMessage2(22) : "Unsubscribe not initialized");
-    }
-  };
-  return entry;
-};
-var cancelActiveListeners = (entry) => {
-  entry.pending.forEach((controller) => {
-    abortControllerWithReason(controller, listenerCancelled);
-  });
-};
-var createClearListenerMiddleware = (listenerMap) => {
-  return () => {
-    listenerMap.forEach(cancelActiveListeners);
-    listenerMap.clear();
-  };
-};
-var safelyNotifyError = (errorHandler, errorToNotify, errorInfo) => {
-  try {
-    errorHandler(errorToNotify, errorInfo);
-  } catch (errorHandlerError) {
-    setTimeout(() => {
-      throw errorHandlerError;
-    }, 0);
-  }
-};
-var addListener = createAction(`${alm}/add`);
-var clearAllListeners = createAction(`${alm}/removeAll`);
-var removeListener = createAction(`${alm}/remove`);
-var defaultErrorHandler = (...args) => {
-  console.error(`${alm}/error`, ...args);
-};
-function createListenerMiddleware(middlewareOptions = {}) {
-  const listenerMap = /* @__PURE__ */ new Map();
-  const {
-    extra,
-    onError = defaultErrorHandler
-  } = middlewareOptions;
-  assertFunction(onError, "onError");
-  const insertEntry = (entry) => {
-    entry.unsubscribe = () => listenerMap.delete(entry.id);
-    listenerMap.set(entry.id, entry);
-    return (cancelOptions) => {
-      entry.unsubscribe();
-      if (cancelOptions?.cancelActive) {
-        cancelActiveListeners(entry);
-      }
-    };
-  };
-  const startListening = (options) => {
-    let entry = find(Array.from(listenerMap.values()), (existingEntry) => existingEntry.effect === options.effect);
-    if (!entry) {
-      entry = createListenerEntry(options);
-    }
-    return insertEntry(entry);
-  };
-  const stopListening = (options) => {
-    const {
-      type,
-      effect,
-      predicate
-    } = getListenerEntryPropsFrom(options);
-    const entry = find(Array.from(listenerMap.values()), (entry2) => {
-      const matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
-      return matchPredicateOrType && entry2.effect === effect;
-    });
-    if (entry) {
-      entry.unsubscribe();
-      if (options.cancelActive) {
-        cancelActiveListeners(entry);
-      }
-    }
-    return !!entry;
-  };
-  const notifyListener = async (entry, action, api, getOriginalState) => {
-    const internalTaskController = new AbortController();
-    const take = createTakePattern(startListening, internalTaskController.signal);
-    const autoJoinPromises = [];
-    try {
-      entry.pending.add(internalTaskController);
-      await Promise.resolve(entry.effect(
-        action,
-        // Use assign() rather than ... to avoid extra helper functions added to bundle
-        assign({}, api, {
-          getOriginalState,
-          condition: (predicate, timeout) => take(predicate, timeout).then(Boolean),
-          take,
-          delay: createDelay(internalTaskController.signal),
-          pause: createPause(internalTaskController.signal),
-          extra,
-          signal: internalTaskController.signal,
-          fork: createFork(internalTaskController.signal, autoJoinPromises),
-          unsubscribe: entry.unsubscribe,
-          subscribe: () => {
-            listenerMap.set(entry.id, entry);
-          },
-          cancelActiveListeners: () => {
-            entry.pending.forEach((controller, _, set) => {
-              if (controller !== internalTaskController) {
-                abortControllerWithReason(controller, listenerCancelled);
-                set.delete(controller);
-              }
-            });
-          },
-          cancel: () => {
-            abortControllerWithReason(internalTaskController, listenerCancelled);
-            entry.pending.delete(internalTaskController);
-          },
-          throwIfCancelled: () => {
-            validateActive(internalTaskController.signal);
-          }
-        })
-      ));
-    } catch (listenerError) {
-      if (!(listenerError instanceof TaskAbortError)) {
-        safelyNotifyError(onError, listenerError, {
-          raisedBy: "effect"
-        });
-      }
-    } finally {
-      await Promise.allSettled(autoJoinPromises);
-      abortControllerWithReason(internalTaskController, listenerCompleted);
-      entry.pending.delete(internalTaskController);
-    }
-  };
-  const clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
-  const middleware = (api) => (next) => (action) => {
-    if (!(0, import_redux5.isAction)(action)) {
-      return next(action);
-    }
-    if (addListener.match(action)) {
-      return startListening(action.payload);
-    }
-    if (clearAllListeners.match(action)) {
-      clearListenerMiddleware();
-      return;
-    }
-    if (removeListener.match(action)) {
-      return stopListening(action.payload);
-    }
-    let originalState = api.getState();
-    const getOriginalState = () => {
-      if (originalState === INTERNAL_NIL_TOKEN) {
-        throw new Error(false ? _formatProdErrorMessage3(23) : `${alm}: getOriginalState can only be called synchronously`);
-      }
-      return originalState;
-    };
-    let result;
-    try {
-      result = next(action);
-      if (listenerMap.size > 0) {
-        let currentState = api.getState();
-        const listenerEntries = Array.from(listenerMap.values());
-        for (let entry of listenerEntries) {
-          let runListener = false;
-          try {
-            runListener = entry.predicate(action, currentState, originalState);
-          } catch (predicateError) {
-            runListener = false;
-            safelyNotifyError(onError, predicateError, {
-              raisedBy: "predicate"
-            });
-          }
-          if (!runListener) {
-            continue;
-          }
-          notifyListener(entry, action, api, getOriginalState);
-        }
-      }
-    } finally {
-      originalState = INTERNAL_NIL_TOKEN;
-    }
-    return result;
-  };
-  return {
-    middleware,
-    startListening,
-    stopListening,
-    clearListeners: clearListenerMiddleware
-  };
-}
-
-// src/dynamicMiddleware/index.ts
-var import_redux6 = require("redux");
-var createMiddlewareEntry = (middleware) => ({
-  id: nanoid(),
-  middleware,
-  applied: /* @__PURE__ */ new Map()
-});
-var matchInstance = (instanceId) => (action) => action?.meta?.instanceId === instanceId;
-var createDynamicMiddleware = () => {
-  const instanceId = nanoid();
-  const middlewareMap = /* @__PURE__ */ new Map();
-  const withMiddleware = Object.assign(createAction("dynamicMiddleware/add", (...middlewares) => ({
-    payload: middlewares,
-    meta: {
-      instanceId
-    }
-  })), {
-    withTypes: () => withMiddleware
-  });
-  const addMiddleware = Object.assign(function addMiddleware2(...middlewares) {
-    middlewares.forEach((middleware2) => {
-      let entry = find(Array.from(middlewareMap.values()), (entry2) => entry2.middleware === middleware2);
-      if (!entry) {
-        entry = createMiddlewareEntry(middleware2);
-      }
-      middlewareMap.set(entry.id, entry);
-    });
-  }, {
-    withTypes: () => addMiddleware
-  });
-  const getFinalMiddleware = (api) => {
-    const appliedMiddleware = Array.from(middlewareMap.values()).map((entry) => emplace(entry.applied, api, {
-      insert: () => entry.middleware(api)
-    }));
-    return (0, import_redux6.compose)(...appliedMiddleware);
-  };
-  const isWithMiddleware = isAllOf(withMiddleware, matchInstance(instanceId));
-  const middleware = (api) => (next) => (action) => {
-    if (isWithMiddleware(action)) {
-      addMiddleware(...action.payload);
-      return api.dispatch;
-    }
-    return getFinalMiddleware(api)(next)(action);
-  };
-  return {
-    middleware,
-    addMiddleware,
-    withMiddleware,
-    instanceId
-  };
-};
-
-// src/combineSlices.ts
-var import_redux7 = require("redux");
-var isSliceLike = (maybeSliceLike) => "reducerPath" in maybeSliceLike && typeof maybeSliceLike.reducerPath === "string";
-var getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));
-var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
-var isStateProxy = (value) => !!value && !!value[ORIGINAL_STATE];
-var stateProxyMap = /* @__PURE__ */ new WeakMap();
-var createStateProxy = (state, reducerMap) => emplace(stateProxyMap, state, {
-  insert: () => new Proxy(state, {
-    get: (target, prop, receiver) => {
-      if (prop === ORIGINAL_STATE)
-        return target;
-      const result = Reflect.get(target, prop, receiver);
-      if (typeof result === "undefined") {
-        const reducer = reducerMap[prop.toString()];
-        if (reducer) {
-          const reducerResult = reducer(void 0, {
-            type: nanoid()
-          });
-          if (typeof reducerResult === "undefined") {
-            throw new Error(false ? _formatProdErrorMessage(24) : `The slice reducer for key "${prop.toString()}" returned undefined when called for selector(). If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
-          }
-          return reducerResult;
-        }
-      }
-      return result;
-    }
-  })
-});
-var original = (state) => {
-  if (!isStateProxy(state)) {
-    throw new Error(false ? _formatProdErrorMessage2(25) : "original must be used on state Proxy");
-  }
-  return state[ORIGINAL_STATE];
-};
-function combineSlices(...slices) {
-  const reducerMap = Object.fromEntries(getReducers(slices));
-  const getReducer = () => (0, import_redux7.combineReducers)(reducerMap);
-  let reducer = getReducer();
-  function combinedReducer(state, action) {
-    return reducer(state, action);
-  }
-  combinedReducer.withLazyLoadedSlices = () => combinedReducer;
-  const inject = (slice, config = {}) => {
-    const {
-      reducerPath,
-      reducer: reducerToInject
-    } = slice;
-    const currentReducer = reducerMap[reducerPath];
-    if (!config.overrideExisting && currentReducer && currentReducer !== reducerToInject) {
-      if (typeof process !== "undefined" && true) {
-        console.error(`called \`inject\` to override already-existing reducer ${reducerPath} without specifying \`overrideExisting: true\``);
-      }
-      return combinedReducer;
-    }
-    reducerMap[reducerPath] = reducerToInject;
-    reducer = getReducer();
-    return combinedReducer;
-  };
-  const selector = Object.assign(function makeSelector(selectorFn, selectState) {
-    return function selector2(state, ...args) {
-      return selectorFn(createStateProxy(selectState ? selectState(state, ...args) : state, reducerMap), ...args);
-    };
-  }, {
-    original
-  });
-  return Object.assign(combinedReducer, {
-    inject,
-    selector
-  });
-}
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  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. `;
-}
-//# sourceMappingURL=redux-toolkit.development.cjs.map

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.development.cjs.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.production.min.cjs


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/cjs/redux-toolkit.production.min.cjs.map


+ 0 - 231
react/study8/proect/node_modules/@reduxjs/toolkit/dist/combineSlices.d.ts

@@ -1,231 +0,0 @@
-import type { UnknownAction, Reducer, StateFromReducersMapObject } from 'redux';
-import type { Id, NonUndefined, Tail, UnionToIntersection, WithOptionalProp } from './tsHelpers';
-type SliceLike<ReducerPath extends string, State> = {
-    reducerPath: ReducerPath;
-    reducer: Reducer<State>;
-};
-type AnySliceLike = SliceLike<string, any>;
-type SliceLikeReducerPath<A extends AnySliceLike> = A extends SliceLike<infer ReducerPath, any> ? ReducerPath : never;
-type SliceLikeState<A extends AnySliceLike> = A extends SliceLike<any, infer State> ? State : never;
-export type WithSlice<A extends AnySliceLike> = {
-    [Path in SliceLikeReducerPath<A>]: SliceLikeState<A>;
-};
-type ReducerMap = Record<string, Reducer>;
-type ExistingSliceLike<DeclaredState> = {
-    [ReducerPath in keyof DeclaredState]: SliceLike<ReducerPath & string, NonUndefined<DeclaredState[ReducerPath]>>;
-}[keyof DeclaredState];
-export type InjectConfig = {
-    /**
-     * Allow replacing reducer with a different reference. Normally, an error will be thrown if a different reducer instance to the one already injected is used.
-     */
-    overrideExisting?: boolean;
-};
-/**
- * A reducer that allows for slices/reducers to be injected after initialisation.
- */
-export interface CombinedSliceReducer<InitialState, DeclaredState = InitialState> extends Reducer<DeclaredState, UnknownAction, Partial<DeclaredState>> {
-    /**
-     * Provide a type for slices that will be injected lazily.
-     *
-     * One way to do this would be with interface merging:
-     * ```ts
-     *
-     * export interface LazyLoadedSlices {}
-     *
-     * export const rootReducer = combineSlices(stringSlice).withLazyLoadedSlices<LazyLoadedSlices>();
-     *
-     * // elsewhere
-     *
-     * declare module './reducer' {
-     *   export interface LazyLoadedSlices extends WithSlice<typeof booleanSlice> {}
-     * }
-     *
-     * const withBoolean = rootReducer.inject(booleanSlice);
-     *
-     * // elsewhere again
-     *
-     * declare module './reducer' {
-     *   export interface LazyLoadedSlices {
-     *     customName: CustomState
-     *   }
-     * }
-     *
-     * const withCustom = rootReducer.inject({ reducerPath: "customName", reducer: customSlice.reducer })
-     * ```
-     */
-    withLazyLoadedSlices<Lazy = {}>(): CombinedSliceReducer<InitialState, Id<DeclaredState & Partial<Lazy>>>;
-    /**
-     * Inject a slice.
-     *
-     * Accepts an individual slice, RTKQ API instance, or a "slice-like" { reducerPath, reducer } object.
-     *
-     * ```ts
-     * rootReducer.inject(booleanSlice)
-     * rootReducer.inject(baseApi)
-     * rootReducer.inject({ reducerPath: 'boolean' as const, reducer: newReducer }, { overrideExisting: true })
-     * ```
-     *
-     */
-    inject<Sl extends Id<ExistingSliceLike<DeclaredState>>>(slice: Sl, config?: InjectConfig): CombinedSliceReducer<InitialState, Id<DeclaredState & WithSlice<Sl>>>;
-    /**
-     * Inject a slice.
-     *
-     * Accepts an individual slice, RTKQ API instance, or a "slice-like" { reducerPath, reducer } object.
-     *
-     * ```ts
-     * rootReducer.inject(booleanSlice)
-     * rootReducer.inject(baseApi)
-     * rootReducer.inject({ reducerPath: 'boolean' as const, reducer: newReducer }, { overrideExisting: true })
-     * ```
-     *
-     */
-    inject<ReducerPath extends string, State>(slice: SliceLike<ReducerPath, State & (ReducerPath extends keyof DeclaredState ? never : State)>, config?: InjectConfig): CombinedSliceReducer<InitialState, Id<DeclaredState & WithSlice<SliceLike<ReducerPath, String>>>>;
-    /**
-     * Create a selector that guarantees that the slices injected will have a defined value when selector is run.
-     *
-     * ```ts
-     * const selectBooleanWithoutInjection = (state: RootState) => state.boolean;
-     * //                                                                ^? boolean | undefined
-     *
-     * const selectBoolean = rootReducer.inject(booleanSlice).selector((state) => {
-     *   // if action hasn't been dispatched since slice was injected, this would usually be undefined
-     *   // however selector() uses a Proxy around the first parameter to ensure that it evaluates to the initial state instead, if undefined
-     *   return state.boolean;
-     *   //           ^? boolean
-     * })
-     * ```
-     *
-     * If the reducer is nested inside the root state, a selectState callback can be passed to retrieve the reducer's state.
-     *
-     * ```ts
-     *
-     * export interface LazyLoadedSlices {};
-     *
-     * export const innerReducer = combineSlices(stringSlice).withLazyLoadedSlices<LazyLoadedSlices>();
-     *
-     * export const rootReducer = combineSlices({ inner: innerReducer });
-     *
-     * export type RootState = ReturnType<typeof rootReducer>;
-     *
-     * // elsewhere
-     *
-     * declare module "./reducer.ts" {
-     *  export interface LazyLoadedSlices extends WithSlice<typeof booleanSlice> {}
-     * }
-     *
-     * const withBool = innerReducer.inject(booleanSlice);
-     *
-     * const selectBoolean = withBool.selector(
-     *   (state) => state.boolean,
-     *   (rootState: RootState) => state.inner
-     * );
-     * //    now expects to be passed RootState instead of innerReducer state
-     *
-     * ```
-     *
-     * Value passed to selectorFn will be a Proxy - use selector.original(proxy) to get original state value (useful for debugging)
-     *
-     * ```ts
-     * const injectedReducer = rootReducer.inject(booleanSlice);
-     * const selectBoolean = injectedReducer.selector((state) => {
-     *   console.log(injectedReducer.selector.original(state).boolean) // possibly undefined
-     *   return state.boolean
-     * })
-     * ```
-     */
-    selector: {
-        /**
-         * Create a selector that guarantees that the slices injected will have a defined value when selector is run.
-         *
-         * ```ts
-         * const selectBooleanWithoutInjection = (state: RootState) => state.boolean;
-         * //                                                                ^? boolean | undefined
-         *
-         * const selectBoolean = rootReducer.inject(booleanSlice).selector((state) => {
-         *   // if action hasn't been dispatched since slice was injected, this would usually be undefined
-         *   // however selector() uses a Proxy around the first parameter to ensure that it evaluates to the initial state instead, if undefined
-         *   return state.boolean;
-         *   //           ^? boolean
-         * })
-         * ```
-         *
-         * Value passed to selectorFn will be a Proxy - use selector.original(proxy) to get original state value (useful for debugging)
-         *
-         * ```ts
-         * const injectedReducer = rootReducer.inject(booleanSlice);
-         * const selectBoolean = injectedReducer.selector((state) => {
-         *   console.log(injectedReducer.selector.original(state).boolean) // undefined
-         *   return state.boolean
-         * })
-         * ```
-         */
-        <Selector extends (state: DeclaredState, ...args: any[]) => unknown>(selectorFn: Selector): (state: WithOptionalProp<Parameters<Selector>[0], Exclude<keyof DeclaredState, keyof InitialState>>, ...args: Tail<Parameters<Selector>>) => ReturnType<Selector>;
-        /**
-         * Create a selector that guarantees that the slices injected will have a defined value when selector is run.
-         *
-         * ```ts
-         * const selectBooleanWithoutInjection = (state: RootState) => state.boolean;
-         * //                                                                ^? boolean | undefined
-         *
-         * const selectBoolean = rootReducer.inject(booleanSlice).selector((state) => {
-         *   // if action hasn't been dispatched since slice was injected, this would usually be undefined
-         *   // however selector() uses a Proxy around the first parameter to ensure that it evaluates to the initial state instead, if undefined
-         *   return state.boolean;
-         *   //           ^? boolean
-         * })
-         * ```
-         *
-         * If the reducer is nested inside the root state, a selectState callback can be passed to retrieve the reducer's state.
-         *
-         * ```ts
-         *
-         * interface LazyLoadedSlices {};
-         *
-         * const innerReducer = combineSlices(stringSlice).withLazyLoadedSlices<LazyLoadedSlices>();
-         *
-         * const rootReducer = combineSlices({ inner: innerReducer });
-         *
-         * type RootState = ReturnType<typeof rootReducer>;
-         *
-         * // elsewhere
-         *
-         * declare module "./reducer.ts" {
-         *  interface LazyLoadedSlices extends WithSlice<typeof booleanSlice> {}
-         * }
-         *
-         * const withBool = innerReducer.inject(booleanSlice);
-         *
-         * const selectBoolean = withBool.selector(
-         *   (state) => state.boolean,
-         *   (rootState: RootState) => state.inner
-         * );
-         * //    now expects to be passed RootState instead of innerReducer state
-         *
-         * ```
-         *
-         * Value passed to selectorFn will be a Proxy - use selector.original(proxy) to get original state value (useful for debugging)
-         *
-         * ```ts
-         * const injectedReducer = rootReducer.inject(booleanSlice);
-         * const selectBoolean = injectedReducer.selector((state) => {
-         *   console.log(injectedReducer.selector.original(state).boolean) // possibly undefined
-         *   return state.boolean
-         * })
-         * ```
-         */
-        <Selector extends (state: DeclaredState, ...args: any[]) => unknown, RootState>(selectorFn: Selector, selectState: (rootState: RootState, ...args: Tail<Parameters<Selector>>) => WithOptionalProp<Parameters<Selector>[0], Exclude<keyof DeclaredState, keyof InitialState>>): (state: RootState, ...args: Tail<Parameters<Selector>>) => ReturnType<Selector>;
-        /**
-         * Returns the unproxied state. Useful for debugging.
-         * @param state state Proxy, that ensures injected reducers have value
-         * @returns original, unproxied state
-         * @throws if value passed is not a state Proxy
-         */
-        original: (state: DeclaredState) => InitialState & Partial<DeclaredState>;
-    };
-}
-type InitialState<Slices extends Array<AnySliceLike | ReducerMap>> = UnionToIntersection<Slices[number] extends infer Slice ? Slice extends AnySliceLike ? WithSlice<Slice> : StateFromReducersMapObject<Slice> : never>;
-export declare function combineSlices<Slices extends [
-    AnySliceLike | ReducerMap,
-    ...Array<AnySliceLike | ReducerMap>
-]>(...slices: Slices): CombinedSliceReducer<Id<InitialState<Slices>>>;
-export {};

+ 0 - 74
react/study8/proect/node_modules/@reduxjs/toolkit/dist/configureStore.d.ts

@@ -1,74 +0,0 @@
-import type { Reducer, ReducersMapObject, Middleware, Action, StoreEnhancer, Store, UnknownAction } from 'redux';
-import type { DevToolsEnhancerOptions as DevToolsOptions } from './devtoolsExtension';
-import type { ThunkMiddlewareFor, GetDefaultMiddleware } from './getDefaultMiddleware';
-import type { ExtractDispatchExtensions, ExtractStoreExtensions, ExtractStateExtensions } from './tsHelpers';
-import type { Tuple } from './utils';
-import type { GetDefaultEnhancers } from './getDefaultEnhancers';
-/**
- * Options for `configureStore()`.
- *
- * @public
- */
-export interface ConfigureStoreOptions<S = any, A extends Action = UnknownAction, M extends Tuple<Middlewares<S>> = Tuple<Middlewares<S>>, E extends Tuple<Enhancers> = Tuple<Enhancers>, P = S> {
-    /**
-     * A single reducer function that will be used as the root reducer, or an
-     * object of slice reducers that will be passed to `combineReducers()`.
-     */
-    reducer: Reducer<S, A, P> | ReducersMapObject<S, A, P>;
-    /**
-     * An array of Redux middleware to install, or a callback receiving `getDefaultMiddleware` and returning a Tuple of middleware.
-     * If not supplied, defaults to the set of middleware returned by `getDefaultMiddleware()`.
-     *
-     * @example `middleware: (gDM) => gDM().concat(logger, apiMiddleware, yourCustomMiddleware)`
-     * @see https://redux-toolkit.js.org/api/getDefaultMiddleware#intended-usage
-     */
-    middleware?: (getDefaultMiddleware: GetDefaultMiddleware<S>) => M;
-    /**
-     * Whether to enable Redux DevTools integration. Defaults to `true`.
-     *
-     * Additional configuration can be done by passing Redux DevTools options
-     */
-    devTools?: boolean | DevToolsOptions;
-    /**
-     * The initial state, same as Redux's createStore.
-     * You may optionally specify it to hydrate the state
-     * from the server in universal apps, or to restore a previously serialized
-     * user session. If you use `combineReducers()` to produce the root reducer
-     * function (either directly or indirectly by passing an object as `reducer`),
-     * this must be an object with the same shape as the reducer map keys.
-     */
-    preloadedState?: P;
-    /**
-     * The store enhancers to apply. See Redux's `createStore()`.
-     * All enhancers will be included before the DevTools Extension enhancer.
-     * If you need to customize the order of enhancers, supply a callback
-     * function that will receive a `getDefaultEnhancers` function that returns a Tuple,
-     * and should return a Tuple of enhancers (such as `getDefaultEnhancers().concat(offline)`).
-     * If you only need to add middleware, you can use the `middleware` parameter instead.
-     */
-    enhancers?: (getDefaultEnhancers: GetDefaultEnhancers<M>) => E;
-}
-export type Middlewares<S> = ReadonlyArray<Middleware<{}, S>>;
-type Enhancers = ReadonlyArray<StoreEnhancer>;
-/**
- * A Redux store returned by `configureStore()`. Supports dispatching
- * side-effectful _thunks_ in addition to plain actions.
- *
- * @public
- */
-export type EnhancedStore<S = any, A extends Action = UnknownAction, E extends Enhancers = Enhancers> = ExtractStoreExtensions<E> & Store<S & ExtractStateExtensions<E>, A>;
-/**
- * A friendly abstraction over the standard Redux `createStore()` function.
- *
- * @param options The store configuration.
- * @returns A configured Redux store.
- *
- * @public
- */
-export declare function configureStore<S = any, A extends Action = UnknownAction, M extends Tuple<Middlewares<S>> = Tuple<[ThunkMiddlewareFor<S>]>, E extends Tuple<Enhancers> = Tuple<[
-    StoreEnhancer<{
-        dispatch: ExtractDispatchExtensions<M>;
-    }>,
-    StoreEnhancer
-]>, P = S>(options: ConfigureStoreOptions<S, A, M, E, P>): EnhancedStore<S, A, E>;
-export {};

+ 0 - 189
react/study8/proect/node_modules/@reduxjs/toolkit/dist/createAction.d.ts

@@ -1,189 +0,0 @@
-import type { IsUnknownOrNonInferrable, IfMaybeUndefined, IfVoid, IsAny } from './tsHelpers';
-/**
- * An action with a string type and an associated payload. This is the
- * type of action returned by `createAction()` action creators.
- *
- * @template P The type of the action's payload.
- * @template T the type used for the action type.
- * @template M The type of the action's meta (optional)
- * @template E The type of the action's error (optional)
- *
- * @public
- */
-export type PayloadAction<P = void, T extends string = string, M = never, E = never> = {
-    payload: P;
-    type: T;
-} & ([M] extends [never] ? {} : {
-    meta: M;
-}) & ([E] extends [never] ? {} : {
-    error: E;
-});
-/**
- * A "prepare" method to be used as the second parameter of `createAction`.
- * Takes any number of arguments and returns a Flux Standard Action without
- * type (will be added later) that *must* contain a payload (might be undefined).
- *
- * @public
- */
-export type PrepareAction<P> = ((...args: any[]) => {
-    payload: P;
-}) | ((...args: any[]) => {
-    payload: P;
-    meta: any;
-}) | ((...args: any[]) => {
-    payload: P;
-    error: any;
-}) | ((...args: any[]) => {
-    payload: P;
-    meta: any;
-    error: any;
-});
-/**
- * Internal version of `ActionCreatorWithPreparedPayload`. Not to be used externally.
- *
- * @internal
- */
-export type _ActionCreatorWithPreparedPayload<PA extends PrepareAction<any> | void, T extends string = string> = PA extends PrepareAction<infer P> ? ActionCreatorWithPreparedPayload<Parameters<PA>, P, T, ReturnType<PA> extends {
-    error: infer E;
-} ? E : never, ReturnType<PA> extends {
-    meta: infer M;
-} ? M : never> : void;
-/**
- * Basic type for all action creators.
- *
- * @inheritdoc {redux#ActionCreator}
- */
-export interface BaseActionCreator<P, T extends string, M = never, E = never> {
-    type: T;
-    match: (action: unknown) => action is PayloadAction<P, T, M, E>;
-}
-/**
- * An action creator that takes multiple arguments that are passed
- * to a `PrepareAction` method to create the final Action.
- * @typeParam Args arguments for the action creator function
- * @typeParam P `payload` type
- * @typeParam T `type` name
- * @typeParam E optional `error` type
- * @typeParam M optional `meta` type
- *
- * @inheritdoc {redux#ActionCreator}
- *
- * @public
- */
-export interface ActionCreatorWithPreparedPayload<Args extends unknown[], P, T extends string = string, E = never, M = never> extends BaseActionCreator<P, T, M, E> {
-    /**
-     * Calling this {@link redux#ActionCreator} with `Args` will return
-     * an Action with a payload of type `P` and (depending on the `PrepareAction`
-     * method used) a `meta`- and `error` property of types `M` and `E` respectively.
-     */
-    (...args: Args): PayloadAction<P, T, M, E>;
-}
-/**
- * An action creator of type `T` that takes an optional payload of type `P`.
- *
- * @inheritdoc {redux#ActionCreator}
- *
- * @public
- */
-export interface ActionCreatorWithOptionalPayload<P, T extends string = string> extends BaseActionCreator<P, T> {
-    /**
-     * Calling this {@link redux#ActionCreator} with an argument will
-     * return a {@link PayloadAction} of type `T` with a payload of `P`.
-     * Calling it without an argument will return a PayloadAction with a payload of `undefined`.
-     */
-    (payload?: P): PayloadAction<P, T>;
-}
-/**
- * An action creator of type `T` that takes no payload.
- *
- * @inheritdoc {redux#ActionCreator}
- *
- * @public
- */
-export interface ActionCreatorWithoutPayload<T extends string = string> extends BaseActionCreator<undefined, T> {
-    /**
-     * Calling this {@link redux#ActionCreator} will
-     * return a {@link PayloadAction} of type `T` with a payload of `undefined`
-     */
-    (noArgument: void): PayloadAction<undefined, T>;
-}
-/**
- * An action creator of type `T` that requires a payload of type P.
- *
- * @inheritdoc {redux#ActionCreator}
- *
- * @public
- */
-export interface ActionCreatorWithPayload<P, T extends string = string> extends BaseActionCreator<P, T> {
-    /**
-     * Calling this {@link redux#ActionCreator} with an argument will
-     * return a {@link PayloadAction} of type `T` with a payload of `P`
-     */
-    (payload: P): PayloadAction<P, T>;
-}
-/**
- * An action creator of type `T` whose `payload` type could not be inferred. Accepts everything as `payload`.
- *
- * @inheritdoc {redux#ActionCreator}
- *
- * @public
- */
-export interface ActionCreatorWithNonInferrablePayload<T extends string = string> extends BaseActionCreator<unknown, T> {
-    /**
-     * Calling this {@link redux#ActionCreator} with an argument will
-     * return a {@link PayloadAction} of type `T` with a payload
-     * of exactly the type of the argument.
-     */
-    <PT extends unknown>(payload: PT): PayloadAction<PT, T>;
-}
-/**
- * An action creator that produces actions with a `payload` attribute.
- *
- * @typeParam P the `payload` type
- * @typeParam T the `type` of the resulting action
- * @typeParam PA if the resulting action is preprocessed by a `prepare` method, the signature of said method.
- *
- * @public
- */
-export type PayloadActionCreator<P = void, T extends string = string, PA extends PrepareAction<P> | void = void> = IfPrepareActionMethodProvided<PA, _ActionCreatorWithPreparedPayload<PA, T>, IsAny<P, ActionCreatorWithPayload<any, T>, IsUnknownOrNonInferrable<P, ActionCreatorWithNonInferrablePayload<T>, IfVoid<P, ActionCreatorWithoutPayload<T>, IfMaybeUndefined<P, ActionCreatorWithOptionalPayload<P, T>, ActionCreatorWithPayload<P, T>>>>>>;
-/**
- * A utility function to create an action creator for the given action type
- * string. The action creator accepts a single argument, which will be included
- * in the action object as a field called payload. The action creator function
- * will also have its toString() overridden so that it returns the action type.
- *
- * @param type The action type to use for created actions.
- * @param prepare (optional) a method that takes any number of arguments and returns { payload } or { payload, meta }.
- *                If this is given, the resulting action creator will pass its arguments to this method to calculate payload & meta.
- *
- * @public
- */
-export declare function createAction<P = void, T extends string = string>(type: T): PayloadActionCreator<P, T>;
-/**
- * A utility function to create an action creator for the given action type
- * string. The action creator accepts a single argument, which will be included
- * in the action object as a field called payload. The action creator function
- * will also have its toString() overridden so that it returns the action type.
- *
- * @param type The action type to use for created actions.
- * @param prepare (optional) a method that takes any number of arguments and returns { payload } or { payload, meta }.
- *                If this is given, the resulting action creator will pass its arguments to this method to calculate payload & meta.
- *
- * @public
- */
-export declare function createAction<PA extends PrepareAction<any>, T extends string = string>(type: T, prepareAction: PA): PayloadActionCreator<ReturnType<PA>['payload'], T, PA>;
-/**
- * Returns true if value is an RTK-like action creator, with a static type property and match method.
- */
-export declare function isActionCreator(action: unknown): action is BaseActionCreator<unknown, string> & Function;
-/**
- * Returns true if value is an action with a string type and valid Flux Standard Action keys.
- */
-export declare function isFSA(action: unknown): action is {
-    type: string;
-    payload?: unknown;
-    error?: unknown;
-    meta?: unknown;
-};
-type IfPrepareActionMethodProvided<PA extends PrepareAction<any> | void, True, False> = PA extends (...args: any[]) => any ? True : False;
-export {};

+ 0 - 244
react/study8/proect/node_modules/@reduxjs/toolkit/dist/createAsyncThunk.d.ts

@@ -1,244 +0,0 @@
-import type { Dispatch, UnknownAction } from 'redux';
-import type { ActionCreatorWithPreparedPayload } from './createAction';
-import type { ThunkDispatch } from 'redux-thunk';
-import type { FallbackIfUnknown, Id, IsAny, IsUnknown } from './tsHelpers';
-export type BaseThunkAPI<S, E, D extends Dispatch = Dispatch, RejectedValue = unknown, RejectedMeta = unknown, FulfilledMeta = unknown> = {
-    dispatch: D;
-    getState: () => S;
-    extra: E;
-    requestId: string;
-    signal: AbortSignal;
-    abort: (reason?: string) => void;
-    rejectWithValue: IsUnknown<RejectedMeta, (value: RejectedValue) => RejectWithValue<RejectedValue, RejectedMeta>, (value: RejectedValue, meta: RejectedMeta) => RejectWithValue<RejectedValue, RejectedMeta>>;
-    fulfillWithValue: IsUnknown<FulfilledMeta, <FulfilledValue>(value: FulfilledValue) => FulfilledValue, <FulfilledValue>(value: FulfilledValue, meta: FulfilledMeta) => FulfillWithMeta<FulfilledValue, FulfilledMeta>>;
-};
-/**
- * @public
- */
-export interface SerializedError {
-    name?: string;
-    message?: string;
-    stack?: string;
-    code?: string;
-}
-declare class RejectWithValue<Payload, RejectedMeta> {
-    readonly payload: Payload;
-    readonly meta: RejectedMeta;
-    private readonly _type;
-    constructor(payload: Payload, meta: RejectedMeta);
-}
-declare class FulfillWithMeta<Payload, FulfilledMeta> {
-    readonly payload: Payload;
-    readonly meta: FulfilledMeta;
-    private readonly _type;
-    constructor(payload: Payload, meta: FulfilledMeta);
-}
-/**
- * Serializes an error into a plain object.
- * Reworked from https://github.com/sindresorhus/serialize-error
- *
- * @public
- */
-export declare const miniSerializeError: (value: any) => SerializedError;
-export type AsyncThunkConfig = {
-    state?: unknown;
-    dispatch?: Dispatch;
-    extra?: unknown;
-    rejectValue?: unknown;
-    serializedErrorType?: unknown;
-    pendingMeta?: unknown;
-    fulfilledMeta?: unknown;
-    rejectedMeta?: unknown;
-};
-type GetState<ThunkApiConfig> = ThunkApiConfig extends {
-    state: infer State;
-} ? State : unknown;
-type GetExtra<ThunkApiConfig> = ThunkApiConfig extends {
-    extra: infer Extra;
-} ? Extra : unknown;
-type GetDispatch<ThunkApiConfig> = ThunkApiConfig extends {
-    dispatch: infer Dispatch;
-} ? FallbackIfUnknown<Dispatch, ThunkDispatch<GetState<ThunkApiConfig>, GetExtra<ThunkApiConfig>, UnknownAction>> : ThunkDispatch<GetState<ThunkApiConfig>, GetExtra<ThunkApiConfig>, UnknownAction>;
-export type GetThunkAPI<ThunkApiConfig> = BaseThunkAPI<GetState<ThunkApiConfig>, GetExtra<ThunkApiConfig>, GetDispatch<ThunkApiConfig>, GetRejectValue<ThunkApiConfig>, GetRejectedMeta<ThunkApiConfig>, GetFulfilledMeta<ThunkApiConfig>>;
-type GetRejectValue<ThunkApiConfig> = ThunkApiConfig extends {
-    rejectValue: infer RejectValue;
-} ? RejectValue : unknown;
-type GetPendingMeta<ThunkApiConfig> = ThunkApiConfig extends {
-    pendingMeta: infer PendingMeta;
-} ? PendingMeta : unknown;
-type GetFulfilledMeta<ThunkApiConfig> = ThunkApiConfig extends {
-    fulfilledMeta: infer FulfilledMeta;
-} ? FulfilledMeta : unknown;
-type GetRejectedMeta<ThunkApiConfig> = ThunkApiConfig extends {
-    rejectedMeta: infer RejectedMeta;
-} ? RejectedMeta : unknown;
-type GetSerializedErrorType<ThunkApiConfig> = ThunkApiConfig extends {
-    serializedErrorType: infer GetSerializedErrorType;
-} ? GetSerializedErrorType : SerializedError;
-type MaybePromise<T> = T | Promise<T> | (T extends any ? Promise<T> : never);
-/**
- * A type describing the return value of the `payloadCreator` argument to `createAsyncThunk`.
- * Might be useful for wrapping `createAsyncThunk` in custom abstractions.
- *
- * @public
- */
-export type AsyncThunkPayloadCreatorReturnValue<Returned, ThunkApiConfig extends AsyncThunkConfig> = MaybePromise<IsUnknown<GetFulfilledMeta<ThunkApiConfig>, Returned, FulfillWithMeta<Returned, GetFulfilledMeta<ThunkApiConfig>>> | RejectWithValue<GetRejectValue<ThunkApiConfig>, GetRejectedMeta<ThunkApiConfig>>>;
-/**
- * A type describing the `payloadCreator` argument to `createAsyncThunk`.
- * Might be useful for wrapping `createAsyncThunk` in custom abstractions.
- *
- * @public
- */
-export type AsyncThunkPayloadCreator<Returned, ThunkArg = void, ThunkApiConfig extends AsyncThunkConfig = {}> = (arg: ThunkArg, thunkAPI: GetThunkAPI<ThunkApiConfig>) => AsyncThunkPayloadCreatorReturnValue<Returned, ThunkApiConfig>;
-/**
- * A ThunkAction created by `createAsyncThunk`.
- * Dispatching it returns a Promise for either a
- * fulfilled or rejected action.
- * Also, the returned value contains an `abort()` method
- * that allows the asyncAction to be cancelled from the outside.
- *
- * @public
- */
-export type AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig extends AsyncThunkConfig> = (dispatch: GetDispatch<ThunkApiConfig>, getState: () => GetState<ThunkApiConfig>, extra: GetExtra<ThunkApiConfig>) => Promise<ReturnType<AsyncThunkFulfilledActionCreator<Returned, ThunkArg>> | ReturnType<AsyncThunkRejectedActionCreator<ThunkArg, ThunkApiConfig>>> & {
-    abort: (reason?: string) => void;
-    requestId: string;
-    arg: ThunkArg;
-    unwrap: () => Promise<Returned>;
-};
-type AsyncThunkActionCreator<Returned, ThunkArg, ThunkApiConfig extends AsyncThunkConfig> = IsAny<ThunkArg, (arg: ThunkArg) => AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig>, unknown extends ThunkArg ? (arg: ThunkArg) => AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig> : [ThunkArg] extends [void] | [undefined] ? () => AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig> : [void] extends [ThunkArg] ? (arg?: ThunkArg) => AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig> : [undefined] extends [ThunkArg] ? WithStrictNullChecks<(arg?: ThunkArg) => AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig>, (arg: ThunkArg) => AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig>> : (arg: ThunkArg) => AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig>>;
-/**
- * Options object for `createAsyncThunk`.
- *
- * @public
- */
-export type AsyncThunkOptions<ThunkArg = void, ThunkApiConfig extends AsyncThunkConfig = {}> = {
-    /**
-     * A method to control whether the asyncThunk should be executed. Has access to the
-     * `arg`, `api.getState()` and `api.extra` arguments.
-     *
-     * @returns `false` if it should be skipped
-     */
-    condition?(arg: ThunkArg, api: Pick<GetThunkAPI<ThunkApiConfig>, 'getState' | 'extra'>): MaybePromise<boolean | undefined>;
-    /**
-     * If `condition` returns `false`, the asyncThunk will be skipped.
-     * This option allows you to control whether a `rejected` action with `meta.condition == false`
-     * will be dispatched or not.
-     *
-     * @default `false`
-     */
-    dispatchConditionRejection?: boolean;
-    serializeError?: (x: unknown) => GetSerializedErrorType<ThunkApiConfig>;
-    /**
-     * A function to use when generating the `requestId` for the request sequence.
-     *
-     * @default `nanoid`
-     */
-    idGenerator?: (arg: ThunkArg) => string;
-} & IsUnknown<GetPendingMeta<ThunkApiConfig>, {
-    /**
-     * A method to generate additional properties to be added to `meta` of the pending action.
-     *
-     * Using this optional overload will not modify the types correctly, this overload is only in place to support JavaScript users.
-     * Please use the `ThunkApiConfig` parameter `pendingMeta` to get access to a correctly typed overload
-     */
-    getPendingMeta?(base: {
-        arg: ThunkArg;
-        requestId: string;
-    }, api: Pick<GetThunkAPI<ThunkApiConfig>, 'getState' | 'extra'>): GetPendingMeta<ThunkApiConfig>;
-}, {
-    /**
-     * A method to generate additional properties to be added to `meta` of the pending action.
-     */
-    getPendingMeta(base: {
-        arg: ThunkArg;
-        requestId: string;
-    }, api: Pick<GetThunkAPI<ThunkApiConfig>, 'getState' | 'extra'>): GetPendingMeta<ThunkApiConfig>;
-}>;
-export type AsyncThunkPendingActionCreator<ThunkArg, ThunkApiConfig = {}> = ActionCreatorWithPreparedPayload<[
-    string,
-    ThunkArg,
-    GetPendingMeta<ThunkApiConfig>?
-], undefined, string, never, {
-    arg: ThunkArg;
-    requestId: string;
-    requestStatus: 'pending';
-} & GetPendingMeta<ThunkApiConfig>>;
-export type AsyncThunkRejectedActionCreator<ThunkArg, ThunkApiConfig = {}> = ActionCreatorWithPreparedPayload<[
-    Error | null,
-    string,
-    ThunkArg,
-    GetRejectValue<ThunkApiConfig>?,
-    GetRejectedMeta<ThunkApiConfig>?
-], GetRejectValue<ThunkApiConfig> | undefined, string, GetSerializedErrorType<ThunkApiConfig>, {
-    arg: ThunkArg;
-    requestId: string;
-    requestStatus: 'rejected';
-    aborted: boolean;
-    condition: boolean;
-} & (({
-    rejectedWithValue: false;
-} & {
-    [K in keyof GetRejectedMeta<ThunkApiConfig>]?: undefined;
-}) | ({
-    rejectedWithValue: true;
-} & GetRejectedMeta<ThunkApiConfig>))>;
-export type AsyncThunkFulfilledActionCreator<Returned, ThunkArg, ThunkApiConfig = {}> = ActionCreatorWithPreparedPayload<[
-    Returned,
-    string,
-    ThunkArg,
-    GetFulfilledMeta<ThunkApiConfig>?
-], Returned, string, never, {
-    arg: ThunkArg;
-    requestId: string;
-    requestStatus: 'fulfilled';
-} & GetFulfilledMeta<ThunkApiConfig>>;
-/**
- * A type describing the return value of `createAsyncThunk`.
- * Might be useful for wrapping `createAsyncThunk` in custom abstractions.
- *
- * @public
- */
-export type AsyncThunk<Returned, ThunkArg, ThunkApiConfig extends AsyncThunkConfig> = AsyncThunkActionCreator<Returned, ThunkArg, ThunkApiConfig> & {
-    pending: AsyncThunkPendingActionCreator<ThunkArg, ThunkApiConfig>;
-    rejected: AsyncThunkRejectedActionCreator<ThunkArg, ThunkApiConfig>;
-    fulfilled: AsyncThunkFulfilledActionCreator<Returned, ThunkArg, ThunkApiConfig>;
-    settled: (action: any) => action is ReturnType<AsyncThunkRejectedActionCreator<ThunkArg, ThunkApiConfig> | AsyncThunkFulfilledActionCreator<Returned, ThunkArg, ThunkApiConfig>>;
-    typePrefix: string;
-};
-export type OverrideThunkApiConfigs<OldConfig, NewConfig> = Id<NewConfig & Omit<OldConfig, keyof NewConfig>>;
-type CreateAsyncThunk<CurriedThunkApiConfig extends AsyncThunkConfig> = {
-    /**
-     *
-     * @param typePrefix
-     * @param payloadCreator
-     * @param options
-     *
-     * @public
-     */
-    <Returned, ThunkArg = void>(typePrefix: string, payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, CurriedThunkApiConfig>, options?: AsyncThunkOptions<ThunkArg, CurriedThunkApiConfig>): AsyncThunk<Returned, ThunkArg, CurriedThunkApiConfig>;
-    /**
-     *
-     * @param typePrefix
-     * @param payloadCreator
-     * @param options
-     *
-     * @public
-     */
-    <Returned, ThunkArg, ThunkApiConfig extends AsyncThunkConfig>(typePrefix: string, payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, OverrideThunkApiConfigs<CurriedThunkApiConfig, ThunkApiConfig>>, options?: AsyncThunkOptions<ThunkArg, OverrideThunkApiConfigs<CurriedThunkApiConfig, ThunkApiConfig>>): AsyncThunk<Returned, ThunkArg, OverrideThunkApiConfigs<CurriedThunkApiConfig, ThunkApiConfig>>;
-    withTypes<ThunkApiConfig extends AsyncThunkConfig>(): CreateAsyncThunk<OverrideThunkApiConfigs<CurriedThunkApiConfig, ThunkApiConfig>>;
-};
-export declare const createAsyncThunk: CreateAsyncThunk<AsyncThunkConfig>;
-interface UnwrappableAction {
-    payload: any;
-    meta?: any;
-    error?: any;
-}
-type UnwrappedActionPayload<T extends UnwrappableAction> = Exclude<T, {
-    error: any;
-}>['payload'];
-/**
- * @public
- */
-export declare function unwrapResult<R extends UnwrappableAction>(action: R): UnwrappedActionPayload<R>;
-type WithStrictNullChecks<True, False> = undefined extends boolean ? False : True;
-export {};

+ 0 - 10
react/study8/proect/node_modules/@reduxjs/toolkit/dist/createDraftSafeSelector.d.ts

@@ -1,10 +0,0 @@
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
-export declare const createDraftSafeSelectorCreator: typeof createSelectorCreator;
-/**
- * "Draft-Safe" version of `reselect`'s `createSelector`:
- * If an `immer`-drafted object is passed into the resulting selector's first argument,
- * the selector will act on the current draft value, instead of returning a cached value
- * that might be possibly outdated if the draft has been modified since.
- * @public
- */
-export declare const createDraftSafeSelector: import("reselect").CreateSelectorFunction<typeof weakMapMemoize, typeof weakMapMemoize>;

+ 0 - 117
react/study8/proect/node_modules/@reduxjs/toolkit/dist/createReducer.d.ts

@@ -1,117 +0,0 @@
-import type { Draft } from 'immer';
-import type { Action, Reducer, UnknownAction } from 'redux';
-import type { ActionReducerMapBuilder } from './mapBuilders';
-import type { NoInfer, TypeGuard } from './tsHelpers';
-/**
- * Defines a mapping from action types to corresponding action object shapes.
- *
- * @deprecated This should not be used manually - it is only used for internal
- *             inference purposes and should not have any further value.
- *             It might be removed in the future.
- * @public
- */
-export type Actions<T extends keyof any = string> = Record<T, Action>;
-export type ActionMatcherDescription<S, A extends Action> = {
-    matcher: TypeGuard<A>;
-    reducer: CaseReducer<S, NoInfer<A>>;
-};
-export type ReadonlyActionMatcherDescriptionCollection<S> = ReadonlyArray<ActionMatcherDescription<S, any>>;
-export type ActionMatcherDescriptionCollection<S> = Array<ActionMatcherDescription<S, any>>;
-/**
- * A *case reducer* is a reducer function for a specific action type. Case
- * reducers can be composed to full reducers using `createReducer()`.
- *
- * Unlike a normal Redux reducer, a case reducer is never called with an
- * `undefined` state to determine the initial state. Instead, the initial
- * state is explicitly specified as an argument to `createReducer()`.
- *
- * In addition, a case reducer can choose to mutate the passed-in `state`
- * value directly instead of returning a new state. This does not actually
- * cause the store state to be mutated directly; instead, thanks to
- * [immer](https://github.com/mweststrate/immer), the mutations are
- * translated to copy operations that result in a new state.
- *
- * @public
- */
-export type CaseReducer<S = any, A extends Action = UnknownAction> = (state: Draft<S>, action: A) => NoInfer<S> | void | Draft<NoInfer<S>>;
-/**
- * A mapping from action types to case reducers for `createReducer()`.
- *
- * @deprecated This should not be used manually - it is only used
- *             for internal inference purposes and using it manually
- *             would lead to type erasure.
- *             It might be removed in the future.
- * @public
- */
-export type CaseReducers<S, AS extends Actions> = {
-    [T in keyof AS]: AS[T] extends Action ? CaseReducer<S, AS[T]> : void;
-};
-export type NotFunction<T> = T extends Function ? never : T;
-export type ReducerWithInitialState<S extends NotFunction<any>> = Reducer<S> & {
-    getInitialState: () => S;
-};
-/**
- * A utility function that allows defining a reducer as a mapping from action
- * type to *case reducer* functions that handle these action types. The
- * reducer's initial state is passed as the first argument.
- *
- * @remarks
- * The body of every case reducer is implicitly wrapped with a call to
- * `produce()` from the [immer](https://github.com/mweststrate/immer) library.
- * This means that rather than returning a new state object, you can also
- * mutate the passed-in state object directly; these mutations will then be
- * automatically and efficiently translated into copies, giving you both
- * convenience and immutability.
- *
- * @overloadSummary
- * This function accepts a callback that receives a `builder` object as its argument.
- * That builder provides `addCase`, `addMatcher` and `addDefaultCase` functions that may be
- * called to define what actions this reducer will handle.
- *
- * @param initialState - `State | (() => State)`: The initial state that should be used when the reducer is called the first time. This may also be a "lazy initializer" function, which should return an initial state value when called. This will be used whenever the reducer is called with `undefined` as its state value, and is primarily useful for cases like reading initial state from `localStorage`.
- * @param builderCallback - `(builder: Builder) => void` A callback that receives a *builder* object to define
- *   case reducers via calls to `builder.addCase(actionCreatorOrType, reducer)`.
- * @example
-```ts
-import {
-  createAction,
-  createReducer,
-  UnknownAction,
-  PayloadAction,
-} from "@reduxjs/toolkit";
-
-const increment = createAction<number>("increment");
-const decrement = createAction<number>("decrement");
-
-function isActionWithNumberPayload(
-  action: UnknownAction
-): action is PayloadAction<number> {
-  return typeof action.payload === "number";
-}
-
-const reducer = createReducer(
-  {
-    counter: 0,
-    sumOfNumberPayloads: 0,
-    unhandledActions: 0,
-  },
-  (builder) => {
-    builder
-      .addCase(increment, (state, action) => {
-        // action is inferred correctly here
-        state.counter += action.payload;
-      })
-      // You can chain calls, or have separate `builder.addCase()` lines each time
-      .addCase(decrement, (state, action) => {
-        state.counter -= action.payload;
-      })
-      // You can apply a "matcher function" to incoming actions
-      .addMatcher(isActionWithNumberPayload, (state, action) => {})
-      // and provide a default case if no other handlers matched
-      .addDefaultCase((state, action) => {});
-  }
-);
-```
- * @public
- */
-export declare function createReducer<S extends NotFunction<any>>(initialState: S | (() => S), mapOrBuilderCallback: (builder: ActionReducerMapBuilder<S>) => void): ReducerWithInitialState<S>;

+ 0 - 336
react/study8/proect/node_modules/@reduxjs/toolkit/dist/createSlice.d.ts

@@ -1,336 +0,0 @@
-import type { Action, UnknownAction, Reducer } from 'redux';
-import type { Selector } from 'reselect';
-import type { ActionCreatorWithoutPayload, PayloadAction, PayloadActionCreator, PrepareAction, _ActionCreatorWithPreparedPayload } from './createAction';
-import type { CaseReducer } from './createReducer';
-import type { ActionReducerMapBuilder } from './mapBuilders';
-import type { Id } from './tsHelpers';
-import type { InjectConfig } from './combineSlices';
-import type { AsyncThunk, AsyncThunkConfig, AsyncThunkOptions, AsyncThunkPayloadCreator, OverrideThunkApiConfigs } from './createAsyncThunk';
-import { createAsyncThunk as _createAsyncThunk } from './createAsyncThunk';
-declare const asyncThunkSymbol: unique symbol;
-export declare const asyncThunkCreator: {
-    [asyncThunkSymbol]: typeof _createAsyncThunk;
-};
-interface InjectIntoConfig<NewReducerPath extends string> extends InjectConfig {
-    reducerPath?: NewReducerPath;
-}
-/**
- * The return value of `createSlice`
- *
- * @public
- */
-export interface Slice<State = any, CaseReducers extends SliceCaseReducers<State> = SliceCaseReducers<State>, Name extends string = string, ReducerPath extends string = Name, Selectors extends SliceSelectors<State> = SliceSelectors<State>> {
-    /**
-     * The slice name.
-     */
-    name: Name;
-    /**
-     *  The slice reducer path.
-     */
-    reducerPath: ReducerPath;
-    /**
-     * The slice's reducer.
-     */
-    reducer: Reducer<State>;
-    /**
-     * Action creators for the types of actions that are handled by the slice
-     * reducer.
-     */
-    actions: CaseReducerActions<CaseReducers, Name>;
-    /**
-     * The individual case reducer functions that were passed in the `reducers` parameter.
-     * This enables reuse and testing if they were defined inline when calling `createSlice`.
-     */
-    caseReducers: SliceDefinedCaseReducers<CaseReducers>;
-    /**
-     * Provides access to the initial state value given to the slice.
-     * If a lazy state initializer was provided, it will be called and a fresh value returned.
-     */
-    getInitialState: () => State;
-    /**
-     * Get localised slice selectors (expects to be called with *just* the slice's state as the first parameter)
-     */
-    getSelectors(this: this): Id<SliceDefinedSelectors<State, Selectors, State>>;
-    /**
-     * Get globalised slice selectors (`selectState` callback is expected to receive first parameter and return slice state)
-     */
-    getSelectors<RootState>(this: this, selectState: (this: this, rootState: RootState) => State): Id<SliceDefinedSelectors<State, Selectors, RootState>>;
-    /**
-     * Selectors that assume the slice's state is `rootState[slice.reducerPath]` (which is usually the case)
-     *
-     * Equivalent to `slice.getSelectors((state: RootState) => state[slice.reducerPath])`.
-     */
-    selectors: Id<SliceDefinedSelectors<State, Selectors, {
-        [K in ReducerPath]: State;
-    }>>;
-    /**
-     * Inject slice into provided reducer (return value from `combineSlices`), and return injected slice.
-     */
-    injectInto<NewReducerPath extends string = ReducerPath>(this: this, injectable: {
-        inject: (slice: {
-            reducerPath: string;
-            reducer: Reducer;
-        }, config?: InjectConfig) => void;
-    }, config?: InjectIntoConfig<NewReducerPath>): InjectedSlice<State, CaseReducers, Name, NewReducerPath, Selectors>;
-    /**
-     * Select the slice state, using the slice's current reducerPath.
-     *
-     * Will throw an error if slice is not found.
-     */
-    selectSlice(this: this, state: {
-        [K in ReducerPath]: State;
-    }): State;
-}
-/**
- * A slice after being called with `injectInto(reducer)`.
- *
- * Selectors can now be called with an `undefined` value, in which case they use the slice's initial state.
- */
-interface InjectedSlice<State = any, CaseReducers extends SliceCaseReducers<State> = SliceCaseReducers<State>, Name extends string = string, ReducerPath extends string = Name, Selectors extends SliceSelectors<State> = SliceSelectors<State>> extends Omit<Slice<State, CaseReducers, Name, ReducerPath, Selectors>, 'getSelectors' | 'selectors'> {
-    /**
-     * Get localised slice selectors (expects to be called with *just* the slice's state as the first parameter)
-     */
-    getSelectors(): Id<SliceDefinedSelectors<State, Selectors, State | undefined>>;
-    /**
-     * Get globalised slice selectors (`selectState` callback is expected to receive first parameter and return slice state)
-     */
-    getSelectors<RootState>(selectState: (this: this, rootState: RootState) => State | undefined): Id<SliceDefinedSelectors<State, Selectors, RootState>>;
-    /**
-     * Selectors that assume the slice's state is `rootState[slice.name]` (which is usually the case)
-     *
-     * Equivalent to `slice.getSelectors((state: RootState) => state[slice.name])`.
-     */
-    selectors: Id<SliceDefinedSelectors<State, Selectors, {
-        [K in ReducerPath]?: State | undefined;
-    }>>;
-    /**
-     * Select the slice state, using the slice's current reducerPath.
-     *
-     * Returns initial state if slice is not found.
-     */
-    selectSlice(state: {
-        [K in ReducerPath]?: State | undefined;
-    }): State;
-}
-/**
- * Options for `createSlice()`.
- *
- * @public
- */
-export interface CreateSliceOptions<State = any, CR extends SliceCaseReducers<State> = SliceCaseReducers<State>, Name extends string = string, ReducerPath extends string = Name, Selectors extends SliceSelectors<State> = SliceSelectors<State>> {
-    /**
-     * The slice's name. Used to namespace the generated action types.
-     */
-    name: Name;
-    /**
-     * The slice's reducer path. Used when injecting into a combined slice reducer.
-     */
-    reducerPath?: ReducerPath;
-    /**
-     * The initial state that should be used when the reducer is called the first time. This may also be a "lazy initializer" function, which should return an initial state value when called. This will be used whenever the reducer is called with `undefined` as its state value, and is primarily useful for cases like reading initial state from `localStorage`.
-     */
-    initialState: State | (() => State);
-    /**
-     * A mapping from action types to action-type-specific *case reducer*
-     * functions. For every action type, a matching action creator will be
-     * generated using `createAction()`.
-     */
-    reducers: ValidateSliceCaseReducers<State, CR> | ((creators: ReducerCreators<State>) => CR);
-    /**
-     * A callback that receives a *builder* object to define
-     * case reducers via calls to `builder.addCase(actionCreatorOrType, reducer)`.
-     *
-     *
-     * @example
-  ```ts
-  import { createAction, createSlice, Action } from '@reduxjs/toolkit'
-  const incrementBy = createAction<number>('incrementBy')
-  const decrement = createAction('decrement')
-  
-  interface RejectedAction extends Action {
-    error: Error
-  }
-  
-  function isRejectedAction(action: Action): action is RejectedAction {
-    return action.type.endsWith('rejected')
-  }
-  
-  createSlice({
-    name: 'counter',
-    initialState: 0,
-    reducers: {},
-    extraReducers: builder => {
-      builder
-        .addCase(incrementBy, (state, action) => {
-          // action is inferred correctly here if using TS
-        })
-        // You can chain calls, or have separate `builder.addCase()` lines each time
-        .addCase(decrement, (state, action) => {})
-        // You can match a range of action types
-        .addMatcher(
-          isRejectedAction,
-          // `action` will be inferred as a RejectedAction due to isRejectedAction being defined as a type guard
-          (state, action) => {}
-        )
-        // and provide a default case if no other handlers matched
-        .addDefaultCase((state, action) => {})
-      }
-  })
-  ```
-     */
-    extraReducers?: (builder: ActionReducerMapBuilder<State>) => void;
-    /**
-     * A map of selectors that receive the slice's state and any additional arguments, and return a result.
-     */
-    selectors?: Selectors;
-}
-export declare enum ReducerType {
-    reducer = "reducer",
-    reducerWithPrepare = "reducerWithPrepare",
-    asyncThunk = "asyncThunk"
-}
-interface ReducerDefinition<T extends ReducerType = ReducerType> {
-    _reducerDefinitionType: T;
-}
-export interface CaseReducerDefinition<S = any, A extends Action = UnknownAction> extends CaseReducer<S, A>, ReducerDefinition<ReducerType.reducer> {
-}
-/**
- * A CaseReducer with a `prepare` method.
- *
- * @public
- */
-export type CaseReducerWithPrepare<State, Action extends PayloadAction> = {
-    reducer: CaseReducer<State, Action>;
-    prepare: PrepareAction<Action['payload']>;
-};
-export interface CaseReducerWithPrepareDefinition<State, Action extends PayloadAction> extends CaseReducerWithPrepare<State, Action>, ReducerDefinition<ReducerType.reducerWithPrepare> {
-}
-export interface AsyncThunkSliceReducerConfig<State, ThunkArg extends any, Returned = unknown, ThunkApiConfig extends AsyncThunkConfig = {}> {
-    pending?: CaseReducer<State, ReturnType<AsyncThunk<Returned, ThunkArg, ThunkApiConfig>['pending']>>;
-    rejected?: CaseReducer<State, ReturnType<AsyncThunk<Returned, ThunkArg, ThunkApiConfig>['rejected']>>;
-    fulfilled?: CaseReducer<State, ReturnType<AsyncThunk<Returned, ThunkArg, ThunkApiConfig>['fulfilled']>>;
-    settled?: CaseReducer<State, ReturnType<AsyncThunk<Returned, ThunkArg, ThunkApiConfig>['rejected' | 'fulfilled']>>;
-    options?: AsyncThunkOptions<ThunkArg, ThunkApiConfig>;
-}
-export interface AsyncThunkSliceReducerDefinition<State, ThunkArg extends any, Returned = unknown, ThunkApiConfig extends AsyncThunkConfig = {}> extends AsyncThunkSliceReducerConfig<State, ThunkArg, Returned, ThunkApiConfig>, ReducerDefinition<ReducerType.asyncThunk> {
-    payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, ThunkApiConfig>;
-}
-/**
- * Providing these as part of the config would cause circular types, so we disallow passing them
- */
-type PreventCircular<ThunkApiConfig> = {
-    [K in keyof ThunkApiConfig]: K extends 'state' | 'dispatch' ? never : ThunkApiConfig[K];
-};
-interface AsyncThunkCreator<State, CurriedThunkApiConfig extends PreventCircular<AsyncThunkConfig> = PreventCircular<AsyncThunkConfig>> {
-    <ThunkArg extends any, Returned = unknown>(payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, CurriedThunkApiConfig>, config?: AsyncThunkSliceReducerConfig<State, ThunkArg, Returned, CurriedThunkApiConfig>): AsyncThunkSliceReducerDefinition<State, ThunkArg, Returned, CurriedThunkApiConfig>;
-    <ThunkArg extends any, Returned = unknown, ThunkApiConfig extends PreventCircular<AsyncThunkConfig> = {}>(payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, ThunkApiConfig>, config?: AsyncThunkSliceReducerConfig<State, ThunkArg, Returned, ThunkApiConfig>): AsyncThunkSliceReducerDefinition<State, ThunkArg, Returned, ThunkApiConfig>;
-    withTypes<ThunkApiConfig extends PreventCircular<AsyncThunkConfig>>(): AsyncThunkCreator<State, OverrideThunkApiConfigs<CurriedThunkApiConfig, ThunkApiConfig>>;
-}
-export interface ReducerCreators<State> {
-    reducer(caseReducer: CaseReducer<State, PayloadAction>): CaseReducerDefinition<State, PayloadAction>;
-    reducer<Payload>(caseReducer: CaseReducer<State, PayloadAction<Payload>>): CaseReducerDefinition<State, PayloadAction<Payload>>;
-    asyncThunk: AsyncThunkCreator<State>;
-    preparedReducer<Prepare extends PrepareAction<any>>(prepare: Prepare, reducer: CaseReducer<State, ReturnType<_ActionCreatorWithPreparedPayload<Prepare>>>): {
-        _reducerDefinitionType: ReducerType.reducerWithPrepare;
-        prepare: Prepare;
-        reducer: CaseReducer<State, ReturnType<_ActionCreatorWithPreparedPayload<Prepare>>>;
-    };
-}
-/**
- * The type describing a slice's `reducers` option.
- *
- * @public
- */
-export type SliceCaseReducers<State> = Record<string, CaseReducerDefinition<State, PayloadAction<any>> | CaseReducerWithPrepareDefinition<State, PayloadAction<any, string, any, any>> | AsyncThunkSliceReducerDefinition<State, any, any, any>> | Record<string, CaseReducer<State, PayloadAction<any>> | CaseReducerWithPrepare<State, PayloadAction<any, string, any, any>>>;
-/**
- * The type describing a slice's `selectors` option.
- */
-export type SliceSelectors<State> = {
-    [K: string]: (sliceState: State, ...args: any[]) => any;
-};
-type SliceActionType<SliceName extends string, ActionName extends keyof any> = ActionName extends string | number ? `${SliceName}/${ActionName}` : string;
-/**
- * Derives the slice's `actions` property from the `reducers` options
- *
- * @public
- */
-export type CaseReducerActions<CaseReducers extends SliceCaseReducers<any>, SliceName extends string> = {
-    [Type in keyof CaseReducers]: CaseReducers[Type] extends infer Definition ? Definition extends {
-        prepare: any;
-    } ? ActionCreatorForCaseReducerWithPrepare<Definition, SliceActionType<SliceName, Type>> : Definition extends AsyncThunkSliceReducerDefinition<any, infer ThunkArg, infer Returned, infer ThunkApiConfig> ? AsyncThunk<Returned, ThunkArg, ThunkApiConfig> : Definition extends {
-        reducer: any;
-    } ? ActionCreatorForCaseReducer<Definition['reducer'], SliceActionType<SliceName, Type>> : ActionCreatorForCaseReducer<Definition, SliceActionType<SliceName, Type>> : never;
-};
-/**
- * Get a `PayloadActionCreator` type for a passed `CaseReducerWithPrepare`
- *
- * @internal
- */
-type ActionCreatorForCaseReducerWithPrepare<CR extends {
-    prepare: any;
-}, Type extends string> = _ActionCreatorWithPreparedPayload<CR['prepare'], Type>;
-/**
- * Get a `PayloadActionCreator` type for a passed `CaseReducer`
- *
- * @internal
- */
-type ActionCreatorForCaseReducer<CR, Type extends string> = CR extends (state: any, action: infer Action) => any ? Action extends {
-    payload: infer P;
-} ? PayloadActionCreator<P, Type> : ActionCreatorWithoutPayload<Type> : ActionCreatorWithoutPayload<Type>;
-/**
- * Extracts the CaseReducers out of a `reducers` object, even if they are
- * tested into a `CaseReducerWithPrepare`.
- *
- * @internal
- */
-type SliceDefinedCaseReducers<CaseReducers extends SliceCaseReducers<any>> = {
-    [Type in keyof CaseReducers]: CaseReducers[Type] extends infer Definition ? Definition extends AsyncThunkSliceReducerDefinition<any, any, any, any> ? Id<Pick<Required<Definition>, 'fulfilled' | 'rejected' | 'pending' | 'settled'>> : Definition extends {
-        reducer: infer Reducer;
-    } ? Reducer : Definition : never;
-};
-type RemappedSelector<S extends Selector, NewState> = S extends Selector<any, infer R, infer P> ? Selector<NewState, R, P> & {
-    unwrapped: S;
-} : never;
-/**
- * Extracts the final selector type from the `selectors` object.
- *
- * Removes the `string` index signature from the default value.
- */
-type SliceDefinedSelectors<State, Selectors extends SliceSelectors<State>, RootState> = {
-    [K in keyof Selectors as string extends K ? never : K]: RemappedSelector<Selectors[K], RootState>;
-};
-/**
- * Used on a SliceCaseReducers object.
- * Ensures that if a CaseReducer is a `CaseReducerWithPrepare`, that
- * the `reducer` and the `prepare` function use the same type of `payload`.
- *
- * Might do additional such checks in the future.
- *
- * This type is only ever useful if you want to write your own wrapper around
- * `createSlice`. Please don't use it otherwise!
- *
- * @public
- */
-export type ValidateSliceCaseReducers<S, ACR extends SliceCaseReducers<S>> = ACR & {
-    [T in keyof ACR]: ACR[T] extends {
-        reducer(s: S, action?: infer A): any;
-    } ? {
-        prepare(...a: never[]): Omit<A, 'type'>;
-    } : {};
-};
-interface BuildCreateSliceConfig {
-    creators?: {
-        asyncThunk?: typeof asyncThunkCreator;
-    };
-}
-export declare function buildCreateSlice({ creators }?: BuildCreateSliceConfig): <State, CaseReducers extends SliceCaseReducers<State>, Name extends string, Selectors extends SliceSelectors<State>, ReducerPath extends string = Name>(options: CreateSliceOptions<State, CaseReducers, Name, ReducerPath, Selectors>) => Slice<State, CaseReducers, Name, ReducerPath, Selectors>;
-/**
- * A function that accepts an initial state, an object full of reducer
- * functions, and a "slice name", and automatically generates
- * action creators and action types that correspond to the
- * reducers and state.
- *
- * @public
- */
-export declare const createSlice: <State, CaseReducers extends SliceCaseReducers<State>, Name extends string, Selectors extends SliceSelectors<State>, ReducerPath extends string = Name>(options: CreateSliceOptions<State, CaseReducers, Name, ReducerPath, Selectors>) => Slice<State, CaseReducers, Name, ReducerPath, Selectors>;
-export {};

+ 0 - 217
react/study8/proect/node_modules/@reduxjs/toolkit/dist/devtoolsExtension.d.ts

@@ -1,217 +0,0 @@
-import type { Action, ActionCreator, StoreEnhancer } from 'redux';
-import { compose } from 'redux';
-/**
- * @public
- */
-export interface DevToolsEnhancerOptions {
-    /**
-     * the instance name to be showed on the monitor page. Default value is `document.title`.
-     * If not specified and there's no document title, it will consist of `tabId` and `instanceId`.
-     */
-    name?: string;
-    /**
-     * action creators functions to be available in the Dispatcher.
-     */
-    actionCreators?: ActionCreator<any>[] | {
-        [key: string]: ActionCreator<any>;
-    };
-    /**
-     * if more than one action is dispatched in the indicated interval, all new actions will be collected and sent at once.
-     * It is the joint between performance and speed. When set to `0`, all actions will be sent instantly.
-     * Set it to a higher value when experiencing perf issues (also `maxAge` to a lower value).
-     *
-     * @default 500 ms.
-     */
-    latency?: number;
-    /**
-     * (> 1) - maximum allowed actions to be stored in the history tree. The oldest actions are removed once maxAge is reached. It's critical for performance.
-     *
-     * @default 50
-     */
-    maxAge?: number;
-    /**
-     * Customizes how actions and state are serialized and deserialized. Can be a boolean or object. If given a boolean, the behavior is the same as if you
-     * were to pass an object and specify `options` as a boolean. Giving an object allows fine-grained customization using the `replacer` and `reviver`
-     * functions.
-     */
-    serialize?: boolean | {
-        /**
-         * - `undefined` - will use regular `JSON.stringify` to send data (it's the fast mode).
-         * - `false` - will handle also circular references.
-         * - `true` - will handle also date, regex, undefined, error objects, symbols, maps, sets and functions.
-         * - object, which contains `date`, `regex`, `undefined`, `error`, `symbol`, `map`, `set` and `function` keys.
-         *   For each of them you can indicate if to include (by setting as `true`).
-         *   For `function` key you can also specify a custom function which handles serialization.
-         *   See [`jsan`](https://github.com/kolodny/jsan) for more details.
-         */
-        options?: undefined | boolean | {
-            date?: true;
-            regex?: true;
-            undefined?: true;
-            error?: true;
-            symbol?: true;
-            map?: true;
-            set?: true;
-            function?: true | ((fn: (...args: any[]) => any) => string);
-        };
-        /**
-         * [JSON replacer function](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter) used for both actions and states stringify.
-         * In addition, you can specify a data type by adding a [`__serializedType__`](https://github.com/zalmoxisus/remotedev-serialize/blob/master/helpers/index.js#L4)
-         * key. So you can deserialize it back while importing or persisting data.
-         * Moreover, it will also [show a nice preview showing the provided custom type](https://cloud.githubusercontent.com/assets/7957859/21814330/a17d556a-d761-11e6-85ef-159dd12f36c5.png):
-         */
-        replacer?: (key: string, value: unknown) => any;
-        /**
-         * [JSON `reviver` function](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter)
-         * used for parsing the imported actions and states. See [`remotedev-serialize`](https://github.com/zalmoxisus/remotedev-serialize/blob/master/immutable/serialize.js#L8-L41)
-         * as an example on how to serialize special data types and get them back.
-         */
-        reviver?: (key: string, value: unknown) => any;
-        /**
-         * Automatically serialize/deserialize immutablejs via [remotedev-serialize](https://github.com/zalmoxisus/remotedev-serialize).
-         * Just pass the Immutable library. It will support all ImmutableJS structures. You can even export them into a file and get them back.
-         * The only exception is `Record` class, for which you should pass this in addition the references to your classes in `refs`.
-         */
-        immutable?: any;
-        /**
-         * ImmutableJS `Record` classes used to make possible restore its instances back when importing, persisting...
-         */
-        refs?: any;
-    };
-    /**
-     * function which takes `action` object and id number as arguments, and should return `action` object back.
-     */
-    actionSanitizer?: <A extends Action>(action: A, id: number) => A;
-    /**
-     * function which takes `state` object and index as arguments, and should return `state` object back.
-     */
-    stateSanitizer?: <S>(state: S, index: number) => S;
-    /**
-     * *string or array of strings as regex* - actions types to be hidden / shown in the monitors (while passed to the reducers).
-     * If `actionsAllowlist` specified, `actionsDenylist` is ignored.
-     */
-    actionsDenylist?: string | string[];
-    /**
-     * *string or array of strings as regex* - actions types to be hidden / shown in the monitors (while passed to the reducers).
-     * If `actionsAllowlist` specified, `actionsDenylist` is ignored.
-     */
-    actionsAllowlist?: string | string[];
-    /**
-     * called for every action before sending, takes `state` and `action` object, and returns `true` in case it allows sending the current data to the monitor.
-     * Use it as a more advanced version of `actionsDenylist`/`actionsAllowlist` parameters.
-     */
-    predicate?: <S, A extends Action>(state: S, action: A) => boolean;
-    /**
-     * if specified as `false`, it will not record the changes till clicking on `Start recording` button.
-     * Available only for Redux enhancer, for others use `autoPause`.
-     *
-     * @default true
-     */
-    shouldRecordChanges?: boolean;
-    /**
-     * if specified, whenever clicking on `Pause recording` button and there are actions in the history log, will add this action type.
-     * If not specified, will commit when paused. Available only for Redux enhancer.
-     *
-     * @default "@@PAUSED""
-     */
-    pauseActionType?: string;
-    /**
-     * auto pauses when the extension’s window is not opened, and so has zero impact on your app when not in use.
-     * Not available for Redux enhancer (as it already does it but storing the data to be sent).
-     *
-     * @default false
-     */
-    autoPause?: boolean;
-    /**
-     * if specified as `true`, it will not allow any non-monitor actions to be dispatched till clicking on `Unlock changes` button.
-     * Available only for Redux enhancer.
-     *
-     * @default false
-     */
-    shouldStartLocked?: boolean;
-    /**
-     * if set to `false`, will not recompute the states on hot reloading (or on replacing the reducers). Available only for Redux enhancer.
-     *
-     * @default true
-     */
-    shouldHotReload?: boolean;
-    /**
-     * if specified as `true`, whenever there's an exception in reducers, the monitors will show the error message, and next actions will not be dispatched.
-     *
-     * @default false
-     */
-    shouldCatchErrors?: boolean;
-    /**
-     * If you want to restrict the extension, specify the features you allow.
-     * If not specified, all of the features are enabled. When set as an object, only those included as `true` will be allowed.
-     * Note that except `true`/`false`, `import` and `export` can be set as `custom` (which is by default for Redux enhancer), meaning that the importing/exporting occurs on the client side.
-     * Otherwise, you'll get/set the data right from the monitor part.
-     */
-    features?: {
-        /**
-         * start/pause recording of dispatched actions
-         */
-        pause?: boolean;
-        /**
-         * lock/unlock dispatching actions and side effects
-         */
-        lock?: boolean;
-        /**
-         * persist states on page reloading
-         */
-        persist?: boolean;
-        /**
-         * export history of actions in a file
-         */
-        export?: boolean | 'custom';
-        /**
-         * import history of actions from a file
-         */
-        import?: boolean | 'custom';
-        /**
-         * jump back and forth (time travelling)
-         */
-        jump?: boolean;
-        /**
-         * skip (cancel) actions
-         */
-        skip?: boolean;
-        /**
-         * drag and drop actions in the history list
-         */
-        reorder?: boolean;
-        /**
-         * dispatch custom actions or action creators
-         */
-        dispatch?: boolean;
-        /**
-         * generate tests for the selected actions
-         */
-        test?: boolean;
-    };
-    /**
-     * Set to true or a stacktrace-returning function to record call stack traces for dispatched actions.
-     * Defaults to false.
-     */
-    trace?: boolean | (<A extends Action>(action: A) => string);
-    /**
-     * The maximum number of stack trace entries to record per action. Defaults to 10.
-     */
-    traceLimit?: number;
-}
-type Compose = typeof compose;
-interface ComposeWithDevTools {
-    (options: DevToolsEnhancerOptions): Compose;
-    <StoreExt extends {}>(...funcs: StoreEnhancer<StoreExt>[]): StoreEnhancer<StoreExt>;
-}
-/**
- * @public
- */
-export declare const composeWithDevTools: ComposeWithDevTools;
-/**
- * @public
- */
-export declare const devToolsEnhancer: {
-    (options: DevToolsEnhancerOptions): StoreEnhancer<any>;
-};
-export {};

+ 0 - 3
react/study8/proect/node_modules/@reduxjs/toolkit/dist/dynamicMiddleware/index.d.ts

@@ -1,3 +0,0 @@
-import type { Dispatch as ReduxDispatch, UnknownAction } from 'redux';
-import type { DynamicMiddlewareInstance } from './types';
-export declare const createDynamicMiddleware: <State = any, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>>() => DynamicMiddlewareInstance<State, Dispatch>;

+ 0 - 20
react/study8/proect/node_modules/@reduxjs/toolkit/dist/dynamicMiddleware/react/index.d.ts

@@ -1,20 +0,0 @@
-import type { Action as ReduxAction, UnknownAction, Dispatch as ReduxDispatch, Middleware } from 'redux';
-import type { TSHelpersExtractDispatchExtensions } from '@reduxjs/toolkit';
-import type { ReactReduxContextValue } from 'react-redux';
-import type { Context } from 'react';
-import type { DynamicMiddlewareInstance, GetDispatch, GetState, MiddlewareApiConfig } from '@reduxjs/toolkit';
-export type UseDispatchWithMiddlewareHook<Middlewares extends Middleware<any, State, Dispatch>[] = [], State = any, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> = () => TSHelpersExtractDispatchExtensions<Middlewares> & Dispatch;
-export type CreateDispatchWithMiddlewareHook<State = any, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> = {
-    <Middlewares extends [
-        Middleware<any, State, Dispatch>,
-        ...Middleware<any, State, Dispatch>[]
-    ]>(...middlewares: Middlewares): UseDispatchWithMiddlewareHook<Middlewares, State, Dispatch>;
-    withTypes<MiddlewareConfig extends MiddlewareApiConfig>(): CreateDispatchWithMiddlewareHook<GetState<MiddlewareConfig>, GetDispatch<MiddlewareConfig>>;
-};
-type ActionFromDispatch<Dispatch extends ReduxDispatch<ReduxAction>> = Dispatch extends ReduxDispatch<infer Action> ? Action : never;
-interface ReactDynamicMiddlewareInstance<State = any, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> extends DynamicMiddlewareInstance<State, Dispatch> {
-    createDispatchWithMiddlewareHookFactory: (context?: Context<ReactReduxContextValue<State, ActionFromDispatch<Dispatch>>>) => CreateDispatchWithMiddlewareHook<State, Dispatch>;
-    createDispatchWithMiddlewareHook: CreateDispatchWithMiddlewareHook<State, Dispatch>;
-}
-export declare const createDynamicMiddleware: <State = any, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>>() => ReactDynamicMiddlewareInstance<State, Dispatch>;
-export {};

+ 0 - 41
react/study8/proect/node_modules/@reduxjs/toolkit/dist/dynamicMiddleware/types.d.ts

@@ -1,41 +0,0 @@
-import type { Middleware, Dispatch as ReduxDispatch, UnknownAction, MiddlewareAPI } from 'redux';
-import type { ExtractDispatchExtensions, FallbackIfUnknown } from '../tsHelpers';
-import type { PayloadAction, BaseActionCreator } from '../createAction';
-export type GetMiddlewareApi<MiddlewareApiConfig> = MiddlewareAPI<GetDispatch<MiddlewareApiConfig>, GetState<MiddlewareApiConfig>>;
-export type MiddlewareApiConfig = {
-    state?: unknown;
-    dispatch?: ReduxDispatch;
-};
-export type GetState<MiddlewareApiConfig> = MiddlewareApiConfig extends {
-    state: infer State;
-} ? State : unknown;
-export type GetDispatch<MiddlewareApiConfig> = MiddlewareApiConfig extends {
-    dispatch: infer Dispatch;
-} ? FallbackIfUnknown<Dispatch, ReduxDispatch> : ReduxDispatch;
-export type AddMiddleware<State = any, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> = {
-    (...middlewares: Middleware<any, State, Dispatch>[]): void;
-    withTypes<MiddlewareConfig extends MiddlewareApiConfig>(): AddMiddleware<GetState<MiddlewareConfig>, GetDispatch<MiddlewareConfig>>;
-};
-export interface WithMiddleware<State = any, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> extends BaseActionCreator<Middleware<any, State, Dispatch>[], 'dynamicMiddleware/add', {
-    instanceId: string;
-}> {
-    <Middlewares extends Middleware<any, State, Dispatch>[]>(...middlewares: Middlewares): PayloadAction<Middlewares, 'dynamicMiddleware/add', {
-        instanceId: string;
-    }>;
-    withTypes<MiddlewareConfig extends MiddlewareApiConfig>(): WithMiddleware<GetState<MiddlewareConfig>, GetDispatch<MiddlewareConfig>>;
-}
-export interface DynamicDispatch {
-    <Middlewares extends Middleware<any>[]>(action: PayloadAction<Middlewares, 'dynamicMiddleware/add'>): ExtractDispatchExtensions<Middlewares> & this;
-}
-export type MiddlewareEntry<State = unknown, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> = {
-    id: string;
-    middleware: Middleware<any, State, Dispatch>;
-    applied: Map<MiddlewareAPI<Dispatch, State>, ReturnType<Middleware<any, State, Dispatch>>>;
-};
-export type DynamicMiddleware<State = unknown, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> = Middleware<DynamicDispatch, State, Dispatch>;
-export type DynamicMiddlewareInstance<State = unknown, Dispatch extends ReduxDispatch<UnknownAction> = ReduxDispatch<UnknownAction>> = {
-    middleware: DynamicMiddleware<State, Dispatch>;
-    addMiddleware: AddMiddleware<State, Dispatch>;
-    withMiddleware: WithMiddleware<State, Dispatch>;
-    instanceId: string;
-};

+ 0 - 14
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/create_adapter.d.ts

@@ -1,14 +0,0 @@
-import type { Comparer, IdSelector, EntityAdapter, EntityId } from './models';
-export interface EntityAdapterOptions<T, Id extends EntityId> {
-    selectId?: IdSelector<T, Id>;
-    sortComparer?: false | Comparer<T>;
-}
-export declare function createEntityAdapter<T, Id extends EntityId>(options: {
-    selectId: IdSelector<T, Id>;
-    sortComparer?: false | Comparer<T>;
-}): EntityAdapter<T, Id>;
-export declare function createEntityAdapter<T extends {
-    id: EntityId;
-}>(options?: {
-    sortComparer?: false | Comparer<T>;
-}): EntityAdapter<T, T['id']>;

+ 0 - 8
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/entity_state.d.ts

@@ -1,8 +0,0 @@
-import type { EntityId, EntityState } from './models';
-export declare function getInitialEntityState<T, Id extends EntityId>(): EntityState<T, Id>;
-export declare function createInitialStateFactory<T, Id extends EntityId>(): {
-    getInitialState: {
-        (): EntityState<T, Id>;
-        <S extends object>(additionalState: S): EntityState<T, Id> & S;
-    };
-};

+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/index.d.ts

@@ -1,2 +0,0 @@
-export { createEntityAdapter } from './create_adapter';
-export type { EntityState, EntityAdapter, Update, IdSelector, Comparer, } from './models';

+ 0 - 89
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/models.d.ts

@@ -1,89 +0,0 @@
-import type { UncheckedIndexedAccess } from '../uncheckedindexed';
-import type { Draft } from 'immer';
-import type { PayloadAction } from '../createAction';
-import type { GetSelectorsOptions } from './state_selectors';
-import type { CastAny, Id as Compute } from '../tsHelpers';
-/**
- * @public
- */
-export type EntityId = number | string;
-/**
- * @public
- */
-export type Comparer<T> = (a: T, b: T) => number;
-/**
- * @public
- */
-export type IdSelector<T, Id extends EntityId> = (model: T) => Id;
-/**
- * @public
- */
-export type Update<T, Id extends EntityId> = {
-    id: Id;
-    changes: Partial<T>;
-};
-/**
- * @public
- */
-export interface EntityState<T, Id extends EntityId> {
-    ids: Id[];
-    entities: Record<Id, T>;
-}
-/**
- * @public
- */
-export interface EntityDefinition<T, Id extends EntityId> {
-    selectId: IdSelector<T, Id>;
-    sortComparer: false | Comparer<T>;
-}
-export type PreventAny<S, T, Id extends EntityId> = CastAny<S, EntityState<T, Id>>;
-export type DraftableEntityState<T, Id extends EntityId> = EntityState<T, Id> | Draft<EntityState<T, Id>>;
-/**
- * @public
- */
-export interface EntityStateAdapter<T, Id extends EntityId> {
-    addOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entity: T): S;
-    addOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, action: PayloadAction<T>): S;
-    addMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: readonly T[] | Record<Id, T>): S;
-    addMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: PayloadAction<readonly T[] | Record<Id, T>>): S;
-    setOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entity: T): S;
-    setOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, action: PayloadAction<T>): S;
-    setMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: readonly T[] | Record<Id, T>): S;
-    setMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: PayloadAction<readonly T[] | Record<Id, T>>): S;
-    setAll<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: readonly T[] | Record<Id, T>): S;
-    setAll<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: PayloadAction<readonly T[] | Record<Id, T>>): S;
-    removeOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, key: Id): S;
-    removeOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, key: PayloadAction<Id>): S;
-    removeMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, keys: readonly Id[]): S;
-    removeMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, keys: PayloadAction<readonly Id[]>): S;
-    removeAll<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>): S;
-    updateOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, update: Update<T, Id>): S;
-    updateOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, update: PayloadAction<Update<T, Id>>): S;
-    updateMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, updates: ReadonlyArray<Update<T, Id>>): S;
-    updateMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, updates: PayloadAction<ReadonlyArray<Update<T, Id>>>): S;
-    upsertOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entity: T): S;
-    upsertOne<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entity: PayloadAction<T>): S;
-    upsertMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: readonly T[] | Record<Id, T>): S;
-    upsertMany<S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>, entities: PayloadAction<readonly T[] | Record<Id, T>>): S;
-}
-/**
- * @public
- */
-export interface EntitySelectors<T, V, Id extends EntityId> {
-    selectIds: (state: V) => Id[];
-    selectEntities: (state: V) => Record<Id, T>;
-    selectAll: (state: V) => T[];
-    selectTotal: (state: V) => number;
-    selectById: (state: V, id: Id) => Compute<UncheckedIndexedAccess<T>>;
-}
-/**
- * @public
- */
-export interface EntityAdapter<T, Id extends EntityId> extends EntityStateAdapter<T, Id> {
-    selectId: IdSelector<T, Id>;
-    sortComparer: false | Comparer<T>;
-    getInitialState(): EntityState<T, Id>;
-    getInitialState<S extends object>(state: S): EntityState<T, Id> & S;
-    getSelectors(selectState?: undefined, options?: GetSelectorsOptions): EntitySelectors<T, EntityState<T, Id>, Id>;
-    getSelectors<V>(selectState: (state: V) => EntityState<T, Id>, options?: GetSelectorsOptions): EntitySelectors<T, V, Id>;
-}

+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/sorted_state_adapter.d.ts

@@ -1,2 +0,0 @@
-import type { IdSelector, Comparer, EntityStateAdapter, EntityId } from './models';
-export declare function createSortedStateAdapter<T, Id extends EntityId>(selectId: IdSelector<T, Id>, sort: Comparer<T>): EntityStateAdapter<T, Id>;

+ 0 - 6
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/state_adapter.d.ts

@@ -1,6 +0,0 @@
-import type { Draft } from 'immer';
-import type { EntityId, DraftableEntityState, PreventAny } from './models';
-import type { PayloadAction } from '../createAction';
-export declare const isDraftTyped: <T>(value: T | Draft<T>) => value is Draft<T>;
-export declare function createSingleArgumentStateOperator<T, Id extends EntityId>(mutator: (state: DraftableEntityState<T, Id>) => void): <S extends DraftableEntityState<T, Id>>(state: PreventAny<S, T, Id>) => S;
-export declare function createStateOperator<T, Id extends EntityId, R>(mutator: (arg: R, state: DraftableEntityState<T, Id>) => void): <S extends DraftableEntityState<T, Id>>(state: S, arg: R | PayloadAction<R>) => S;

+ 0 - 14
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/state_selectors.d.ts

@@ -1,14 +0,0 @@
-import type { CreateSelectorFunction } from 'reselect';
-import type { EntityState, EntitySelectors, EntityId } from './models';
-type AnyFunction = (...args: any) => any;
-type AnyCreateSelectorFunction = CreateSelectorFunction<(<F extends AnyFunction>(f: F) => F), <F extends AnyFunction>(f: F) => F>;
-export interface GetSelectorsOptions {
-    createSelector?: AnyCreateSelectorFunction;
-}
-export declare function createSelectorsFactory<T, Id extends EntityId>(): {
-    getSelectors: {
-        (selectState?: undefined, options?: GetSelectorsOptions): EntitySelectors<T, EntityState<T, Id>, Id>;
-        <V>(selectState: (state: V) => EntityState<T, Id>, options?: GetSelectorsOptions): EntitySelectors<T, V, Id>;
-    };
-};
-export {};

+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/unsorted_state_adapter.d.ts

@@ -1,2 +0,0 @@
-import type { EntityStateAdapter, IdSelector, EntityId } from './models';
-export declare function createUnsortedStateAdapter<T, Id extends EntityId>(selectId: IdSelector<T, Id>): EntityStateAdapter<T, Id>;

+ 0 - 4
react/study8/proect/node_modules/@reduxjs/toolkit/dist/entities/utils.d.ts

@@ -1,4 +0,0 @@
-import type { IdSelector, Update, EntityId, DraftableEntityState } from './models';
-export declare function selectIdValue<T, Id extends EntityId>(entity: T, selectId: IdSelector<T, Id>): Id;
-export declare function ensureEntitiesArray<T, Id extends EntityId>(entities: readonly T[] | Record<Id, T>): readonly T[];
-export declare function splitAddedUpdatedEntities<T, Id extends EntityId>(newEntities: readonly T[] | Record<Id, T>, selectId: IdSelector<T, Id>, state: DraftableEntityState<T, Id>): [T[], Update<T, Id>[]];

+ 0 - 8
react/study8/proect/node_modules/@reduxjs/toolkit/dist/formatProdErrorMessage.d.ts

@@ -1,8 +0,0 @@
-/**
- * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
- *
- * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
- * during build.
- * @param {number} code
- */
-export declare function formatProdErrorMessage(code: number): string;

+ 0 - 15
react/study8/proect/node_modules/@reduxjs/toolkit/dist/getDefaultEnhancers.d.ts

@@ -1,15 +0,0 @@
-import type { StoreEnhancer } from 'redux';
-import type { AutoBatchOptions } from './autoBatchEnhancer';
-import { Tuple } from './utils';
-import type { Middlewares } from './configureStore';
-import type { ExtractDispatchExtensions } from './tsHelpers';
-type GetDefaultEnhancersOptions = {
-    autoBatch?: boolean | AutoBatchOptions;
-};
-export type GetDefaultEnhancers<M extends Middlewares<any>> = (options?: GetDefaultEnhancersOptions) => Tuple<[StoreEnhancer<{
-    dispatch: ExtractDispatchExtensions<M>;
-}>]>;
-export declare const buildGetDefaultEnhancers: <M extends Middlewares<any>>(middlewareEnhancer: StoreEnhancer<{
-    dispatch: ExtractDispatchExtensions<M>;
-}>) => GetDefaultEnhancers<M>;
-export {};

+ 0 - 31
react/study8/proect/node_modules/@reduxjs/toolkit/dist/getDefaultMiddleware.d.ts

@@ -1,31 +0,0 @@
-import type { UnknownAction } from 'redux';
-import type { ThunkMiddleware } from 'redux-thunk';
-import type { ActionCreatorInvariantMiddlewareOptions } from './actionCreatorInvariantMiddleware';
-import type { ImmutableStateInvariantMiddlewareOptions } from './immutableStateInvariantMiddleware';
-import type { SerializableStateInvariantMiddlewareOptions } from './serializableStateInvariantMiddleware';
-import type { ExcludeFromTuple } from './tsHelpers';
-import { Tuple } from './utils';
-interface ThunkOptions<E = any> {
-    extraArgument: E;
-}
-interface GetDefaultMiddlewareOptions {
-    thunk?: boolean | ThunkOptions;
-    immutableCheck?: boolean | ImmutableStateInvariantMiddlewareOptions;
-    serializableCheck?: boolean | SerializableStateInvariantMiddlewareOptions;
-    actionCreatorCheck?: boolean | ActionCreatorInvariantMiddlewareOptions;
-}
-export type ThunkMiddlewareFor<S, O extends GetDefaultMiddlewareOptions = {}> = O extends {
-    thunk: false;
-} ? never : O extends {
-    thunk: {
-        extraArgument: infer E;
-    };
-} ? ThunkMiddleware<S, UnknownAction, E> : ThunkMiddleware<S, UnknownAction>;
-export type GetDefaultMiddleware<S = any> = <O extends GetDefaultMiddlewareOptions = {
-    thunk: true;
-    immutableCheck: true;
-    serializableCheck: true;
-    actionCreatorCheck: true;
-}>(options?: O) => Tuple<ExcludeFromTuple<[ThunkMiddlewareFor<S, O>], never>>;
-export declare const buildGetDefaultMiddleware: <S = any>() => GetDefaultMiddleware<S>;
-export {};

+ 0 - 48
react/study8/proect/node_modules/@reduxjs/toolkit/dist/immutableStateInvariantMiddleware.d.ts

@@ -1,48 +0,0 @@
-import type { Middleware } from 'redux';
-/**
- * The default `isImmutable` function.
- *
- * @public
- */
-export declare function isImmutableDefault(value: unknown): boolean;
-export declare function trackForMutations(isImmutable: IsImmutableFunc, ignorePaths: IgnorePaths | undefined, obj: any): {
-    detectMutations(): {
-        wasMutated: boolean;
-        path?: string | undefined;
-    };
-};
-type IgnorePaths = readonly (string | RegExp)[];
-type IsImmutableFunc = (value: any) => boolean;
-/**
- * Options for `createImmutableStateInvariantMiddleware()`.
- *
- * @public
- */
-export interface ImmutableStateInvariantMiddlewareOptions {
-    /**
-      Callback function to check if a value is considered to be immutable.
-      This function is applied recursively to every value contained in the state.
-      The default implementation will return true for primitive types
-      (like numbers, strings, booleans, null and undefined).
-     */
-    isImmutable?: IsImmutableFunc;
-    /**
-      An array of dot-separated path strings that match named nodes from
-      the root state to ignore when checking for immutability.
-      Defaults to undefined
-     */
-    ignoredPaths?: IgnorePaths;
-    /** Print a warning if checks take longer than N ms. Default: 32ms */
-    warnAfter?: number;
-}
-/**
- * Creates a middleware that checks whether any state was mutated in between
- * dispatches or during a dispatch. If any mutations are detected, an error is
- * thrown.
- *
- * @param options Middleware options.
- *
- * @public
- */
-export declare function createImmutableStateInvariantMiddleware(options?: ImmutableStateInvariantMiddlewareOptions): Middleware;
-export {};

+ 0 - 42
react/study8/proect/node_modules/@reduxjs/toolkit/dist/index.d.ts

@@ -1,42 +0,0 @@
-export * from 'redux';
-export { produce as createNextState, current, freeze, original, isDraft, } from 'immer';
-export type { Draft } from 'immer';
-export { createSelector, createSelectorCreator, lruMemoize, weakMapMemoize, } from 'reselect';
-export type { Selector, OutputSelector } from 'reselect';
-export { createDraftSafeSelector, createDraftSafeSelectorCreator, } from './createDraftSafeSelector';
-export type { ThunkAction, ThunkDispatch, ThunkMiddleware } from 'redux-thunk';
-export { configureStore, } from './configureStore';
-export type { ConfigureStoreOptions, EnhancedStore, } from './configureStore';
-export type { DevToolsEnhancerOptions } from './devtoolsExtension';
-export { createAction, isActionCreator, isFSA as isFluxStandardAction, } from './createAction';
-export type { PayloadAction, PayloadActionCreator, ActionCreatorWithNonInferrablePayload, ActionCreatorWithOptionalPayload, ActionCreatorWithPayload, ActionCreatorWithoutPayload, ActionCreatorWithPreparedPayload, PrepareAction, } from './createAction';
-export { createReducer, } from './createReducer';
-export type { Actions, CaseReducer, CaseReducers, } from './createReducer';
-export { createSlice, buildCreateSlice, asyncThunkCreator, ReducerType, } from './createSlice';
-export type { CreateSliceOptions, Slice, CaseReducerActions, SliceCaseReducers, ValidateSliceCaseReducers, CaseReducerWithPrepare, ReducerCreators, SliceSelectors, } from './createSlice';
-export type { ActionCreatorInvariantMiddlewareOptions } from './actionCreatorInvariantMiddleware';
-export { createActionCreatorInvariantMiddleware } from './actionCreatorInvariantMiddleware';
-export { createImmutableStateInvariantMiddleware, isImmutableDefault, } from './immutableStateInvariantMiddleware';
-export type { ImmutableStateInvariantMiddlewareOptions, } from './immutableStateInvariantMiddleware';
-export { createSerializableStateInvariantMiddleware, findNonSerializableValue, isPlain, } from './serializableStateInvariantMiddleware';
-export type { SerializableStateInvariantMiddlewareOptions, } from './serializableStateInvariantMiddleware';
-export type { ActionReducerMapBuilder, } from './mapBuilders';
-export { Tuple } from './utils';
-export { createEntityAdapter } from './entities/create_adapter';
-export type { EntityState, EntityAdapter, EntitySelectors, EntityStateAdapter, EntityId, Update, IdSelector, Comparer, } from './entities/models';
-export { createAsyncThunk, unwrapResult, miniSerializeError, } from './createAsyncThunk';
-export type { AsyncThunk, AsyncThunkOptions, AsyncThunkAction, AsyncThunkPayloadCreatorReturnValue, AsyncThunkPayloadCreator, SerializedError, } from './createAsyncThunk';
-export { isAllOf, isAnyOf, isPending, isRejected, isFulfilled, isAsyncThunkAction, isRejectedWithValue, } from './matchers';
-export type { ActionMatchingAllOf, ActionMatchingAnyOf, } from './matchers';
-export { nanoid } from './nanoid';
-export type { ListenerEffect, ListenerMiddleware, ListenerEffectAPI, ListenerMiddlewareInstance, CreateListenerMiddlewareOptions, ListenerErrorHandler, TypedStartListening, TypedAddListener, TypedStopListening, TypedRemoveListener, UnsubscribeListener, UnsubscribeListenerOptions, ForkedTaskExecutor, ForkedTask, ForkedTaskAPI, AsyncTaskExecutor, SyncTaskExecutor, TaskCancelled, TaskRejected, TaskResolved, TaskResult, } from './listenerMiddleware/index';
-export type { AnyListenerPredicate } from './listenerMiddleware/types';
-export { createListenerMiddleware, addListener, removeListener, clearAllListeners, TaskAbortError, } from './listenerMiddleware/index';
-export type { DynamicMiddlewareInstance, GetDispatch, GetState, MiddlewareApiConfig, } from './dynamicMiddleware/types';
-export { createDynamicMiddleware } from './dynamicMiddleware/index';
-export { SHOULD_AUTOBATCH, prepareAutoBatched, autoBatchEnhancer, } from './autoBatchEnhancer';
-export type { AutoBatchOptions } from './autoBatchEnhancer';
-export { combineSlices } from './combineSlices';
-export type { WithSlice } from './combineSlices';
-export type { ExtractDispatchExtensions as TSHelpersExtractDispatchExtensions } from './tsHelpers';
-export { formatProdErrorMessage } from './formatProdErrorMessage';

+ 0 - 11
react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/exceptions.d.ts

@@ -1,11 +0,0 @@
-import type { SerializedError } from '@reduxjs/toolkit';
-export declare const taskCancelled: "task-cancelled";
-export declare const taskCompleted: "task-completed";
-export declare const listenerCancelled: "listener-cancelled";
-export declare const listenerCompleted: "listener-completed";
-export declare class TaskAbortError implements SerializedError {
-    code: string | undefined;
-    name: string;
-    message: string;
-    constructor(code: string | undefined);
-}

+ 0 - 23
react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/index.d.ts

@@ -1,23 +0,0 @@
-import type { Action, Dispatch, UnknownAction } from 'redux';
-import type { ThunkDispatch } from 'redux-thunk';
-import type { ListenerMiddlewareInstance, CreateListenerMiddlewareOptions, TypedAddListener, TypedCreateListenerEntry, TypedRemoveListener } from './types';
-export { TaskAbortError } from './exceptions';
-export type { ListenerEffect, ListenerMiddleware, ListenerEffectAPI, ListenerMiddlewareInstance, CreateListenerMiddlewareOptions, ListenerErrorHandler, TypedStartListening, TypedAddListener, TypedStopListening, TypedRemoveListener, UnsubscribeListener, UnsubscribeListenerOptions, ForkedTaskExecutor, ForkedTask, ForkedTaskAPI, AsyncTaskExecutor, SyncTaskExecutor, TaskCancelled, TaskRejected, TaskResolved, TaskResult, } from './types';
-/** Accepts the possible options for creating a listener, and returns a formatted listener entry */
-export declare const createListenerEntry: TypedCreateListenerEntry<unknown>;
-/**
- * @public
- */
-export declare const addListener: TypedAddListener<unknown>;
-/**
- * @public
- */
-export declare const clearAllListeners: import("../createAction").ActionCreatorWithoutPayload<"listenerMiddleware/removeAll">;
-/**
- * @public
- */
-export declare const removeListener: TypedRemoveListener<unknown>;
-/**
- * @public
- */
-export declare function createListenerMiddleware<S = unknown, D extends Dispatch<Action> = ThunkDispatch<S, unknown, UnknownAction>, ExtraArgument = unknown>(middlewareOptions?: CreateListenerMiddlewareOptions<ExtraArgument>): ListenerMiddlewareInstance<S, D, ExtraArgument>;

+ 0 - 37
react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/task.d.ts

@@ -1,37 +0,0 @@
-import type { AbortSignalWithReason, TaskResult } from './types';
-/**
- * Synchronously raises {@link TaskAbortError} if the task tied to the input `signal` has been cancelled.
- * @param signal
- * @param reason
- * @see {TaskAbortError}
- */
-export declare const validateActive: (signal: AbortSignal) => void;
-/**
- * Generates a race between the promise(s) and the AbortSignal
- * This avoids `Promise.race()`-related memory leaks:
- * https://github.com/nodejs/node/issues/17469#issuecomment-349794909
- */
-export declare function raceWithSignal<T>(signal: AbortSignalWithReason<string>, promise: Promise<T>): Promise<T>;
-/**
- * Runs a task and returns promise that resolves to {@link TaskResult}.
- * Second argument is an optional `cleanUp` function that always runs after task.
- *
- * **Note:** `runTask` runs the executor in the next microtask.
- * @returns
- */
-export declare const runTask: <T>(task: () => Promise<T>, cleanUp?: () => void) => Promise<TaskResult<T>>;
-/**
- * Given an input `AbortSignal` and a promise returns another promise that resolves
- * as soon the input promise is provided or rejects as soon as
- * `AbortSignal.abort` is `true`.
- * @param signal
- * @returns
- */
-export declare const createPause: <T>(signal: AbortSignal) => (promise: Promise<T>) => Promise<T>;
-/**
- * Given an input `AbortSignal` and `timeoutMs` returns a promise that resolves
- * after `timeoutMs` or rejects as soon as `AbortSignal.abort` is `true`.
- * @param signal
- * @returns
- */
-export declare const createDelay: (signal: AbortSignal) => (timeoutMs: number) => Promise<void>;

+ 0 - 398
react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/types.d.ts

@@ -1,398 +0,0 @@
-import type { PayloadAction, BaseActionCreator } from '../createAction';
-import type { Dispatch as ReduxDispatch, MiddlewareAPI, Middleware, Action as ReduxAction, UnknownAction } from 'redux';
-import type { ThunkDispatch } from 'redux-thunk';
-import type { TaskAbortError } from './exceptions';
-/**
- * @internal
- * At the time of writing `lib.dom.ts` does not provide `abortSignal.reason`.
- */
-export type AbortSignalWithReason<T> = AbortSignal & {
-    reason?: T;
-};
-/**
- * Types copied from RTK
- */
-/** @internal */
-export interface TypedActionCreator<Type extends string> {
-    (...args: any[]): ReduxAction<Type>;
-    type: Type;
-    match: MatchFunction<any>;
-}
-/** @internal */
-export type AnyListenerPredicate<State> = (action: UnknownAction, currentState: State, originalState: State) => boolean;
-/** @public */
-export type ListenerPredicate<Action extends ReduxAction, State> = (action: UnknownAction, currentState: State, originalState: State) => action is Action;
-/** @public */
-export interface ConditionFunction<State> {
-    (predicate: AnyListenerPredicate<State>, timeout?: number): Promise<boolean>;
-    (predicate: AnyListenerPredicate<State>, timeout?: number): Promise<boolean>;
-    (predicate: () => boolean, timeout?: number): Promise<boolean>;
-}
-/** @internal */
-export type MatchFunction<T> = (v: any) => v is T;
-/** @public */
-export interface ForkedTaskAPI {
-    /**
-     * Returns a promise that resolves when `waitFor` resolves or
-     * rejects if the task or the parent listener has been cancelled or is completed.
-     */
-    pause<W>(waitFor: Promise<W>): Promise<W>;
-    /**
-     * Returns a promise that resolves after `timeoutMs` or
-     * rejects if the task or the parent listener has been cancelled or is completed.
-     * @param timeoutMs
-     */
-    delay(timeoutMs: number): Promise<void>;
-    /**
-     * An abort signal whose `aborted` property is set to `true`
-     * if the task execution is either aborted or completed.
-     * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
-     */
-    signal: AbortSignal;
-}
-/** @public */
-export interface AsyncTaskExecutor<T> {
-    (forkApi: ForkedTaskAPI): Promise<T>;
-}
-/** @public */
-export interface SyncTaskExecutor<T> {
-    (forkApi: ForkedTaskAPI): T;
-}
-/** @public */
-export type ForkedTaskExecutor<T> = AsyncTaskExecutor<T> | SyncTaskExecutor<T>;
-/** @public */
-export type TaskResolved<T> = {
-    readonly status: 'ok';
-    readonly value: T;
-};
-/** @public */
-export type TaskRejected = {
-    readonly status: 'rejected';
-    readonly error: unknown;
-};
-/** @public */
-export type TaskCancelled = {
-    readonly status: 'cancelled';
-    readonly error: TaskAbortError;
-};
-/** @public */
-export type TaskResult<Value> = TaskResolved<Value> | TaskRejected | TaskCancelled;
-/** @public */
-export interface ForkedTask<T> {
-    /**
-     * A promise that resolves when the task is either completed or cancelled or rejects
-     * if parent listener execution is cancelled or completed.
-     *
-     * ### Example
-     * ```ts
-     * const result = await fork(async (forkApi) => Promise.resolve(4)).result
-     *
-     * if(result.status === 'ok') {
-     *   console.log(result.value) // logs 4
-     * }}
-     * ```
-     */
-    result: Promise<TaskResult<T>>;
-    /**
-     * Cancel task if it is in progress or not yet started,
-     * it is noop otherwise.
-     */
-    cancel(): void;
-}
-/** @public */
-export interface ForkOptions {
-    /**
-     * If true, causes the parent task to not be marked as complete until
-     * all autoJoined forks have completed or failed.
-     */
-    autoJoin: boolean;
-}
-/** @public */
-export interface ListenerEffectAPI<State, Dispatch extends ReduxDispatch, ExtraArgument = unknown> extends MiddlewareAPI<Dispatch, State> {
-    /**
-     * Returns the store state as it existed when the action was originally dispatched, _before_ the reducers ran.
-     *
-     * ### Synchronous invocation
-     *
-     * This function can **only** be invoked **synchronously**, it throws error otherwise.
-     *
-     * @example
-     *
-     * ```ts
-     * middleware.startListening({
-     *  predicate: () => true,
-     *  async effect(_, { getOriginalState }) {
-     *    getOriginalState(); // sync: OK!
-     *
-     *    setTimeout(getOriginalState, 0); // async: throws Error
-     *
-     *    await Promise().resolve();
-     *
-     *    getOriginalState() // async: throws Error
-     *  }
-     * })
-     * ```
-     */
-    getOriginalState: () => State;
-    /**
-     * Removes the listener entry from the middleware and prevent future instances of the listener from running.
-     *
-     * It does **not** cancel any active instances.
-     */
-    unsubscribe(): void;
-    /**
-     * It will subscribe a listener if it was previously removed, noop otherwise.
-     */
-    subscribe(): void;
-    /**
-     * Returns a promise that resolves when the input predicate returns `true` or
-     * rejects if the listener has been cancelled or is completed.
-     *
-     * The return value is `true` if the predicate succeeds or `false` if a timeout is provided and expires first.
-     *
-     * ### Example
-     *
-     * ```ts
-     * const updateBy = createAction<number>('counter/updateBy');
-     *
-     * middleware.startListening({
-     *  actionCreator: updateBy,
-     *  async effect(_, { condition }) {
-     *    // wait at most 3s for `updateBy` actions.
-     *    if(await condition(updateBy.match, 3_000)) {
-     *      // `updateBy` has been dispatched twice in less than 3s.
-     *    }
-     *  }
-     * })
-     * ```
-     */
-    condition: ConditionFunction<State>;
-    /**
-     * Returns a promise that resolves when the input predicate returns `true` or
-     * rejects if the listener has been cancelled or is completed.
-     *
-     * The return value is the `[action, currentState, previousState]` combination that the predicate saw as arguments.
-     *
-     * The promise resolves to null if a timeout is provided and expires first,
-     *
-     * ### Example
-     *
-     * ```ts
-     * const updateBy = createAction<number>('counter/updateBy');
-     *
-     * middleware.startListening({
-     *  actionCreator: updateBy,
-     *  async effect(_, { take }) {
-     *    const [{ payload }] =  await take(updateBy.match);
-     *    console.log(payload); // logs 5;
-     *  }
-     * })
-     *
-     * store.dispatch(updateBy(5));
-     * ```
-     */
-    take: TakePattern<State>;
-    /**
-     * Cancels all other running instances of this same listener except for the one that made this call.
-     */
-    cancelActiveListeners: () => void;
-    /**
-     * Cancels the instance of this listener that made this call.
-     */
-    cancel: () => void;
-    /**
-     * Throws a `TaskAbortError` if this listener has been cancelled
-     */
-    throwIfCancelled: () => void;
-    /**
-     * An abort signal whose `aborted` property is set to `true`
-     * if the listener execution is either aborted or completed.
-     * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
-     */
-    signal: AbortSignal;
-    /**
-     * Returns a promise that resolves after `timeoutMs` or
-     * rejects if the listener has been cancelled or is completed.
-     */
-    delay(timeoutMs: number): Promise<void>;
-    /**
-     * Queues in the next microtask the execution of a task.
-     * @param executor
-     * @param options
-     */
-    fork<T>(executor: ForkedTaskExecutor<T>, options?: ForkOptions): ForkedTask<T>;
-    /**
-     * Returns a promise that resolves when `waitFor` resolves or
-     * rejects if the listener has been cancelled or is completed.
-     * @param promise
-     */
-    pause<M>(promise: Promise<M>): Promise<M>;
-    extra: ExtraArgument;
-}
-/** @public */
-export type ListenerEffect<Action extends ReduxAction, State, Dispatch extends ReduxDispatch, ExtraArgument = unknown> = (action: Action, api: ListenerEffectAPI<State, Dispatch, ExtraArgument>) => void | Promise<void>;
-/**
- * @public
- * Additional infos regarding the error raised.
- */
-export interface ListenerErrorInfo {
-    /**
-     * Which function has generated the exception.
-     */
-    raisedBy: 'effect' | 'predicate';
-}
-/**
- * @public
- * Gets notified with synchronous and asynchronous errors raised by `listeners` or `predicates`.
- * @param error The thrown error.
- * @param errorInfo Additional information regarding the thrown error.
- */
-export interface ListenerErrorHandler {
-    (error: unknown, errorInfo: ListenerErrorInfo): void;
-}
-/** @public */
-export interface CreateListenerMiddlewareOptions<ExtraArgument = unknown> {
-    extra?: ExtraArgument;
-    /**
-     * Receives synchronous errors that are raised by `listener` and `listenerOption.predicate`.
-     */
-    onError?: ListenerErrorHandler;
-}
-/** @public */
-export type ListenerMiddleware<State = unknown, Dispatch extends ThunkDispatch<State, unknown, ReduxAction> = ThunkDispatch<State, unknown, UnknownAction>, ExtraArgument = unknown> = Middleware<{
-    (action: ReduxAction<'listenerMiddleware/add'>): UnsubscribeListener;
-}, State, Dispatch>;
-/** @public */
-export interface ListenerMiddlewareInstance<State = unknown, Dispatch extends ThunkDispatch<State, unknown, ReduxAction> = ThunkDispatch<State, unknown, UnknownAction>, ExtraArgument = unknown> {
-    middleware: ListenerMiddleware<State, Dispatch, ExtraArgument>;
-    startListening: AddListenerOverloads<UnsubscribeListener, State, Dispatch, ExtraArgument>;
-    stopListening: RemoveListenerOverloads<State, Dispatch>;
-    /**
-     * Unsubscribes all listeners, cancels running listeners and tasks.
-     */
-    clearListeners: () => void;
-}
-/**
- * API Function Overloads
- */
-/** @public */
-export type TakePatternOutputWithoutTimeout<State, Predicate extends AnyListenerPredicate<State>> = Predicate extends MatchFunction<infer Action> ? Promise<[Action, State, State]> : Promise<[UnknownAction, State, State]>;
-/** @public */
-export type TakePatternOutputWithTimeout<State, Predicate extends AnyListenerPredicate<State>> = Predicate extends MatchFunction<infer Action> ? Promise<[Action, State, State] | null> : Promise<[UnknownAction, State, State] | null>;
-/** @public */
-export interface TakePattern<State> {
-    <Predicate extends AnyListenerPredicate<State>>(predicate: Predicate): TakePatternOutputWithoutTimeout<State, Predicate>;
-    <Predicate extends AnyListenerPredicate<State>>(predicate: Predicate, timeout: number): TakePatternOutputWithTimeout<State, Predicate>;
-    <Predicate extends AnyListenerPredicate<State>>(predicate: Predicate, timeout?: number | undefined): TakePatternOutputWithTimeout<State, Predicate>;
-}
-/** @public */
-export interface UnsubscribeListenerOptions {
-    cancelActive?: true;
-}
-/** @public */
-export type UnsubscribeListener = (unsubscribeOptions?: UnsubscribeListenerOptions) => void;
-/**
- * @public
- * The possible overloads and options for defining a listener. The return type of each function is specified as a generic arg, so the overloads can be reused for multiple different functions
- */
-export interface AddListenerOverloads<Return, State = unknown, Dispatch extends ReduxDispatch = ThunkDispatch<State, unknown, UnknownAction>, ExtraArgument = unknown, AdditionalOptions = unknown> {
-    /** Accepts a "listener predicate" that is also a TS type predicate for the action*/
-    <MA extends UnknownAction, LP extends ListenerPredicate<MA, State>>(options: {
-        actionCreator?: never;
-        type?: never;
-        matcher?: never;
-        predicate: LP;
-        effect: ListenerEffect<ListenerPredicateGuardedActionType<LP>, State, Dispatch, ExtraArgument>;
-    } & AdditionalOptions): Return;
-    /** Accepts an RTK action creator, like `incrementByAmount` */
-    <C extends TypedActionCreator<any>>(options: {
-        actionCreator: C;
-        type?: never;
-        matcher?: never;
-        predicate?: never;
-        effect: ListenerEffect<ReturnType<C>, State, Dispatch, ExtraArgument>;
-    } & AdditionalOptions): Return;
-    /** Accepts a specific action type string */
-    <T extends string>(options: {
-        actionCreator?: never;
-        type: T;
-        matcher?: never;
-        predicate?: never;
-        effect: ListenerEffect<ReduxAction<T>, State, Dispatch, ExtraArgument>;
-    } & AdditionalOptions): Return;
-    /** Accepts an RTK matcher function, such as `incrementByAmount.match` */
-    <M extends MatchFunction<UnknownAction>>(options: {
-        actionCreator?: never;
-        type?: never;
-        matcher: M;
-        predicate?: never;
-        effect: ListenerEffect<GuardedType<M>, State, Dispatch, ExtraArgument>;
-    } & AdditionalOptions): Return;
-    /** Accepts a "listener predicate" that just returns a boolean, no type assertion */
-    <LP extends AnyListenerPredicate<State>>(options: {
-        actionCreator?: never;
-        type?: never;
-        matcher?: never;
-        predicate: LP;
-        effect: ListenerEffect<UnknownAction, State, Dispatch, ExtraArgument>;
-    } & AdditionalOptions): Return;
-}
-/** @public */
-export type RemoveListenerOverloads<State = unknown, Dispatch extends ReduxDispatch = ThunkDispatch<State, unknown, UnknownAction>> = AddListenerOverloads<boolean, State, Dispatch, any, UnsubscribeListenerOptions>;
-/** @public */
-export interface RemoveListenerAction<Action extends UnknownAction, State, Dispatch extends ReduxDispatch> {
-    type: 'listenerMiddleware/remove';
-    payload: {
-        type: string;
-        listener: ListenerEffect<Action, State, Dispatch>;
-    };
-}
-/**
- * @public
- * A "pre-typed" version of `addListenerAction`, so the listener args are well-typed */
-export type TypedAddListener<State, Dispatch extends ReduxDispatch = ThunkDispatch<State, unknown, UnknownAction>, ExtraArgument = unknown, Payload = ListenerEntry<State, Dispatch>, T extends string = 'listenerMiddleware/add'> = BaseActionCreator<Payload, T> & AddListenerOverloads<PayloadAction<Payload, T>, State, Dispatch, ExtraArgument>;
-/**
- * @public
- * A "pre-typed" version of `removeListenerAction`, so the listener args are well-typed */
-export type TypedRemoveListener<State, Dispatch extends ReduxDispatch = ThunkDispatch<State, unknown, UnknownAction>, Payload = ListenerEntry<State, Dispatch>, T extends string = 'listenerMiddleware/remove'> = BaseActionCreator<Payload, T> & AddListenerOverloads<PayloadAction<Payload, T>, State, Dispatch, any, UnsubscribeListenerOptions>;
-/**
- * @public
- * A "pre-typed" version of `middleware.startListening`, so the listener args are well-typed */
-export type TypedStartListening<State, Dispatch extends ReduxDispatch = ThunkDispatch<State, unknown, UnknownAction>, ExtraArgument = unknown> = AddListenerOverloads<UnsubscribeListener, State, Dispatch, ExtraArgument>;
-/** @public
- * A "pre-typed" version of `middleware.stopListening`, so the listener args are well-typed */
-export type TypedStopListening<State, Dispatch extends ReduxDispatch = ThunkDispatch<State, unknown, UnknownAction>> = RemoveListenerOverloads<State, Dispatch>;
-/** @public
- * A "pre-typed" version of `createListenerEntry`, so the listener args are well-typed */
-export type TypedCreateListenerEntry<State, Dispatch extends ReduxDispatch = ThunkDispatch<State, unknown, UnknownAction>> = AddListenerOverloads<ListenerEntry<State, Dispatch>, State, Dispatch>;
-/**
- * Internal Types
- */
-/** @internal An single listener entry */
-export type ListenerEntry<State = unknown, Dispatch extends ReduxDispatch = ReduxDispatch> = {
-    id: string;
-    effect: ListenerEffect<any, State, Dispatch>;
-    unsubscribe: () => void;
-    pending: Set<AbortController>;
-    type?: string;
-    predicate: ListenerPredicate<UnknownAction, State>;
-};
-/**
- * @internal
- * A shorthand form of the accepted args, solely so that `createListenerEntry` has validly-typed conditional logic when checking the options contents
- */
-export type FallbackAddListenerOptions = {
-    actionCreator?: TypedActionCreator<string>;
-    type?: string;
-    matcher?: MatchFunction<any>;
-    predicate?: ListenerPredicate<any, any>;
-} & {
-    effect: ListenerEffect<any, any, any>;
-};
-/**
- * Utility Types
- */
-/** @public */
-export type GuardedType<T> = T extends (x: any, ...args: any[]) => x is infer T ? T : never;
-/** @public */
-export type ListenerPredicateGuardedActionType<T> = T extends ListenerPredicate<infer Action, any> ? Action : never;

+ 0 - 15
react/study8/proect/node_modules/@reduxjs/toolkit/dist/listenerMiddleware/utils.d.ts

@@ -1,15 +0,0 @@
-export declare const assertFunction: (func: unknown, expected: string) => asserts func is (...args: unknown[]) => unknown;
-export declare const noop: () => void;
-export declare const catchRejection: <T>(promise: Promise<T>, onError?: () => void) => Promise<T>;
-export declare const addAbortSignalListener: (abortSignal: AbortSignal, callback: (evt: Event) => void) => () => void;
-/**
- * Calls `abortController.abort(reason)` and patches `signal.reason`.
- * if it is not supported.
- *
- * At the time of writing `signal.reason` is available in FF chrome, edge node 17 and deno.
- * @param abortController
- * @param reason
- * @returns
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/reason
- */
-export declare const abortControllerWithReason: <T>(abortController: AbortController, reason: T) => void;

+ 0 - 112
react/study8/proect/node_modules/@reduxjs/toolkit/dist/mapBuilders.d.ts

@@ -1,112 +0,0 @@
-import type { Action } from 'redux';
-import type { CaseReducer, CaseReducers, ActionMatcherDescriptionCollection } from './createReducer';
-import type { TypeGuard } from './tsHelpers';
-export interface TypedActionCreator<Type extends string> {
-    (...args: any[]): Action<Type>;
-    type: Type;
-}
-/**
- * A builder for an action <-> reducer map.
- *
- * @public
- */
-export interface ActionReducerMapBuilder<State> {
-    /**
-     * Adds a case reducer to handle a single exact action type.
-     * @remarks
-     * All calls to `builder.addCase` must come before any calls to `builder.addMatcher` or `builder.addDefaultCase`.
-     * @param actionCreator - Either a plain action type string, or an action creator generated by [`createAction`](./createAction) that can be used to determine the action type.
-     * @param reducer - The actual case reducer function.
-     */
-    addCase<ActionCreator extends TypedActionCreator<string>>(actionCreator: ActionCreator, reducer: CaseReducer<State, ReturnType<ActionCreator>>): ActionReducerMapBuilder<State>;
-    /**
-     * Adds a case reducer to handle a single exact action type.
-     * @remarks
-     * All calls to `builder.addCase` must come before any calls to `builder.addMatcher` or `builder.addDefaultCase`.
-     * @param actionCreator - Either a plain action type string, or an action creator generated by [`createAction`](./createAction) that can be used to determine the action type.
-     * @param reducer - The actual case reducer function.
-     */
-    addCase<Type extends string, A extends Action<Type>>(type: Type, reducer: CaseReducer<State, A>): ActionReducerMapBuilder<State>;
-    /**
-     * Allows you to match your incoming actions against your own filter function instead of only the `action.type` property.
-     * @remarks
-     * If multiple matcher reducers match, all of them will be executed in the order
-     * they were defined in - even if a case reducer already matched.
-     * All calls to `builder.addMatcher` must come after any calls to `builder.addCase` and before any calls to `builder.addDefaultCase`.
-     * @param matcher - A matcher function. In TypeScript, this should be a [type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates)
-     *   function
-     * @param reducer - The actual case reducer function.
-     *
-     * @example
-  ```ts
-  import {
-    createAction,
-    createReducer,
-    AsyncThunk,
-    UnknownAction,
-  } from "@reduxjs/toolkit";
-  
-  type GenericAsyncThunk = AsyncThunk<unknown, unknown, any>;
-  
-  type PendingAction = ReturnType<GenericAsyncThunk["pending"]>;
-  type RejectedAction = ReturnType<GenericAsyncThunk["rejected"]>;
-  type FulfilledAction = ReturnType<GenericAsyncThunk["fulfilled"]>;
-  
-  const initialState: Record<string, string> = {};
-  const resetAction = createAction("reset-tracked-loading-state");
-  
-  function isPendingAction(action: UnknownAction): action is PendingAction {
-    return typeof action.type === "string" && action.type.endsWith("/pending");
-  }
-  
-  const reducer = createReducer(initialState, (builder) => {
-    builder
-      .addCase(resetAction, () => initialState)
-      // matcher can be defined outside as a type predicate function
-      .addMatcher(isPendingAction, (state, action) => {
-        state[action.meta.requestId] = "pending";
-      })
-      .addMatcher(
-        // matcher can be defined inline as a type predicate function
-        (action): action is RejectedAction => action.type.endsWith("/rejected"),
-        (state, action) => {
-          state[action.meta.requestId] = "rejected";
-        }
-      )
-      // matcher can just return boolean and the matcher can receive a generic argument
-      .addMatcher<FulfilledAction>(
-        (action) => action.type.endsWith("/fulfilled"),
-        (state, action) => {
-          state[action.meta.requestId] = "fulfilled";
-        }
-      );
-  });
-  ```
-     */
-    addMatcher<A>(matcher: TypeGuard<A> | ((action: any) => boolean), reducer: CaseReducer<State, A extends Action ? A : A & Action>): Omit<ActionReducerMapBuilder<State>, 'addCase'>;
-    /**
-     * Adds a "default case" reducer that is executed if no case reducer and no matcher
-     * reducer was executed for this action.
-     * @param reducer - The fallback "default case" reducer function.
-     *
-     * @example
-  ```ts
-  import { createReducer } from '@reduxjs/toolkit'
-  const initialState = { otherActions: 0 }
-  const reducer = createReducer(initialState, builder => {
-    builder
-      // .addCase(...)
-      // .addMatcher(...)
-      .addDefaultCase((state, action) => {
-        state.otherActions++
-      })
-  })
-  ```
-     */
-    addDefaultCase(reducer: CaseReducer<State, Action>): {};
-}
-export declare function executeReducerBuilderCallback<S>(builderCallback: (builder: ActionReducerMapBuilder<S>) => void): [
-    CaseReducers<S, any>,
-    ActionMatcherDescriptionCollection<S>,
-    CaseReducer<S, Action> | undefined
-];

+ 0 - 171
react/study8/proect/node_modules/@reduxjs/toolkit/dist/matchers.d.ts

@@ -1,171 +0,0 @@
-import type { ActionFromMatcher, Matcher, UnionToIntersection } from './tsHelpers';
-import type { AsyncThunk, AsyncThunkFulfilledActionCreator, AsyncThunkPendingActionCreator, AsyncThunkRejectedActionCreator } from './createAsyncThunk';
-/** @public */
-export type ActionMatchingAnyOf<Matchers extends [...Matcher<any>[]]> = ActionFromMatcher<Matchers[number]>;
-/** @public */
-export type ActionMatchingAllOf<Matchers extends [...Matcher<any>[]]> = UnionToIntersection<ActionMatchingAnyOf<Matchers>>;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action matches any one of the supplied type guards or action
- * creators.
- *
- * @param matchers The type guards or action creators to match against.
- *
- * @public
- */
-export declare function isAnyOf<Matchers extends [...Matcher<any>[]]>(...matchers: Matchers): (action: any) => action is ActionFromMatcher<Matchers[number]>;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action matches all of the supplied type guards or action
- * creators.
- *
- * @param matchers The type guards or action creators to match against.
- *
- * @public
- */
-export declare function isAllOf<Matchers extends [...Matcher<any>[]]>(...matchers: Matchers): (action: any) => action is UnionToIntersection<ActionFromMatcher<Matchers[number]>>;
-/**
- * @param action A redux action
- * @param validStatus An array of valid meta.requestStatus values
- *
- * @internal
- */
-export declare function hasExpectedRequestMetadata(action: any, validStatus: readonly string[]): boolean;
-export type UnknownAsyncThunkPendingAction = ReturnType<AsyncThunkPendingActionCreator<unknown>>;
-export type PendingActionFromAsyncThunk<T extends AnyAsyncThunk> = ActionFromMatcher<T['pending']>;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action was created by an async thunk action creator, and that
- * the action is pending.
- *
- * @public
- */
-export declare function isPending(): (action: any) => action is UnknownAsyncThunkPendingAction;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action belongs to one of the provided async thunk action creators,
- * and that the action is pending.
- *
- * @param asyncThunks (optional) The async thunk action creators to match against.
- *
- * @public
- */
-export declare function isPending<AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]]>(...asyncThunks: AsyncThunks): (action: any) => action is PendingActionFromAsyncThunk<AsyncThunks[number]>;
-/**
- * Tests if `action` is a pending thunk action
- * @public
- */
-export declare function isPending(action: any): action is UnknownAsyncThunkPendingAction;
-export type UnknownAsyncThunkRejectedAction = ReturnType<AsyncThunkRejectedActionCreator<unknown, unknown>>;
-export type RejectedActionFromAsyncThunk<T extends AnyAsyncThunk> = ActionFromMatcher<T['rejected']>;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action was created by an async thunk action creator, and that
- * the action is rejected.
- *
- * @public
- */
-export declare function isRejected(): (action: any) => action is UnknownAsyncThunkRejectedAction;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action belongs to one of the provided async thunk action creators,
- * and that the action is rejected.
- *
- * @param asyncThunks (optional) The async thunk action creators to match against.
- *
- * @public
- */
-export declare function isRejected<AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]]>(...asyncThunks: AsyncThunks): (action: any) => action is RejectedActionFromAsyncThunk<AsyncThunks[number]>;
-/**
- * Tests if `action` is a rejected thunk action
- * @public
- */
-export declare function isRejected(action: any): action is UnknownAsyncThunkRejectedAction;
-export type UnknownAsyncThunkRejectedWithValueAction = ReturnType<AsyncThunkRejectedActionCreator<unknown, unknown>>;
-export type RejectedWithValueActionFromAsyncThunk<T extends AnyAsyncThunk> = ActionFromMatcher<T['rejected']> & (T extends AsyncThunk<any, any, {
-    rejectValue: infer RejectedValue;
-}> ? {
-    payload: RejectedValue;
-} : unknown);
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action was created by an async thunk action creator, and that
- * the action is rejected with value.
- *
- * @public
- */
-export declare function isRejectedWithValue(): (action: any) => action is UnknownAsyncThunkRejectedAction;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action belongs to one of the provided async thunk action creators,
- * and that the action is rejected with value.
- *
- * @param asyncThunks (optional) The async thunk action creators to match against.
- *
- * @public
- */
-export declare function isRejectedWithValue<AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]]>(...asyncThunks: AsyncThunks): (action: any) => action is RejectedWithValueActionFromAsyncThunk<AsyncThunks[number]>;
-/**
- * Tests if `action` is a rejected thunk action with value
- * @public
- */
-export declare function isRejectedWithValue(action: any): action is UnknownAsyncThunkRejectedAction;
-export type UnknownAsyncThunkFulfilledAction = ReturnType<AsyncThunkFulfilledActionCreator<unknown, unknown>>;
-export type FulfilledActionFromAsyncThunk<T extends AnyAsyncThunk> = ActionFromMatcher<T['fulfilled']>;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action was created by an async thunk action creator, and that
- * the action is fulfilled.
- *
- * @public
- */
-export declare function isFulfilled(): (action: any) => action is UnknownAsyncThunkFulfilledAction;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action belongs to one of the provided async thunk action creators,
- * and that the action is fulfilled.
- *
- * @param asyncThunks (optional) The async thunk action creators to match against.
- *
- * @public
- */
-export declare function isFulfilled<AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]]>(...asyncThunks: AsyncThunks): (action: any) => action is FulfilledActionFromAsyncThunk<AsyncThunks[number]>;
-/**
- * Tests if `action` is a fulfilled thunk action
- * @public
- */
-export declare function isFulfilled(action: any): action is UnknownAsyncThunkFulfilledAction;
-export type UnknownAsyncThunkAction = UnknownAsyncThunkPendingAction | UnknownAsyncThunkRejectedAction | UnknownAsyncThunkFulfilledAction;
-export type AnyAsyncThunk = {
-    pending: {
-        match: (action: any) => action is any;
-    };
-    fulfilled: {
-        match: (action: any) => action is any;
-    };
-    rejected: {
-        match: (action: any) => action is any;
-    };
-};
-export type ActionsFromAsyncThunk<T extends AnyAsyncThunk> = ActionFromMatcher<T['pending']> | ActionFromMatcher<T['fulfilled']> | ActionFromMatcher<T['rejected']>;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action was created by an async thunk action creator.
- *
- * @public
- */
-export declare function isAsyncThunkAction(): (action: any) => action is UnknownAsyncThunkAction;
-/**
- * A higher-order function that returns a function that may be used to check
- * whether an action belongs to one of the provided async thunk action creators.
- *
- * @param asyncThunks (optional) The async thunk action creators to match against.
- *
- * @public
- */
-export declare function isAsyncThunkAction<AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]]>(...asyncThunks: AsyncThunks): (action: any) => action is ActionsFromAsyncThunk<AsyncThunks[number]>;
-/**
- * Tests if `action` is a thunk action
- * @public
- */
-export declare function isAsyncThunkAction(action: any): action is UnknownAsyncThunkAction;

+ 0 - 5
react/study8/proect/node_modules/@reduxjs/toolkit/dist/nanoid.d.ts

@@ -1,5 +0,0 @@
-/**
- *
- * @public
- */
-export declare let nanoid: (size?: number) => string;

+ 0 - 5
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/HandledError.d.ts

@@ -1,5 +0,0 @@
-export declare class HandledError {
-    readonly value: any;
-    readonly meta: any;
-    constructor(value: any, meta?: any);
-}

+ 0 - 41
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/apiTypes.d.ts

@@ -1,41 +0,0 @@
-import type { EndpointDefinitions, EndpointBuilder, EndpointDefinition, UpdateDefinitions } from './endpointDefinitions';
-import type { UnionToIntersection, NoInfer, WithRequiredProp } from './tsHelpers';
-import type { CoreModule } from './core/module';
-import type { CreateApiOptions } from './createApi';
-import type { BaseQueryFn } from './baseQueryTypes';
-import type { CombinedState } from './core/apiState';
-import type { UnknownAction } from '@reduxjs/toolkit';
-export interface ApiModules<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string> {
-}
-export type ModuleName = keyof ApiModules<any, any, any, any>;
-export type Module<Name extends ModuleName> = {
-    name: Name;
-    init<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string>(api: Api<BaseQuery, EndpointDefinitions, ReducerPath, TagTypes, ModuleName>, options: WithRequiredProp<CreateApiOptions<BaseQuery, Definitions, ReducerPath, TagTypes>, 'reducerPath' | 'serializeQueryArgs' | 'keepUnusedDataFor' | 'refetchOnMountOrArgChange' | 'refetchOnFocus' | 'refetchOnReconnect' | 'invalidationBehavior' | 'tagTypes'>, context: ApiContext<Definitions>): {
-        injectEndpoint(endpointName: string, definition: EndpointDefinition<any, any, any, any>): void;
-    };
-};
-export interface ApiContext<Definitions extends EndpointDefinitions> {
-    apiUid: string;
-    endpointDefinitions: Definitions;
-    batch(cb: () => void): void;
-    extractRehydrationInfo: (action: UnknownAction) => CombinedState<any, any, any> | undefined;
-    hasRehydrationInfo: (action: UnknownAction) => boolean;
-}
-export type Api<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string, Enhancers extends ModuleName = CoreModule> = UnionToIntersection<ApiModules<BaseQuery, Definitions, ReducerPath, TagTypes>[Enhancers]> & {
-    /**
-     * A function to inject the endpoints into the original API, but also give you that same API with correct types for these endpoints back. Useful with code-splitting.
-     */
-    injectEndpoints<NewDefinitions extends EndpointDefinitions>(_: {
-        endpoints: (build: EndpointBuilder<BaseQuery, TagTypes, ReducerPath>) => NewDefinitions;
-        overrideExisting?: boolean;
-    }): Api<BaseQuery, Definitions & NewDefinitions, ReducerPath, TagTypes, Enhancers>;
-    /**
-     *A function to enhance a generated API with additional information. Useful with code-generation.
-     */
-    enhanceEndpoints<NewTagTypes extends string = never, NewDefinitions extends EndpointDefinitions = never>(_: {
-        addTagTypes?: readonly NewTagTypes[];
-        endpoints?: UpdateDefinitions<Definitions, TagTypes | NoInfer<NewTagTypes>, NewDefinitions> extends infer NewDefinitions ? {
-            [K in keyof NewDefinitions]?: Partial<NewDefinitions[K]> | ((definition: NewDefinitions[K]) => void);
-        } : never;
-    }): Api<BaseQuery, UpdateDefinitions<Definitions, TagTypes | NewTagTypes, NewDefinitions>, ReducerPath, TagTypes | NewTagTypes, Enhancers>;
-};

+ 0 - 40
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/baseQueryTypes.d.ts

@@ -1,40 +0,0 @@
-import type { ThunkDispatch } from '@reduxjs/toolkit';
-import type { MaybePromise, UnwrapPromise } from './tsHelpers';
-export interface BaseQueryApi {
-    signal: AbortSignal;
-    abort: (reason?: string) => void;
-    dispatch: ThunkDispatch<any, any, any>;
-    getState: () => unknown;
-    extra: unknown;
-    endpoint: string;
-    type: 'query' | 'mutation';
-    /**
-     * Only available for queries: indicates if a query has been forced,
-     * i.e. it would have been fetched even if there would already be a cache entry
-     * (this does not mean that there is already a cache entry though!)
-     *
-     * This can be used to for example add a `Cache-Control: no-cache` header for
-     * invalidated queries.
-     */
-    forced?: boolean;
-}
-export type QueryReturnValue<T = unknown, E = unknown, M = unknown> = {
-    error: E;
-    data?: undefined;
-    meta?: M;
-} | {
-    error?: undefined;
-    data: T;
-    meta?: M;
-};
-export type BaseQueryFn<Args = any, Result = unknown, Error = unknown, DefinitionExtraOptions = {}, Meta = {}> = (args: Args, api: BaseQueryApi, extraOptions: DefinitionExtraOptions) => MaybePromise<QueryReturnValue<Result, Error, Meta>>;
-export type BaseQueryEnhancer<AdditionalArgs = unknown, AdditionalDefinitionExtraOptions = unknown, Config = void> = <BaseQuery extends BaseQueryFn>(baseQuery: BaseQuery, config: Config) => BaseQueryFn<BaseQueryArg<BaseQuery> & AdditionalArgs, BaseQueryResult<BaseQuery>, BaseQueryError<BaseQuery>, BaseQueryExtraOptions<BaseQuery> & AdditionalDefinitionExtraOptions, NonNullable<BaseQueryMeta<BaseQuery>>>;
-export type BaseQueryResult<BaseQuery extends BaseQueryFn> = UnwrapPromise<ReturnType<BaseQuery>> extends infer Unwrapped ? Unwrapped extends {
-    data: any;
-} ? Unwrapped['data'] : never : never;
-export type BaseQueryMeta<BaseQuery extends BaseQueryFn> = UnwrapPromise<ReturnType<BaseQuery>>['meta'];
-export type BaseQueryError<BaseQuery extends BaseQueryFn> = Exclude<UnwrapPromise<ReturnType<BaseQuery>>, {
-    error?: undefined;
-}>['error'];
-export type BaseQueryArg<T extends (arg: any, ...args: any[]) => any> = T extends (arg: infer A, ...args: any[]) => any ? A : any;
-export type BaseQueryExtraOptions<BaseQuery extends BaseQueryFn> = Parameters<BaseQuery>[2];

+ 0 - 6
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/index.js

@@ -1,6 +0,0 @@
-'use strict'
-if (process.env.NODE_ENV === 'production') {
-  module.exports = require('./rtk-query.production.min.cjs')
-} else {
-  module.exports = require('./rtk-query.development.cjs')
-}

+ 0 - 2383
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.development.cjs

@@ -1,2383 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
-  for (var name in all)
-    __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
-  if (from && typeof from === "object" || typeof from === "function") {
-    for (let key of __getOwnPropNames(from))
-      if (!__hasOwnProp.call(to, key) && key !== except)
-        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
-  }
-  return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-
-// src/query/index.ts
-var query_exports = {};
-__export(query_exports, {
-  QueryStatus: () => QueryStatus,
-  buildCreateApi: () => buildCreateApi,
-  copyWithStructuralSharing: () => copyWithStructuralSharing,
-  coreModule: () => coreModule,
-  coreModuleName: () => coreModuleName,
-  createApi: () => createApi,
-  defaultSerializeQueryArgs: () => defaultSerializeQueryArgs,
-  fakeBaseQuery: () => fakeBaseQuery,
-  fetchBaseQuery: () => fetchBaseQuery,
-  retry: () => retry,
-  setupListeners: () => setupListeners,
-  skipToken: () => skipToken
-});
-module.exports = __toCommonJS(query_exports);
-
-// src/query/core/apiState.ts
-var QueryStatus = /* @__PURE__ */ ((QueryStatus2) => {
-  QueryStatus2["uninitialized"] = "uninitialized";
-  QueryStatus2["pending"] = "pending";
-  QueryStatus2["fulfilled"] = "fulfilled";
-  QueryStatus2["rejected"] = "rejected";
-  return QueryStatus2;
-})(QueryStatus || {});
-function getRequestStatusFlags(status) {
-  return {
-    status,
-    isUninitialized: status === "uninitialized" /* uninitialized */,
-    isLoading: status === "pending" /* pending */,
-    isSuccess: status === "fulfilled" /* fulfilled */,
-    isError: status === "rejected" /* rejected */
-  };
-}
-
-// src/query/utils/isAbsoluteUrl.ts
-function isAbsoluteUrl(url) {
-  return new RegExp(`(^|:)//`).test(url);
-}
-
-// src/query/utils/joinUrls.ts
-var withoutTrailingSlash = (url) => url.replace(/\/$/, "");
-var withoutLeadingSlash = (url) => url.replace(/^\//, "");
-function joinUrls(base, url) {
-  if (!base) {
-    return url;
-  }
-  if (!url) {
-    return base;
-  }
-  if (isAbsoluteUrl(url)) {
-    return url;
-  }
-  const delimiter = base.endsWith("/") || !url.startsWith("?") ? "/" : "";
-  base = withoutTrailingSlash(base);
-  url = withoutLeadingSlash(url);
-  return `${base}${delimiter}${url}`;
-}
-
-// src/query/utils/flatten.ts
-var flatten = (arr) => [].concat(...arr);
-
-// src/query/utils/isOnline.ts
-function isOnline() {
-  return typeof navigator === "undefined" ? true : navigator.onLine === void 0 ? true : navigator.onLine;
-}
-
-// src/query/utils/isDocumentVisible.ts
-function isDocumentVisible() {
-  if (typeof document === "undefined") {
-    return true;
-  }
-  return document.visibilityState !== "hidden";
-}
-
-// src/query/core/rtkImports.ts
-var import_toolkit = require("@reduxjs/toolkit");
-
-// src/query/utils/copyWithStructuralSharing.ts
-var isPlainObject2 = import_toolkit.isPlainObject;
-function copyWithStructuralSharing(oldObj, newObj) {
-  if (oldObj === newObj || !(isPlainObject2(oldObj) && isPlainObject2(newObj) || Array.isArray(oldObj) && Array.isArray(newObj))) {
-    return newObj;
-  }
-  const newKeys = Object.keys(newObj);
-  const oldKeys = Object.keys(oldObj);
-  let isSameObject = newKeys.length === oldKeys.length;
-  const mergeObj = Array.isArray(newObj) ? [] : {};
-  for (const key of newKeys) {
-    mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);
-    if (isSameObject)
-      isSameObject = oldObj[key] === mergeObj[key];
-  }
-  return isSameObject ? oldObj : mergeObj;
-}
-
-// src/query/fetchBaseQuery.ts
-var defaultFetchFn = (...args) => fetch(...args);
-var defaultValidateStatus = (response) => response.status >= 200 && response.status <= 299;
-var defaultIsJsonContentType = (headers) => (
-  /*applicat*/
-  /ion\/(vnd\.api\+)?json/.test(headers.get("content-type") || "")
-);
-function stripUndefined(obj) {
-  if (!(0, import_toolkit.isPlainObject)(obj)) {
-    return obj;
-  }
-  const copy = {
-    ...obj
-  };
-  for (const [k, v] of Object.entries(copy)) {
-    if (v === void 0)
-      delete copy[k];
-  }
-  return copy;
-}
-function fetchBaseQuery({
-  baseUrl,
-  prepareHeaders = (x) => x,
-  fetchFn = defaultFetchFn,
-  paramsSerializer,
-  isJsonContentType = defaultIsJsonContentType,
-  jsonContentType = "application/json",
-  jsonReplacer,
-  timeout: defaultTimeout,
-  responseHandler: globalResponseHandler,
-  validateStatus: globalValidateStatus,
-  ...baseFetchOptions
-} = {}) {
-  if (typeof fetch === "undefined" && fetchFn === defaultFetchFn) {
-    console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments.");
-  }
-  return async (arg, api) => {
-    const {
-      signal,
-      getState,
-      extra,
-      endpoint,
-      forced,
-      type
-    } = api;
-    let meta;
-    let {
-      url,
-      headers = new Headers(baseFetchOptions.headers),
-      params = void 0,
-      responseHandler = globalResponseHandler ?? "json",
-      validateStatus = globalValidateStatus ?? defaultValidateStatus,
-      timeout = defaultTimeout,
-      ...rest
-    } = typeof arg == "string" ? {
-      url: arg
-    } : arg;
-    let config = {
-      ...baseFetchOptions,
-      signal,
-      ...rest
-    };
-    headers = new Headers(stripUndefined(headers));
-    config.headers = await prepareHeaders(headers, {
-      getState,
-      extra,
-      endpoint,
-      forced,
-      type
-    }) || headers;
-    const isJsonifiable = (body) => typeof body === "object" && ((0, import_toolkit.isPlainObject)(body) || Array.isArray(body) || typeof body.toJSON === "function");
-    if (!config.headers.has("content-type") && isJsonifiable(config.body)) {
-      config.headers.set("content-type", jsonContentType);
-    }
-    if (isJsonifiable(config.body) && isJsonContentType(config.headers)) {
-      config.body = JSON.stringify(config.body, jsonReplacer);
-    }
-    if (params) {
-      const divider = ~url.indexOf("?") ? "&" : "?";
-      const query = paramsSerializer ? paramsSerializer(params) : new URLSearchParams(stripUndefined(params));
-      url += divider + query;
-    }
-    url = joinUrls(baseUrl, url);
-    const request = new Request(url, config);
-    const requestClone = new Request(url, config);
-    meta = {
-      request: requestClone
-    };
-    let response, timedOut = false, timeoutId = timeout && setTimeout(() => {
-      timedOut = true;
-      api.abort();
-    }, timeout);
-    try {
-      response = await fetchFn(request);
-    } catch (e) {
-      return {
-        error: {
-          status: timedOut ? "TIMEOUT_ERROR" : "FETCH_ERROR",
-          error: String(e)
-        },
-        meta
-      };
-    } finally {
-      if (timeoutId)
-        clearTimeout(timeoutId);
-    }
-    const responseClone = response.clone();
-    meta.response = responseClone;
-    let resultData;
-    let responseText = "";
-    try {
-      let handleResponseError;
-      await Promise.all([
-        handleResponse(response, responseHandler).then((r) => resultData = r, (e) => handleResponseError = e),
-        // see https://github.com/node-fetch/node-fetch/issues/665#issuecomment-538995182
-        // we *have* to "use up" both streams at the same time or they will stop running in node-fetch scenarios
-        responseClone.text().then((r) => responseText = r, () => {
-        })
-      ]);
-      if (handleResponseError)
-        throw handleResponseError;
-    } catch (e) {
-      return {
-        error: {
-          status: "PARSING_ERROR",
-          originalStatus: response.status,
-          data: responseText,
-          error: String(e)
-        },
-        meta
-      };
-    }
-    return validateStatus(response, resultData) ? {
-      data: resultData,
-      meta
-    } : {
-      error: {
-        status: response.status,
-        data: resultData
-      },
-      meta
-    };
-  };
-  async function handleResponse(response, responseHandler) {
-    if (typeof responseHandler === "function") {
-      return responseHandler(response);
-    }
-    if (responseHandler === "content-type") {
-      responseHandler = isJsonContentType(response.headers) ? "json" : "text";
-    }
-    if (responseHandler === "json") {
-      const text = await response.text();
-      return text.length ? JSON.parse(text) : null;
-    }
-    return response.text();
-  }
-}
-
-// src/query/HandledError.ts
-var HandledError = class {
-  constructor(value, meta = void 0) {
-    this.value = value;
-    this.meta = meta;
-  }
-};
-
-// src/query/retry.ts
-async function defaultBackoff(attempt = 0, maxRetries = 5) {
-  const attempts = Math.min(attempt, maxRetries);
-  const timeout = ~~((Math.random() + 0.4) * (300 << attempts));
-  await new Promise((resolve) => setTimeout((res) => resolve(res), timeout));
-}
-function fail(e) {
-  throw Object.assign(new HandledError({
-    error: e
-  }), {
-    throwImmediately: true
-  });
-}
-var EMPTY_OPTIONS = {};
-var retryWithBackoff = (baseQuery, defaultOptions) => async (args, api, extraOptions) => {
-  const possibleMaxRetries = [5, (defaultOptions || EMPTY_OPTIONS).maxRetries, (extraOptions || EMPTY_OPTIONS).maxRetries].filter((x) => x !== void 0);
-  const [maxRetries] = possibleMaxRetries.slice(-1);
-  const defaultRetryCondition = (_, __, {
-    attempt
-  }) => attempt <= maxRetries;
-  const options = {
-    maxRetries,
-    backoff: defaultBackoff,
-    retryCondition: defaultRetryCondition,
-    ...defaultOptions,
-    ...extraOptions
-  };
-  let retry2 = 0;
-  while (true) {
-    try {
-      const result = await baseQuery(args, api, extraOptions);
-      if (result.error) {
-        throw new HandledError(result);
-      }
-      return result;
-    } catch (e) {
-      retry2++;
-      if (e.throwImmediately) {
-        if (e instanceof HandledError) {
-          return e.value;
-        }
-        throw e;
-      }
-      if (e instanceof HandledError && !options.retryCondition(e.value.error, args, {
-        attempt: retry2,
-        baseQueryApi: api,
-        extraOptions
-      })) {
-        return e.value;
-      }
-      await options.backoff(retry2, options.maxRetries);
-    }
-  }
-};
-var retry = /* @__PURE__ */ Object.assign(retryWithBackoff, {
-  fail
-});
-
-// src/query/core/setupListeners.ts
-var onFocus = /* @__PURE__ */ (0, import_toolkit.createAction)("__rtkq/focused");
-var onFocusLost = /* @__PURE__ */ (0, import_toolkit.createAction)("__rtkq/unfocused");
-var onOnline = /* @__PURE__ */ (0, import_toolkit.createAction)("__rtkq/online");
-var onOffline = /* @__PURE__ */ (0, import_toolkit.createAction)("__rtkq/offline");
-var initialized = false;
-function setupListeners(dispatch, customHandler) {
-  function defaultHandler() {
-    const handleFocus = () => dispatch(onFocus());
-    const handleFocusLost = () => dispatch(onFocusLost());
-    const handleOnline = () => dispatch(onOnline());
-    const handleOffline = () => dispatch(onOffline());
-    const handleVisibilityChange = () => {
-      if (window.document.visibilityState === "visible") {
-        handleFocus();
-      } else {
-        handleFocusLost();
-      }
-    };
-    if (!initialized) {
-      if (typeof window !== "undefined" && window.addEventListener) {
-        window.addEventListener("visibilitychange", handleVisibilityChange, false);
-        window.addEventListener("focus", handleFocus, false);
-        window.addEventListener("online", handleOnline, false);
-        window.addEventListener("offline", handleOffline, false);
-        initialized = true;
-      }
-    }
-    const unsubscribe = () => {
-      window.removeEventListener("focus", handleFocus);
-      window.removeEventListener("visibilitychange", handleVisibilityChange);
-      window.removeEventListener("online", handleOnline);
-      window.removeEventListener("offline", handleOffline);
-      initialized = false;
-    };
-    return unsubscribe;
-  }
-  return customHandler ? customHandler(dispatch, {
-    onFocus,
-    onFocusLost,
-    onOffline,
-    onOnline
-  }) : defaultHandler();
-}
-
-// src/query/endpointDefinitions.ts
-function isQueryDefinition(e) {
-  return e.type === "query" /* query */;
-}
-function isMutationDefinition(e) {
-  return e.type === "mutation" /* mutation */;
-}
-function calculateProvidedBy(description, result, error, queryArg, meta, assertTagTypes) {
-  if (isFunction(description)) {
-    return description(result, error, queryArg, meta).map(expandTagDescription).map(assertTagTypes);
-  }
-  if (Array.isArray(description)) {
-    return description.map(expandTagDescription).map(assertTagTypes);
-  }
-  return [];
-}
-function isFunction(t) {
-  return typeof t === "function";
-}
-function expandTagDescription(description) {
-  return typeof description === "string" ? {
-    type: description
-  } : description;
-}
-
-// src/query/core/buildInitiate.ts
-var import_toolkit2 = require("@reduxjs/toolkit");
-
-// src/query/utils/isNotNullish.ts
-function isNotNullish(v) {
-  return v != null;
-}
-
-// src/query/utils/countObjectKeys.ts
-function countObjectKeys(obj) {
-  let count = 0;
-  for (const _key in obj) {
-    count++;
-  }
-  return count;
-}
-
-// src/query/core/buildInitiate.ts
-var forceQueryFnSymbol = Symbol("forceQueryFn");
-var isUpsertQuery = (arg) => typeof arg[forceQueryFnSymbol] === "function";
-function buildInitiate({
-  serializeQueryArgs,
-  queryThunk,
-  mutationThunk,
-  api,
-  context
-}) {
-  const runningQueries = /* @__PURE__ */ new Map();
-  const runningMutations = /* @__PURE__ */ new Map();
-  const {
-    unsubscribeQueryResult,
-    removeMutationResult,
-    updateSubscriptionOptions
-  } = api.internalActions;
-  return {
-    buildInitiateQuery,
-    buildInitiateMutation,
-    getRunningQueryThunk,
-    getRunningMutationThunk,
-    getRunningQueriesThunk,
-    getRunningMutationsThunk
-  };
-  function getRunningQueryThunk(endpointName, queryArgs) {
-    return (dispatch) => {
-      const endpointDefinition = context.endpointDefinitions[endpointName];
-      const queryCacheKey = serializeQueryArgs({
-        queryArgs,
-        endpointDefinition,
-        endpointName
-      });
-      return runningQueries.get(dispatch)?.[queryCacheKey];
-    };
-  }
-  function getRunningMutationThunk(_endpointName, fixedCacheKeyOrRequestId) {
-    return (dispatch) => {
-      return runningMutations.get(dispatch)?.[fixedCacheKeyOrRequestId];
-    };
-  }
-  function getRunningQueriesThunk() {
-    return (dispatch) => Object.values(runningQueries.get(dispatch) || {}).filter(isNotNullish);
-  }
-  function getRunningMutationsThunk() {
-    return (dispatch) => Object.values(runningMutations.get(dispatch) || {}).filter(isNotNullish);
-  }
-  function middlewareWarning(dispatch) {
-    if (true) {
-      if (middlewareWarning.triggered)
-        return;
-      const returnedValue = dispatch(api.internalActions.internal_getRTKQSubscriptions());
-      middlewareWarning.triggered = true;
-      if (typeof returnedValue !== "object" || typeof returnedValue?.type === "string") {
-        throw new Error(false ? _formatProdErrorMessage(34) : `Warning: Middleware for RTK-Query API at reducerPath "${api.reducerPath}" has not been added to the store.
-You must add the middleware for RTK-Query to function correctly!`);
-      }
-    }
-  }
-  function buildInitiateQuery(endpointName, endpointDefinition) {
-    const queryAction = (arg, {
-      subscribe = true,
-      forceRefetch,
-      subscriptionOptions,
-      [forceQueryFnSymbol]: forceQueryFn
-    } = {}) => (dispatch, getState) => {
-      const queryCacheKey = serializeQueryArgs({
-        queryArgs: arg,
-        endpointDefinition,
-        endpointName
-      });
-      const thunk = queryThunk({
-        type: "query",
-        subscribe,
-        forceRefetch,
-        subscriptionOptions,
-        endpointName,
-        originalArgs: arg,
-        queryCacheKey,
-        [forceQueryFnSymbol]: forceQueryFn
-      });
-      const selector = api.endpoints[endpointName].select(arg);
-      const thunkResult = dispatch(thunk);
-      const stateAfter = selector(getState());
-      middlewareWarning(dispatch);
-      const {
-        requestId,
-        abort
-      } = thunkResult;
-      const skippedSynchronously = stateAfter.requestId !== requestId;
-      const runningQuery = runningQueries.get(dispatch)?.[queryCacheKey];
-      const selectFromState = () => selector(getState());
-      const statePromise = Object.assign(forceQueryFn ? (
-        // a query has been forced (upsertQueryData)
-        // -> we want to resolve it once data has been written with the data that will be written
-        thunkResult.then(selectFromState)
-      ) : skippedSynchronously && !runningQuery ? (
-        // a query has been skipped due to a condition and we do not have any currently running query
-        // -> we want to resolve it immediately with the current data
-        Promise.resolve(stateAfter)
-      ) : (
-        // query just started or one is already in flight
-        // -> wait for the running query, then resolve with data from after that
-        Promise.all([runningQuery, thunkResult]).then(selectFromState)
-      ), {
-        arg,
-        requestId,
-        subscriptionOptions,
-        queryCacheKey,
-        abort,
-        async unwrap() {
-          const result = await statePromise;
-          if (result.isError) {
-            throw result.error;
-          }
-          return result.data;
-        },
-        refetch: () => dispatch(queryAction(arg, {
-          subscribe: false,
-          forceRefetch: true
-        })),
-        unsubscribe() {
-          if (subscribe)
-            dispatch(unsubscribeQueryResult({
-              queryCacheKey,
-              requestId
-            }));
-        },
-        updateSubscriptionOptions(options) {
-          statePromise.subscriptionOptions = options;
-          dispatch(updateSubscriptionOptions({
-            endpointName,
-            requestId,
-            queryCacheKey,
-            options
-          }));
-        }
-      });
-      if (!runningQuery && !skippedSynchronously && !forceQueryFn) {
-        const running = runningQueries.get(dispatch) || {};
-        running[queryCacheKey] = statePromise;
-        runningQueries.set(dispatch, running);
-        statePromise.then(() => {
-          delete running[queryCacheKey];
-          if (!countObjectKeys(running)) {
-            runningQueries.delete(dispatch);
-          }
-        });
-      }
-      return statePromise;
-    };
-    return queryAction;
-  }
-  function buildInitiateMutation(endpointName) {
-    return (arg, {
-      track = true,
-      fixedCacheKey
-    } = {}) => (dispatch, getState) => {
-      const thunk = mutationThunk({
-        type: "mutation",
-        endpointName,
-        originalArgs: arg,
-        track,
-        fixedCacheKey
-      });
-      const thunkResult = dispatch(thunk);
-      middlewareWarning(dispatch);
-      const {
-        requestId,
-        abort,
-        unwrap
-      } = thunkResult;
-      const returnValuePromise = thunkResult.unwrap().then((data) => ({
-        data
-      })).catch((error) => ({
-        error
-      }));
-      const reset = () => {
-        dispatch(removeMutationResult({
-          requestId,
-          fixedCacheKey
-        }));
-      };
-      const ret = Object.assign(returnValuePromise, {
-        arg: thunkResult.arg,
-        requestId,
-        abort,
-        unwrap,
-        reset
-      });
-      const running = runningMutations.get(dispatch) || {};
-      runningMutations.set(dispatch, running);
-      running[requestId] = ret;
-      ret.then(() => {
-        delete running[requestId];
-        if (!countObjectKeys(running)) {
-          runningMutations.delete(dispatch);
-        }
-      });
-      if (fixedCacheKey) {
-        running[fixedCacheKey] = ret;
-        ret.then(() => {
-          if (running[fixedCacheKey] === ret) {
-            delete running[fixedCacheKey];
-            if (!countObjectKeys(running)) {
-              runningMutations.delete(dispatch);
-            }
-          }
-        });
-      }
-      return ret;
-    };
-  }
-}
-
-// src/query/core/buildThunks.ts
-var import_immer = require("immer");
-function defaultTransformResponse(baseQueryReturnValue) {
-  return baseQueryReturnValue;
-}
-function buildThunks({
-  reducerPath,
-  baseQuery,
-  context: {
-    endpointDefinitions
-  },
-  serializeQueryArgs,
-  api,
-  assertTagType
-}) {
-  const patchQueryData = (endpointName, args, patches, updateProvided) => (dispatch, getState) => {
-    const endpointDefinition = endpointDefinitions[endpointName];
-    const queryCacheKey = serializeQueryArgs({
-      queryArgs: args,
-      endpointDefinition,
-      endpointName
-    });
-    dispatch(api.internalActions.queryResultPatched({
-      queryCacheKey,
-      patches
-    }));
-    if (!updateProvided) {
-      return;
-    }
-    const newValue = api.endpoints[endpointName].select(args)(
-      // Work around TS 4.1 mismatch
-      getState()
-    );
-    const providedTags = calculateProvidedBy(endpointDefinition.providesTags, newValue.data, void 0, args, {}, assertTagType);
-    dispatch(api.internalActions.updateProvidedBy({
-      queryCacheKey,
-      providedTags
-    }));
-  };
-  const updateQueryData = (endpointName, args, updateRecipe, updateProvided = true) => (dispatch, getState) => {
-    const endpointDefinition = api.endpoints[endpointName];
-    const currentState = endpointDefinition.select(args)(
-      // Work around TS 4.1 mismatch
-      getState()
-    );
-    let ret = {
-      patches: [],
-      inversePatches: [],
-      undo: () => dispatch(api.util.patchQueryData(endpointName, args, ret.inversePatches, updateProvided))
-    };
-    if (currentState.status === "uninitialized" /* uninitialized */) {
-      return ret;
-    }
-    let newValue;
-    if ("data" in currentState) {
-      if ((0, import_immer.isDraftable)(currentState.data)) {
-        const [value, patches, inversePatches] = (0, import_immer.produceWithPatches)(currentState.data, updateRecipe);
-        ret.patches.push(...patches);
-        ret.inversePatches.push(...inversePatches);
-        newValue = value;
-      } else {
-        newValue = updateRecipe(currentState.data);
-        ret.patches.push({
-          op: "replace",
-          path: [],
-          value: newValue
-        });
-        ret.inversePatches.push({
-          op: "replace",
-          path: [],
-          value: currentState.data
-        });
-      }
-    }
-    dispatch(api.util.patchQueryData(endpointName, args, ret.patches, updateProvided));
-    return ret;
-  };
-  const upsertQueryData = (endpointName, args, value) => (dispatch) => {
-    return dispatch(api.endpoints[endpointName].initiate(args, {
-      subscribe: false,
-      forceRefetch: true,
-      [forceQueryFnSymbol]: () => ({
-        data: value
-      })
-    }));
-  };
-  const executeEndpoint = async (arg, {
-    signal,
-    abort,
-    rejectWithValue,
-    fulfillWithValue,
-    dispatch,
-    getState,
-    extra
-  }) => {
-    const endpointDefinition = endpointDefinitions[arg.endpointName];
-    try {
-      let transformResponse = defaultTransformResponse;
-      let result;
-      const baseQueryApi = {
-        signal,
-        abort,
-        dispatch,
-        getState,
-        extra,
-        endpoint: arg.endpointName,
-        type: arg.type,
-        forced: arg.type === "query" ? isForcedQuery(arg, getState()) : void 0
-      };
-      const forceQueryFn = arg.type === "query" ? arg[forceQueryFnSymbol] : void 0;
-      if (forceQueryFn) {
-        result = forceQueryFn();
-      } else if (endpointDefinition.query) {
-        result = await baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi, endpointDefinition.extraOptions);
-        if (endpointDefinition.transformResponse) {
-          transformResponse = endpointDefinition.transformResponse;
-        }
-      } else {
-        result = await endpointDefinition.queryFn(arg.originalArgs, baseQueryApi, endpointDefinition.extraOptions, (arg2) => baseQuery(arg2, baseQueryApi, endpointDefinition.extraOptions));
-      }
-      if (typeof process !== "undefined" && true) {
-        const what = endpointDefinition.query ? "`baseQuery`" : "`queryFn`";
-        let err;
-        if (!result) {
-          err = `${what} did not return anything.`;
-        } else if (typeof result !== "object") {
-          err = `${what} did not return an object.`;
-        } else if (result.error && result.data) {
-          err = `${what} returned an object containing both \`error\` and \`result\`.`;
-        } else if (result.error === void 0 && result.data === void 0) {
-          err = `${what} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
-        } else {
-          for (const key of Object.keys(result)) {
-            if (key !== "error" && key !== "data" && key !== "meta") {
-              err = `The object returned by ${what} has the unknown property ${key}.`;
-              break;
-            }
-          }
-        }
-        if (err) {
-          console.error(`Error encountered handling the endpoint ${arg.endpointName}.
-              ${err}
-              It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.
-              Object returned was:`, result);
-        }
-      }
-      if (result.error)
-        throw new HandledError(result.error, result.meta);
-      return fulfillWithValue(await transformResponse(result.data, result.meta, arg.originalArgs), {
-        fulfilledTimeStamp: Date.now(),
-        baseQueryMeta: result.meta,
-        [import_toolkit.SHOULD_AUTOBATCH]: true
-      });
-    } catch (error) {
-      let catchedError = error;
-      if (catchedError instanceof HandledError) {
-        let transformErrorResponse = defaultTransformResponse;
-        if (endpointDefinition.query && endpointDefinition.transformErrorResponse) {
-          transformErrorResponse = endpointDefinition.transformErrorResponse;
-        }
-        try {
-          return rejectWithValue(await transformErrorResponse(catchedError.value, catchedError.meta, arg.originalArgs), {
-            baseQueryMeta: catchedError.meta,
-            [import_toolkit.SHOULD_AUTOBATCH]: true
-          });
-        } catch (e) {
-          catchedError = e;
-        }
-      }
-      if (typeof process !== "undefined" && true) {
-        console.error(`An unhandled error occurred processing a request for the endpoint "${arg.endpointName}".
-In the case of an unhandled error, no tags will be "provided" or "invalidated".`, catchedError);
-      } else {
-        console.error(catchedError);
-      }
-      throw catchedError;
-    }
-  };
-  function isForcedQuery(arg, state) {
-    const requestState = state[reducerPath]?.queries?.[arg.queryCacheKey];
-    const baseFetchOnMountOrArgChange = state[reducerPath]?.config.refetchOnMountOrArgChange;
-    const fulfilledVal = requestState?.fulfilledTimeStamp;
-    const refetchVal = arg.forceRefetch ?? (arg.subscribe && baseFetchOnMountOrArgChange);
-    if (refetchVal) {
-      return refetchVal === true || (Number(/* @__PURE__ */ new Date()) - Number(fulfilledVal)) / 1e3 >= refetchVal;
-    }
-    return false;
-  }
-  const queryThunk = (0, import_toolkit.createAsyncThunk)(`${reducerPath}/executeQuery`, executeEndpoint, {
-    getPendingMeta() {
-      return {
-        startedTimeStamp: Date.now(),
-        [import_toolkit.SHOULD_AUTOBATCH]: true
-      };
-    },
-    condition(queryThunkArgs, {
-      getState
-    }) {
-      const state = getState();
-      const requestState = state[reducerPath]?.queries?.[queryThunkArgs.queryCacheKey];
-      const fulfilledVal = requestState?.fulfilledTimeStamp;
-      const currentArg = queryThunkArgs.originalArgs;
-      const previousArg = requestState?.originalArgs;
-      const endpointDefinition = endpointDefinitions[queryThunkArgs.endpointName];
-      if (isUpsertQuery(queryThunkArgs)) {
-        return true;
-      }
-      if (requestState?.status === "pending") {
-        return false;
-      }
-      if (isForcedQuery(queryThunkArgs, state)) {
-        return true;
-      }
-      if (isQueryDefinition(endpointDefinition) && endpointDefinition?.forceRefetch?.({
-        currentArg,
-        previousArg,
-        endpointState: requestState,
-        state
-      })) {
-        return true;
-      }
-      if (fulfilledVal) {
-        return false;
-      }
-      return true;
-    },
-    dispatchConditionRejection: true
-  });
-  const mutationThunk = (0, import_toolkit.createAsyncThunk)(`${reducerPath}/executeMutation`, executeEndpoint, {
-    getPendingMeta() {
-      return {
-        startedTimeStamp: Date.now(),
-        [import_toolkit.SHOULD_AUTOBATCH]: true
-      };
-    }
-  });
-  const hasTheForce = (options) => "force" in options;
-  const hasMaxAge = (options) => "ifOlderThan" in options;
-  const prefetch = (endpointName, arg, options) => (dispatch, getState) => {
-    const force = hasTheForce(options) && options.force;
-    const maxAge = hasMaxAge(options) && options.ifOlderThan;
-    const queryAction = (force2 = true) => api.endpoints[endpointName].initiate(arg, {
-      forceRefetch: force2
-    });
-    const latestStateValue = api.endpoints[endpointName].select(arg)(getState());
-    if (force) {
-      dispatch(queryAction());
-    } else if (maxAge) {
-      const lastFulfilledTs = latestStateValue?.fulfilledTimeStamp;
-      if (!lastFulfilledTs) {
-        dispatch(queryAction());
-        return;
-      }
-      const shouldRetrigger = (Number(/* @__PURE__ */ new Date()) - Number(new Date(lastFulfilledTs))) / 1e3 >= maxAge;
-      if (shouldRetrigger) {
-        dispatch(queryAction());
-      }
-    } else {
-      dispatch(queryAction(false));
-    }
-  };
-  function matchesEndpoint(endpointName) {
-    return (action) => action?.meta?.arg?.endpointName === endpointName;
-  }
-  function buildMatchThunkActions(thunk, endpointName) {
-    return {
-      matchPending: (0, import_toolkit.isAllOf)((0, import_toolkit.isPending)(thunk), matchesEndpoint(endpointName)),
-      matchFulfilled: (0, import_toolkit.isAllOf)((0, import_toolkit.isFulfilled)(thunk), matchesEndpoint(endpointName)),
-      matchRejected: (0, import_toolkit.isAllOf)((0, import_toolkit.isRejected)(thunk), matchesEndpoint(endpointName))
-    };
-  }
-  return {
-    queryThunk,
-    mutationThunk,
-    prefetch,
-    updateQueryData,
-    upsertQueryData,
-    patchQueryData,
-    buildMatchThunkActions
-  };
-}
-function calculateProvidedByThunk(action, type, endpointDefinitions, assertTagType) {
-  return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][type], (0, import_toolkit.isFulfilled)(action) ? action.payload : void 0, (0, import_toolkit.isRejectedWithValue)(action) ? action.payload : void 0, action.meta.arg.originalArgs, "baseQueryMeta" in action.meta ? action.meta.baseQueryMeta : void 0, assertTagType);
-}
-
-// src/query/core/buildSlice.ts
-var import_immer2 = require("immer");
-var import_immer3 = require("immer");
-function updateQuerySubstateIfExists(state, queryCacheKey, update) {
-  const substate = state[queryCacheKey];
-  if (substate) {
-    update(substate);
-  }
-}
-function getMutationCacheKey(id) {
-  return ("arg" in id ? id.arg.fixedCacheKey : id.fixedCacheKey) ?? id.requestId;
-}
-function updateMutationSubstateIfExists(state, id, update) {
-  const substate = state[getMutationCacheKey(id)];
-  if (substate) {
-    update(substate);
-  }
-}
-var initialState = {};
-function buildSlice({
-  reducerPath,
-  queryThunk,
-  mutationThunk,
-  context: {
-    endpointDefinitions: definitions,
-    apiUid,
-    extractRehydrationInfo,
-    hasRehydrationInfo
-  },
-  assertTagType,
-  config
-}) {
-  const resetApiState = (0, import_toolkit.createAction)(`${reducerPath}/resetApiState`);
-  const querySlice = (0, import_toolkit.createSlice)({
-    name: `${reducerPath}/queries`,
-    initialState,
-    reducers: {
-      removeQueryResult: {
-        reducer(draft, {
-          payload: {
-            queryCacheKey
-          }
-        }) {
-          delete draft[queryCacheKey];
-        },
-        prepare: (0, import_toolkit.prepareAutoBatched)()
-      },
-      queryResultPatched: {
-        reducer(draft, {
-          payload: {
-            queryCacheKey,
-            patches
-          }
-        }) {
-          updateQuerySubstateIfExists(draft, queryCacheKey, (substate) => {
-            substate.data = (0, import_immer3.applyPatches)(substate.data, patches.concat());
-          });
-        },
-        prepare: (0, import_toolkit.prepareAutoBatched)()
-      }
-    },
-    extraReducers(builder) {
-      builder.addCase(queryThunk.pending, (draft, {
-        meta,
-        meta: {
-          arg
-        }
-      }) => {
-        const upserting = isUpsertQuery(arg);
-        draft[arg.queryCacheKey] ??= {
-          status: "uninitialized" /* uninitialized */,
-          endpointName: arg.endpointName
-        };
-        updateQuerySubstateIfExists(draft, arg.queryCacheKey, (substate) => {
-          substate.status = "pending" /* pending */;
-          substate.requestId = upserting && substate.requestId ? (
-            // for `upsertQuery` **updates**, keep the current `requestId`
-            substate.requestId
-          ) : (
-            // for normal queries or `upsertQuery` **inserts** always update the `requestId`
-            meta.requestId
-          );
-          if (arg.originalArgs !== void 0) {
-            substate.originalArgs = arg.originalArgs;
-          }
-          substate.startedTimeStamp = meta.startedTimeStamp;
-        });
-      }).addCase(queryThunk.fulfilled, (draft, {
-        meta,
-        payload
-      }) => {
-        updateQuerySubstateIfExists(draft, meta.arg.queryCacheKey, (substate) => {
-          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg))
-            return;
-          const {
-            merge
-          } = definitions[meta.arg.endpointName];
-          substate.status = "fulfilled" /* fulfilled */;
-          if (merge) {
-            if (substate.data !== void 0) {
-              const {
-                fulfilledTimeStamp,
-                arg,
-                baseQueryMeta,
-                requestId
-              } = meta;
-              let newData = (0, import_toolkit.createNextState)(substate.data, (draftSubstateData) => {
-                return merge(draftSubstateData, payload, {
-                  arg: arg.originalArgs,
-                  baseQueryMeta,
-                  fulfilledTimeStamp,
-                  requestId
-                });
-              });
-              substate.data = newData;
-            } else {
-              substate.data = payload;
-            }
-          } else {
-            substate.data = definitions[meta.arg.endpointName].structuralSharing ?? true ? copyWithStructuralSharing((0, import_immer2.isDraft)(substate.data) ? (0, import_immer3.original)(substate.data) : substate.data, payload) : payload;
-          }
-          delete substate.error;
-          substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;
-        });
-      }).addCase(queryThunk.rejected, (draft, {
-        meta: {
-          condition,
-          arg,
-          requestId
-        },
-        error,
-        payload
-      }) => {
-        updateQuerySubstateIfExists(draft, arg.queryCacheKey, (substate) => {
-          if (condition) {
-          } else {
-            if (substate.requestId !== requestId)
-              return;
-            substate.status = "rejected" /* rejected */;
-            substate.error = payload ?? error;
-          }
-        });
-      }).addMatcher(hasRehydrationInfo, (draft, action) => {
-        const {
-          queries
-        } = extractRehydrationInfo(action);
-        for (const [key, entry] of Object.entries(queries)) {
-          if (
-            // do not rehydrate entries that were currently in flight.
-            entry?.status === "fulfilled" /* fulfilled */ || entry?.status === "rejected" /* rejected */
-          ) {
-            draft[key] = entry;
-          }
-        }
-      });
-    }
-  });
-  const mutationSlice = (0, import_toolkit.createSlice)({
-    name: `${reducerPath}/mutations`,
-    initialState,
-    reducers: {
-      removeMutationResult: {
-        reducer(draft, {
-          payload
-        }) {
-          const cacheKey = getMutationCacheKey(payload);
-          if (cacheKey in draft) {
-            delete draft[cacheKey];
-          }
-        },
-        prepare: (0, import_toolkit.prepareAutoBatched)()
-      }
-    },
-    extraReducers(builder) {
-      builder.addCase(mutationThunk.pending, (draft, {
-        meta,
-        meta: {
-          requestId,
-          arg,
-          startedTimeStamp
-        }
-      }) => {
-        if (!arg.track)
-          return;
-        draft[getMutationCacheKey(meta)] = {
-          requestId,
-          status: "pending" /* pending */,
-          endpointName: arg.endpointName,
-          startedTimeStamp
-        };
-      }).addCase(mutationThunk.fulfilled, (draft, {
-        payload,
-        meta
-      }) => {
-        if (!meta.arg.track)
-          return;
-        updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
-          substate.status = "fulfilled" /* fulfilled */;
-          substate.data = payload;
-          substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;
-        });
-      }).addCase(mutationThunk.rejected, (draft, {
-        payload,
-        error,
-        meta
-      }) => {
-        if (!meta.arg.track)
-          return;
-        updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
-          substate.status = "rejected" /* rejected */;
-          substate.error = payload ?? error;
-        });
-      }).addMatcher(hasRehydrationInfo, (draft, action) => {
-        const {
-          mutations
-        } = extractRehydrationInfo(action);
-        for (const [key, entry] of Object.entries(mutations)) {
-          if (
-            // do not rehydrate entries that were currently in flight.
-            (entry?.status === "fulfilled" /* fulfilled */ || entry?.status === "rejected" /* rejected */) && // only rehydrate endpoints that were persisted using a `fixedCacheKey`
-            key !== entry?.requestId
-          ) {
-            draft[key] = entry;
-          }
-        }
-      });
-    }
-  });
-  const invalidationSlice = (0, import_toolkit.createSlice)({
-    name: `${reducerPath}/invalidation`,
-    initialState,
-    reducers: {
-      updateProvidedBy: {
-        reducer(draft, action) {
-          const {
-            queryCacheKey,
-            providedTags
-          } = action.payload;
-          for (const tagTypeSubscriptions of Object.values(draft)) {
-            for (const idSubscriptions of Object.values(tagTypeSubscriptions)) {
-              const foundAt = idSubscriptions.indexOf(queryCacheKey);
-              if (foundAt !== -1) {
-                idSubscriptions.splice(foundAt, 1);
-              }
-            }
-          }
-          for (const {
-            type,
-            id
-          } of providedTags) {
-            const subscribedQueries = (draft[type] ??= {})[id || "__internal_without_id"] ??= [];
-            const alreadySubscribed = subscribedQueries.includes(queryCacheKey);
-            if (!alreadySubscribed) {
-              subscribedQueries.push(queryCacheKey);
-            }
-          }
-        },
-        prepare: (0, import_toolkit.prepareAutoBatched)()
-      }
-    },
-    extraReducers(builder) {
-      builder.addCase(querySlice.actions.removeQueryResult, (draft, {
-        payload: {
-          queryCacheKey
-        }
-      }) => {
-        for (const tagTypeSubscriptions of Object.values(draft)) {
-          for (const idSubscriptions of Object.values(tagTypeSubscriptions)) {
-            const foundAt = idSubscriptions.indexOf(queryCacheKey);
-            if (foundAt !== -1) {
-              idSubscriptions.splice(foundAt, 1);
-            }
-          }
-        }
-      }).addMatcher(hasRehydrationInfo, (draft, action) => {
-        const {
-          provided
-        } = extractRehydrationInfo(action);
-        for (const [type, incomingTags] of Object.entries(provided)) {
-          for (const [id, cacheKeys] of Object.entries(incomingTags)) {
-            const subscribedQueries = (draft[type] ??= {})[id || "__internal_without_id"] ??= [];
-            for (const queryCacheKey of cacheKeys) {
-              const alreadySubscribed = subscribedQueries.includes(queryCacheKey);
-              if (!alreadySubscribed) {
-                subscribedQueries.push(queryCacheKey);
-              }
-            }
-          }
-        }
-      }).addMatcher((0, import_toolkit.isAnyOf)((0, import_toolkit.isFulfilled)(queryThunk), (0, import_toolkit.isRejectedWithValue)(queryThunk)), (draft, action) => {
-        const providedTags = calculateProvidedByThunk(action, "providesTags", definitions, assertTagType);
-        const {
-          queryCacheKey
-        } = action.meta.arg;
-        invalidationSlice.caseReducers.updateProvidedBy(draft, invalidationSlice.actions.updateProvidedBy({
-          queryCacheKey,
-          providedTags
-        }));
-      });
-    }
-  });
-  const subscriptionSlice = (0, import_toolkit.createSlice)({
-    name: `${reducerPath}/subscriptions`,
-    initialState,
-    reducers: {
-      updateSubscriptionOptions(d, a) {
-      },
-      unsubscribeQueryResult(d, a) {
-      },
-      internal_getRTKQSubscriptions() {
-      }
-    }
-  });
-  const internalSubscriptionsSlice = (0, import_toolkit.createSlice)({
-    name: `${reducerPath}/internalSubscriptions`,
-    initialState,
-    reducers: {
-      subscriptionsUpdated: {
-        reducer(state, action) {
-          return (0, import_immer3.applyPatches)(state, action.payload);
-        },
-        prepare: (0, import_toolkit.prepareAutoBatched)()
-      }
-    }
-  });
-  const configSlice = (0, import_toolkit.createSlice)({
-    name: `${reducerPath}/config`,
-    initialState: {
-      online: isOnline(),
-      focused: isDocumentVisible(),
-      middlewareRegistered: false,
-      ...config
-    },
-    reducers: {
-      middlewareRegistered(state, {
-        payload
-      }) {
-        state.middlewareRegistered = state.middlewareRegistered === "conflict" || apiUid !== payload ? "conflict" : true;
-      }
-    },
-    extraReducers: (builder) => {
-      builder.addCase(onOnline, (state) => {
-        state.online = true;
-      }).addCase(onOffline, (state) => {
-        state.online = false;
-      }).addCase(onFocus, (state) => {
-        state.focused = true;
-      }).addCase(onFocusLost, (state) => {
-        state.focused = false;
-      }).addMatcher(hasRehydrationInfo, (draft) => ({
-        ...draft
-      }));
-    }
-  });
-  const combinedReducer = (0, import_toolkit.combineReducers)({
-    queries: querySlice.reducer,
-    mutations: mutationSlice.reducer,
-    provided: invalidationSlice.reducer,
-    subscriptions: internalSubscriptionsSlice.reducer,
-    config: configSlice.reducer
-  });
-  const reducer = (state, action) => combinedReducer(resetApiState.match(action) ? void 0 : state, action);
-  const actions = {
-    ...configSlice.actions,
-    ...querySlice.actions,
-    ...subscriptionSlice.actions,
-    ...internalSubscriptionsSlice.actions,
-    ...mutationSlice.actions,
-    ...invalidationSlice.actions,
-    resetApiState
-  };
-  return {
-    reducer,
-    actions
-  };
-}
-
-// src/query/core/buildSelectors.ts
-var skipToken = /* @__PURE__ */ Symbol.for("RTKQ/skipToken");
-var initialSubState = {
-  status: "uninitialized" /* uninitialized */
-};
-var defaultQuerySubState = /* @__PURE__ */ (0, import_toolkit.createNextState)(initialSubState, () => {
-});
-var defaultMutationSubState = /* @__PURE__ */ (0, import_toolkit.createNextState)(initialSubState, () => {
-});
-function buildSelectors({
-  serializeQueryArgs,
-  reducerPath
-}) {
-  const selectSkippedQuery = (state) => defaultQuerySubState;
-  const selectSkippedMutation = (state) => defaultMutationSubState;
-  return {
-    buildQuerySelector,
-    buildMutationSelector,
-    selectInvalidatedBy,
-    selectCachedArgsForQuery
-  };
-  function withRequestFlags(substate) {
-    return {
-      ...substate,
-      ...getRequestStatusFlags(substate.status)
-    };
-  }
-  function selectInternalState(rootState) {
-    const state = rootState[reducerPath];
-    if (true) {
-      if (!state) {
-        if (selectInternalState.triggered)
-          return state;
-        selectInternalState.triggered = true;
-        console.error(`Error: No data found at \`state.${reducerPath}\`. Did you forget to add the reducer to the store?`);
-      }
-    }
-    return state;
-  }
-  function buildQuerySelector(endpointName, endpointDefinition) {
-    return (queryArgs) => {
-      const serializedArgs = serializeQueryArgs({
-        queryArgs,
-        endpointDefinition,
-        endpointName
-      });
-      const selectQuerySubstate = (state) => selectInternalState(state)?.queries?.[serializedArgs] ?? defaultQuerySubState;
-      const finalSelectQuerySubState = queryArgs === skipToken ? selectSkippedQuery : selectQuerySubstate;
-      return (0, import_toolkit.createSelector)(finalSelectQuerySubState, withRequestFlags);
-    };
-  }
-  function buildMutationSelector() {
-    return (id) => {
-      let mutationId;
-      if (typeof id === "object") {
-        mutationId = getMutationCacheKey(id) ?? skipToken;
-      } else {
-        mutationId = id;
-      }
-      const selectMutationSubstate = (state) => selectInternalState(state)?.mutations?.[mutationId] ?? defaultMutationSubState;
-      const finalSelectMutationSubstate = mutationId === skipToken ? selectSkippedMutation : selectMutationSubstate;
-      return (0, import_toolkit.createSelector)(finalSelectMutationSubstate, withRequestFlags);
-    };
-  }
-  function selectInvalidatedBy(state, tags) {
-    const apiState = state[reducerPath];
-    const toInvalidate = /* @__PURE__ */ new Set();
-    for (const tag of tags.map(expandTagDescription)) {
-      const provided = apiState.provided[tag.type];
-      if (!provided) {
-        continue;
-      }
-      let invalidateSubscriptions = (tag.id !== void 0 ? (
-        // id given: invalidate all queries that provide this type & id
-        provided[tag.id]
-      ) : (
-        // no id: invalidate all queries that provide this type
-        flatten(Object.values(provided))
-      )) ?? [];
-      for (const invalidate of invalidateSubscriptions) {
-        toInvalidate.add(invalidate);
-      }
-    }
-    return flatten(Array.from(toInvalidate.values()).map((queryCacheKey) => {
-      const querySubState = apiState.queries[queryCacheKey];
-      return querySubState ? [{
-        queryCacheKey,
-        endpointName: querySubState.endpointName,
-        originalArgs: querySubState.originalArgs
-      }] : [];
-    }));
-  }
-  function selectCachedArgsForQuery(state, queryName) {
-    return Object.values(state[reducerPath].queries).filter((entry) => entry?.endpointName === queryName && entry.status !== "uninitialized" /* uninitialized */).map((entry) => entry.originalArgs);
-  }
-}
-
-// src/query/defaultSerializeQueryArgs.ts
-var cache = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0;
-var defaultSerializeQueryArgs = ({
-  endpointName,
-  queryArgs
-}) => {
-  let serialized = "";
-  const cached = cache?.get(queryArgs);
-  if (typeof cached === "string") {
-    serialized = cached;
-  } else {
-    const stringified = JSON.stringify(queryArgs, (key, value) => (0, import_toolkit.isPlainObject)(value) ? Object.keys(value).sort().reduce((acc, key2) => {
-      acc[key2] = value[key2];
-      return acc;
-    }, {}) : value);
-    if ((0, import_toolkit.isPlainObject)(queryArgs)) {
-      cache?.set(queryArgs, stringified);
-    }
-    serialized = stringified;
-  }
-  return `${endpointName}(${serialized})`;
-};
-
-// src/query/createApi.ts
-var import_reselect = require("reselect");
-function buildCreateApi(...modules) {
-  return function baseCreateApi(options) {
-    const extractRehydrationInfo = (0, import_reselect.weakMapMemoize)((action) => options.extractRehydrationInfo?.(action, {
-      reducerPath: options.reducerPath ?? "api"
-    }));
-    const optionsWithDefaults = {
-      reducerPath: "api",
-      keepUnusedDataFor: 60,
-      refetchOnMountOrArgChange: false,
-      refetchOnFocus: false,
-      refetchOnReconnect: false,
-      invalidationBehavior: "delayed",
-      ...options,
-      extractRehydrationInfo,
-      serializeQueryArgs(queryArgsApi) {
-        let finalSerializeQueryArgs = defaultSerializeQueryArgs;
-        if ("serializeQueryArgs" in queryArgsApi.endpointDefinition) {
-          const endpointSQA = queryArgsApi.endpointDefinition.serializeQueryArgs;
-          finalSerializeQueryArgs = (queryArgsApi2) => {
-            const initialResult = endpointSQA(queryArgsApi2);
-            if (typeof initialResult === "string") {
-              return initialResult;
-            } else {
-              return defaultSerializeQueryArgs({
-                ...queryArgsApi2,
-                queryArgs: initialResult
-              });
-            }
-          };
-        } else if (options.serializeQueryArgs) {
-          finalSerializeQueryArgs = options.serializeQueryArgs;
-        }
-        return finalSerializeQueryArgs(queryArgsApi);
-      },
-      tagTypes: [...options.tagTypes || []]
-    };
-    const context = {
-      endpointDefinitions: {},
-      batch(fn) {
-        fn();
-      },
-      apiUid: (0, import_toolkit.nanoid)(),
-      extractRehydrationInfo,
-      hasRehydrationInfo: (0, import_reselect.weakMapMemoize)((action) => extractRehydrationInfo(action) != null)
-    };
-    const api = {
-      injectEndpoints,
-      enhanceEndpoints({
-        addTagTypes,
-        endpoints
-      }) {
-        if (addTagTypes) {
-          for (const eT of addTagTypes) {
-            if (!optionsWithDefaults.tagTypes.includes(eT)) {
-              ;
-              optionsWithDefaults.tagTypes.push(eT);
-            }
-          }
-        }
-        if (endpoints) {
-          for (const [endpointName, partialDefinition] of Object.entries(endpoints)) {
-            if (typeof partialDefinition === "function") {
-              partialDefinition(context.endpointDefinitions[endpointName]);
-            } else {
-              Object.assign(context.endpointDefinitions[endpointName] || {}, partialDefinition);
-            }
-          }
-        }
-        return api;
-      }
-    };
-    const initializedModules = modules.map((m) => m.init(api, optionsWithDefaults, context));
-    function injectEndpoints(inject) {
-      const evaluatedEndpoints = inject.endpoints({
-        query: (x) => ({
-          ...x,
-          type: "query" /* query */
-        }),
-        mutation: (x) => ({
-          ...x,
-          type: "mutation" /* mutation */
-        })
-      });
-      for (const [endpointName, definition] of Object.entries(evaluatedEndpoints)) {
-        if (!inject.overrideExisting && endpointName in context.endpointDefinitions) {
-          if (typeof process !== "undefined" && true) {
-            console.error(`called \`injectEndpoints\` to override already-existing endpointName ${endpointName} without specifying \`overrideExisting: true\``);
-          }
-          continue;
-        }
-        context.endpointDefinitions[endpointName] = definition;
-        for (const m of initializedModules) {
-          m.injectEndpoint(endpointName, definition);
-        }
-      }
-      return api;
-    }
-    return api.injectEndpoints({
-      endpoints: options.endpoints
-    });
-  };
-}
-
-// src/query/fakeBaseQuery.ts
-var import_toolkit3 = require("@reduxjs/toolkit");
-function fakeBaseQuery() {
-  return function() {
-    throw new Error(false ? _formatProdErrorMessage2(33) : "When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.");
-  };
-}
-
-// src/query/core/buildMiddleware/cacheCollection.ts
-function isObjectEmpty(obj) {
-  for (let k in obj) {
-    return false;
-  }
-  return true;
-}
-var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1;
-var buildCacheCollectionHandler = ({
-  reducerPath,
-  api,
-  context,
-  internalState
-}) => {
-  const {
-    removeQueryResult,
-    unsubscribeQueryResult
-  } = api.internalActions;
-  function anySubscriptionsRemainingForKey(queryCacheKey) {
-    const subscriptions = internalState.currentSubscriptions[queryCacheKey];
-    return !!subscriptions && !isObjectEmpty(subscriptions);
-  }
-  const currentRemovalTimeouts = {};
-  const handler = (action, mwApi, internalState2) => {
-    if (unsubscribeQueryResult.match(action)) {
-      const state = mwApi.getState()[reducerPath];
-      const {
-        queryCacheKey
-      } = action.payload;
-      handleUnsubscribe(queryCacheKey, state.queries[queryCacheKey]?.endpointName, mwApi, state.config);
-    }
-    if (api.util.resetApiState.match(action)) {
-      for (const [key, timeout] of Object.entries(currentRemovalTimeouts)) {
-        if (timeout)
-          clearTimeout(timeout);
-        delete currentRemovalTimeouts[key];
-      }
-    }
-    if (context.hasRehydrationInfo(action)) {
-      const state = mwApi.getState()[reducerPath];
-      const {
-        queries
-      } = context.extractRehydrationInfo(action);
-      for (const [queryCacheKey, queryState] of Object.entries(queries)) {
-        handleUnsubscribe(queryCacheKey, queryState?.endpointName, mwApi, state.config);
-      }
-    }
-  };
-  function handleUnsubscribe(queryCacheKey, endpointName, api2, config) {
-    const endpointDefinition = context.endpointDefinitions[endpointName];
-    const keepUnusedDataFor = endpointDefinition?.keepUnusedDataFor ?? config.keepUnusedDataFor;
-    if (keepUnusedDataFor === Infinity) {
-      return;
-    }
-    const finalKeepUnusedDataFor = Math.max(0, Math.min(keepUnusedDataFor, THIRTY_TWO_BIT_MAX_TIMER_SECONDS));
-    if (!anySubscriptionsRemainingForKey(queryCacheKey)) {
-      const currentTimeout = currentRemovalTimeouts[queryCacheKey];
-      if (currentTimeout) {
-        clearTimeout(currentTimeout);
-      }
-      currentRemovalTimeouts[queryCacheKey] = setTimeout(() => {
-        if (!anySubscriptionsRemainingForKey(queryCacheKey)) {
-          api2.dispatch(removeQueryResult({
-            queryCacheKey
-          }));
-        }
-        delete currentRemovalTimeouts[queryCacheKey];
-      }, finalKeepUnusedDataFor * 1e3);
-    }
-  }
-  return handler;
-};
-
-// src/query/core/buildMiddleware/invalidationByTags.ts
-var buildInvalidationByTagsHandler = ({
-  reducerPath,
-  context,
-  context: {
-    endpointDefinitions
-  },
-  mutationThunk,
-  queryThunk,
-  api,
-  assertTagType,
-  refetchQuery,
-  internalState
-}) => {
-  const {
-    removeQueryResult
-  } = api.internalActions;
-  const isThunkActionWithTags = (0, import_toolkit.isAnyOf)((0, import_toolkit.isFulfilled)(mutationThunk), (0, import_toolkit.isRejectedWithValue)(mutationThunk));
-  const isQueryEnd = (0, import_toolkit.isAnyOf)((0, import_toolkit.isFulfilled)(mutationThunk, queryThunk), (0, import_toolkit.isRejected)(mutationThunk, queryThunk));
-  let pendingTagInvalidations = [];
-  const handler = (action, mwApi) => {
-    if (isThunkActionWithTags(action)) {
-      invalidateTags(calculateProvidedByThunk(action, "invalidatesTags", endpointDefinitions, assertTagType), mwApi);
-    } else if (isQueryEnd(action)) {
-      invalidateTags([], mwApi);
-    } else if (api.util.invalidateTags.match(action)) {
-      invalidateTags(calculateProvidedBy(action.payload, void 0, void 0, void 0, void 0, assertTagType), mwApi);
-    }
-  };
-  function hasPendingRequests(state) {
-    for (const key in state.queries) {
-      if (state.queries[key]?.status === "pending" /* pending */)
-        return true;
-    }
-    for (const key in state.mutations) {
-      if (state.mutations[key]?.status === "pending" /* pending */)
-        return true;
-    }
-    return false;
-  }
-  function invalidateTags(newTags, mwApi) {
-    const rootState = mwApi.getState();
-    const state = rootState[reducerPath];
-    pendingTagInvalidations.push(...newTags);
-    if (state.config.invalidationBehavior === "delayed" && hasPendingRequests(state)) {
-      return;
-    }
-    const tags = pendingTagInvalidations;
-    pendingTagInvalidations = [];
-    if (tags.length === 0)
-      return;
-    const toInvalidate = api.util.selectInvalidatedBy(rootState, tags);
-    context.batch(() => {
-      const valuesArray = Array.from(toInvalidate.values());
-      for (const {
-        queryCacheKey
-      } of valuesArray) {
-        const querySubState = state.queries[queryCacheKey];
-        const subscriptionSubState = internalState.currentSubscriptions[queryCacheKey] ?? {};
-        if (querySubState) {
-          if (countObjectKeys(subscriptionSubState) === 0) {
-            mwApi.dispatch(removeQueryResult({
-              queryCacheKey
-            }));
-          } else if (querySubState.status !== "uninitialized" /* uninitialized */) {
-            mwApi.dispatch(refetchQuery(querySubState, queryCacheKey));
-          }
-        }
-      }
-    });
-  }
-  return handler;
-};
-
-// src/query/core/buildMiddleware/polling.ts
-var buildPollingHandler = ({
-  reducerPath,
-  queryThunk,
-  api,
-  refetchQuery,
-  internalState
-}) => {
-  const currentPolls = {};
-  const handler = (action, mwApi) => {
-    if (api.internalActions.updateSubscriptionOptions.match(action) || api.internalActions.unsubscribeQueryResult.match(action)) {
-      updatePollingInterval(action.payload, mwApi);
-    }
-    if (queryThunk.pending.match(action) || queryThunk.rejected.match(action) && action.meta.condition) {
-      updatePollingInterval(action.meta.arg, mwApi);
-    }
-    if (queryThunk.fulfilled.match(action) || queryThunk.rejected.match(action) && !action.meta.condition) {
-      startNextPoll(action.meta.arg, mwApi);
-    }
-    if (api.util.resetApiState.match(action)) {
-      clearPolls();
-    }
-  };
-  function startNextPoll({
-    queryCacheKey
-  }, api2) {
-    const state = api2.getState()[reducerPath];
-    const querySubState = state.queries[queryCacheKey];
-    const subscriptions = internalState.currentSubscriptions[queryCacheKey];
-    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */)
-      return;
-    const lowestPollingInterval = findLowestPollingInterval(subscriptions);
-    if (!Number.isFinite(lowestPollingInterval))
-      return;
-    const currentPoll = currentPolls[queryCacheKey];
-    if (currentPoll?.timeout) {
-      clearTimeout(currentPoll.timeout);
-      currentPoll.timeout = void 0;
-    }
-    const nextPollTimestamp = Date.now() + lowestPollingInterval;
-    const currentInterval = currentPolls[queryCacheKey] = {
-      nextPollTimestamp,
-      pollingInterval: lowestPollingInterval,
-      timeout: setTimeout(() => {
-        currentInterval.timeout = void 0;
-        api2.dispatch(refetchQuery(querySubState, queryCacheKey));
-      }, lowestPollingInterval)
-    };
-  }
-  function updatePollingInterval({
-    queryCacheKey
-  }, api2) {
-    const state = api2.getState()[reducerPath];
-    const querySubState = state.queries[queryCacheKey];
-    const subscriptions = internalState.currentSubscriptions[queryCacheKey];
-    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */) {
-      return;
-    }
-    const lowestPollingInterval = findLowestPollingInterval(subscriptions);
-    if (!Number.isFinite(lowestPollingInterval)) {
-      cleanupPollForKey(queryCacheKey);
-      return;
-    }
-    const currentPoll = currentPolls[queryCacheKey];
-    const nextPollTimestamp = Date.now() + lowestPollingInterval;
-    if (!currentPoll || nextPollTimestamp < currentPoll.nextPollTimestamp) {
-      startNextPoll({
-        queryCacheKey
-      }, api2);
-    }
-  }
-  function cleanupPollForKey(key) {
-    const existingPoll = currentPolls[key];
-    if (existingPoll?.timeout) {
-      clearTimeout(existingPoll.timeout);
-    }
-    delete currentPolls[key];
-  }
-  function clearPolls() {
-    for (const key of Object.keys(currentPolls)) {
-      cleanupPollForKey(key);
-    }
-  }
-  function findLowestPollingInterval(subscribers = {}) {
-    let lowestPollingInterval = Number.POSITIVE_INFINITY;
-    for (let key in subscribers) {
-      if (!!subscribers[key].pollingInterval) {
-        lowestPollingInterval = Math.min(subscribers[key].pollingInterval, lowestPollingInterval);
-      }
-    }
-    return lowestPollingInterval;
-  }
-  return handler;
-};
-
-// src/query/core/buildMiddleware/windowEventHandling.ts
-var buildWindowEventHandler = ({
-  reducerPath,
-  context,
-  api,
-  refetchQuery,
-  internalState
-}) => {
-  const {
-    removeQueryResult
-  } = api.internalActions;
-  const handler = (action, mwApi) => {
-    if (onFocus.match(action)) {
-      refetchValidQueries(mwApi, "refetchOnFocus");
-    }
-    if (onOnline.match(action)) {
-      refetchValidQueries(mwApi, "refetchOnReconnect");
-    }
-  };
-  function refetchValidQueries(api2, type) {
-    const state = api2.getState()[reducerPath];
-    const queries = state.queries;
-    const subscriptions = internalState.currentSubscriptions;
-    context.batch(() => {
-      for (const queryCacheKey of Object.keys(subscriptions)) {
-        const querySubState = queries[queryCacheKey];
-        const subscriptionSubState = subscriptions[queryCacheKey];
-        if (!subscriptionSubState || !querySubState)
-          continue;
-        const shouldRefetch = Object.values(subscriptionSubState).some((sub) => sub[type] === true) || Object.values(subscriptionSubState).every((sub) => sub[type] === void 0) && state.config[type];
-        if (shouldRefetch) {
-          if (countObjectKeys(subscriptionSubState) === 0) {
-            api2.dispatch(removeQueryResult({
-              queryCacheKey
-            }));
-          } else if (querySubState.status !== "uninitialized" /* uninitialized */) {
-            api2.dispatch(refetchQuery(querySubState, queryCacheKey));
-          }
-        }
-      }
-    });
-  }
-  return handler;
-};
-
-// src/query/core/buildMiddleware/cacheLifecycle.ts
-var neverResolvedError = new Error("Promise never resolved before cacheEntryRemoved.");
-var buildCacheLifecycleHandler = ({
-  api,
-  reducerPath,
-  context,
-  queryThunk,
-  mutationThunk,
-  internalState
-}) => {
-  const isQueryThunk = (0, import_toolkit.isAsyncThunkAction)(queryThunk);
-  const isMutationThunk = (0, import_toolkit.isAsyncThunkAction)(mutationThunk);
-  const isFulfilledThunk = (0, import_toolkit.isFulfilled)(queryThunk, mutationThunk);
-  const lifecycleMap = {};
-  const handler = (action, mwApi, stateBefore) => {
-    const cacheKey = getCacheKey(action);
-    if (queryThunk.pending.match(action)) {
-      const oldState = stateBefore[reducerPath].queries[cacheKey];
-      const state = mwApi.getState()[reducerPath].queries[cacheKey];
-      if (!oldState && state) {
-        handleNewKey(action.meta.arg.endpointName, action.meta.arg.originalArgs, cacheKey, mwApi, action.meta.requestId);
-      }
-    } else if (mutationThunk.pending.match(action)) {
-      const state = mwApi.getState()[reducerPath].mutations[cacheKey];
-      if (state) {
-        handleNewKey(action.meta.arg.endpointName, action.meta.arg.originalArgs, cacheKey, mwApi, action.meta.requestId);
-      }
-    } else if (isFulfilledThunk(action)) {
-      const lifecycle = lifecycleMap[cacheKey];
-      if (lifecycle?.valueResolved) {
-        lifecycle.valueResolved({
-          data: action.payload,
-          meta: action.meta.baseQueryMeta
-        });
-        delete lifecycle.valueResolved;
-      }
-    } else if (api.internalActions.removeQueryResult.match(action) || api.internalActions.removeMutationResult.match(action)) {
-      const lifecycle = lifecycleMap[cacheKey];
-      if (lifecycle) {
-        delete lifecycleMap[cacheKey];
-        lifecycle.cacheEntryRemoved();
-      }
-    } else if (api.util.resetApiState.match(action)) {
-      for (const [cacheKey2, lifecycle] of Object.entries(lifecycleMap)) {
-        delete lifecycleMap[cacheKey2];
-        lifecycle.cacheEntryRemoved();
-      }
-    }
-  };
-  function getCacheKey(action) {
-    if (isQueryThunk(action))
-      return action.meta.arg.queryCacheKey;
-    if (isMutationThunk(action))
-      return action.meta.requestId;
-    if (api.internalActions.removeQueryResult.match(action))
-      return action.payload.queryCacheKey;
-    if (api.internalActions.removeMutationResult.match(action))
-      return getMutationCacheKey(action.payload);
-    return "";
-  }
-  function handleNewKey(endpointName, originalArgs, queryCacheKey, mwApi, requestId) {
-    const endpointDefinition = context.endpointDefinitions[endpointName];
-    const onCacheEntryAdded = endpointDefinition?.onCacheEntryAdded;
-    if (!onCacheEntryAdded)
-      return;
-    let lifecycle = {};
-    const cacheEntryRemoved = new Promise((resolve) => {
-      lifecycle.cacheEntryRemoved = resolve;
-    });
-    const cacheDataLoaded = Promise.race([new Promise((resolve) => {
-      lifecycle.valueResolved = resolve;
-    }), cacheEntryRemoved.then(() => {
-      throw neverResolvedError;
-    })]);
-    cacheDataLoaded.catch(() => {
-    });
-    lifecycleMap[queryCacheKey] = lifecycle;
-    const selector = api.endpoints[endpointName].select(endpointDefinition.type === "query" /* query */ ? originalArgs : queryCacheKey);
-    const extra = mwApi.dispatch((_, __, extra2) => extra2);
-    const lifecycleApi = {
-      ...mwApi,
-      getCacheEntry: () => selector(mwApi.getState()),
-      requestId,
-      extra,
-      updateCachedData: endpointDefinition.type === "query" /* query */ ? (updateRecipe) => mwApi.dispatch(api.util.updateQueryData(endpointName, originalArgs, updateRecipe)) : void 0,
-      cacheDataLoaded,
-      cacheEntryRemoved
-    };
-    const runningHandler = onCacheEntryAdded(originalArgs, lifecycleApi);
-    Promise.resolve(runningHandler).catch((e) => {
-      if (e === neverResolvedError)
-        return;
-      throw e;
-    });
-  }
-  return handler;
-};
-
-// src/query/core/buildMiddleware/queryLifecycle.ts
-var buildQueryLifecycleHandler = ({
-  api,
-  context,
-  queryThunk,
-  mutationThunk
-}) => {
-  const isPendingThunk = (0, import_toolkit.isPending)(queryThunk, mutationThunk);
-  const isRejectedThunk = (0, import_toolkit.isRejected)(queryThunk, mutationThunk);
-  const isFullfilledThunk = (0, import_toolkit.isFulfilled)(queryThunk, mutationThunk);
-  const lifecycleMap = {};
-  const handler = (action, mwApi) => {
-    if (isPendingThunk(action)) {
-      const {
-        requestId,
-        arg: {
-          endpointName,
-          originalArgs
-        }
-      } = action.meta;
-      const endpointDefinition = context.endpointDefinitions[endpointName];
-      const onQueryStarted = endpointDefinition?.onQueryStarted;
-      if (onQueryStarted) {
-        const lifecycle = {};
-        const queryFulfilled = new Promise((resolve, reject) => {
-          lifecycle.resolve = resolve;
-          lifecycle.reject = reject;
-        });
-        queryFulfilled.catch(() => {
-        });
-        lifecycleMap[requestId] = lifecycle;
-        const selector = api.endpoints[endpointName].select(endpointDefinition.type === "query" /* query */ ? originalArgs : requestId);
-        const extra = mwApi.dispatch((_, __, extra2) => extra2);
-        const lifecycleApi = {
-          ...mwApi,
-          getCacheEntry: () => selector(mwApi.getState()),
-          requestId,
-          extra,
-          updateCachedData: endpointDefinition.type === "query" /* query */ ? (updateRecipe) => mwApi.dispatch(api.util.updateQueryData(endpointName, originalArgs, updateRecipe)) : void 0,
-          queryFulfilled
-        };
-        onQueryStarted(originalArgs, lifecycleApi);
-      }
-    } else if (isFullfilledThunk(action)) {
-      const {
-        requestId,
-        baseQueryMeta
-      } = action.meta;
-      lifecycleMap[requestId]?.resolve({
-        data: action.payload,
-        meta: baseQueryMeta
-      });
-      delete lifecycleMap[requestId];
-    } else if (isRejectedThunk(action)) {
-      const {
-        requestId,
-        rejectedWithValue,
-        baseQueryMeta
-      } = action.meta;
-      lifecycleMap[requestId]?.reject({
-        error: action.payload ?? action.error,
-        isUnhandledError: !rejectedWithValue,
-        meta: baseQueryMeta
-      });
-      delete lifecycleMap[requestId];
-    }
-  };
-  return handler;
-};
-
-// src/query/core/buildMiddleware/devMiddleware.ts
-var buildDevCheckHandler = ({
-  api,
-  context: {
-    apiUid
-  },
-  reducerPath
-}) => {
-  return (action, mwApi) => {
-    if (api.util.resetApiState.match(action)) {
-      mwApi.dispatch(api.internalActions.middlewareRegistered(apiUid));
-    }
-    if (typeof process !== "undefined" && true) {
-      if (api.internalActions.middlewareRegistered.match(action) && action.payload === apiUid && mwApi.getState()[reducerPath]?.config?.middlewareRegistered === "conflict") {
-        console.warn(`There is a mismatch between slice and middleware for the reducerPath "${reducerPath}".
-You can only have one api per reducer path, this will lead to crashes in various situations!${reducerPath === "api" ? `
-If you have multiple apis, you *have* to specify the reducerPath option when using createApi!` : ""}`);
-      }
-    }
-  };
-};
-
-// src/query/core/buildMiddleware/batchActions.ts
-var import_immer4 = require("immer");
-var buildBatchedActionsHandler = ({
-  api,
-  queryThunk,
-  internalState
-}) => {
-  const subscriptionsPrefix = `${api.reducerPath}/subscriptions`;
-  let previousSubscriptions = null;
-  let updateSyncTimer = null;
-  const {
-    updateSubscriptionOptions,
-    unsubscribeQueryResult
-  } = api.internalActions;
-  const actuallyMutateSubscriptions = (mutableState, action) => {
-    if (updateSubscriptionOptions.match(action)) {
-      const {
-        queryCacheKey,
-        requestId,
-        options
-      } = action.payload;
-      if (mutableState?.[queryCacheKey]?.[requestId]) {
-        mutableState[queryCacheKey][requestId] = options;
-      }
-      return true;
-    }
-    if (unsubscribeQueryResult.match(action)) {
-      const {
-        queryCacheKey,
-        requestId
-      } = action.payload;
-      if (mutableState[queryCacheKey]) {
-        delete mutableState[queryCacheKey][requestId];
-      }
-      return true;
-    }
-    if (api.internalActions.removeQueryResult.match(action)) {
-      delete mutableState[action.payload.queryCacheKey];
-      return true;
-    }
-    if (queryThunk.pending.match(action)) {
-      const {
-        meta: {
-          arg,
-          requestId
-        }
-      } = action;
-      const substate = mutableState[arg.queryCacheKey] ??= {};
-      substate[`${requestId}_running`] = {};
-      if (arg.subscribe) {
-        substate[requestId] = arg.subscriptionOptions ?? substate[requestId] ?? {};
-      }
-      return true;
-    }
-    let mutated = false;
-    if (queryThunk.fulfilled.match(action) || queryThunk.rejected.match(action)) {
-      const state = mutableState[action.meta.arg.queryCacheKey] || {};
-      const key = `${action.meta.requestId}_running`;
-      mutated ||= !!state[key];
-      delete state[key];
-    }
-    if (queryThunk.rejected.match(action)) {
-      const {
-        meta: {
-          condition,
-          arg,
-          requestId
-        }
-      } = action;
-      if (condition && arg.subscribe) {
-        const substate = mutableState[arg.queryCacheKey] ??= {};
-        substate[requestId] = arg.subscriptionOptions ?? substate[requestId] ?? {};
-        mutated = true;
-      }
-    }
-    return mutated;
-  };
-  const getSubscriptions = () => internalState.currentSubscriptions;
-  const getSubscriptionCount = (queryCacheKey) => {
-    const subscriptions = getSubscriptions();
-    const subscriptionsForQueryArg = subscriptions[queryCacheKey] ?? {};
-    return countObjectKeys(subscriptionsForQueryArg);
-  };
-  const isRequestSubscribed = (queryCacheKey, requestId) => {
-    const subscriptions = getSubscriptions();
-    return !!subscriptions?.[queryCacheKey]?.[requestId];
-  };
-  const subscriptionSelectors = {
-    getSubscriptions,
-    getSubscriptionCount,
-    isRequestSubscribed
-  };
-  return (action, mwApi) => {
-    if (!previousSubscriptions) {
-      previousSubscriptions = JSON.parse(JSON.stringify(internalState.currentSubscriptions));
-    }
-    if (api.util.resetApiState.match(action)) {
-      previousSubscriptions = internalState.currentSubscriptions = {};
-      updateSyncTimer = null;
-      return [true, false];
-    }
-    if (api.internalActions.internal_getRTKQSubscriptions.match(action)) {
-      return [false, subscriptionSelectors];
-    }
-    const didMutate = actuallyMutateSubscriptions(internalState.currentSubscriptions, action);
-    let actionShouldContinue = true;
-    if (didMutate) {
-      if (!updateSyncTimer) {
-        updateSyncTimer = setTimeout(() => {
-          const newSubscriptions = JSON.parse(JSON.stringify(internalState.currentSubscriptions));
-          const [, patches] = (0, import_immer4.produceWithPatches)(previousSubscriptions, () => newSubscriptions);
-          mwApi.next(api.internalActions.subscriptionsUpdated(patches));
-          previousSubscriptions = newSubscriptions;
-          updateSyncTimer = null;
-        }, 500);
-      }
-      const isSubscriptionSliceAction = typeof action.type == "string" && !!action.type.startsWith(subscriptionsPrefix);
-      const isAdditionalSubscriptionAction = queryThunk.rejected.match(action) && action.meta.condition && !!action.meta.arg.subscribe;
-      actionShouldContinue = !isSubscriptionSliceAction && !isAdditionalSubscriptionAction;
-    }
-    return [actionShouldContinue, false];
-  };
-};
-
-// src/query/core/buildMiddleware/index.ts
-function buildMiddleware(input) {
-  const {
-    reducerPath,
-    queryThunk,
-    api,
-    context
-  } = input;
-  const {
-    apiUid
-  } = context;
-  const actions = {
-    invalidateTags: (0, import_toolkit.createAction)(`${reducerPath}/invalidateTags`)
-  };
-  const isThisApiSliceAction = (action) => action.type.startsWith(`${reducerPath}/`);
-  const handlerBuilders = [buildDevCheckHandler, buildCacheCollectionHandler, buildInvalidationByTagsHandler, buildPollingHandler, buildCacheLifecycleHandler, buildQueryLifecycleHandler];
-  const middleware = (mwApi) => {
-    let initialized2 = false;
-    let internalState = {
-      currentSubscriptions: {}
-    };
-    const builderArgs = {
-      ...input,
-      internalState,
-      refetchQuery,
-      isThisApiSliceAction
-    };
-    const handlers = handlerBuilders.map((build) => build(builderArgs));
-    const batchedActionsHandler = buildBatchedActionsHandler(builderArgs);
-    const windowEventsHandler = buildWindowEventHandler(builderArgs);
-    return (next) => {
-      return (action) => {
-        if (!(0, import_toolkit.isAction)(action)) {
-          return next(action);
-        }
-        if (!initialized2) {
-          initialized2 = true;
-          mwApi.dispatch(api.internalActions.middlewareRegistered(apiUid));
-        }
-        const mwApiWithNext = {
-          ...mwApi,
-          next
-        };
-        const stateBefore = mwApi.getState();
-        const [actionShouldContinue, internalProbeResult] = batchedActionsHandler(action, mwApiWithNext, stateBefore);
-        let res;
-        if (actionShouldContinue) {
-          res = next(action);
-        } else {
-          res = internalProbeResult;
-        }
-        if (!!mwApi.getState()[reducerPath]) {
-          windowEventsHandler(action, mwApiWithNext, stateBefore);
-          if (isThisApiSliceAction(action) || context.hasRehydrationInfo(action)) {
-            for (let handler of handlers) {
-              handler(action, mwApiWithNext, stateBefore);
-            }
-          }
-        }
-        return res;
-      };
-    };
-  };
-  return {
-    middleware,
-    actions
-  };
-  function refetchQuery(querySubState, queryCacheKey, override = {}) {
-    return queryThunk({
-      type: "query",
-      endpointName: querySubState.endpointName,
-      originalArgs: querySubState.originalArgs,
-      subscribe: false,
-      forceRefetch: true,
-      queryCacheKey,
-      ...override
-    });
-  }
-}
-
-// src/query/tsHelpers.ts
-function assertCast(v) {
-}
-function safeAssign(target, ...args) {
-  return Object.assign(target, ...args);
-}
-
-// src/query/core/module.ts
-var import_immer5 = require("immer");
-var coreModuleName = /* @__PURE__ */ Symbol();
-var coreModule = () => ({
-  name: coreModuleName,
-  init(api, {
-    baseQuery,
-    tagTypes,
-    reducerPath,
-    serializeQueryArgs,
-    keepUnusedDataFor,
-    refetchOnMountOrArgChange,
-    refetchOnFocus,
-    refetchOnReconnect,
-    invalidationBehavior
-  }, context) {
-    (0, import_immer5.enablePatches)();
-    assertCast(serializeQueryArgs);
-    const assertTagType = (tag) => {
-      if (typeof process !== "undefined" && true) {
-        if (!tagTypes.includes(tag.type)) {
-          console.error(`Tag type '${tag.type}' was used, but not specified in \`tagTypes\`!`);
-        }
-      }
-      return tag;
-    };
-    Object.assign(api, {
-      reducerPath,
-      endpoints: {},
-      internalActions: {
-        onOnline,
-        onOffline,
-        onFocus,
-        onFocusLost
-      },
-      util: {}
-    });
-    const {
-      queryThunk,
-      mutationThunk,
-      patchQueryData,
-      updateQueryData,
-      upsertQueryData,
-      prefetch,
-      buildMatchThunkActions
-    } = buildThunks({
-      baseQuery,
-      reducerPath,
-      context,
-      api,
-      serializeQueryArgs,
-      assertTagType
-    });
-    const {
-      reducer,
-      actions: sliceActions
-    } = buildSlice({
-      context,
-      queryThunk,
-      mutationThunk,
-      reducerPath,
-      assertTagType,
-      config: {
-        refetchOnFocus,
-        refetchOnReconnect,
-        refetchOnMountOrArgChange,
-        keepUnusedDataFor,
-        reducerPath,
-        invalidationBehavior
-      }
-    });
-    safeAssign(api.util, {
-      patchQueryData,
-      updateQueryData,
-      upsertQueryData,
-      prefetch,
-      resetApiState: sliceActions.resetApiState
-    });
-    safeAssign(api.internalActions, sliceActions);
-    const {
-      middleware,
-      actions: middlewareActions
-    } = buildMiddleware({
-      reducerPath,
-      context,
-      queryThunk,
-      mutationThunk,
-      api,
-      assertTagType
-    });
-    safeAssign(api.util, middlewareActions);
-    safeAssign(api, {
-      reducer,
-      middleware
-    });
-    const {
-      buildQuerySelector,
-      buildMutationSelector,
-      selectInvalidatedBy,
-      selectCachedArgsForQuery
-    } = buildSelectors({
-      serializeQueryArgs,
-      reducerPath
-    });
-    safeAssign(api.util, {
-      selectInvalidatedBy,
-      selectCachedArgsForQuery
-    });
-    const {
-      buildInitiateQuery,
-      buildInitiateMutation,
-      getRunningMutationThunk,
-      getRunningMutationsThunk,
-      getRunningQueriesThunk,
-      getRunningQueryThunk
-    } = buildInitiate({
-      queryThunk,
-      mutationThunk,
-      api,
-      serializeQueryArgs,
-      context
-    });
-    safeAssign(api.util, {
-      getRunningMutationThunk,
-      getRunningMutationsThunk,
-      getRunningQueryThunk,
-      getRunningQueriesThunk
-    });
-    return {
-      name: coreModuleName,
-      injectEndpoint(endpointName, definition) {
-        const anyApi = api;
-        anyApi.endpoints[endpointName] ??= {};
-        if (isQueryDefinition(definition)) {
-          safeAssign(anyApi.endpoints[endpointName], {
-            name: endpointName,
-            select: buildQuerySelector(endpointName, definition),
-            initiate: buildInitiateQuery(endpointName, definition)
-          }, buildMatchThunkActions(queryThunk, endpointName));
-        } else if (isMutationDefinition(definition)) {
-          safeAssign(anyApi.endpoints[endpointName], {
-            name: endpointName,
-            select: buildMutationSelector(),
-            initiate: buildInitiateMutation(endpointName)
-          }, buildMatchThunkActions(mutationThunk, endpointName));
-        }
-      }
-    };
-  }
-});
-
-// src/query/core/index.ts
-var createApi = /* @__PURE__ */ buildCreateApi(coreModule());
-//# sourceMappingURL=rtk-query.development.cjs.map

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.development.cjs.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.production.min.cjs


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/cjs/rtk-query.production.min.cjs.map


+ 0 - 199
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/apiState.d.ts

@@ -1,199 +0,0 @@
-import type { SerializedError } from '@reduxjs/toolkit';
-import type { BaseQueryError } from '../baseQueryTypes';
-import type { QueryDefinition, MutationDefinition, EndpointDefinitions, BaseEndpointDefinition, ResultTypeFrom, QueryArgFrom } from '../endpointDefinitions';
-import type { Id, WithRequiredProp } from '../tsHelpers';
-export type QueryCacheKey = string & {
-    _type: 'queryCacheKey';
-};
-export type QuerySubstateIdentifier = {
-    queryCacheKey: QueryCacheKey;
-};
-export type MutationSubstateIdentifier = {
-    requestId: string;
-    fixedCacheKey?: string;
-} | {
-    requestId?: string;
-    fixedCacheKey: string;
-};
-export type RefetchConfigOptions = {
-    refetchOnMountOrArgChange: boolean | number;
-    refetchOnReconnect: boolean;
-    refetchOnFocus: boolean;
-};
-/**
- * Strings describing the query state at any given time.
- */
-export declare enum QueryStatus {
-    uninitialized = "uninitialized",
-    pending = "pending",
-    fulfilled = "fulfilled",
-    rejected = "rejected"
-}
-export type RequestStatusFlags = {
-    status: QueryStatus.uninitialized;
-    isUninitialized: true;
-    isLoading: false;
-    isSuccess: false;
-    isError: false;
-} | {
-    status: QueryStatus.pending;
-    isUninitialized: false;
-    isLoading: true;
-    isSuccess: false;
-    isError: false;
-} | {
-    status: QueryStatus.fulfilled;
-    isUninitialized: false;
-    isLoading: false;
-    isSuccess: true;
-    isError: false;
-} | {
-    status: QueryStatus.rejected;
-    isUninitialized: false;
-    isLoading: false;
-    isSuccess: false;
-    isError: true;
-};
-export declare function getRequestStatusFlags(status: QueryStatus): RequestStatusFlags;
-export type SubscriptionOptions = {
-    /**
-     * How frequently to automatically re-fetch data (in milliseconds). Defaults to `0` (off).
-     */
-    pollingInterval?: number;
-    /**
-     * Defaults to `false`. This setting allows you to control whether RTK Query will try to refetch all subscribed queries after regaining a network connection.
-     *
-     * If you specify this option alongside `skip: true`, this **will not be evaluated** until `skip` is false.
-     *
-     * Note: requires [`setupListeners`](./setupListeners) to have been called.
-     */
-    refetchOnReconnect?: boolean;
-    /**
-     * Defaults to `false`. This setting allows you to control whether RTK Query will try to refetch all subscribed queries after the application window regains focus.
-     *
-     * If you specify this option alongside `skip: true`, this **will not be evaluated** until `skip` is false.
-     *
-     * Note: requires [`setupListeners`](./setupListeners) to have been called.
-     */
-    refetchOnFocus?: boolean;
-};
-export type Subscribers = {
-    [requestId: string]: SubscriptionOptions;
-};
-export type QueryKeys<Definitions extends EndpointDefinitions> = {
-    [K in keyof Definitions]: Definitions[K] extends QueryDefinition<any, any, any, any> ? K : never;
-}[keyof Definitions];
-export type MutationKeys<Definitions extends EndpointDefinitions> = {
-    [K in keyof Definitions]: Definitions[K] extends MutationDefinition<any, any, any, any> ? K : never;
-}[keyof Definitions];
-type BaseQuerySubState<D extends BaseEndpointDefinition<any, any, any>> = {
-    /**
-     * The argument originally passed into the hook or `initiate` action call
-     */
-    originalArgs: QueryArgFrom<D>;
-    /**
-     * A unique ID associated with the request
-     */
-    requestId: string;
-    /**
-     * The received data from the query
-     */
-    data?: ResultTypeFrom<D>;
-    /**
-     * The received error if applicable
-     */
-    error?: SerializedError | (D extends QueryDefinition<any, infer BaseQuery, any, any> ? BaseQueryError<BaseQuery> : never);
-    /**
-     * The name of the endpoint associated with the query
-     */
-    endpointName: string;
-    /**
-     * Time that the latest query started
-     */
-    startedTimeStamp: number;
-    /**
-     * Time that the latest query was fulfilled
-     */
-    fulfilledTimeStamp?: number;
-};
-export type QuerySubState<D extends BaseEndpointDefinition<any, any, any>> = Id<({
-    status: QueryStatus.fulfilled;
-} & WithRequiredProp<BaseQuerySubState<D>, 'data' | 'fulfilledTimeStamp'> & {
-    error: undefined;
-}) | ({
-    status: QueryStatus.pending;
-} & BaseQuerySubState<D>) | ({
-    status: QueryStatus.rejected;
-} & WithRequiredProp<BaseQuerySubState<D>, 'error'>) | {
-    status: QueryStatus.uninitialized;
-    originalArgs?: undefined;
-    data?: undefined;
-    error?: undefined;
-    requestId?: undefined;
-    endpointName?: string;
-    startedTimeStamp?: undefined;
-    fulfilledTimeStamp?: undefined;
-}>;
-type BaseMutationSubState<D extends BaseEndpointDefinition<any, any, any>> = {
-    requestId: string;
-    data?: ResultTypeFrom<D>;
-    error?: SerializedError | (D extends MutationDefinition<any, infer BaseQuery, any, any> ? BaseQueryError<BaseQuery> : never);
-    endpointName: string;
-    startedTimeStamp: number;
-    fulfilledTimeStamp?: number;
-};
-export type MutationSubState<D extends BaseEndpointDefinition<any, any, any>> = (({
-    status: QueryStatus.fulfilled;
-} & WithRequiredProp<BaseMutationSubState<D>, 'data' | 'fulfilledTimeStamp'>) & {
-    error: undefined;
-}) | (({
-    status: QueryStatus.pending;
-} & BaseMutationSubState<D>) & {
-    data?: undefined;
-}) | ({
-    status: QueryStatus.rejected;
-} & WithRequiredProp<BaseMutationSubState<D>, 'error'>) | {
-    requestId?: undefined;
-    status: QueryStatus.uninitialized;
-    data?: undefined;
-    error?: undefined;
-    endpointName?: string;
-    startedTimeStamp?: undefined;
-    fulfilledTimeStamp?: undefined;
-};
-export type CombinedState<D extends EndpointDefinitions, E extends string, ReducerPath extends string> = {
-    queries: QueryState<D>;
-    mutations: MutationState<D>;
-    provided: InvalidationState<E>;
-    subscriptions: SubscriptionState;
-    config: ConfigState<ReducerPath>;
-};
-export type InvalidationState<TagTypes extends string> = {
-    [_ in TagTypes]: {
-        [id: string]: Array<QueryCacheKey>;
-        [id: number]: Array<QueryCacheKey>;
-    };
-};
-export type QueryState<D extends EndpointDefinitions> = {
-    [queryCacheKey: string]: QuerySubState<D[string]> | undefined;
-};
-export type SubscriptionState = {
-    [queryCacheKey: string]: Subscribers | undefined;
-};
-export type ConfigState<ReducerPath> = RefetchConfigOptions & {
-    reducerPath: ReducerPath;
-    online: boolean;
-    focused: boolean;
-    middlewareRegistered: boolean | 'conflict';
-} & ModifiableConfigState;
-export type ModifiableConfigState = {
-    keepUnusedDataFor: number;
-    invalidationBehavior: 'delayed' | 'immediately';
-} & RefetchConfigOptions;
-export type MutationState<D extends EndpointDefinitions> = {
-    [requestId: string]: MutationSubState<D[string]> | undefined;
-};
-export type RootState<Definitions extends EndpointDefinitions, TagTypes extends string, ReducerPath extends string> = {
-    [P in ReducerPath]: CombinedState<Definitions, TagTypes, P>;
-};
-export {};

+ 0 - 148
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildInitiate.d.ts

@@ -1,148 +0,0 @@
-import type { EndpointDefinitions, QueryDefinition, MutationDefinition, QueryArgFrom, ResultTypeFrom } from '../endpointDefinitions';
-import type { QueryThunk, MutationThunk, QueryThunkArg } from './buildThunks';
-import type { UnknownAction, ThunkAction, SerializedError } from '@reduxjs/toolkit';
-import type { SubscriptionOptions } from './apiState';
-import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs';
-import type { Api, ApiContext } from '../apiTypes';
-import type { BaseQueryError, QueryReturnValue } from '../baseQueryTypes';
-import type { QueryResultSelectorResult } from './buildSelectors';
-import type { Dispatch } from 'redux';
-declare module './module' {
-    interface ApiEndpointQuery<Definition extends QueryDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> {
-        initiate: StartQueryActionCreator<Definition>;
-    }
-    interface ApiEndpointMutation<Definition extends MutationDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> {
-        initiate: StartMutationActionCreator<Definition>;
-    }
-}
-export declare const forceQueryFnSymbol: unique symbol;
-export declare const isUpsertQuery: (arg: QueryThunkArg) => boolean;
-export interface StartQueryActionCreatorOptions {
-    subscribe?: boolean;
-    forceRefetch?: boolean | number;
-    subscriptionOptions?: SubscriptionOptions;
-    [forceQueryFnSymbol]?: () => QueryReturnValue;
-}
-type StartQueryActionCreator<D extends QueryDefinition<any, any, any, any, any>> = (arg: QueryArgFrom<D>, options?: StartQueryActionCreatorOptions) => ThunkAction<QueryActionCreatorResult<D>, any, any, UnknownAction>;
-export type QueryActionCreatorResult<D extends QueryDefinition<any, any, any, any>> = Promise<QueryResultSelectorResult<D>> & {
-    arg: QueryArgFrom<D>;
-    requestId: string;
-    subscriptionOptions: SubscriptionOptions | undefined;
-    abort(): void;
-    unwrap(): Promise<ResultTypeFrom<D>>;
-    unsubscribe(): void;
-    refetch(): QueryActionCreatorResult<D>;
-    updateSubscriptionOptions(options: SubscriptionOptions): void;
-    queryCacheKey: string;
-};
-type StartMutationActionCreator<D extends MutationDefinition<any, any, any, any>> = (arg: QueryArgFrom<D>, options?: {
-    /**
-     * If this mutation should be tracked in the store.
-     * If you just want to manually trigger this mutation using `dispatch` and don't care about the
-     * result, state & potential errors being held in store, you can set this to false.
-     * (defaults to `true`)
-     */
-    track?: boolean;
-    fixedCacheKey?: string;
-}) => ThunkAction<MutationActionCreatorResult<D>, any, any, UnknownAction>;
-export type MutationActionCreatorResult<D extends MutationDefinition<any, any, any, any>> = Promise<{
-    data: ResultTypeFrom<D>;
-} | {
-    error: Exclude<BaseQueryError<D extends MutationDefinition<any, infer BaseQuery, any, any> ? BaseQuery : never>, undefined> | SerializedError;
-}> & {
-    /** @internal */
-    arg: {
-        /**
-         * The name of the given endpoint for the mutation
-         */
-        endpointName: string;
-        /**
-         * The original arguments supplied to the mutation call
-         */
-        originalArgs: QueryArgFrom<D>;
-        /**
-         * Whether the mutation is being tracked in the store.
-         */
-        track?: boolean;
-        fixedCacheKey?: string;
-    };
-    /**
-     * A unique string generated for the request sequence
-     */
-    requestId: string;
-    /**
-     * A method to cancel the mutation promise. Note that this is not intended to prevent the mutation
-     * that was fired off from reaching the server, but only to assist in handling the response.
-     *
-     * Calling `abort()` prior to the promise resolving will force it to reach the error state with
-     * the serialized error:
-     * `{ name: 'AbortError', message: 'Aborted' }`
-     *
-     * @example
-     * ```ts
-     * const [updateUser] = useUpdateUserMutation();
-     *
-     * useEffect(() => {
-     *   const promise = updateUser(id);
-     *   promise
-     *     .unwrap()
-     *     .catch((err) => {
-     *       if (err.name === 'AbortError') return;
-     *       // else handle the unexpected error
-     *     })
-     *
-     *   return () => {
-     *     promise.abort();
-     *   }
-     * }, [id, updateUser])
-     * ```
-     */
-    abort(): void;
-    /**
-     * Unwraps a mutation call to provide the raw response/error.
-     *
-     * @remarks
-     * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
-     *
-     * @example
-     * ```ts
-     * // codeblock-meta title="Using .unwrap"
-     * addPost({ id: 1, name: 'Example' })
-     *   .unwrap()
-     *   .then((payload) => console.log('fulfilled', payload))
-     *   .catch((error) => console.error('rejected', error));
-     * ```
-     *
-     * @example
-     * ```ts
-     * // codeblock-meta title="Using .unwrap with async await"
-     * try {
-     *   const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
-     *   console.log('fulfilled', payload)
-     * } catch (error) {
-     *   console.error('rejected', error);
-     * }
-     * ```
-     */
-    unwrap(): Promise<ResultTypeFrom<D>>;
-    /**
-     * A method to manually unsubscribe from the mutation call, meaning it will be removed from cache after the usual caching grace period.
-     The value returned by the hook will reset to `isUninitialized` afterwards.
-     */
-    reset(): void;
-};
-export declare function buildInitiate({ serializeQueryArgs, queryThunk, mutationThunk, api, context, }: {
-    serializeQueryArgs: InternalSerializeQueryArgs;
-    queryThunk: QueryThunk;
-    mutationThunk: MutationThunk;
-    api: Api<any, EndpointDefinitions, any, any>;
-    context: ApiContext<EndpointDefinitions>;
-}): {
-    buildInitiateQuery: (endpointName: string, endpointDefinition: QueryDefinition<any, any, any, any>) => StartQueryActionCreator<any>;
-    buildInitiateMutation: (endpointName: string) => StartMutationActionCreator<any>;
-    getRunningQueryThunk: (endpointName: string, queryArgs: any) => (dispatch: Dispatch) => QueryActionCreatorResult<never> | undefined;
-    getRunningMutationThunk: (_endpointName: string, fixedCacheKeyOrRequestId: string) => (dispatch: Dispatch) => MutationActionCreatorResult<never> | undefined;
-    getRunningQueriesThunk: () => (dispatch: Dispatch) => QueryActionCreatorResult<any>[];
-    getRunningMutationsThunk: () => (dispatch: Dispatch) => MutationActionCreatorResult<any>[];
-};
-export {};

+ 0 - 5
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/batchActions.d.ts

@@ -1,5 +0,0 @@
-import type { InternalHandlerBuilder, SubscriptionSelectors } from './types';
-export declare const buildBatchedActionsHandler: InternalHandlerBuilder<[
-    actionShouldContinue: boolean,
-    returnValue: SubscriptionSelectors | boolean
-]>;

+ 0 - 16
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/cacheCollection.d.ts

@@ -1,16 +0,0 @@
-import type { BaseQueryFn } from '../../baseQueryTypes';
-import type { InternalHandlerBuilder } from './types';
-export type ReferenceCacheCollection = never;
-declare module '../../endpointDefinitions' {
-    interface QueryExtraOptions<TagTypes extends string, ResultType, QueryArg, BaseQuery extends BaseQueryFn, ReducerPath extends string = string> {
-        /**
-         * Overrides the api-wide definition of `keepUnusedDataFor` for this endpoint only. _(This value is in seconds.)_
-         *
-         * This is how long RTK Query will keep your data cached for **after** the last component unsubscribes. For example, if you query an endpoint, then unmount the component, then mount another component that makes the same request within the given time frame, the most recent value will be served from the cache.
-         */
-        keepUnusedDataFor?: number;
-    }
-}
-export declare const THIRTY_TWO_BIT_MAX_INT = 2147483647;
-export declare const THIRTY_TWO_BIT_MAX_TIMER_SECONDS: number;
-export declare const buildCacheCollectionHandler: InternalHandlerBuilder;

+ 0 - 95
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/cacheLifecycle.d.ts

@@ -1,95 +0,0 @@
-import type { UnknownAction } from 'redux';
-import type { ThunkDispatch } from 'redux-thunk';
-import type { BaseQueryFn, BaseQueryMeta } from '../../baseQueryTypes';
-import type { RootState } from '../apiState';
-import type { MutationResultSelectorResult, QueryResultSelectorResult } from '../buildSelectors';
-import type { PatchCollection, Recipe } from '../buildThunks';
-import type { InternalHandlerBuilder, PromiseWithKnownReason } from './types';
-export type ReferenceCacheLifecycle = never;
-declare module '../../endpointDefinitions' {
-    interface QueryBaseLifecycleApi<QueryArg, BaseQuery extends BaseQueryFn, ResultType, ReducerPath extends string = string> extends LifecycleApi<ReducerPath> {
-        /**
-         * Gets the current value of this cache entry.
-         */
-        getCacheEntry(): QueryResultSelectorResult<{
-            type: DefinitionType.query;
-        } & BaseEndpointDefinition<QueryArg, BaseQuery, ResultType>>;
-        /**
-         * Updates the current cache entry value.
-         * For documentation see `api.util.updateQueryData`.
-         */
-        updateCachedData(updateRecipe: Recipe<ResultType>): PatchCollection;
-    }
-    interface MutationBaseLifecycleApi<QueryArg, BaseQuery extends BaseQueryFn, ResultType, ReducerPath extends string = string> extends LifecycleApi<ReducerPath> {
-        /**
-         * Gets the current value of this cache entry.
-         */
-        getCacheEntry(): MutationResultSelectorResult<{
-            type: DefinitionType.mutation;
-        } & BaseEndpointDefinition<QueryArg, BaseQuery, ResultType>>;
-    }
-    interface LifecycleApi<ReducerPath extends string = string> {
-        /**
-         * The dispatch method for the store
-         */
-        dispatch: ThunkDispatch<any, any, UnknownAction>;
-        /**
-         * A method to get the current state
-         */
-        getState(): RootState<any, any, ReducerPath>;
-        /**
-         * `extra` as provided as `thunk.extraArgument` to the `configureStore` `getDefaultMiddleware` option.
-         */
-        extra: unknown;
-        /**
-         * A unique ID generated for the mutation
-         */
-        requestId: string;
-    }
-    interface CacheLifecyclePromises<ResultType = unknown, MetaType = unknown> {
-        /**
-         * Promise that will resolve with the first value for this cache key.
-         * This allows you to `await` until an actual value is in cache.
-         *
-         * If the cache entry is removed from the cache before any value has ever
-         * been resolved, this Promise will reject with
-         * `new Error('Promise never resolved before cacheEntryRemoved.')`
-         * to prevent memory leaks.
-         * You can just re-throw that error (or not handle it at all) -
-         * it will be caught outside of `cacheEntryAdded`.
-         *
-         * If you don't interact with this promise, it will not throw.
-         */
-        cacheDataLoaded: PromiseWithKnownReason<{
-            /**
-             * The (transformed) query result.
-             */
-            data: ResultType;
-            /**
-             * The `meta` returned by the `baseQuery`
-             */
-            meta: MetaType;
-        }, typeof neverResolvedError>;
-        /**
-         * Promise that allows you to wait for the point in time when the cache entry
-         * has been removed from the cache, by not being used/subscribed to any more
-         * in the application for too long or by dispatching `api.util.resetApiState`.
-         */
-        cacheEntryRemoved: Promise<void>;
-    }
-    interface QueryCacheLifecycleApi<QueryArg, BaseQuery extends BaseQueryFn, ResultType, ReducerPath extends string = string> extends QueryBaseLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>, CacheLifecyclePromises<ResultType, BaseQueryMeta<BaseQuery>> {
-    }
-    interface MutationCacheLifecycleApi<QueryArg, BaseQuery extends BaseQueryFn, ResultType, ReducerPath extends string = string> extends MutationBaseLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>, CacheLifecyclePromises<ResultType, BaseQueryMeta<BaseQuery>> {
-    }
-    interface QueryExtraOptions<TagTypes extends string, ResultType, QueryArg, BaseQuery extends BaseQueryFn, ReducerPath extends string = string> {
-        onCacheEntryAdded?(arg: QueryArg, api: QueryCacheLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>): Promise<void> | void;
-    }
-    interface MutationExtraOptions<TagTypes extends string, ResultType, QueryArg, BaseQuery extends BaseQueryFn, ReducerPath extends string = string> {
-        onCacheEntryAdded?(arg: QueryArg, api: MutationCacheLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>): Promise<void> | void;
-    }
-}
-declare const neverResolvedError: Error & {
-    message: 'Promise never resolved before cacheEntryRemoved.';
-};
-export declare const buildCacheLifecycleHandler: InternalHandlerBuilder;
-export {};

+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/devMiddleware.d.ts

@@ -1,2 +0,0 @@
-import type { InternalHandlerBuilder } from './types';
-export declare const buildDevCheckHandler: InternalHandlerBuilder;

+ 0 - 10
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/index.d.ts

@@ -1,10 +0,0 @@
-import type { Middleware, ThunkDispatch, UnknownAction } from '@reduxjs/toolkit';
-import type { EndpointDefinitions, FullTagDescription } from '../../endpointDefinitions';
-import type { RootState } from '../apiState';
-import type { BuildMiddlewareInput } from './types';
-export declare function buildMiddleware<Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string>(input: BuildMiddlewareInput<Definitions, ReducerPath, TagTypes>): {
-    middleware: Middleware<{}, RootState<Definitions, string, ReducerPath>, ThunkDispatch<any, any, UnknownAction>>;
-    actions: {
-        invalidateTags: import("@reduxjs/toolkit").ActionCreatorWithPayload<(TagTypes | FullTagDescription<TagTypes>)[], string>;
-    };
-};

+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/invalidationByTags.d.ts

@@ -1,2 +0,0 @@
-import type { InternalHandlerBuilder } from './types';
-export declare const buildInvalidationByTagsHandler: InternalHandlerBuilder;

+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/polling.d.ts

@@ -1,2 +0,0 @@
-import type { InternalHandlerBuilder } from './types';
-export declare const buildPollingHandler: InternalHandlerBuilder;

+ 0 - 142
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/queryLifecycle.d.ts

@@ -1,142 +0,0 @@
-import type { BaseQueryError, BaseQueryFn, BaseQueryMeta } from '../../baseQueryTypes';
-import type { PromiseWithKnownReason, InternalHandlerBuilder } from './types';
-export type ReferenceQueryLifecycle = never;
-declare module '../../endpointDefinitions' {
-    interface QueryLifecyclePromises<ResultType, BaseQuery extends BaseQueryFn> {
-        /**
-         * Promise that will resolve with the (transformed) query result.
-         *
-         * If the query fails, this promise will reject with the error.
-         *
-         * This allows you to `await` for the query to finish.
-         *
-         * If you don't interact with this promise, it will not throw.
-         */
-        queryFulfilled: PromiseWithKnownReason<{
-            /**
-             * The (transformed) query result.
-             */
-            data: ResultType;
-            /**
-             * The `meta` returned by the `baseQuery`
-             */
-            meta: BaseQueryMeta<BaseQuery>;
-        }, QueryFulfilledRejectionReason<BaseQuery>>;
-    }
-    type QueryFulfilledRejectionReason<BaseQuery extends BaseQueryFn> = {
-        error: BaseQueryError<BaseQuery>;
-        /**
-         * If this is `false`, that means this error was returned from the `baseQuery` or `queryFn` in a controlled manner.
-         */
-        isUnhandledError: false;
-        /**
-         * The `meta` returned by the `baseQuery`
-         */
-        meta: BaseQueryMeta<BaseQuery>;
-    } | {
-        error: unknown;
-        meta?: undefined;
-        /**
-         * If this is `true`, that means that this error is the result of `baseQueryFn`, `queryFn`, `transformResponse` or `transformErrorResponse` throwing an error instead of handling it properly.
-         * There can not be made any assumption about the shape of `error`.
-         */
-        isUnhandledError: true;
-    };
-    interface QueryExtraOptions<TagTypes extends string, ResultType, QueryArg, BaseQuery extends BaseQueryFn, ReducerPath extends string = string> {
-        /**
-         * A function that is called when the individual query is started. The function is called with a lifecycle api object containing properties such as `queryFulfilled`, allowing code to be run when a query is started, when it succeeds, and when it fails (i.e. throughout the lifecycle of an individual query/mutation call).
-         *
-         * Can be used to perform side-effects throughout the lifecycle of the query.
-         *
-         * @example
-         * ```ts
-         * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query'
-         * import { messageCreated } from './notificationsSlice
-         * export interface Post {
-         *   id: number
-         *   name: string
-         * }
-         *
-         * const api = createApi({
-         *   baseQuery: fetchBaseQuery({
-         *     baseUrl: '/',
-         *   }),
-         *   endpoints: (build) => ({
-         *     getPost: build.query<Post, number>({
-         *       query: (id) => `post/${id}`,
-         *       async onQueryStarted(id, { dispatch, queryFulfilled }) {
-         *         // `onStart` side-effect
-         *         dispatch(messageCreated('Fetching posts...'))
-         *         try {
-         *           const { data } = await queryFulfilled
-         *           // `onSuccess` side-effect
-         *           dispatch(messageCreated('Posts received!'))
-         *         } catch (err) {
-         *           // `onError` side-effect
-         *           dispatch(messageCreated('Error fetching posts!'))
-         *         }
-         *       }
-         *     }),
-         *   }),
-         * })
-         * ```
-         */
-        onQueryStarted?(arg: QueryArg, api: QueryLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>): Promise<void> | void;
-    }
-    interface MutationExtraOptions<TagTypes extends string, ResultType, QueryArg, BaseQuery extends BaseQueryFn, ReducerPath extends string = string> {
-        /**
-         * A function that is called when the individual mutation is started. The function is called with a lifecycle api object containing properties such as `queryFulfilled`, allowing code to be run when a query is started, when it succeeds, and when it fails (i.e. throughout the lifecycle of an individual query/mutation call).
-         *
-         * Can be used for `optimistic updates`.
-         *
-         * @example
-         *
-         * ```ts
-         * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query'
-         * export interface Post {
-         *   id: number
-         *   name: string
-         * }
-         *
-         * const api = createApi({
-         *   baseQuery: fetchBaseQuery({
-         *     baseUrl: '/',
-         *   }),
-         *   tagTypes: ['Post'],
-         *   endpoints: (build) => ({
-         *     getPost: build.query<Post, number>({
-         *       query: (id) => `post/${id}`,
-         *       providesTags: ['Post'],
-         *     }),
-         *     updatePost: build.mutation<void, Pick<Post, 'id'> & Partial<Post>>({
-         *       query: ({ id, ...patch }) => ({
-         *         url: `post/${id}`,
-         *         method: 'PATCH',
-         *         body: patch,
-         *       }),
-         *       invalidatesTags: ['Post'],
-         *       async onQueryStarted({ id, ...patch }, { dispatch, queryFulfilled }) {
-         *         const patchResult = dispatch(
-         *           api.util.updateQueryData('getPost', id, (draft) => {
-         *             Object.assign(draft, patch)
-         *           })
-         *         )
-         *         try {
-         *           await queryFulfilled
-         *         } catch {
-         *           patchResult.undo()
-         *         }
-         *       },
-         *     }),
-         *   }),
-         * })
-         * ```
-         */
-        onQueryStarted?(arg: QueryArg, api: MutationLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>): Promise<void> | void;
-    }
-    interface QueryLifecycleApi<QueryArg, BaseQuery extends BaseQueryFn, ResultType, ReducerPath extends string = string> extends QueryBaseLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>, QueryLifecyclePromises<ResultType, BaseQuery> {
-    }
-    interface MutationLifecycleApi<QueryArg, BaseQuery extends BaseQueryFn, ResultType, ReducerPath extends string = string> extends MutationBaseLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>, QueryLifecyclePromises<ResultType, BaseQuery> {
-    }
-}
-export declare const buildQueryLifecycleHandler: InternalHandlerBuilder;

+ 0 - 62
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/types.d.ts

@@ -1,62 +0,0 @@
-import type { Action, AsyncThunkAction, Middleware, MiddlewareAPI, ThunkDispatch, UnknownAction } from '@reduxjs/toolkit';
-import type { Api, ApiContext } from '../../apiTypes';
-import type { AssertTagTypes, EndpointDefinitions } from '../../endpointDefinitions';
-import type { QueryStatus, QuerySubState, RootState, SubscriptionState } from '../apiState';
-import type { MutationThunk, QueryThunk, QueryThunkArg, ThunkResult } from '../buildThunks';
-export type QueryStateMeta<T> = Record<string, undefined | T>;
-export type TimeoutId = ReturnType<typeof setTimeout>;
-export interface InternalMiddlewareState {
-    currentSubscriptions: SubscriptionState;
-}
-export interface SubscriptionSelectors {
-    getSubscriptions: () => SubscriptionState;
-    getSubscriptionCount: (queryCacheKey: string) => number;
-    isRequestSubscribed: (queryCacheKey: string, requestId: string) => boolean;
-}
-export interface BuildMiddlewareInput<Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string> {
-    reducerPath: ReducerPath;
-    context: ApiContext<Definitions>;
-    queryThunk: QueryThunk;
-    mutationThunk: MutationThunk;
-    api: Api<any, Definitions, ReducerPath, TagTypes>;
-    assertTagType: AssertTagTypes;
-}
-export type SubMiddlewareApi = MiddlewareAPI<ThunkDispatch<any, any, UnknownAction>, RootState<EndpointDefinitions, string, string>>;
-export interface BuildSubMiddlewareInput extends BuildMiddlewareInput<EndpointDefinitions, string, string> {
-    internalState: InternalMiddlewareState;
-    refetchQuery(querySubState: Exclude<QuerySubState<any>, {
-        status: QueryStatus.uninitialized;
-    }>, queryCacheKey: string, override?: Partial<QueryThunkArg>): AsyncThunkAction<ThunkResult, QueryThunkArg, {}>;
-    isThisApiSliceAction: (action: Action) => boolean;
-}
-export type SubMiddlewareBuilder = (input: BuildSubMiddlewareInput) => Middleware<{}, RootState<EndpointDefinitions, string, string>, ThunkDispatch<any, any, UnknownAction>>;
-type MwNext = Parameters<ReturnType<Middleware>>[0];
-export type ApiMiddlewareInternalHandler<Return = void> = (action: Action, mwApi: SubMiddlewareApi & {
-    next: MwNext;
-}, prevState: RootState<EndpointDefinitions, string, string>) => Return;
-export type InternalHandlerBuilder<ReturnType = void> = (input: BuildSubMiddlewareInput) => ApiMiddlewareInternalHandler<ReturnType>;
-export interface PromiseConstructorWithKnownReason {
-    /**
-     * Creates a new Promise with a known rejection reason.
-     * @param executor A callback used to initialize the promise. This callback is passed two arguments:
-     * a resolve callback used to resolve the promise with a value or the result of another promise,
-     * and a reject callback used to reject the promise with a provided reason or error.
-     */
-    new <T, R>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: R) => void) => void): PromiseWithKnownReason<T, R>;
-}
-export interface PromiseWithKnownReason<T, R> extends Omit<Promise<T>, 'then' | 'catch'> {
-    /**
-     * Attaches callbacks for the resolution and/or rejection of the Promise.
-     * @param onfulfilled The callback to execute when the Promise is resolved.
-     * @param onrejected The callback to execute when the Promise is rejected.
-     * @returns A Promise for the completion of which ever callback is executed.
-     */
-    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: R) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
-    /**
-     * Attaches a callback for only the rejection of the Promise.
-     * @param onrejected The callback to execute when the Promise is rejected.
-     * @returns A Promise for the completion of the callback.
-     */
-    catch<TResult = never>(onrejected?: ((reason: R) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
-}
-export {};

+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildMiddleware/windowEventHandling.d.ts

@@ -1,2 +0,0 @@
-import type { InternalHandlerBuilder } from './types';
-export declare const buildWindowEventHandler: InternalHandlerBuilder;

+ 0 - 56
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildSelectors.d.ts

@@ -1,56 +0,0 @@
-import type { MutationSubState, QuerySubState, RootState as _RootState, RequestStatusFlags, QueryCacheKey, QueryKeys } from './apiState';
-import type { EndpointDefinitions, QueryDefinition, MutationDefinition, QueryArgFrom, TagTypesFrom, ReducerPathFrom, TagDescription } from '../endpointDefinitions';
-import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs';
-export type SkipToken = typeof skipToken;
-/**
- * Can be passed into `useQuery`, `useQueryState` or `useQuerySubscription`
- * instead of the query argument to get the same effect as if setting
- * `skip: true` in the query options.
- *
- * Useful for scenarios where a query should be skipped when `arg` is `undefined`
- * and TypeScript complains about it because `arg` is not allowed to be passed
- * in as `undefined`, such as
- *
- * ```ts
- * // codeblock-meta title="will error if the query argument is not allowed to be undefined" no-transpile
- * useSomeQuery(arg, { skip: !!arg })
- * ```
- *
- * ```ts
- * // codeblock-meta title="using skipToken instead" no-transpile
- * useSomeQuery(arg ?? skipToken)
- * ```
- *
- * If passed directly into a query or mutation selector, that selector will always
- * return an uninitialized state.
- */
-export declare const skipToken: unique symbol;
-declare module './module' {
-    interface ApiEndpointQuery<Definition extends QueryDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> {
-        select: QueryResultSelectorFactory<Definition, _RootState<Definitions, TagTypesFrom<Definition>, ReducerPathFrom<Definition>>>;
-    }
-    interface ApiEndpointMutation<Definition extends MutationDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> {
-        select: MutationResultSelectorFactory<Definition, _RootState<Definitions, TagTypesFrom<Definition>, ReducerPathFrom<Definition>>>;
-    }
-}
-type QueryResultSelectorFactory<Definition extends QueryDefinition<any, any, any, any>, RootState> = (queryArg: QueryArgFrom<Definition> | SkipToken) => (state: RootState) => QueryResultSelectorResult<Definition>;
-export type QueryResultSelectorResult<Definition extends QueryDefinition<any, any, any, any>> = QuerySubState<Definition> & RequestStatusFlags;
-type MutationResultSelectorFactory<Definition extends MutationDefinition<any, any, any, any>, RootState> = (requestId: string | {
-    requestId: string | undefined;
-    fixedCacheKey: string | undefined;
-} | SkipToken) => (state: RootState) => MutationResultSelectorResult<Definition>;
-export type MutationResultSelectorResult<Definition extends MutationDefinition<any, any, any, any>> = MutationSubState<Definition> & RequestStatusFlags;
-export declare function buildSelectors<Definitions extends EndpointDefinitions, ReducerPath extends string>({ serializeQueryArgs, reducerPath, }: {
-    serializeQueryArgs: InternalSerializeQueryArgs;
-    reducerPath: ReducerPath;
-}): {
-    buildQuerySelector: (endpointName: string, endpointDefinition: QueryDefinition<any, any, any, any>) => QueryResultSelectorFactory<any, _RootState<Definitions, string, string>>;
-    buildMutationSelector: () => MutationResultSelectorFactory<any, _RootState<Definitions, string, string>>;
-    selectInvalidatedBy: (state: _RootState<Definitions, string, string>, tags: ReadonlyArray<TagDescription<string>>) => Array<{
-        endpointName: string;
-        originalArgs: any;
-        queryCacheKey: QueryCacheKey;
-    }>;
-    selectCachedArgsForQuery: <QueryName extends QueryKeys<Definitions>>(state: _RootState<Definitions, string, string>, queryName: QueryName) => QueryArgFrom<Definitions[QueryName]>[];
-};
-export {};

+ 0 - 67
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildSlice.d.ts

@@ -1,67 +0,0 @@
-import type { UnknownAction } from '@reduxjs/toolkit';
-import type { QuerySubstateIdentifier, MutationSubstateIdentifier, MutationState, QueryState, InvalidationState, Subscribers, QueryCacheKey, SubscriptionState, ConfigState } from './apiState';
-import type { MutationThunk, QueryThunk } from './buildThunks';
-import type { AssertTagTypes, EndpointDefinitions, FullTagDescription } from '../endpointDefinitions';
-import type { Patch } from 'immer';
-import type { ApiContext } from '../apiTypes';
-export declare function getMutationCacheKey(id: MutationSubstateIdentifier | {
-    requestId: string;
-    arg: {
-        fixedCacheKey?: string | undefined;
-    };
-}): string;
-export declare function getMutationCacheKey(id: {
-    fixedCacheKey?: string;
-    requestId?: string;
-}): string | undefined;
-export declare function buildSlice({ reducerPath, queryThunk, mutationThunk, context: { endpointDefinitions: definitions, apiUid, extractRehydrationInfo, hasRehydrationInfo, }, assertTagType, config, }: {
-    reducerPath: string;
-    queryThunk: QueryThunk;
-    mutationThunk: MutationThunk;
-    context: ApiContext<EndpointDefinitions>;
-    assertTagType: AssertTagTypes;
-    config: Omit<ConfigState<string>, 'online' | 'focused' | 'middlewareRegistered'>;
-}): {
-    reducer: import("redux").Reducer<{
-        queries: QueryState<any>;
-        mutations: MutationState<any>;
-        provided: InvalidationState<string>;
-        subscriptions: SubscriptionState;
-        config: ConfigState<string>;
-    }, UnknownAction, Partial<{
-        queries: QueryState<any> | undefined;
-        mutations: MutationState<any> | undefined;
-        provided: InvalidationState<string> | undefined;
-        subscriptions: SubscriptionState | undefined;
-        config: ConfigState<string> | undefined;
-    }>>;
-    actions: {
-        resetApiState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/resetApiState`>;
-        updateProvidedBy: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
-            queryCacheKey: QueryCacheKey;
-            providedTags: readonly FullTagDescription<string>[];
-        }], {
-            queryCacheKey: QueryCacheKey;
-            providedTags: readonly FullTagDescription<string>[];
-        }, `${string}/invalidation/updateProvidedBy`, never, unknown>;
-        removeMutationResult: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: MutationSubstateIdentifier], MutationSubstateIdentifier, `${string}/mutations/removeMutationResult`, never, unknown>;
-        subscriptionsUpdated: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: Patch[]], Patch[], `${string}/internalSubscriptions/subscriptionsUpdated`, never, unknown>;
-        updateSubscriptionOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
-            endpointName: string;
-            requestId: string;
-            options: Subscribers[number];
-        } & QuerySubstateIdentifier, `${string}/subscriptions/updateSubscriptionOptions`>;
-        unsubscribeQueryResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
-            requestId: string;
-        } & QuerySubstateIdentifier, `${string}/subscriptions/unsubscribeQueryResult`>;
-        internal_getRTKQSubscriptions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/subscriptions/internal_getRTKQSubscriptions`>;
-        removeQueryResult: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: QuerySubstateIdentifier], QuerySubstateIdentifier, `${string}/queries/removeQueryResult`, never, unknown>;
-        queryResultPatched: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: QuerySubstateIdentifier & {
-            patches: readonly Patch[];
-        }], QuerySubstateIdentifier & {
-            patches: readonly Patch[];
-        }, `${string}/queries/queryResultPatched`, never, unknown>;
-        middlewareRegistered: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, `${string}/config/middlewareRegistered`>;
-    };
-};
-export type SliceActions = ReturnType<typeof buildSlice>['actions'];

+ 0 - 141
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/buildThunks.d.ts

@@ -1,141 +0,0 @@
-import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs';
-import type { Api, ApiContext } from '../apiTypes';
-import type { BaseQueryFn, BaseQueryError } from '../baseQueryTypes';
-import type { RootState, QueryKeys, QuerySubstateIdentifier } from './apiState';
-import type { StartQueryActionCreatorOptions, QueryActionCreatorResult } from './buildInitiate';
-import type { AssertTagTypes, EndpointDefinition, EndpointDefinitions, MutationDefinition, QueryArgFrom, QueryDefinition, ResultTypeFrom, FullTagDescription } from '../endpointDefinitions';
-import type { Draft, UnknownAction } from '@reduxjs/toolkit';
-import { SHOULD_AUTOBATCH } from './rtkImports';
-import type { Patch } from 'immer';
-import type { ThunkAction, AsyncThunk } from '@reduxjs/toolkit';
-import type { PrefetchOptions } from './module';
-import type { UnwrapPromise } from '../tsHelpers';
-declare module './module' {
-    interface ApiEndpointQuery<Definition extends QueryDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> extends Matchers<QueryThunk, Definition> {
-    }
-    interface ApiEndpointMutation<Definition extends MutationDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> extends Matchers<MutationThunk, Definition> {
-    }
-}
-type EndpointThunk<Thunk extends QueryThunk | MutationThunk, Definition extends EndpointDefinition<any, any, any, any>> = Definition extends EndpointDefinition<infer QueryArg, infer BaseQueryFn, any, infer ResultType> ? Thunk extends AsyncThunk<unknown, infer ATArg, infer ATConfig> ? AsyncThunk<ResultType, ATArg & {
-    originalArgs: QueryArg;
-}, ATConfig & {
-    rejectValue: BaseQueryError<BaseQueryFn>;
-}> : never : never;
-export type PendingAction<Thunk extends QueryThunk | MutationThunk, Definition extends EndpointDefinition<any, any, any, any>> = ReturnType<EndpointThunk<Thunk, Definition>['pending']>;
-export type FulfilledAction<Thunk extends QueryThunk | MutationThunk, Definition extends EndpointDefinition<any, any, any, any>> = ReturnType<EndpointThunk<Thunk, Definition>['fulfilled']>;
-export type RejectedAction<Thunk extends QueryThunk | MutationThunk, Definition extends EndpointDefinition<any, any, any, any>> = ReturnType<EndpointThunk<Thunk, Definition>['rejected']>;
-export type Matcher<M> = (value: any) => value is M;
-export interface Matchers<Thunk extends QueryThunk | MutationThunk, Definition extends EndpointDefinition<any, any, any, any>> {
-    matchPending: Matcher<PendingAction<Thunk, Definition>>;
-    matchFulfilled: Matcher<FulfilledAction<Thunk, Definition>>;
-    matchRejected: Matcher<RejectedAction<Thunk, Definition>>;
-}
-export interface QueryThunkArg extends QuerySubstateIdentifier, StartQueryActionCreatorOptions {
-    type: 'query';
-    originalArgs: unknown;
-    endpointName: string;
-}
-export interface MutationThunkArg {
-    type: 'mutation';
-    originalArgs: unknown;
-    endpointName: string;
-    track?: boolean;
-    fixedCacheKey?: string;
-}
-export type ThunkResult = unknown;
-export type ThunkApiMetaConfig = {
-    pendingMeta: {
-        startedTimeStamp: number;
-        [SHOULD_AUTOBATCH]: true;
-    };
-    fulfilledMeta: {
-        fulfilledTimeStamp: number;
-        baseQueryMeta: unknown;
-        [SHOULD_AUTOBATCH]: true;
-    };
-    rejectedMeta: {
-        baseQueryMeta: unknown;
-        [SHOULD_AUTOBATCH]: true;
-    };
-};
-export type QueryThunk = AsyncThunk<ThunkResult, QueryThunkArg, ThunkApiMetaConfig>;
-export type MutationThunk = AsyncThunk<ThunkResult, MutationThunkArg, ThunkApiMetaConfig>;
-export type MaybeDrafted<T> = T | Draft<T>;
-export type Recipe<T> = (data: MaybeDrafted<T>) => void | MaybeDrafted<T>;
-export type UpsertRecipe<T> = (data: MaybeDrafted<T> | undefined) => void | MaybeDrafted<T>;
-export type PatchQueryDataThunk<Definitions extends EndpointDefinitions, PartialState> = <EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, args: QueryArgFrom<Definitions[EndpointName]>, patches: readonly Patch[], updateProvided?: boolean) => ThunkAction<void, PartialState, any, UnknownAction>;
-export type UpdateQueryDataThunk<Definitions extends EndpointDefinitions, PartialState> = <EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, args: QueryArgFrom<Definitions[EndpointName]>, updateRecipe: Recipe<ResultTypeFrom<Definitions[EndpointName]>>, updateProvided?: boolean) => ThunkAction<PatchCollection, PartialState, any, UnknownAction>;
-export type UpsertQueryDataThunk<Definitions extends EndpointDefinitions, PartialState> = <EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, args: QueryArgFrom<Definitions[EndpointName]>, value: ResultTypeFrom<Definitions[EndpointName]>) => ThunkAction<QueryActionCreatorResult<Definitions[EndpointName] extends QueryDefinition<any, any, any, any> ? Definitions[EndpointName] : never>, PartialState, any, UnknownAction>;
-/**
- * An object returned from dispatching a `api.util.updateQueryData` call.
- */
-export type PatchCollection = {
-    /**
-     * An `immer` Patch describing the cache update.
-     */
-    patches: Patch[];
-    /**
-     * An `immer` Patch to revert the cache update.
-     */
-    inversePatches: Patch[];
-    /**
-     * A function that will undo the cache update.
-     */
-    undo: () => void;
-};
-export declare function buildThunks<BaseQuery extends BaseQueryFn, ReducerPath extends string, Definitions extends EndpointDefinitions>({ reducerPath, baseQuery, context: { endpointDefinitions }, serializeQueryArgs, api, assertTagType, }: {
-    baseQuery: BaseQuery;
-    reducerPath: ReducerPath;
-    context: ApiContext<Definitions>;
-    serializeQueryArgs: InternalSerializeQueryArgs;
-    api: Api<BaseQuery, Definitions, ReducerPath, any>;
-    assertTagType: AssertTagTypes;
-}): {
-    queryThunk: AsyncThunk<unknown, QueryThunkArg, {
-        pendingMeta: {
-            startedTimeStamp: number;
-            RTK_autoBatch: true;
-        };
-        fulfilledMeta: {
-            fulfilledTimeStamp: number;
-            baseQueryMeta: unknown;
-            RTK_autoBatch: true;
-        };
-        rejectedMeta: {
-            baseQueryMeta: unknown;
-            RTK_autoBatch: true;
-        };
-        state: RootState<any, string, ReducerPath>;
-        extra?: unknown;
-        dispatch?: import("redux").Dispatch<UnknownAction> | undefined;
-        rejectValue?: unknown;
-        serializedErrorType?: unknown;
-    }>;
-    mutationThunk: AsyncThunk<unknown, MutationThunkArg, {
-        pendingMeta: {
-            startedTimeStamp: number;
-            RTK_autoBatch: true;
-        };
-        fulfilledMeta: {
-            fulfilledTimeStamp: number;
-            baseQueryMeta: unknown;
-            RTK_autoBatch: true;
-        };
-        rejectedMeta: {
-            baseQueryMeta: unknown;
-            RTK_autoBatch: true;
-        };
-        state: RootState<any, string, ReducerPath>;
-        extra?: unknown;
-        dispatch?: import("redux").Dispatch<UnknownAction> | undefined;
-        rejectValue?: unknown;
-        serializedErrorType?: unknown;
-    }>;
-    prefetch: <EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, arg: any, options: PrefetchOptions) => ThunkAction<void, any, any, UnknownAction>;
-    updateQueryData: UpdateQueryDataThunk<EndpointDefinitions, RootState<any, string, ReducerPath>>;
-    upsertQueryData: UpsertQueryDataThunk<Definitions, RootState<any, string, ReducerPath>>;
-    patchQueryData: PatchQueryDataThunk<EndpointDefinitions, RootState<any, string, ReducerPath>>;
-    buildMatchThunkActions: <Thunk extends AsyncThunk<any, QueryThunkArg, ThunkApiMetaConfig> | AsyncThunk<any, MutationThunkArg, ThunkApiMetaConfig>>(thunk: Thunk, endpointName: string) => Matchers<Thunk, any>;
-};
-export declare function calculateProvidedByThunk(action: UnwrapPromise<ReturnType<ReturnType<QueryThunk>> | ReturnType<ReturnType<MutationThunk>>>, type: 'providesTags' | 'invalidatesTags', endpointDefinitions: EndpointDefinitions, assertTagType: AssertTagTypes): readonly FullTagDescription<string>[];
-export {};

+ 0 - 4
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/index.d.ts

@@ -1,4 +0,0 @@
-import { CreateApi } from '../createApi';
-import { coreModule, coreModuleName } from './module';
-declare const createApi: CreateApi<typeof coreModuleName>;
-export { createApi, coreModule, coreModuleName };

+ 0 - 316
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/module.d.ts

@@ -1,316 +0,0 @@
-/**
- * Note: this file should import all other files for type discovery and declaration merging
- */
-import type { PatchQueryDataThunk, UpdateQueryDataThunk, UpsertQueryDataThunk } from './buildThunks';
-import './buildThunks';
-import type { ActionCreatorWithPayload, Middleware, Reducer, ThunkAction, ThunkDispatch, UnknownAction } from '@reduxjs/toolkit';
-import type { EndpointDefinitions, QueryArgFrom, QueryDefinition, MutationDefinition, TagDescription } from '../endpointDefinitions';
-import type { CombinedState, QueryKeys, MutationKeys, RootState } from './apiState';
-import type { Module } from '../apiTypes';
-import { onFocus, onFocusLost, onOnline, onOffline } from './setupListeners';
-import './buildSelectors';
-import type { MutationActionCreatorResult, QueryActionCreatorResult } from './buildInitiate';
-import './buildInitiate';
-import type { SliceActions } from './buildSlice';
-import type { BaseQueryFn } from '../baseQueryTypes';
-import type { ReferenceCacheLifecycle } from './buildMiddleware/cacheLifecycle';
-import type { ReferenceQueryLifecycle } from './buildMiddleware/queryLifecycle';
-import type { ReferenceCacheCollection } from './buildMiddleware/cacheCollection';
-/**
- * `ifOlderThan` - (default: `false` | `number`) - _number is value in seconds_
- * - If specified, it will only run the query if the difference between `new Date()` and the last `fulfilledTimeStamp` is greater than the given value
- *
- * @overloadSummary
- * `force`
- * - If `force: true`, it will ignore the `ifOlderThan` value if it is set and the query will be run even if it exists in the cache.
- */
-export type PrefetchOptions = {
-    ifOlderThan?: false | number;
-} | {
-    force?: boolean;
-};
-export declare const coreModuleName: unique symbol;
-export type CoreModule = typeof coreModuleName | ReferenceCacheLifecycle | ReferenceQueryLifecycle | ReferenceCacheCollection;
-export interface ThunkWithReturnValue<T> extends ThunkAction<T, any, any, UnknownAction> {
-}
-declare module '../apiTypes' {
-    interface ApiModules<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string> {
-        [coreModuleName]: {
-            /**
-             * This api's reducer should be mounted at `store[api.reducerPath]`.
-             *
-             * @example
-             * ```ts
-             * configureStore({
-             *   reducer: {
-             *     [api.reducerPath]: api.reducer,
-             *   },
-             *   middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(api.middleware),
-             * })
-             * ```
-             */
-            reducerPath: ReducerPath;
-            /**
-             * Internal actions not part of the public API. Note: These are subject to change at any given time.
-             */
-            internalActions: InternalActions;
-            /**
-             *  A standard redux reducer that enables core functionality. Make sure it's included in your store.
-             *
-             * @example
-             * ```ts
-             * configureStore({
-             *   reducer: {
-             *     [api.reducerPath]: api.reducer,
-             *   },
-             *   middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(api.middleware),
-             * })
-             * ```
-             */
-            reducer: Reducer<CombinedState<Definitions, TagTypes, ReducerPath>, UnknownAction>;
-            /**
-             * This is a standard redux middleware and is responsible for things like polling, garbage collection and a handful of other things. Make sure it's included in your store.
-             *
-             * @example
-             * ```ts
-             * configureStore({
-             *   reducer: {
-             *     [api.reducerPath]: api.reducer,
-             *   },
-             *   middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(api.middleware),
-             * })
-             * ```
-             */
-            middleware: Middleware<{}, RootState<Definitions, string, ReducerPath>, ThunkDispatch<any, any, UnknownAction>>;
-            /**
-             * A collection of utility thunks for various situations.
-             */
-            util: {
-                /**
-                 * A thunk that (if dispatched) will return a specific running query, identified
-                 * by `endpointName` and `args`.
-                 * If that query is not running, dispatching the thunk will result in `undefined`.
-                 *
-                 * Can be used to await a specific query triggered in any way,
-                 * including via hook calls or manually dispatching `initiate` actions.
-                 *
-                 * See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for details.
-                 */
-                getRunningQueryThunk<EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, args: QueryArgFrom<Definitions[EndpointName]>): ThunkWithReturnValue<QueryActionCreatorResult<Definitions[EndpointName] & {
-                    type: 'query';
-                }> | undefined>;
-                /**
-                 * A thunk that (if dispatched) will return a specific running mutation, identified
-                 * by `endpointName` and `fixedCacheKey` or `requestId`.
-                 * If that mutation is not running, dispatching the thunk will result in `undefined`.
-                 *
-                 * Can be used to await a specific mutation triggered in any way,
-                 * including via hook trigger functions or manually dispatching `initiate` actions.
-                 *
-                 * See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for details.
-                 */
-                getRunningMutationThunk<EndpointName extends MutationKeys<Definitions>>(endpointName: EndpointName, fixedCacheKeyOrRequestId: string): ThunkWithReturnValue<MutationActionCreatorResult<Definitions[EndpointName] & {
-                    type: 'mutation';
-                }> | undefined>;
-                /**
-                 * A thunk that (if dispatched) will return all running queries.
-                 *
-                 * Useful for SSR scenarios to await all running queries triggered in any way,
-                 * including via hook calls or manually dispatching `initiate` actions.
-                 *
-                 * See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for details.
-                 */
-                getRunningQueriesThunk(): ThunkWithReturnValue<Array<QueryActionCreatorResult<any>>>;
-                /**
-                 * A thunk that (if dispatched) will return all running mutations.
-                 *
-                 * Useful for SSR scenarios to await all running mutations triggered in any way,
-                 * including via hook calls or manually dispatching `initiate` actions.
-                 *
-                 * See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for details.
-                 */
-                getRunningMutationsThunk(): ThunkWithReturnValue<Array<MutationActionCreatorResult<any>>>;
-                /**
-                 * A Redux thunk that can be used to manually trigger pre-fetching of data.
-                 *
-                 * The thunk accepts three arguments: the name of the endpoint we are updating (such as `'getPost'`), the appropriate query arg values to construct the desired cache key, and a set of options used to determine if the data actually should be re-fetched based on cache staleness.
-                 *
-                 * React Hooks users will most likely never need to use this directly, as the `usePrefetch` hook will dispatch this thunk internally as needed when you call the prefetching function supplied by the hook.
-                 *
-                 * @example
-                 *
-                 * ```ts no-transpile
-                 * dispatch(api.util.prefetch('getPosts', undefined, { force: true }))
-                 * ```
-                 */
-                prefetch<EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, arg: QueryArgFrom<Definitions[EndpointName]>, options: PrefetchOptions): ThunkAction<void, any, any, UnknownAction>;
-                /**
-                 * A Redux thunk action creator that, when dispatched, creates and applies a set of JSON diff/patch objects to the current state. This immediately updates the Redux state with those changes.
-                 *
-                 * The thunk action creator accepts three arguments: the name of the endpoint we are updating (such as `'getPost'`), the appropriate query arg values to construct the desired cache key, and an `updateRecipe` callback function. The callback receives an Immer-wrapped `draft` of the current state, and may modify the draft to match the expected results after the mutation completes successfully.
-                 *
-                 * The thunk executes _synchronously_, and returns an object containing `{patches: Patch[], inversePatches: Patch[], undo: () => void}`. The `patches` and `inversePatches` are generated using Immer's [`produceWithPatches` method](https://immerjs.github.io/immer/patches).
-                 *
-                 * This is typically used as the first step in implementing optimistic updates. The generated `inversePatches` can be used to revert the updates by calling `dispatch(patchQueryData(endpointName, args, inversePatches))`. Alternatively, the `undo` method can be called directly to achieve the same effect.
-                 *
-                 * Note that the first two arguments (`endpointName` and `args`) are used to determine which existing cache entry to update. If no existing cache entry is found, the `updateRecipe` callback will not run.
-                 *
-                 * @example
-                 *
-                 * ```ts
-                 * const patchCollection = dispatch(
-                 *   api.util.updateQueryData('getPosts', undefined, (draftPosts) => {
-                 *     draftPosts.push({ id: 1, name: 'Teddy' })
-                 *   })
-                 * )
-                 * ```
-                 */
-                updateQueryData: UpdateQueryDataThunk<Definitions, RootState<Definitions, string, ReducerPath>>;
-                /**
-                 * A Redux thunk action creator that, when dispatched, acts as an artificial API request to upsert a value into the cache.
-                 *
-                 * The thunk action creator accepts three arguments: the name of the endpoint we are updating (such as `'getPost'`), the appropriate query arg values to construct the desired cache key, and the data to upsert.
-                 *
-                 * If no cache entry for that cache key exists, a cache entry will be created and the data added. If a cache entry already exists, this will _overwrite_ the existing cache entry data.
-                 *
-                 * The thunk executes _asynchronously_, and returns a promise that resolves when the store has been updated.
-                 *
-                 * If dispatched while an actual request is in progress, both the upsert and request will be handled as soon as they resolve, resulting in a "last result wins" update behavior.
-                 *
-                 * @example
-                 *
-                 * ```ts
-                 * await dispatch(
-                 *   api.util.upsertQueryData('getPost', {id: 1}, {id: 1, text: "Hello!"})
-                 * )
-                 * ```
-                 */
-                upsertQueryData: UpsertQueryDataThunk<Definitions, RootState<Definitions, string, ReducerPath>>;
-                /**
-                 * A Redux thunk that applies a JSON diff/patch array to the cached data for a given query result. This immediately updates the Redux state with those changes.
-                 *
-                 * The thunk accepts three arguments: the name of the endpoint we are updating (such as `'getPost'`), the appropriate query arg values to construct the desired cache key, and a JSON diff/patch array as produced by Immer's `produceWithPatches`.
-                 *
-                 * This is typically used as the second step in implementing optimistic updates. If a request fails, the optimistically-applied changes can be reverted by dispatching `patchQueryData` with the `inversePatches` that were generated by `updateQueryData` earlier.
-                 *
-                 * In cases where it is desired to simply revert the previous changes, it may be preferable to call the `undo` method returned from dispatching `updateQueryData` instead.
-                 *
-                 * @example
-                 * ```ts
-                 * const patchCollection = dispatch(
-                 *   api.util.updateQueryData('getPosts', undefined, (draftPosts) => {
-                 *     draftPosts.push({ id: 1, name: 'Teddy' })
-                 *   })
-                 * )
-                 *
-                 * // later
-                 * dispatch(
-                 *   api.util.patchQueryData('getPosts', undefined, patchCollection.inversePatches)
-                 * )
-                 *
-                 * // or
-                 * patchCollection.undo()
-                 * ```
-                 */
-                patchQueryData: PatchQueryDataThunk<Definitions, RootState<Definitions, string, ReducerPath>>;
-                /**
-                 * A Redux action creator that can be dispatched to manually reset the api state completely. This will immediately remove all existing cache entries, and all queries will be considered 'uninitialized'.
-                 *
-                 * @example
-                 *
-                 * ```ts
-                 * dispatch(api.util.resetApiState())
-                 * ```
-                 */
-                resetApiState: SliceActions['resetApiState'];
-                /**
-                 * A Redux action creator that can be used to manually invalidate cache tags for [automated re-fetching](../../usage/automated-refetching.mdx).
-                 *
-                 * The action creator accepts one argument: the cache tags to be invalidated. It returns an action with those tags as a payload, and the corresponding `invalidateTags` action type for the api.
-                 *
-                 * Dispatching the result of this action creator will [invalidate](../../usage/automated-refetching.mdx#invalidating-cache-data) the given tags, causing queries to automatically re-fetch if they are subscribed to cache data that [provides](../../usage/automated-refetching.mdx#providing-cache-data) the corresponding tags.
-                 *
-                 * The array of tags provided to the action creator should be in one of the following formats, where `TagType` is equal to a string provided to the [`tagTypes`](../createApi.mdx#tagtypes) property of the api:
-                 *
-                 * - `[TagType]`
-                 * - `[{ type: TagType }]`
-                 * - `[{ type: TagType, id: number | string }]`
-                 *
-                 * @example
-                 *
-                 * ```ts
-                 * dispatch(api.util.invalidateTags(['Post']))
-                 * dispatch(api.util.invalidateTags([{ type: 'Post', id: 1 }]))
-                 * dispatch(
-                 *   api.util.invalidateTags([
-                 *     { type: 'Post', id: 1 },
-                 *     { type: 'Post', id: 'LIST' },
-                 *   ])
-                 * )
-                 * ```
-                 */
-                invalidateTags: ActionCreatorWithPayload<Array<TagDescription<TagTypes>>, string>;
-                /**
-                 * A function to select all `{ endpointName, originalArgs, queryCacheKey }` combinations that would be invalidated by a specific set of tags.
-                 *
-                 * Can be used for mutations that want to do optimistic updates instead of invalidating a set of tags, but don't know exactly what they need to update.
-                 */
-                selectInvalidatedBy: (state: RootState<Definitions, string, ReducerPath>, tags: ReadonlyArray<TagDescription<TagTypes>>) => Array<{
-                    endpointName: string;
-                    originalArgs: any;
-                    queryCacheKey: string;
-                }>;
-                /**
-                 * A function to select all arguments currently cached for a given endpoint.
-                 *
-                 * Can be used for mutations that want to do optimistic updates instead of invalidating a set of tags, but don't know exactly what they need to update.
-                 */
-                selectCachedArgsForQuery: <QueryName extends QueryKeys<Definitions>>(state: RootState<Definitions, string, ReducerPath>, queryName: QueryName) => Array<QueryArgFrom<Definitions[QueryName]>>;
-            };
-            /**
-             * Endpoints based on the input endpoints provided to `createApi`, containing `select` and `action matchers`.
-             */
-            endpoints: {
-                [K in keyof Definitions]: Definitions[K] extends QueryDefinition<any, any, any, any, any> ? ApiEndpointQuery<Definitions[K], Definitions> : Definitions[K] extends MutationDefinition<any, any, any, any, any> ? ApiEndpointMutation<Definitions[K], Definitions> : never;
-            };
-        };
-    }
-}
-export interface ApiEndpointQuery<Definition extends QueryDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> {
-    name: string;
-    /**
-     * All of these are `undefined` at runtime, purely to be used in TypeScript declarations!
-     */
-    Types: NonNullable<Definition['Types']>;
-}
-export interface ApiEndpointMutation<Definition extends MutationDefinition<any, any, any, any, any>, Definitions extends EndpointDefinitions> {
-    name: string;
-    /**
-     * All of these are `undefined` at runtime, purely to be used in TypeScript declarations!
-     */
-    Types: NonNullable<Definition['Types']>;
-}
-export type ListenerActions = {
-    /**
-     * Will cause the RTK Query middleware to trigger any refetchOnReconnect-related behavior
-     * @link https://rtk-query-docs.netlify.app/api/setupListeners
-     */
-    onOnline: typeof onOnline;
-    onOffline: typeof onOffline;
-    /**
-     * Will cause the RTK Query middleware to trigger any refetchOnFocus-related behavior
-     * @link https://rtk-query-docs.netlify.app/api/setupListeners
-     */
-    onFocus: typeof onFocus;
-    onFocusLost: typeof onFocusLost;
-};
-export type InternalActions = SliceActions & ListenerActions;
-/**
- * Creates a module containing the basic redux logic for use with `buildCreateApi`.
- *
- * @example
- * ```ts
- * const createBaseApi = buildCreateApi(coreModule());
- * ```
- */
-export declare const coreModule: () => Module<CoreModule>;

+ 0 - 1
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/rtkImports.d.ts

@@ -1 +0,0 @@
-export { createAction, createSlice, createSelector, createAsyncThunk, combineReducers, createNextState, isAnyOf, isAllOf, isAction, isPending, isRejected, isFulfilled, isRejectedWithValue, isAsyncThunkAction, prepareAutoBatched, SHOULD_AUTOBATCH, isPlainObject, nanoid, } from '@reduxjs/toolkit';

+ 0 - 27
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/core/setupListeners.d.ts

@@ -1,27 +0,0 @@
-import type { ThunkDispatch, ActionCreatorWithoutPayload } from '@reduxjs/toolkit';
-export declare const onFocus: ActionCreatorWithoutPayload<"__rtkq/focused">;
-export declare const onFocusLost: ActionCreatorWithoutPayload<"__rtkq/unfocused">;
-export declare const onOnline: ActionCreatorWithoutPayload<"__rtkq/online">;
-export declare const onOffline: ActionCreatorWithoutPayload<"__rtkq/offline">;
-/**
- * A utility used to enable `refetchOnMount` and `refetchOnReconnect` behaviors.
- * It requires the dispatch method from your store.
- * Calling `setupListeners(store.dispatch)` will configure listeners with the recommended defaults,
- * but you have the option of providing a callback for more granular control.
- *
- * @example
- * ```ts
- * setupListeners(store.dispatch)
- * ```
- *
- * @param dispatch - The dispatch method from your store
- * @param customHandler - An optional callback for more granular control over listener behavior
- * @returns Return value of the handler.
- * The default handler returns an `unsubscribe` method that can be called to remove the listeners.
- */
-export declare function setupListeners(dispatch: ThunkDispatch<any, any, any>, customHandler?: (dispatch: ThunkDispatch<any, any, any>, actions: {
-    onFocus: typeof onFocus;
-    onFocusLost: typeof onFocusLost;
-    onOnline: typeof onOnline;
-    onOffline: typeof onOffline;
-}) => () => void): () => void;

+ 0 - 217
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/createApi.d.ts

@@ -1,217 +0,0 @@
-import type { Api, Module, ModuleName } from './apiTypes';
-import type { CombinedState } from './core/apiState';
-import type { BaseQueryArg, BaseQueryFn } from './baseQueryTypes';
-import type { SerializeQueryArgs } from './defaultSerializeQueryArgs';
-import type { EndpointBuilder, EndpointDefinitions } from './endpointDefinitions';
-import type { UnknownAction } from '@reduxjs/toolkit';
-import type { NoInfer } from './tsHelpers';
-export interface CreateApiOptions<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string = 'api', TagTypes extends string = never> {
-    /**
-     * The base query used by each endpoint if no `queryFn` option is specified. RTK Query exports a utility called [fetchBaseQuery](./fetchBaseQuery) as a lightweight wrapper around `fetch` for common use-cases. See [Customizing Queries](../../rtk-query/usage/customizing-queries) if `fetchBaseQuery` does not handle your requirements.
-     *
-     * @example
-     *
-     * ```ts
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query'
-     *
-     * const api = createApi({
-     *   // highlight-start
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   // highlight-end
-     *   endpoints: (build) => ({
-     *     // ...endpoints
-     *   }),
-     * })
-     * ```
-     */
-    baseQuery: BaseQuery;
-    /**
-     * An array of string tag type names. Specifying tag types is optional, but you should define them so that they can be used for caching and invalidation. When defining a tag type, you will be able to [provide](../../rtk-query/usage/automated-refetching#providing-tags) them with `providesTags` and [invalidate](../../rtk-query/usage/automated-refetching#invalidating-tags) them with `invalidatesTags` when configuring [endpoints](#endpoints).
-     *
-     * @example
-     *
-     * ```ts
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query'
-     *
-     * const api = createApi({
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   // highlight-start
-     *   tagTypes: ['Post', 'User'],
-     *   // highlight-end
-     *   endpoints: (build) => ({
-     *     // ...endpoints
-     *   }),
-     * })
-     * ```
-     */
-    tagTypes?: readonly TagTypes[];
-    /**
-     * The `reducerPath` is a _unique_ key that your service will be mounted to in your store. If you call `createApi` more than once in your application, you will need to provide a unique value each time. Defaults to `'api'`.
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="apis.js"
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query';
-     *
-     * const apiOne = createApi({
-     *   // highlight-start
-     *   reducerPath: 'apiOne',
-     *   // highlight-end
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   endpoints: (builder) => ({
-     *     // ...endpoints
-     *   }),
-     * });
-     *
-     * const apiTwo = createApi({
-     *   // highlight-start
-     *   reducerPath: 'apiTwo',
-     *   // highlight-end
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   endpoints: (builder) => ({
-     *     // ...endpoints
-     *   }),
-     * });
-     * ```
-     */
-    reducerPath?: ReducerPath;
-    /**
-     * Accepts a custom function if you have a need to change the creation of cache keys for any reason.
-     */
-    serializeQueryArgs?: SerializeQueryArgs<BaseQueryArg<BaseQuery>>;
-    /**
-     * Endpoints are just a set of operations that you want to perform against your server. You define them as an object using the builder syntax. There are two basic endpoint types: [`query`](../../rtk-query/usage/queries) and [`mutation`](../../rtk-query/usage/mutations).
-     */
-    endpoints(build: EndpointBuilder<BaseQuery, TagTypes, ReducerPath>): Definitions;
-    /**
-     * Defaults to `60` _(this value is in seconds)_. This is how long RTK Query will keep your data cached for **after** the last component unsubscribes. For example, if you query an endpoint, then unmount the component, then mount another component that makes the same request within the given time frame, the most recent value will be served from the cache.
-     *
-     * ```ts
-     * // codeblock-meta title="keepUnusedDataFor example"
-     *
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     * type PostsResponse = Post[]
-     *
-     * const api = createApi({
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   endpoints: (build) => ({
-     *     getPosts: build.query<PostsResponse, void>({
-     *       query: () => 'posts',
-     *       // highlight-start
-     *       keepUnusedDataFor: 5
-     *       // highlight-end
-     *     })
-     *   })
-     * })
-     * ```
-     */
-    keepUnusedDataFor?: number;
-    /**
-     * Defaults to `false`. This setting allows you to control whether if a cached result is already available RTK Query will only serve a cached result, or if it should `refetch` when set to `true` or if an adequate amount of time has passed since the last successful query result.
-     * - `false` - Will not cause a query to be performed _unless_ it does not exist yet.
-     * - `true` - Will always refetch when a new subscriber to a query is added. Behaves the same as calling the `refetch` callback or passing `forceRefetch: true` in the action creator.
-     * - `number` - **Value is in seconds**. If a number is provided and there is an existing query in the cache, it will compare the current time vs the last fulfilled timestamp, and only refetch if enough time has elapsed.
-     *
-     * If you specify this option alongside `skip: true`, this **will not be evaluated** until `skip` is false.
-     */
-    refetchOnMountOrArgChange?: boolean | number;
-    /**
-     * Defaults to `false`. This setting allows you to control whether RTK Query will try to refetch all subscribed queries after the application window regains focus.
-     *
-     * If you specify this option alongside `skip: true`, this **will not be evaluated** until `skip` is false.
-     *
-     * Note: requires [`setupListeners`](./setupListeners) to have been called.
-     */
-    refetchOnFocus?: boolean;
-    /**
-     * Defaults to `false`. This setting allows you to control whether RTK Query will try to refetch all subscribed queries after regaining a network connection.
-     *
-     * If you specify this option alongside `skip: true`, this **will not be evaluated** until `skip` is false.
-     *
-     * Note: requires [`setupListeners`](./setupListeners) to have been called.
-     */
-    refetchOnReconnect?: boolean;
-    /**
-     * Defaults to `'immediately'`. This setting allows you to control when tags are invalidated after a mutation.
-     *
-     * - `'immediately'`: Queries are invalidated instantly after the mutation finished, even if they are running.
-     *   If the query provides tags that were invalidated while it ran, it won't be re-fetched.
-     * - `'delayed'`: Invalidation only happens after all queries and mutations are settled.
-     *   This ensures that queries are always invalidated correctly and automatically "batches" invalidations of concurrent mutations.
-     *   Note that if you constantly have some queries (or mutations) running, this can delay tag invalidations indefinitely.
-     */
-    invalidationBehavior?: 'delayed' | 'immediately';
-    /**
-     * A function that is passed every dispatched action. If this returns something other than `undefined`,
-     * that return value will be used to rehydrate fulfilled & errored queries.
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="next-redux-wrapper rehydration example"
-     * import type { Action, PayloadAction } from '@reduxjs/toolkit'
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
-     * import { HYDRATE } from 'next-redux-wrapper'
-     *
-     * type RootState = any; // normally inferred from state
-     *
-     * function isHydrateAction(action: Action): action is PayloadAction<RootState> {
-     *   return action.type === HYDRATE
-     * }
-     *
-     * export const api = createApi({
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   // highlight-start
-     *   extractRehydrationInfo(action, { reducerPath }) {
-     *     if (isHydrateAction(action)) {
-     *       return action.payload[reducerPath]
-     *     }
-     *   },
-     *   // highlight-end
-     *   endpoints: (build) => ({
-     *     // omitted
-     *   }),
-     * })
-     * ```
-     */
-    extractRehydrationInfo?: (action: UnknownAction, { reducerPath, }: {
-        reducerPath: ReducerPath;
-    }) => undefined | CombinedState<NoInfer<Definitions>, NoInfer<TagTypes>, NoInfer<ReducerPath>>;
-}
-export type CreateApi<Modules extends ModuleName> = {
-    /**
-     * Creates a service to use in your application. Contains only the basic redux logic (the core module).
-     *
-     * @link https://rtk-query-docs.netlify.app/api/createApi
-     */
-    <BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string = 'api', TagTypes extends string = never>(options: CreateApiOptions<BaseQuery, Definitions, ReducerPath, TagTypes>): Api<BaseQuery, Definitions, ReducerPath, TagTypes, Modules>;
-};
-/**
- * Builds a `createApi` method based on the provided `modules`.
- *
- * @link https://rtk-query-docs.netlify.app/concepts/customizing-create-api
- *
- * @example
- * ```ts
- * const MyContext = React.createContext<ReactReduxContextValue>(null as any);
- * const customCreateApi = buildCreateApi(
- *   coreModule(),
- *   reactHooksModule({
- *     hooks: {
- *       useDispatch: createDispatchHook(MyContext),
- *       useSelector: createSelectorHook(MyContext),
- *       useStore: createStoreHook(MyContext)
- *     }
- *   })
- * );
- * ```
- *
- * @param modules - A variable number of modules that customize how the `createApi` method handles endpoints
- * @returns A `createApi` method using the provided `modules`.
- */
-export declare function buildCreateApi<Modules extends [Module<any>, ...Module<any>[]]>(...modules: Modules): CreateApi<Modules[number]['name']>;

+ 0 - 13
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/defaultSerializeQueryArgs.d.ts

@@ -1,13 +0,0 @@
-import type { QueryCacheKey } from './core/apiState';
-import type { EndpointDefinition } from './endpointDefinitions';
-export declare const defaultSerializeQueryArgs: SerializeQueryArgs<any>;
-export type SerializeQueryArgs<QueryArgs, ReturnType = string> = (_: {
-    queryArgs: QueryArgs;
-    endpointDefinition: EndpointDefinition<any, any, any, any>;
-    endpointName: string;
-}) => ReturnType;
-export type InternalSerializeQueryArgs = (_: {
-    queryArgs: any;
-    endpointDefinition: EndpointDefinition<any, any, any, any>;
-    endpointName: string;
-}) => QueryCacheKey;

+ 0 - 526
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/endpointDefinitions.d.ts

@@ -1,526 +0,0 @@
-import type { SerializeQueryArgs } from './defaultSerializeQueryArgs';
-import type { QuerySubState, RootState } from './core/apiState';
-import type { BaseQueryExtraOptions, BaseQueryFn, BaseQueryResult, BaseQueryArg, BaseQueryApi, QueryReturnValue, BaseQueryError, BaseQueryMeta } from './baseQueryTypes';
-import type { HasRequiredProps, MaybePromise, OmitFromUnion, CastAny, NonUndefined, UnwrapPromise } from './tsHelpers';
-import type { NEVER } from './fakeBaseQuery';
-import type { Api } from '@reduxjs/toolkit/query';
-declare const resultType: unique symbol;
-declare const baseQuery: unique symbol;
-interface EndpointDefinitionWithQuery<QueryArg, BaseQuery extends BaseQueryFn, ResultType> {
-    /**
-     * `query` can be a function that returns either a `string` or an `object` which is passed to your `baseQuery`. If you are using [fetchBaseQuery](./fetchBaseQuery), this can return either a `string` or an `object` of properties in `FetchArgs`. If you use your own custom [`baseQuery`](../../rtk-query/usage/customizing-queries), you can customize this behavior to your liking.
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="query example"
-     *
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     * type PostsResponse = Post[]
-     *
-     * const api = createApi({
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   tagTypes: ['Post'],
-     *   endpoints: (build) => ({
-     *     getPosts: build.query<PostsResponse, void>({
-     *       // highlight-start
-     *       query: () => 'posts',
-     *       // highlight-end
-     *     }),
-     *     addPost: build.mutation<Post, Partial<Post>>({
-     *      // highlight-start
-     *      query: (body) => ({
-     *        url: `posts`,
-     *        method: 'POST',
-     *        body,
-     *      }),
-     *      // highlight-end
-     *      invalidatesTags: [{ type: 'Post', id: 'LIST' }],
-     *    }),
-     *   })
-     * })
-     * ```
-     */
-    query(arg: QueryArg): BaseQueryArg<BaseQuery>;
-    queryFn?: never;
-    /**
-     * A function to manipulate the data returned by a query or mutation.
-     */
-    transformResponse?(baseQueryReturnValue: BaseQueryResult<BaseQuery>, meta: BaseQueryMeta<BaseQuery>, arg: QueryArg): ResultType | Promise<ResultType>;
-    /**
-     * A function to manipulate the data returned by a failed query or mutation.
-     */
-    transformErrorResponse?(baseQueryReturnValue: BaseQueryError<BaseQuery>, meta: BaseQueryMeta<BaseQuery>, arg: QueryArg): unknown;
-    /**
-     * Defaults to `true`.
-     *
-     * Most apps should leave this setting on. The only time it can be a performance issue
-     * is if an API returns extremely large amounts of data (e.g. 10,000 rows per request) and
-     * you're unable to paginate it.
-     *
-     * For details of how this works, please see the below. When it is set to `false`,
-     * every request will cause subscribed components to rerender, even when the data has not changed.
-     *
-     * @see https://redux-toolkit.js.org/api/other-exports#copywithstructuralsharing
-     */
-    structuralSharing?: boolean;
-}
-interface EndpointDefinitionWithQueryFn<QueryArg, BaseQuery extends BaseQueryFn, ResultType> {
-    /**
-     * Can be used in place of `query` as an inline function that bypasses `baseQuery` completely for the endpoint.
-     *
-     * @example
-     * ```ts
-     * // codeblock-meta title="Basic queryFn example"
-     *
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     * type PostsResponse = Post[]
-     *
-     * const api = createApi({
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   endpoints: (build) => ({
-     *     getPosts: build.query<PostsResponse, void>({
-     *       query: () => 'posts',
-     *     }),
-     *     flipCoin: build.query<'heads' | 'tails', void>({
-     *       // highlight-start
-     *       queryFn(arg, queryApi, extraOptions, baseQuery) {
-     *         const randomVal = Math.random()
-     *         if (randomVal < 0.45) {
-     *           return { data: 'heads' }
-     *         }
-     *         if (randomVal < 0.9) {
-     *           return { data: 'tails' }
-     *         }
-     *         return { error: { status: 500, statusText: 'Internal Server Error', data: "Coin landed on it's edge!" } }
-     *       }
-     *       // highlight-end
-     *     })
-     *   })
-     * })
-     * ```
-     */
-    queryFn(arg: QueryArg, api: BaseQueryApi, extraOptions: BaseQueryExtraOptions<BaseQuery>, baseQuery: (arg: Parameters<BaseQuery>[0]) => ReturnType<BaseQuery>): MaybePromise<QueryReturnValue<ResultType, BaseQueryError<BaseQuery>>>;
-    query?: never;
-    transformResponse?: never;
-    transformErrorResponse?: never;
-    /**
-     * Defaults to `true`.
-     *
-     * Most apps should leave this setting on. The only time it can be a performance issue
-     * is if an API returns extremely large amounts of data (e.g. 10,000 rows per request) and
-     * you're unable to paginate it.
-     *
-     * For details of how this works, please see the below. When it is set to `false`,
-     * every request will cause subscribed components to rerender, even when the data has not changed.
-     *
-     * @see https://redux-toolkit.js.org/api/other-exports#copywithstructuralsharing
-     */
-    structuralSharing?: boolean;
-}
-export interface BaseEndpointTypes<QueryArg, BaseQuery extends BaseQueryFn, ResultType> {
-    QueryArg: QueryArg;
-    BaseQuery: BaseQuery;
-    ResultType: ResultType;
-}
-export type BaseEndpointDefinition<QueryArg, BaseQuery extends BaseQueryFn, ResultType> = (([CastAny<BaseQueryResult<BaseQuery>, {}>] extends [NEVER] ? never : EndpointDefinitionWithQuery<QueryArg, BaseQuery, ResultType>) | EndpointDefinitionWithQueryFn<QueryArg, BaseQuery, ResultType>) & {
-    [resultType]?: ResultType;
-    [baseQuery]?: BaseQuery;
-} & HasRequiredProps<BaseQueryExtraOptions<BaseQuery>, {
-    extraOptions: BaseQueryExtraOptions<BaseQuery>;
-}, {
-    extraOptions?: BaseQueryExtraOptions<BaseQuery>;
-}>;
-export declare enum DefinitionType {
-    query = "query",
-    mutation = "mutation"
-}
-export type GetResultDescriptionFn<TagTypes extends string, ResultType, QueryArg, ErrorType, MetaType> = (result: ResultType | undefined, error: ErrorType | undefined, arg: QueryArg, meta: MetaType) => ReadonlyArray<TagDescription<TagTypes>>;
-export type FullTagDescription<TagType> = {
-    type: TagType;
-    id?: number | string;
-};
-export type TagDescription<TagType> = TagType | FullTagDescription<TagType>;
-export type ResultDescription<TagTypes extends string, ResultType, QueryArg, ErrorType, MetaType> = ReadonlyArray<TagDescription<TagTypes>> | GetResultDescriptionFn<TagTypes, ResultType, QueryArg, ErrorType, MetaType>;
-export interface QueryTypes<QueryArg, BaseQuery extends BaseQueryFn, TagTypes extends string, ResultType, ReducerPath extends string = string> extends BaseEndpointTypes<QueryArg, BaseQuery, ResultType> {
-    /**
-     * The endpoint definition type. To be used with some internal generic types.
-     * @example
-     * ```ts
-     * const useMyWrappedHook: UseQuery<typeof api.endpoints.query.Types.QueryDefinition> = ...
-     * ```
-     */
-    QueryDefinition: QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>;
-    TagTypes: TagTypes;
-    ReducerPath: ReducerPath;
-}
-export interface QueryExtraOptions<TagTypes extends string, ResultType, QueryArg, BaseQuery extends BaseQueryFn, ReducerPath extends string = string> {
-    type: DefinitionType.query;
-    /**
-     * Used by `query` endpoints. Determines which 'tag' is attached to the cached data returned by the query.
-     * Expects an array of tag type strings, an array of objects of tag types with ids, or a function that returns such an array.
-     * 1.  `['Post']` - equivalent to `2`
-     * 2.  `[{ type: 'Post' }]` - equivalent to `1`
-     * 3.  `[{ type: 'Post', id: 1 }]`
-     * 4.  `(result, error, arg) => ['Post']` - equivalent to `5`
-     * 5.  `(result, error, arg) => [{ type: 'Post' }]` - equivalent to `4`
-     * 6.  `(result, error, arg) => [{ type: 'Post', id: 1 }]`
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="providesTags example"
-     *
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     * type PostsResponse = Post[]
-     *
-     * const api = createApi({
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   tagTypes: ['Posts'],
-     *   endpoints: (build) => ({
-     *     getPosts: build.query<PostsResponse, void>({
-     *       query: () => 'posts',
-     *       // highlight-start
-     *       providesTags: (result) =>
-     *         result
-     *           ? [
-     *               ...result.map(({ id }) => ({ type: 'Posts' as const, id })),
-     *               { type: 'Posts', id: 'LIST' },
-     *             ]
-     *           : [{ type: 'Posts', id: 'LIST' }],
-     *       // highlight-end
-     *     })
-     *   })
-     * })
-     * ```
-     */
-    providesTags?: ResultDescription<TagTypes, ResultType, QueryArg, BaseQueryError<BaseQuery>, BaseQueryMeta<BaseQuery>>;
-    /**
-     * Not to be used. A query should not invalidate tags in the cache.
-     */
-    invalidatesTags?: never;
-    /**
-     * Can be provided to return a custom cache key value based on the query arguments.
-     *
-     * This is primarily intended for cases where a non-serializable value is passed as part of the query arg object and should be excluded from the cache key.  It may also be used for cases where an endpoint should only have a single cache entry, such as an infinite loading / pagination implementation.
-     *
-     * Unlike the `createApi` version which can _only_ return a string, this per-endpoint option can also return an an object, number, or boolean.  If it returns a string, that value will be used as the cache key directly.  If it returns an object / number / boolean, that value will be passed to the built-in `defaultSerializeQueryArgs`.  This simplifies the use case of stripping out args you don't want included in the cache key.
-     *
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="serializeQueryArgs : exclude value"
-     *
-     * import { createApi, fetchBaseQuery, defaultSerializeQueryArgs } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     *
-     * interface MyApiClient {
-     *   fetchPost: (id: string) => Promise<Post>
-     * }
-     *
-     * createApi({
-     *  baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *  endpoints: (build) => ({
-     *    // Example: an endpoint with an API client passed in as an argument,
-     *    // but only the item ID should be used as the cache key
-     *    getPost: build.query<Post, { id: string; client: MyApiClient }>({
-     *      queryFn: async ({ id, client }) => {
-     *        const post = await client.fetchPost(id)
-     *        return { data: post }
-     *      },
-     *      // highlight-start
-     *      serializeQueryArgs: ({ queryArgs, endpointDefinition, endpointName }) => {
-     *        const { id } = queryArgs
-     *        // This can return a string, an object, a number, or a boolean.
-     *        // If it returns an object, number or boolean, that value
-     *        // will be serialized automatically via `defaultSerializeQueryArgs`
-     *        return { id } // omit `client` from the cache key
-     *
-     *        // Alternately, you can use `defaultSerializeQueryArgs` yourself:
-     *        // return defaultSerializeQueryArgs({
-     *        //   endpointName,
-     *        //   queryArgs: { id },
-     *        //   endpointDefinition
-     *        // })
-     *        // Or  create and return a string yourself:
-     *        // return `getPost(${id})`
-     *      },
-     *      // highlight-end
-     *    }),
-     *  }),
-     *})
-     * ```
-     */
-    serializeQueryArgs?: SerializeQueryArgs<QueryArg, string | number | boolean | Record<any, any>>;
-    /**
-     * Can be provided to merge an incoming response value into the current cache data.
-     * If supplied, no automatic structural sharing will be applied - it's up to
-     * you to update the cache appropriately.
-     *
-     * Since RTKQ normally replaces cache entries with the new response, you will usually
-     * need to use this with the `serializeQueryArgs` or `forceRefetch` options to keep
-     * an existing cache entry so that it can be updated.
-     *
-     * Since this is wrapped with Immer, you may either mutate the `currentCacheValue` directly,
-     * or return a new value, but _not_ both at once.
-     *
-     * Will only be called if the existing `currentCacheData` is _not_ `undefined` - on first response,
-     * the cache entry will just save the response data directly.
-     *
-     * Useful if you don't want a new request to completely override the current cache value,
-     * maybe because you have manually updated it from another source and don't want those
-     * updates to get lost.
-     *
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="merge: pagination"
-     *
-     * import { createApi, fetchBaseQuery, defaultSerializeQueryArgs } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     *
-     * createApi({
-     *  baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *  endpoints: (build) => ({
-     *    listItems: build.query<string[], number>({
-     *      query: (pageNumber) => `/listItems?page=${pageNumber}`,
-     *     // Only have one cache entry because the arg always maps to one string
-     *     serializeQueryArgs: ({ endpointName }) => {
-     *       return endpointName
-     *      },
-     *      // Always merge incoming data to the cache entry
-     *      merge: (currentCache, newItems) => {
-     *        currentCache.push(...newItems)
-     *      },
-     *      // Refetch when the page arg changes
-     *      forceRefetch({ currentArg, previousArg }) {
-     *        return currentArg !== previousArg
-     *      },
-     *    }),
-     *  }),
-     *})
-     * ```
-     */
-    merge?(currentCacheData: ResultType, responseData: ResultType, otherArgs: {
-        arg: QueryArg;
-        baseQueryMeta: BaseQueryMeta<BaseQuery>;
-        requestId: string;
-        fulfilledTimeStamp: number;
-    }): ResultType | void;
-    /**
-     * Check to see if the endpoint should force a refetch in cases where it normally wouldn't.
-     * This is primarily useful for "infinite scroll" / pagination use cases where
-     * RTKQ is keeping a single cache entry that is added to over time, in combination
-     * with `serializeQueryArgs` returning a fixed cache key and a `merge` callback
-     * set to add incoming data to the cache entry each time.
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="forceRefresh: pagination"
-     *
-     * import { createApi, fetchBaseQuery, defaultSerializeQueryArgs } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     *
-     * createApi({
-     *  baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *  endpoints: (build) => ({
-     *    listItems: build.query<string[], number>({
-     *      query: (pageNumber) => `/listItems?page=${pageNumber}`,
-     *     // Only have one cache entry because the arg always maps to one string
-     *     serializeQueryArgs: ({ endpointName }) => {
-     *       return endpointName
-     *      },
-     *      // Always merge incoming data to the cache entry
-     *      merge: (currentCache, newItems) => {
-     *        currentCache.push(...newItems)
-     *      },
-     *      // Refetch when the page arg changes
-     *      forceRefetch({ currentArg, previousArg }) {
-     *        return currentArg !== previousArg
-     *      },
-     *    }),
-     *  }),
-     *})
-     * ```
-     */
-    forceRefetch?(params: {
-        currentArg: QueryArg | undefined;
-        previousArg: QueryArg | undefined;
-        state: RootState<any, any, string>;
-        endpointState?: QuerySubState<any>;
-    }): boolean;
-    /**
-     * All of these are `undefined` at runtime, purely to be used in TypeScript declarations!
-     */
-    Types?: QueryTypes<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>;
-}
-export type QueryDefinition<QueryArg, BaseQuery extends BaseQueryFn, TagTypes extends string, ResultType, ReducerPath extends string = string> = BaseEndpointDefinition<QueryArg, BaseQuery, ResultType> & QueryExtraOptions<TagTypes, ResultType, QueryArg, BaseQuery, ReducerPath>;
-export interface MutationTypes<QueryArg, BaseQuery extends BaseQueryFn, TagTypes extends string, ResultType, ReducerPath extends string = string> extends BaseEndpointTypes<QueryArg, BaseQuery, ResultType> {
-    /**
-     * The endpoint definition type. To be used with some internal generic types.
-     * @example
-     * ```ts
-     * const useMyWrappedHook: UseMutation<typeof api.endpoints.query.Types.MutationDefinition> = ...
-     * ```
-     */
-    MutationDefinition: MutationDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>;
-    TagTypes: TagTypes;
-    ReducerPath: ReducerPath;
-}
-export interface MutationExtraOptions<TagTypes extends string, ResultType, QueryArg, BaseQuery extends BaseQueryFn, ReducerPath extends string = string> {
-    type: DefinitionType.mutation;
-    /**
-     * Used by `mutation` endpoints. Determines which cached data should be either re-fetched or removed from the cache.
-     * Expects the same shapes as `providesTags`.
-     *
-     * @example
-     *
-     * ```ts
-     * // codeblock-meta title="invalidatesTags example"
-     * import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
-     * interface Post {
-     *   id: number
-     *   name: string
-     * }
-     * type PostsResponse = Post[]
-     *
-     * const api = createApi({
-     *   baseQuery: fetchBaseQuery({ baseUrl: '/' }),
-     *   tagTypes: ['Posts'],
-     *   endpoints: (build) => ({
-     *     getPosts: build.query<PostsResponse, void>({
-     *       query: () => 'posts',
-     *       providesTags: (result) =>
-     *         result
-     *           ? [
-     *               ...result.map(({ id }) => ({ type: 'Posts' as const, id })),
-     *               { type: 'Posts', id: 'LIST' },
-     *             ]
-     *           : [{ type: 'Posts', id: 'LIST' }],
-     *     }),
-     *     addPost: build.mutation<Post, Partial<Post>>({
-     *       query(body) {
-     *         return {
-     *           url: `posts`,
-     *           method: 'POST',
-     *           body,
-     *         }
-     *       },
-     *       // highlight-start
-     *       invalidatesTags: [{ type: 'Posts', id: 'LIST' }],
-     *       // highlight-end
-     *     }),
-     *   })
-     * })
-     * ```
-     */
-    invalidatesTags?: ResultDescription<TagTypes, ResultType, QueryArg, BaseQueryError<BaseQuery>, BaseQueryMeta<BaseQuery>>;
-    /**
-     * Not to be used. A mutation should not provide tags to the cache.
-     */
-    providesTags?: never;
-    /**
-     * All of these are `undefined` at runtime, purely to be used in TypeScript declarations!
-     */
-    Types?: MutationTypes<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>;
-}
-export type MutationDefinition<QueryArg, BaseQuery extends BaseQueryFn, TagTypes extends string, ResultType, ReducerPath extends string = string> = BaseEndpointDefinition<QueryArg, BaseQuery, ResultType> & MutationExtraOptions<TagTypes, ResultType, QueryArg, BaseQuery, ReducerPath>;
-export type EndpointDefinition<QueryArg, BaseQuery extends BaseQueryFn, TagTypes extends string, ResultType, ReducerPath extends string = string> = QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath> | MutationDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>;
-export type EndpointDefinitions = Record<string, EndpointDefinition<any, any, any, any>>;
-export declare function isQueryDefinition(e: EndpointDefinition<any, any, any, any>): e is QueryDefinition<any, any, any, any>;
-export declare function isMutationDefinition(e: EndpointDefinition<any, any, any, any>): e is MutationDefinition<any, any, any, any>;
-export type EndpointBuilder<BaseQuery extends BaseQueryFn, TagTypes extends string, ReducerPath extends string> = {
-    /**
-     * An endpoint definition that retrieves data, and may provide tags to the cache.
-     *
-     * @example
-     * ```js
-     * // codeblock-meta title="Example of all query endpoint options"
-     * const api = createApi({
-     *  baseQuery,
-     *  endpoints: (build) => ({
-     *    getPost: build.query({
-     *      query: (id) => ({ url: `post/${id}` }),
-     *      // Pick out data and prevent nested properties in a hook or selector
-     *      transformResponse: (response) => response.data,
-     *      // Pick out error and prevent nested properties in a hook or selector
-     *      transformErrorResponse: (response) => response.error,
-     *      // `result` is the server response
-     *      providesTags: (result, error, id) => [{ type: 'Post', id }],
-     *      // trigger side effects or optimistic updates
-     *      onQueryStarted(id, { dispatch, getState, extra, requestId, queryFulfilled, getCacheEntry, updateCachedData }) {},
-     *      // handle subscriptions etc
-     *      onCacheEntryAdded(id, { dispatch, getState, extra, requestId, cacheEntryRemoved, cacheDataLoaded, getCacheEntry, updateCachedData }) {},
-     *    }),
-     *  }),
-     *});
-     *```
-     */
-    query<ResultType, QueryArg>(definition: OmitFromUnion<QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>, 'type'>): QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>;
-    /**
-     * An endpoint definition that alters data on the server or will possibly invalidate the cache.
-     *
-     * @example
-     * ```js
-     * // codeblock-meta title="Example of all mutation endpoint options"
-     * const api = createApi({
-     *   baseQuery,
-     *   endpoints: (build) => ({
-     *     updatePost: build.mutation({
-     *       query: ({ id, ...patch }) => ({ url: `post/${id}`, method: 'PATCH', body: patch }),
-     *       // Pick out data and prevent nested properties in a hook or selector
-     *       transformResponse: (response) => response.data,
-     *       // Pick out error and prevent nested properties in a hook or selector
-     *       transformErrorResponse: (response) => response.error,
-     *       // `result` is the server response
-     *       invalidatesTags: (result, error, id) => [{ type: 'Post', id }],
-     *      // trigger side effects or optimistic updates
-     *      onQueryStarted(id, { dispatch, getState, extra, requestId, queryFulfilled, getCacheEntry }) {},
-     *      // handle subscriptions etc
-     *      onCacheEntryAdded(id, { dispatch, getState, extra, requestId, cacheEntryRemoved, cacheDataLoaded, getCacheEntry }) {},
-     *     }),
-     *   }),
-     * });
-     * ```
-     */
-    mutation<ResultType, QueryArg>(definition: OmitFromUnion<MutationDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>, 'type'>): MutationDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>;
-};
-export type AssertTagTypes = <T extends FullTagDescription<string>>(t: T) => T;
-export declare function calculateProvidedBy<ResultType, QueryArg, ErrorType, MetaType>(description: ResultDescription<string, ResultType, QueryArg, ErrorType, MetaType> | undefined, result: ResultType | undefined, error: ErrorType | undefined, queryArg: QueryArg, meta: MetaType | undefined, assertTagTypes: AssertTagTypes): readonly FullTagDescription<string>[];
-export declare function expandTagDescription(description: TagDescription<string>): FullTagDescription<string>;
-export type QueryArgFrom<D extends BaseEndpointDefinition<any, any, any>> = D extends BaseEndpointDefinition<infer QA, any, any> ? QA : unknown;
-export type ResultTypeFrom<D extends BaseEndpointDefinition<any, any, any>> = D extends BaseEndpointDefinition<any, any, infer RT> ? RT : unknown;
-export type ReducerPathFrom<D extends EndpointDefinition<any, any, any, any, any>> = D extends EndpointDefinition<any, any, any, any, infer RP> ? RP : unknown;
-export type TagTypesFrom<D extends EndpointDefinition<any, any, any, any>> = D extends EndpointDefinition<any, any, infer RP, any> ? RP : unknown;
-export type TagTypesFromApi<T> = T extends Api<any, any, any, infer TagTypes> ? TagTypes : never;
-export type DefinitionsFromApi<T> = T extends Api<any, infer Definitions, any, any> ? Definitions : never;
-export type TransformedResponse<NewDefinitions extends EndpointDefinitions, K, ResultType> = K extends keyof NewDefinitions ? NewDefinitions[K]['transformResponse'] extends undefined ? ResultType : UnwrapPromise<ReturnType<NonUndefined<NewDefinitions[K]['transformResponse']>>> : ResultType;
-export type OverrideResultType<Definition, NewResultType> = Definition extends QueryDefinition<infer QueryArg, infer BaseQuery, infer TagTypes, any, infer ReducerPath> ? QueryDefinition<QueryArg, BaseQuery, TagTypes, NewResultType, ReducerPath> : Definition extends MutationDefinition<infer QueryArg, infer BaseQuery, infer TagTypes, any, infer ReducerPath> ? MutationDefinition<QueryArg, BaseQuery, TagTypes, NewResultType, ReducerPath> : never;
-export type UpdateDefinitions<Definitions extends EndpointDefinitions, NewTagTypes extends string, NewDefinitions extends EndpointDefinitions> = {
-    [K in keyof Definitions]: Definitions[K] extends QueryDefinition<infer QueryArg, infer BaseQuery, any, infer ResultType, infer ReducerPath> ? QueryDefinition<QueryArg, BaseQuery, NewTagTypes, TransformedResponse<NewDefinitions, K, ResultType>, ReducerPath> : Definitions[K] extends MutationDefinition<infer QueryArg, infer BaseQuery, any, infer ResultType, infer ReducerPath> ? MutationDefinition<QueryArg, BaseQuery, NewTagTypes, TransformedResponse<NewDefinitions, K, ResultType>, ReducerPath> : never;
-};
-export {};

+ 0 - 9
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/fakeBaseQuery.d.ts

@@ -1,9 +0,0 @@
-import type { BaseQueryFn } from './baseQueryTypes';
-declare const _NEVER: unique symbol;
-export type NEVER = typeof _NEVER;
-/**
- * Creates a "fake" baseQuery to be used if your api *only* uses the `queryFn` definition syntax.
- * This also allows you to specify a specific error type to be shared by all your `queryFn` definitions.
- */
-export declare function fakeBaseQuery<ErrorType>(): BaseQueryFn<void, NEVER, ErrorType, {}>;
-export {};

+ 0 - 135
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/fetchBaseQuery.d.ts

@@ -1,135 +0,0 @@
-import type { BaseQueryApi, BaseQueryFn } from './baseQueryTypes';
-import type { MaybePromise, Override } from './tsHelpers';
-export type ResponseHandler = 'content-type' | 'json' | 'text' | ((response: Response) => Promise<any>);
-type CustomRequestInit = Override<RequestInit, {
-    headers?: Headers | string[][] | Record<string, string | undefined> | undefined;
-}>;
-export interface FetchArgs extends CustomRequestInit {
-    url: string;
-    params?: Record<string, any>;
-    body?: any;
-    responseHandler?: ResponseHandler;
-    validateStatus?: (response: Response, body: any) => boolean;
-    /**
-     * A number in milliseconds that represents that maximum time a request can take before timing out.
-     */
-    timeout?: number;
-}
-export type FetchBaseQueryError = {
-    /**
-     * * `number`:
-     *   HTTP status code
-     */
-    status: number;
-    data: unknown;
-} | {
-    /**
-     * * `"FETCH_ERROR"`:
-     *   An error that occurred during execution of `fetch` or the `fetchFn` callback option
-     **/
-    status: 'FETCH_ERROR';
-    data?: undefined;
-    error: string;
-} | {
-    /**
-     * * `"PARSING_ERROR"`:
-     *   An error happened during parsing.
-     *   Most likely a non-JSON-response was returned with the default `responseHandler` "JSON",
-     *   or an error occurred while executing a custom `responseHandler`.
-     **/
-    status: 'PARSING_ERROR';
-    originalStatus: number;
-    data: string;
-    error: string;
-} | {
-    /**
-     * * `"TIMEOUT_ERROR"`:
-     *   Request timed out
-     **/
-    status: 'TIMEOUT_ERROR';
-    data?: undefined;
-    error: string;
-} | {
-    /**
-     * * `"CUSTOM_ERROR"`:
-     *   A custom error type that you can return from your `queryFn` where another error might not make sense.
-     **/
-    status: 'CUSTOM_ERROR';
-    data?: unknown;
-    error: string;
-};
-export type FetchBaseQueryArgs = {
-    baseUrl?: string;
-    prepareHeaders?: (headers: Headers, api: Pick<BaseQueryApi, 'getState' | 'extra' | 'endpoint' | 'type' | 'forced'>) => MaybePromise<Headers | void>;
-    fetchFn?: (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
-    paramsSerializer?: (params: Record<string, any>) => string;
-    /**
-     * By default, we only check for 'application/json' and 'application/vnd.api+json' as the content-types for json. If you need to support another format, you can pass
-     * in a predicate function for your given api to get the same automatic stringifying behavior
-     * @example
-     * ```ts
-     * const isJsonContentType = (headers: Headers) => ["application/vnd.api+json", "application/json", "application/vnd.hal+json"].includes(headers.get("content-type")?.trim());
-     * ```
-     */
-    isJsonContentType?: (headers: Headers) => boolean;
-    /**
-     * Defaults to `application/json`;
-     */
-    jsonContentType?: string;
-    /**
-     * Custom replacer function used when calling `JSON.stringify()`;
-     */
-    jsonReplacer?: (this: any, key: string, value: any) => any;
-} & RequestInit & Pick<FetchArgs, 'responseHandler' | 'validateStatus' | 'timeout'>;
-export type FetchBaseQueryMeta = {
-    request: Request;
-    response?: Response;
-};
-/**
- * This is a very small wrapper around fetch that aims to simplify requests.
- *
- * @example
- * ```ts
- * const baseQuery = fetchBaseQuery({
- *   baseUrl: 'https://api.your-really-great-app.com/v1/',
- *   prepareHeaders: (headers, { getState }) => {
- *     const token = (getState() as RootState).auth.token;
- *     // If we have a token set in state, let's assume that we should be passing it.
- *     if (token) {
- *       headers.set('authorization', `Bearer ${token}`);
- *     }
- *     return headers;
- *   },
- * })
- * ```
- *
- * @param {string} baseUrl
- * The base URL for an API service.
- * Typically in the format of https://example.com/
- *
- * @param {(headers: Headers, api: { getState: () => unknown; extra: unknown; endpoint: string; type: 'query' | 'mutation'; forced: boolean; }) => Headers} prepareHeaders
- * An optional function that can be used to inject headers on requests.
- * Provides a Headers object, as well as most of the `BaseQueryApi` (`dispatch` is not available).
- * Useful for setting authentication or headers that need to be set conditionally.
- *
- * @link https://developer.mozilla.org/en-US/docs/Web/API/Headers
- *
- * @param {(input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>} fetchFn
- * Accepts a custom `fetch` function if you do not want to use the default on the window.
- * Useful in SSR environments if you need to use a library such as `isomorphic-fetch` or `cross-fetch`
- *
- * @param {(params: Record<string, unknown>) => string} paramsSerializer
- * An optional function that can be used to stringify querystring parameters.
- *
- * @param {(headers: Headers) => boolean} isJsonContentType
- * An optional predicate function to determine if `JSON.stringify()` should be called on the `body` arg of `FetchArgs`
- *
- * @param {string} jsonContentType Used when automatically setting the content-type header for a request with a jsonifiable body that does not have an explicit content-type header. Defaults to `application/json`.
- *
- * @param {(this: any, key: string, value: any) => any} jsonReplacer Custom replacer function used when calling `JSON.stringify()`.
- *
- * @param {number} timeout
- * A number in milliseconds that represents the maximum time a request can take before timing out.
- */
-export declare function fetchBaseQuery({ baseUrl, prepareHeaders, fetchFn, paramsSerializer, isJsonContentType, jsonContentType, jsonReplacer, timeout: defaultTimeout, responseHandler: globalResponseHandler, validateStatus: globalValidateStatus, ...baseFetchOptions }?: FetchBaseQueryArgs): BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError, {}, FetchBaseQueryMeta>;
-export {};

+ 0 - 21
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/index.d.ts

@@ -1,21 +0,0 @@
-export type { CombinedState, QueryCacheKey, QueryKeys, QuerySubState, RootState, SubscriptionOptions, } from './core/apiState';
-export { QueryStatus } from './core/apiState';
-export type { Api, ApiContext, ApiModules, Module } from './apiTypes';
-export type { BaseQueryApi, BaseQueryEnhancer, BaseQueryFn, } from './baseQueryTypes';
-export type { EndpointDefinitions, EndpointDefinition, EndpointBuilder, QueryDefinition, MutationDefinition, TagDescription, QueryArgFrom, ResultTypeFrom, DefinitionType, } from './endpointDefinitions';
-export { fetchBaseQuery } from './fetchBaseQuery';
-export type { FetchBaseQueryError, FetchBaseQueryMeta, FetchArgs, } from './fetchBaseQuery';
-export { retry } from './retry';
-export { setupListeners } from './core/setupListeners';
-export { skipToken } from './core/buildSelectors';
-export type { QueryResultSelectorResult, MutationResultSelectorResult, SkipToken, } from './core/buildSelectors';
-export type { QueryActionCreatorResult, MutationActionCreatorResult, } from './core/buildInitiate';
-export type { CreateApi, CreateApiOptions } from './createApi';
-export { buildCreateApi } from './createApi';
-export { fakeBaseQuery } from './fakeBaseQuery';
-export { copyWithStructuralSharing } from './utils/copyWithStructuralSharing';
-export { createApi, coreModule, coreModuleName } from './core';
-export type { ApiEndpointMutation, ApiEndpointQuery, CoreModule, PrefetchOptions, } from './core/module';
-export { defaultSerializeQueryArgs } from './defaultSerializeQueryArgs';
-export type { SerializeQueryArgs } from './defaultSerializeQueryArgs';
-export type { Id as TSHelpersId, NoInfer as TSHelpersNoInfer, Override as TSHelpersOverride, } from './tsHelpers';

+ 0 - 34
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/ApiProvider.d.ts

@@ -1,34 +0,0 @@
-import type { Context } from 'react';
-import type { ReactReduxContextValue } from 'react-redux';
-import { setupListeners } from '@reduxjs/toolkit/query';
-import type { Api } from '@reduxjs/toolkit/query';
-/**
- * Can be used as a `Provider` if you **do not already have a Redux store**.
- *
- * @example
- * ```tsx
- * // codeblock-meta no-transpile title="Basic usage - wrap your App with ApiProvider"
- * import * as React from 'react';
- * import { ApiProvider } from '@reduxjs/toolkit/query/react';
- * import { Pokemon } from './features/Pokemon';
- *
- * function App() {
- *   return (
- *     <ApiProvider api={api}>
- *       <Pokemon />
- *     </ApiProvider>
- *   );
- * }
- * ```
- *
- * @remarks
- * Using this together with an existing redux store, both will
- * conflict with each other - please use the traditional redux setup
- * in that case.
- */
-export declare function ApiProvider<A extends Api<any, {}, any, any>>(props: {
-    children: any;
-    api: A;
-    setupListeners?: Parameters<typeof setupListeners>[1] | false;
-    context?: Context<ReactReduxContextValue>;
-}): JSX.Element;

+ 0 - 369
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/buildHooks.d.ts

@@ -1,369 +0,0 @@
-import { useEffect } from 'react';
-import { QueryStatus } from '@reduxjs/toolkit/query';
-import type { QuerySubState, SubscriptionOptions, QueryKeys } from '@reduxjs/toolkit/query';
-import type { EndpointDefinitions, MutationDefinition, QueryDefinition, QueryArgFrom, ResultTypeFrom, MutationResultSelectorResult, SkipToken, QueryActionCreatorResult, MutationActionCreatorResult, SerializeQueryArgs, Api, ApiContext, TSHelpersId, TSHelpersNoInfer, TSHelpersOverride, CoreModule, PrefetchOptions } from '@reduxjs/toolkit/query';
-import type { ReactHooksModuleOptions } from './module';
-import type { UninitializedValue } from './constants';
-import type { BaseQueryFn } from '../baseQueryTypes';
-export declare const useIsomorphicLayoutEffect: typeof useEffect;
-export interface QueryHooks<Definition extends QueryDefinition<any, any, any, any, any>> {
-    useQuery: UseQuery<Definition>;
-    useLazyQuery: UseLazyQuery<Definition>;
-    useQuerySubscription: UseQuerySubscription<Definition>;
-    useLazyQuerySubscription: UseLazyQuerySubscription<Definition>;
-    useQueryState: UseQueryState<Definition>;
-}
-export interface MutationHooks<Definition extends MutationDefinition<any, any, any, any, any>> {
-    useMutation: UseMutation<Definition>;
-}
-/**
- * A React hook that automatically triggers fetches of data from an endpoint, 'subscribes' the component to the cached data, and reads the request status and cached data from the Redux store. The component will re-render as the loading status changes and the data becomes available.
- *
- * The query arg is used as a cache key. Changing the query arg will tell the hook to re-fetch the data if it does not exist in the cache already, and the hook will return the data for that query arg once it's available.
- *
- * This hook combines the functionality of both [`useQueryState`](#usequerystate) and [`useQuerySubscription`](#usequerysubscription) together, and is intended to be used in the majority of situations.
- *
- * #### Features
- *
- * - Automatically triggers requests to retrieve data based on the hook argument and whether cached data exists by default
- * - 'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts
- * - Accepts polling/re-fetching options to trigger automatic re-fetches when the corresponding criteria is met
- * - Returns the latest request status and cached data from the Redux store
- * - Re-renders as the request status changes and data becomes available
- */
-export type UseQuery<D extends QueryDefinition<any, any, any, any>> = <R extends Record<string, any> = UseQueryStateDefaultResult<D>>(arg: QueryArgFrom<D> | SkipToken, options?: UseQuerySubscriptionOptions & UseQueryStateOptions<D, R>) => UseQueryHookResult<D, R>;
-export type UseQueryHookResult<D extends QueryDefinition<any, any, any, any>, R = UseQueryStateDefaultResult<D>> = UseQueryStateResult<D, R> & UseQuerySubscriptionResult<D>;
-/**
- * Helper type to manually type the result
- * of the `useQuery` hook in userland code.
- */
-export type TypedUseQueryHookResult<ResultType, QueryArg, BaseQuery extends BaseQueryFn, R = UseQueryStateDefaultResult<QueryDefinition<QueryArg, BaseQuery, string, ResultType, string>>> = TypedUseQueryStateResult<ResultType, QueryArg, BaseQuery, R> & TypedUseQuerySubscriptionResult<ResultType, QueryArg, BaseQuery>;
-interface UseQuerySubscriptionOptions extends SubscriptionOptions {
-    /**
-     * Prevents a query from automatically running.
-     *
-     * @remarks
-     * When `skip` is true (or `skipToken` is passed in as `arg`):
-     *
-     * - **If the query has cached data:**
-     *   * The cached data **will not be used** on the initial load, and will ignore updates from any identical query until the `skip` condition is removed
-     *   * The query will have a status of `uninitialized`
-     *   * If `skip: false` is set after the initial load, the cached result will be used
-     * - **If the query does not have cached data:**
-     *   * The query will have a status of `uninitialized`
-     *   * The query will not exist in the state when viewed with the dev tools
-     *   * The query will not automatically fetch on mount
-     *   * The query will not automatically run when additional components with the same query are added that do run
-     *
-     * @example
-     * ```tsx
-     * // codeblock-meta no-transpile title="Skip example"
-     * const Pokemon = ({ name, skip }: { name: string; skip: boolean }) => {
-     *   const { data, error, status } = useGetPokemonByNameQuery(name, {
-     *     skip,
-     *   });
-     *
-     *   return (
-     *     <div>
-     *       {name} - {status}
-     *     </div>
-     *   );
-     * };
-     * ```
-     */
-    skip?: boolean;
-    /**
-     * Defaults to `false`. This setting allows you to control whether if a cached result is already available, RTK Query will only serve a cached result, or if it should `refetch` when set to `true` or if an adequate amount of time has passed since the last successful query result.
-     * - `false` - Will not cause a query to be performed _unless_ it does not exist yet.
-     * - `true` - Will always refetch when a new subscriber to a query is added. Behaves the same as calling the `refetch` callback or passing `forceRefetch: true` in the action creator.
-     * - `number` - **Value is in seconds**. If a number is provided and there is an existing query in the cache, it will compare the current time vs the last fulfilled timestamp, and only refetch if enough time has elapsed.
-     *
-     * If you specify this option alongside `skip: true`, this **will not be evaluated** until `skip` is false.
-     */
-    refetchOnMountOrArgChange?: boolean | number;
-}
-/**
- * A React hook that automatically triggers fetches of data from an endpoint, and 'subscribes' the component to the cached data.
- *
- * The query arg is used as a cache key. Changing the query arg will tell the hook to re-fetch the data if it does not exist in the cache already.
- *
- * Note that this hook does not return a request status or cached data. For that use-case, see [`useQuery`](#usequery) or [`useQueryState`](#usequerystate).
- *
- * #### Features
- *
- * - Automatically triggers requests to retrieve data based on the hook argument and whether cached data exists by default
- * - 'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts
- * - Accepts polling/re-fetching options to trigger automatic re-fetches when the corresponding criteria is met
- */
-export type UseQuerySubscription<D extends QueryDefinition<any, any, any, any>> = (arg: QueryArgFrom<D> | SkipToken, options?: UseQuerySubscriptionOptions) => UseQuerySubscriptionResult<D>;
-export type UseQuerySubscriptionResult<D extends QueryDefinition<any, any, any, any>> = Pick<QueryActionCreatorResult<D>, 'refetch'>;
-/**
- * Helper type to manually type the result
- * of the `useQuerySubscription` hook in userland code.
- */
-export type TypedUseQuerySubscriptionResult<ResultType, QueryArg, BaseQuery extends BaseQueryFn> = UseQuerySubscriptionResult<QueryDefinition<QueryArg, BaseQuery, string, ResultType, string>>;
-export type UseLazyQueryLastPromiseInfo<D extends QueryDefinition<any, any, any, any>> = {
-    lastArg: QueryArgFrom<D>;
-};
-/**
- * A React hook similar to [`useQuery`](#usequery), but with manual control over when the data fetching occurs.
- *
- * This hook includes the functionality of [`useLazyQuerySubscription`](#uselazyquerysubscription).
- *
- * #### Features
- *
- * - Manual control over firing a request to retrieve data
- * - 'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts
- * - Returns the latest request status and cached data from the Redux store
- * - Re-renders as the request status changes and data becomes available
- * - Accepts polling/re-fetching options to trigger automatic re-fetches when the corresponding criteria is met and the fetch has been manually called at least once
- *
- * #### Note
- *
- * When the trigger function returned from a LazyQuery is called, it always initiates a new request to the server even if there is cached data. Set `preferCacheValue`(the second argument to the function) as `true` if you want it to immediately return a cached value if one exists.
- */
-export type UseLazyQuery<D extends QueryDefinition<any, any, any, any>> = <R extends Record<string, any> = UseQueryStateDefaultResult<D>>(options?: SubscriptionOptions & Omit<UseQueryStateOptions<D, R>, 'skip'>) => [
-    LazyQueryTrigger<D>,
-    UseQueryStateResult<D, R>,
-    UseLazyQueryLastPromiseInfo<D>
-];
-export type LazyQueryTrigger<D extends QueryDefinition<any, any, any, any>> = {
-    /**
-     * Triggers a lazy query.
-     *
-     * By default, this will start a new request even if there is already a value in the cache.
-     * If you want to use the cache value and only start a request if there is no cache value, set the second argument to `true`.
-     *
-     * @remarks
-     * If you need to access the error or success payload immediately after a lazy query, you can chain .unwrap().
-     *
-     * @example
-     * ```ts
-     * // codeblock-meta title="Using .unwrap with async await"
-     * try {
-     *   const payload = await getUserById(1).unwrap();
-     *   console.log('fulfilled', payload)
-     * } catch (error) {
-     *   console.error('rejected', error);
-     * }
-     * ```
-     */
-    (arg: QueryArgFrom<D>, preferCacheValue?: boolean): QueryActionCreatorResult<D>;
-};
-/**
- * A React hook similar to [`useQuerySubscription`](#usequerysubscription), but with manual control over when the data fetching occurs.
- *
- * Note that this hook does not return a request status or cached data. For that use-case, see [`useLazyQuery`](#uselazyquery).
- *
- * #### Features
- *
- * - Manual control over firing a request to retrieve data
- * - 'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts
- * - Accepts polling/re-fetching options to trigger automatic re-fetches when the corresponding criteria is met and the fetch has been manually called at least once
- */
-export type UseLazyQuerySubscription<D extends QueryDefinition<any, any, any, any>> = (options?: SubscriptionOptions) => readonly [LazyQueryTrigger<D>, QueryArgFrom<D> | UninitializedValue];
-export type QueryStateSelector<R extends Record<string, any>, D extends QueryDefinition<any, any, any, any>> = (state: UseQueryStateDefaultResult<D>) => R;
-/**
- * A React hook that reads the request status and cached data from the Redux store. The component will re-render as the loading status changes and the data becomes available.
- *
- * Note that this hook does not trigger fetching new data. For that use-case, see [`useQuery`](#usequery) or [`useQuerySubscription`](#usequerysubscription).
- *
- * #### Features
- *
- * - Returns the latest request status and cached data from the Redux store
- * - Re-renders as the request status changes and data becomes available
- */
-export type UseQueryState<D extends QueryDefinition<any, any, any, any>> = <R extends Record<string, any> = UseQueryStateDefaultResult<D>>(arg: QueryArgFrom<D> | SkipToken, options?: UseQueryStateOptions<D, R>) => UseQueryStateResult<D, R>;
-export type UseQueryStateOptions<D extends QueryDefinition<any, any, any, any>, R extends Record<string, any>> = {
-    /**
-     * Prevents a query from automatically running.
-     *
-     * @remarks
-     * When skip is true:
-     *
-     * - **If the query has cached data:**
-     *   * The cached data **will not be used** on the initial load, and will ignore updates from any identical query until the `skip` condition is removed
-     *   * The query will have a status of `uninitialized`
-     *   * If `skip: false` is set after skipping the initial load, the cached result will be used
-     * - **If the query does not have cached data:**
-     *   * The query will have a status of `uninitialized`
-     *   * The query will not exist in the state when viewed with the dev tools
-     *   * The query will not automatically fetch on mount
-     *   * The query will not automatically run when additional components with the same query are added that do run
-     *
-     * @example
-     * ```ts
-     * // codeblock-meta title="Skip example"
-     * const Pokemon = ({ name, skip }: { name: string; skip: boolean }) => {
-     *   const { data, error, status } = useGetPokemonByNameQuery(name, {
-     *     skip,
-     *   });
-     *
-     *   return (
-     *     <div>
-     *       {name} - {status}
-     *     </div>
-     *   );
-     * };
-     * ```
-     */
-    skip?: boolean;
-    /**
-     * `selectFromResult` allows you to get a specific segment from a query result in a performant manner.
-     * When using this feature, the component will not rerender unless the underlying data of the selected item has changed.
-     * If the selected item is one element in a larger collection, it will disregard changes to elements in the same collection.
-     *
-     * @example
-     * ```ts
-     * // codeblock-meta title="Using selectFromResult to extract a single result"
-     * function PostsList() {
-     *   const { data: posts } = api.useGetPostsQuery();
-     *
-     *   return (
-     *     <ul>
-     *       {posts?.data?.map((post) => (
-     *         <PostById key={post.id} id={post.id} />
-     *       ))}
-     *     </ul>
-     *   );
-     * }
-     *
-     * function PostById({ id }: { id: number }) {
-     *   // Will select the post with the given id, and will only rerender if the given posts data changes
-     *   const { post } = api.useGetPostsQuery(undefined, {
-     *     selectFromResult: ({ data }) => ({ post: data?.find((post) => post.id === id) }),
-     *   });
-     *
-     *   return <li>{post?.name}</li>;
-     * }
-     * ```
-     */
-    selectFromResult?: QueryStateSelector<R, D>;
-};
-export type UseQueryStateResult<_ extends QueryDefinition<any, any, any, any>, R> = TSHelpersNoInfer<R>;
-/**
- * Helper type to manually type the result
- * of the `useQueryState` hook in userland code.
- */
-export type TypedUseQueryStateResult<ResultType, QueryArg, BaseQuery extends BaseQueryFn, R = UseQueryStateDefaultResult<QueryDefinition<QueryArg, BaseQuery, string, ResultType, string>>> = TSHelpersNoInfer<R>;
-type UseQueryStateBaseResult<D extends QueryDefinition<any, any, any, any>> = QuerySubState<D> & {
-    /**
-     * Where `data` tries to hold data as much as possible, also re-using
-     * data from the last arguments passed into the hook, this property
-     * will always contain the received data from the query, for the current query arguments.
-     */
-    currentData?: ResultTypeFrom<D>;
-    /**
-     * Query has not started yet.
-     */
-    isUninitialized: false;
-    /**
-     * Query is currently loading for the first time. No data yet.
-     */
-    isLoading: false;
-    /**
-     * Query is currently fetching, but might have data from an earlier request.
-     */
-    isFetching: false;
-    /**
-     * Query has data from a successful load.
-     */
-    isSuccess: false;
-    /**
-     * Query is currently in "error" state.
-     */
-    isError: false;
-};
-type UseQueryStateDefaultResult<D extends QueryDefinition<any, any, any, any>> = TSHelpersId<TSHelpersOverride<Extract<UseQueryStateBaseResult<D>, {
-    status: QueryStatus.uninitialized;
-}>, {
-    isUninitialized: true;
-}> | TSHelpersOverride<UseQueryStateBaseResult<D>, {
-    isLoading: true;
-    isFetching: boolean;
-    data: undefined;
-} | ({
-    isSuccess: true;
-    isFetching: true;
-    error: undefined;
-} & Required<Pick<UseQueryStateBaseResult<D>, 'data' | 'fulfilledTimeStamp'>>) | ({
-    isSuccess: true;
-    isFetching: false;
-    error: undefined;
-} & Required<Pick<UseQueryStateBaseResult<D>, 'data' | 'fulfilledTimeStamp' | 'currentData'>>) | ({
-    isError: true;
-} & Required<Pick<UseQueryStateBaseResult<D>, 'error'>>)>> & {
-    /**
-     * @deprecated Included for completeness, but discouraged.
-     * Please use the `isLoading`, `isFetching`, `isSuccess`, `isError`
-     * and `isUninitialized` flags instead
-     */
-    status: QueryStatus;
-};
-export type MutationStateSelector<R extends Record<string, any>, D extends MutationDefinition<any, any, any, any>> = (state: MutationResultSelectorResult<D>) => R;
-export type UseMutationStateOptions<D extends MutationDefinition<any, any, any, any>, R extends Record<string, any>> = {
-    selectFromResult?: MutationStateSelector<R, D>;
-    fixedCacheKey?: string;
-};
-export type UseMutationStateResult<D extends MutationDefinition<any, any, any, any>, R> = TSHelpersNoInfer<R> & {
-    originalArgs?: QueryArgFrom<D>;
-    /**
-     * Resets the hook state to it's initial `uninitialized` state.
-     * This will also remove the last result from the cache.
-     */
-    reset: () => void;
-};
-/**
- * Helper type to manually type the result
- * of the `useMutation` hook in userland code.
- */
-export type TypedUseMutationResult<ResultType, QueryArg, BaseQuery extends BaseQueryFn, R = MutationResultSelectorResult<MutationDefinition<QueryArg, BaseQuery, string, ResultType, string>>> = UseMutationStateResult<MutationDefinition<QueryArg, BaseQuery, string, ResultType, string>, R>;
-/**
- * A React hook that lets you trigger an update request for a given endpoint, and subscribes the component to read the request status from the Redux store. The component will re-render as the loading status changes.
- *
- * #### Features
- *
- * - Manual control over firing a request to alter data on the server or possibly invalidate the cache
- * - 'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts
- * - Returns the latest request status and cached data from the Redux store
- * - Re-renders as the request status changes and data becomes available
- */
-export type UseMutation<D extends MutationDefinition<any, any, any, any>> = <R extends Record<string, any> = MutationResultSelectorResult<D>>(options?: UseMutationStateOptions<D, R>) => readonly [MutationTrigger<D>, UseMutationStateResult<D, R>];
-export type MutationTrigger<D extends MutationDefinition<any, any, any, any>> = {
-    /**
-     * Triggers the mutation and returns a Promise.
-     * @remarks
-     * If you need to access the error or success payload immediately after a mutation, you can chain .unwrap().
-     *
-     * @example
-     * ```ts
-     * // codeblock-meta title="Using .unwrap with async await"
-     * try {
-     *   const payload = await addPost({ id: 1, name: 'Example' }).unwrap();
-     *   console.log('fulfilled', payload)
-     * } catch (error) {
-     *   console.error('rejected', error);
-     * }
-     * ```
-     */
-    (arg: QueryArgFrom<D>): MutationActionCreatorResult<D>;
-};
-/**
- *
- * @param opts.api - An API with defined endpoints to create hooks for
- * @param opts.moduleOptions.batch - The version of the `batchedUpdates` function to be used
- * @param opts.moduleOptions.useDispatch - The version of the `useDispatch` hook to be used
- * @param opts.moduleOptions.useSelector - The version of the `useSelector` hook to be used
- * @returns An object containing functions to generate hooks based on an endpoint
- */
-export declare function buildHooks<Definitions extends EndpointDefinitions>({ api, moduleOptions: { batch, hooks: { useDispatch, useSelector, useStore }, unstable__sideEffectsInRender, }, serializeQueryArgs, context, }: {
-    api: Api<any, Definitions, any, any, CoreModule>;
-    moduleOptions: Required<ReactHooksModuleOptions>;
-    serializeQueryArgs: SerializeQueryArgs<any>;
-    context: ApiContext<Definitions>;
-}): {
-    buildQueryHooks: (name: string) => QueryHooks<any>;
-    buildMutationHook: (name: string) => UseMutation<any>;
-    usePrefetch: <EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, defaultOptions?: PrefetchOptions) => (arg: any, options?: PrefetchOptions) => void;
-};
-export {};

+ 0 - 6
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/index.js

@@ -1,6 +0,0 @@
-'use strict'
-if (process.env.NODE_ENV === 'production') {
-  module.exports = require('./rtk-query-react.production.min.cjs')
-} else {
-  module.exports = require('./rtk-query-react.development.cjs')
-}

+ 0 - 626
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.development.cjs

@@ -1,626 +0,0 @@
-"use strict";
-var __create = Object.create;
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __getProtoOf = Object.getPrototypeOf;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
-  for (var name in all)
-    __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
-  if (from && typeof from === "object" || typeof from === "function") {
-    for (let key of __getOwnPropNames(from))
-      if (!__hasOwnProp.call(to, key) && key !== except)
-        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
-  }
-  return to;
-};
-var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
-  // If the importer is in node compatibility mode or this is not an ESM
-  // file that has been converted to a CommonJS file using a Babel-
-  // compatible transform (i.e. "__esModule" has not been set), then set
-  // "default" to the CommonJS "module.exports" for node compatibility.
-  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
-  mod
-));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-
-// src/query/react/index.ts
-var react_exports = {};
-__export(react_exports, {
-  ApiProvider: () => ApiProvider,
-  createApi: () => createApi,
-  reactHooksModule: () => reactHooksModule,
-  reactHooksModuleName: () => reactHooksModuleName
-});
-module.exports = __toCommonJS(react_exports);
-var import_query3 = require("@reduxjs/toolkit/query");
-
-// src/query/react/module.ts
-var import_toolkit5 = require("@reduxjs/toolkit");
-
-// src/query/react/buildHooks.ts
-var import_toolkit2 = require("@reduxjs/toolkit");
-var import_toolkit3 = require("@reduxjs/toolkit");
-var import_toolkit4 = require("@reduxjs/toolkit");
-var import_react3 = require("react");
-var import_query = require("@reduxjs/toolkit/query");
-var import_react_redux2 = require("react-redux");
-
-// src/query/react/useSerializedStableValue.ts
-var import_react = require("react");
-function useStableQueryArgs(queryArgs, serialize, endpointDefinition, endpointName) {
-  const incoming = (0, import_react.useMemo)(() => ({
-    queryArgs,
-    serialized: typeof queryArgs == "object" ? serialize({
-      queryArgs,
-      endpointDefinition,
-      endpointName
-    }) : queryArgs
-  }), [queryArgs, serialize, endpointDefinition, endpointName]);
-  const cache2 = (0, import_react.useRef)(incoming);
-  (0, import_react.useEffect)(() => {
-    if (cache2.current.serialized !== incoming.serialized) {
-      cache2.current = incoming;
-    }
-  }, [incoming]);
-  return cache2.current.serialized === incoming.serialized ? cache2.current.queryArgs : queryArgs;
-}
-
-// src/query/react/constants.ts
-var UNINITIALIZED_VALUE = Symbol();
-
-// src/query/react/useShallowStableValue.ts
-var import_react2 = require("react");
-var import_react_redux = require("react-redux");
-function useShallowStableValue(value) {
-  const cache2 = (0, import_react2.useRef)(value);
-  (0, import_react2.useEffect)(() => {
-    if (!(0, import_react_redux.shallowEqual)(cache2.current, value)) {
-      cache2.current = value;
-    }
-  }, [value]);
-  return (0, import_react_redux.shallowEqual)(cache2.current, value) ? cache2.current : value;
-}
-
-// src/query/core/rtkImports.ts
-var import_toolkit = require("@reduxjs/toolkit");
-
-// src/query/defaultSerializeQueryArgs.ts
-var cache = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0;
-var defaultSerializeQueryArgs = ({
-  endpointName,
-  queryArgs
-}) => {
-  let serialized = "";
-  const cached = cache?.get(queryArgs);
-  if (typeof cached === "string") {
-    serialized = cached;
-  } else {
-    const stringified = JSON.stringify(queryArgs, (key, value) => (0, import_toolkit.isPlainObject)(value) ? Object.keys(value).sort().reduce((acc, key2) => {
-      acc[key2] = value[key2];
-      return acc;
-    }, {}) : value);
-    if ((0, import_toolkit.isPlainObject)(queryArgs)) {
-      cache?.set(queryArgs, stringified);
-    }
-    serialized = stringified;
-  }
-  return `${endpointName}(${serialized})`;
-};
-
-// src/query/react/buildHooks.ts
-var useIsomorphicLayoutEffect = typeof window !== "undefined" && !!window.document && !!window.document.createElement ? import_react3.useLayoutEffect : import_react3.useEffect;
-var noPendingQueryStateSelector = (selected) => {
-  if (selected.isUninitialized) {
-    return {
-      ...selected,
-      isUninitialized: false,
-      isFetching: true,
-      isLoading: selected.data !== void 0 ? false : true,
-      status: import_query.QueryStatus.pending
-    };
-  }
-  return selected;
-};
-function buildHooks({
-  api,
-  moduleOptions: {
-    batch,
-    hooks: {
-      useDispatch,
-      useSelector,
-      useStore
-    },
-    unstable__sideEffectsInRender
-  },
-  serializeQueryArgs,
-  context
-}) {
-  const usePossiblyImmediateEffect = unstable__sideEffectsInRender ? (cb) => cb() : import_react3.useEffect;
-  return {
-    buildQueryHooks,
-    buildMutationHook,
-    usePrefetch
-  };
-  function queryStatePreSelector(currentState, lastResult, queryArgs) {
-    if (lastResult?.endpointName && currentState.isUninitialized) {
-      const {
-        endpointName
-      } = lastResult;
-      const endpointDefinition = context.endpointDefinitions[endpointName];
-      if (serializeQueryArgs({
-        queryArgs: lastResult.originalArgs,
-        endpointDefinition,
-        endpointName
-      }) === serializeQueryArgs({
-        queryArgs,
-        endpointDefinition,
-        endpointName
-      }))
-        lastResult = void 0;
-    }
-    let data = currentState.isSuccess ? currentState.data : lastResult?.data;
-    if (data === void 0)
-      data = currentState.data;
-    const hasData = data !== void 0;
-    const isFetching = currentState.isLoading;
-    const isLoading = !hasData && isFetching;
-    const isSuccess = currentState.isSuccess || isFetching && hasData;
-    return {
-      ...currentState,
-      data,
-      currentData: currentState.data,
-      isFetching,
-      isLoading,
-      isSuccess
-    };
-  }
-  function usePrefetch(endpointName, defaultOptions) {
-    const dispatch = useDispatch();
-    const stableDefaultOptions = useShallowStableValue(defaultOptions);
-    return (0, import_react3.useCallback)((arg, options) => dispatch(api.util.prefetch(endpointName, arg, {
-      ...stableDefaultOptions,
-      ...options
-    })), [endpointName, dispatch, stableDefaultOptions]);
-  }
-  function buildQueryHooks(name) {
-    const useQuerySubscription = (arg, {
-      refetchOnReconnect,
-      refetchOnFocus,
-      refetchOnMountOrArgChange,
-      skip = false,
-      pollingInterval = 0
-    } = {}) => {
-      const {
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const subscriptionSelectorsRef = (0, import_react3.useRef)();
-      if (!subscriptionSelectorsRef.current) {
-        const returnedValue = dispatch(api.internalActions.internal_getRTKQSubscriptions());
-        if (true) {
-          if (typeof returnedValue !== "object" || typeof returnedValue?.type === "string") {
-            throw new Error(false ? _formatProdErrorMessage(37) : `Warning: Middleware for RTK-Query API at reducerPath "${api.reducerPath}" has not been added to the store.
-    You must add the middleware for RTK-Query to function correctly!`);
-          }
-        }
-        subscriptionSelectorsRef.current = returnedValue;
-      }
-      const stableArg = useStableQueryArgs(
-        skip ? import_query.skipToken : arg,
-        // Even if the user provided a per-endpoint `serializeQueryArgs` with
-        // a consistent return value, _here_ we want to use the default behavior
-        // so we can tell if _anything_ actually changed. Otherwise, we can end up
-        // with a case where the query args did change but the serialization doesn't,
-        // and then we never try to initiate a refetch.
-        defaultSerializeQueryArgs,
-        context.endpointDefinitions[name],
-        name
-      );
-      const stableSubscriptionOptions = useShallowStableValue({
-        refetchOnReconnect,
-        refetchOnFocus,
-        pollingInterval
-      });
-      const lastRenderHadSubscription = (0, import_react3.useRef)(false);
-      const promiseRef = (0, import_react3.useRef)();
-      let {
-        queryCacheKey,
-        requestId
-      } = promiseRef.current || {};
-      let currentRenderHasSubscription = false;
-      if (queryCacheKey && requestId) {
-        currentRenderHasSubscription = subscriptionSelectorsRef.current.isRequestSubscribed(queryCacheKey, requestId);
-      }
-      const subscriptionRemoved = !currentRenderHasSubscription && lastRenderHadSubscription.current;
-      usePossiblyImmediateEffect(() => {
-        lastRenderHadSubscription.current = currentRenderHasSubscription;
-      });
-      usePossiblyImmediateEffect(() => {
-        if (subscriptionRemoved) {
-          promiseRef.current = void 0;
-        }
-      }, [subscriptionRemoved]);
-      usePossiblyImmediateEffect(() => {
-        const lastPromise = promiseRef.current;
-        if (typeof process !== "undefined" && false) {
-          console.log(subscriptionRemoved);
-        }
-        if (stableArg === import_query.skipToken) {
-          lastPromise?.unsubscribe();
-          promiseRef.current = void 0;
-          return;
-        }
-        const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
-        if (!lastPromise || lastPromise.arg !== stableArg) {
-          lastPromise?.unsubscribe();
-          const promise = dispatch(initiate(stableArg, {
-            subscriptionOptions: stableSubscriptionOptions,
-            forceRefetch: refetchOnMountOrArgChange
-          }));
-          promiseRef.current = promise;
-        } else if (stableSubscriptionOptions !== lastSubscriptionOptions) {
-          lastPromise.updateSubscriptionOptions(stableSubscriptionOptions);
-        }
-      }, [dispatch, initiate, refetchOnMountOrArgChange, stableArg, stableSubscriptionOptions, subscriptionRemoved]);
-      (0, import_react3.useEffect)(() => {
-        return () => {
-          promiseRef.current?.unsubscribe();
-          promiseRef.current = void 0;
-        };
-      }, []);
-      return (0, import_react3.useMemo)(() => ({
-        /**
-         * A method to manually refetch data for the query
-         */
-        refetch: () => {
-          if (!promiseRef.current)
-            throw new Error(false ? _formatProdErrorMessage2(38) : "Cannot refetch a query that has not been started yet.");
-          return promiseRef.current?.refetch();
-        }
-      }), []);
-    };
-    const useLazyQuerySubscription = ({
-      refetchOnReconnect,
-      refetchOnFocus,
-      pollingInterval = 0
-    } = {}) => {
-      const {
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const [arg, setArg] = (0, import_react3.useState)(UNINITIALIZED_VALUE);
-      const promiseRef = (0, import_react3.useRef)();
-      const stableSubscriptionOptions = useShallowStableValue({
-        refetchOnReconnect,
-        refetchOnFocus,
-        pollingInterval
-      });
-      usePossiblyImmediateEffect(() => {
-        const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
-        if (stableSubscriptionOptions !== lastSubscriptionOptions) {
-          promiseRef.current?.updateSubscriptionOptions(stableSubscriptionOptions);
-        }
-      }, [stableSubscriptionOptions]);
-      const subscriptionOptionsRef = (0, import_react3.useRef)(stableSubscriptionOptions);
-      usePossiblyImmediateEffect(() => {
-        subscriptionOptionsRef.current = stableSubscriptionOptions;
-      }, [stableSubscriptionOptions]);
-      const trigger = (0, import_react3.useCallback)(function(arg2, preferCacheValue = false) {
-        let promise;
-        batch(() => {
-          promiseRef.current?.unsubscribe();
-          promiseRef.current = promise = dispatch(initiate(arg2, {
-            subscriptionOptions: subscriptionOptionsRef.current,
-            forceRefetch: !preferCacheValue
-          }));
-          setArg(arg2);
-        });
-        return promise;
-      }, [dispatch, initiate]);
-      (0, import_react3.useEffect)(() => {
-        return () => {
-          promiseRef?.current?.unsubscribe();
-        };
-      }, []);
-      (0, import_react3.useEffect)(() => {
-        if (arg !== UNINITIALIZED_VALUE && !promiseRef.current) {
-          trigger(arg, true);
-        }
-      }, [arg, trigger]);
-      return (0, import_react3.useMemo)(() => [trigger, arg], [trigger, arg]);
-    };
-    const useQueryState = (arg, {
-      skip = false,
-      selectFromResult
-    } = {}) => {
-      const {
-        select
-      } = api.endpoints[name];
-      const stableArg = useStableQueryArgs(skip ? import_query.skipToken : arg, serializeQueryArgs, context.endpointDefinitions[name], name);
-      const lastValue = (0, import_react3.useRef)();
-      const selectDefaultResult = (0, import_react3.useMemo)(() => (0, import_toolkit4.createSelector)([select(stableArg), (_, lastResult) => lastResult, (_) => stableArg], queryStatePreSelector), [select, stableArg]);
-      const querySelector = (0, import_react3.useMemo)(() => selectFromResult ? (0, import_toolkit4.createSelector)([selectDefaultResult], selectFromResult, {
-        devModeChecks: {
-          identityFunctionCheck: "never"
-        }
-      }) : selectDefaultResult, [selectDefaultResult, selectFromResult]);
-      const currentState = useSelector((state) => querySelector(state, lastValue.current), import_react_redux2.shallowEqual);
-      const store = useStore();
-      const newLastValue = selectDefaultResult(store.getState(), lastValue.current);
-      useIsomorphicLayoutEffect(() => {
-        lastValue.current = newLastValue;
-      }, [newLastValue]);
-      return currentState;
-    };
-    return {
-      useQueryState,
-      useQuerySubscription,
-      useLazyQuerySubscription,
-      useLazyQuery(options) {
-        const [trigger, arg] = useLazyQuerySubscription(options);
-        const queryStateResults = useQueryState(arg, {
-          ...options,
-          skip: arg === UNINITIALIZED_VALUE
-        });
-        const info = (0, import_react3.useMemo)(() => ({
-          lastArg: arg
-        }), [arg]);
-        return (0, import_react3.useMemo)(() => [trigger, queryStateResults, info], [trigger, queryStateResults, info]);
-      },
-      useQuery(arg, options) {
-        const querySubscriptionResults = useQuerySubscription(arg, options);
-        const queryStateResults = useQueryState(arg, {
-          selectFromResult: arg === import_query.skipToken || options?.skip ? void 0 : noPendingQueryStateSelector,
-          ...options
-        });
-        const {
-          data,
-          status,
-          isLoading,
-          isSuccess,
-          isError,
-          error
-        } = queryStateResults;
-        (0, import_react3.useDebugValue)({
-          data,
-          status,
-          isLoading,
-          isSuccess,
-          isError,
-          error
-        });
-        return (0, import_react3.useMemo)(() => ({
-          ...queryStateResults,
-          ...querySubscriptionResults
-        }), [queryStateResults, querySubscriptionResults]);
-      }
-    };
-  }
-  function buildMutationHook(name) {
-    return ({
-      selectFromResult,
-      fixedCacheKey
-    } = {}) => {
-      const {
-        select,
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const [promise, setPromise] = (0, import_react3.useState)();
-      (0, import_react3.useEffect)(() => () => {
-        if (!promise?.arg.fixedCacheKey) {
-          promise?.reset();
-        }
-      }, [promise]);
-      const triggerMutation = (0, import_react3.useCallback)(function(arg) {
-        const promise2 = dispatch(initiate(arg, {
-          fixedCacheKey
-        }));
-        setPromise(promise2);
-        return promise2;
-      }, [dispatch, initiate, fixedCacheKey]);
-      const {
-        requestId
-      } = promise || {};
-      const selectDefaultResult = (0, import_react3.useMemo)(() => select({
-        fixedCacheKey,
-        requestId: promise?.requestId
-      }), [fixedCacheKey, promise, select]);
-      const mutationSelector = (0, import_react3.useMemo)(() => selectFromResult ? (0, import_toolkit4.createSelector)([selectDefaultResult], selectFromResult) : selectDefaultResult, [selectFromResult, selectDefaultResult]);
-      const currentState = useSelector(mutationSelector, import_react_redux2.shallowEqual);
-      const originalArgs = fixedCacheKey == null ? promise?.arg.originalArgs : void 0;
-      const reset = (0, import_react3.useCallback)(() => {
-        batch(() => {
-          if (promise) {
-            setPromise(void 0);
-          }
-          if (fixedCacheKey) {
-            dispatch(api.internalActions.removeMutationResult({
-              requestId,
-              fixedCacheKey
-            }));
-          }
-        });
-      }, [dispatch, fixedCacheKey, promise, requestId]);
-      const {
-        endpointName,
-        data,
-        status,
-        isLoading,
-        isSuccess,
-        isError,
-        error
-      } = currentState;
-      (0, import_react3.useDebugValue)({
-        endpointName,
-        data,
-        status,
-        isLoading,
-        isSuccess,
-        isError,
-        error
-      });
-      const finalState = (0, import_react3.useMemo)(() => ({
-        ...currentState,
-        originalArgs,
-        reset
-      }), [currentState, originalArgs, reset]);
-      return (0, import_react3.useMemo)(() => [triggerMutation, finalState], [triggerMutation, finalState]);
-    };
-  }
-}
-
-// src/query/endpointDefinitions.ts
-function isQueryDefinition(e) {
-  return e.type === "query" /* query */;
-}
-function isMutationDefinition(e) {
-  return e.type === "mutation" /* mutation */;
-}
-
-// src/query/utils/capitalize.ts
-function capitalize(str) {
-  return str.replace(str[0], str[0].toUpperCase());
-}
-
-// src/query/tsHelpers.ts
-function safeAssign(target, ...args) {
-  return Object.assign(target, ...args);
-}
-
-// src/query/react/module.ts
-var import_react_redux3 = require("react-redux");
-
-// src/query/utils/countObjectKeys.ts
-function countObjectKeys(obj) {
-  let count = 0;
-  for (const _key in obj) {
-    count++;
-  }
-  return count;
-}
-
-// src/query/react/module.ts
-var reactHooksModuleName = /* @__PURE__ */ Symbol();
-var reactHooksModule = ({
-  batch = import_react_redux3.batch,
-  hooks = {
-    useDispatch: import_react_redux3.useDispatch,
-    useSelector: import_react_redux3.useSelector,
-    useStore: import_react_redux3.useStore
-  },
-  unstable__sideEffectsInRender = false,
-  ...rest
-} = {}) => {
-  if (true) {
-    const hookNames = ["useDispatch", "useSelector", "useStore"];
-    let warned = false;
-    for (const hookName of hookNames) {
-      if (countObjectKeys(rest) > 0) {
-        if (rest[hookName]) {
-          if (!warned) {
-            console.warn("As of RTK 2.0, the hooks now need to be specified as one object, provided under a `hooks` key:\n`reactHooksModule({ hooks: { useDispatch, useSelector, useStore } })`");
-            warned = true;
-          }
-        }
-        hooks[hookName] = rest[hookName];
-      }
-      if (typeof hooks[hookName] !== "function") {
-        throw new Error(false ? _formatProdErrorMessage3(36) : `When using custom hooks for context, all ${hookNames.length} hooks need to be provided: ${hookNames.join(", ")}.
-Hook ${hookName} was either not provided or not a function.`);
-      }
-    }
-  }
-  return {
-    name: reactHooksModuleName,
-    init(api, {
-      serializeQueryArgs
-    }, context) {
-      const anyApi = api;
-      const {
-        buildQueryHooks,
-        buildMutationHook,
-        usePrefetch
-      } = buildHooks({
-        api,
-        moduleOptions: {
-          batch,
-          hooks,
-          unstable__sideEffectsInRender
-        },
-        serializeQueryArgs,
-        context
-      });
-      safeAssign(anyApi, {
-        usePrefetch
-      });
-      safeAssign(context, {
-        batch
-      });
-      return {
-        injectEndpoint(endpointName, definition) {
-          if (isQueryDefinition(definition)) {
-            const {
-              useQuery,
-              useLazyQuery,
-              useLazyQuerySubscription,
-              useQueryState,
-              useQuerySubscription
-            } = buildQueryHooks(endpointName);
-            safeAssign(anyApi.endpoints[endpointName], {
-              useQuery,
-              useLazyQuery,
-              useLazyQuerySubscription,
-              useQueryState,
-              useQuerySubscription
-            });
-            api[`use${capitalize(endpointName)}Query`] = useQuery;
-            api[`useLazy${capitalize(endpointName)}Query`] = useLazyQuery;
-          } else if (isMutationDefinition(definition)) {
-            const useMutation = buildMutationHook(endpointName);
-            safeAssign(anyApi.endpoints[endpointName], {
-              useMutation
-            });
-            api[`use${capitalize(endpointName)}Mutation`] = useMutation;
-          }
-        }
-      };
-    }
-  };
-};
-
-// src/query/react/index.ts
-__reExport(react_exports, require("@reduxjs/toolkit/query"), module.exports);
-
-// src/query/react/ApiProvider.tsx
-var import_toolkit6 = require("@reduxjs/toolkit");
-var import_toolkit7 = require("@reduxjs/toolkit");
-var import_react4 = require("react");
-var import_react5 = require("react");
-var import_react6 = __toESM(require("react"));
-var import_react_redux4 = require("react-redux");
-var import_query2 = require("@reduxjs/toolkit/query");
-function ApiProvider(props) {
-  const context = props.context || import_react_redux4.ReactReduxContext;
-  const existingContext = (0, import_react4.useContext)(context);
-  if (existingContext) {
-    throw new Error(false ? _formatProdErrorMessage4(35) : "Existing Redux context detected. If you already have a store set up, please use the traditional Redux setup.");
-  }
-  const [store] = import_react6.default.useState(() => (0, import_toolkit7.configureStore)({
-    reducer: {
-      [props.api.reducerPath]: props.api.reducer
-    },
-    middleware: (gDM) => gDM().concat(props.api.middleware)
-  }));
-  (0, import_react5.useEffect)(() => props.setupListeners === false ? void 0 : (0, import_query2.setupListeners)(store.dispatch, props.setupListeners), [props.setupListeners, store.dispatch]);
-  return /* @__PURE__ */ import_react6.default.createElement(import_react_redux4.Provider, { store, context }, props.children);
-}
-
-// src/query/react/index.ts
-var createApi = /* @__PURE__ */ (0, import_query3.buildCreateApi)((0, import_query3.coreModule)(), reactHooksModule());
-//# sourceMappingURL=rtk-query-react.development.cjs.map

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.development.cjs.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.production.min.cjs


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/cjs/rtk-query-react.production.min.cjs.map


+ 0 - 2
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/constants.d.ts

@@ -1,2 +0,0 @@
-export declare const UNINITIALIZED_VALUE: unique symbol;
-export type UninitializedValue = typeof UNINITIALIZED_VALUE;

+ 0 - 6
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/index.d.ts

@@ -1,6 +0,0 @@
-import { reactHooksModule, reactHooksModuleName } from './module';
-export * from '@reduxjs/toolkit/query';
-export { ApiProvider } from './ApiProvider';
-declare const createApi: import("@reduxjs/toolkit/query").CreateApi<typeof import("@reduxjs/toolkit/query").coreModuleName | typeof reactHooksModuleName>;
-export type { TypedUseQueryHookResult, TypedUseQueryStateResult, TypedUseQuerySubscriptionResult, TypedUseMutationResult, } from './buildHooks';
-export { createApi, reactHooksModule, reactHooksModuleName };

+ 0 - 90
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/module.d.ts

@@ -1,90 +0,0 @@
-import type { MutationHooks, QueryHooks } from './buildHooks';
-import type { EndpointDefinitions, QueryDefinition, MutationDefinition, QueryArgFrom } from '@reduxjs/toolkit/query';
-import type { Module } from '../apiTypes';
-import type { BaseQueryFn } from '@reduxjs/toolkit/query';
-import type { HooksWithUniqueNames } from './namedHooks';
-import type { QueryKeys } from '../core/apiState';
-import type { PrefetchOptions } from '../core/module';
-export declare const reactHooksModuleName: unique symbol;
-export type ReactHooksModule = typeof reactHooksModuleName;
-declare module '@reduxjs/toolkit/query' {
-    interface ApiModules<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string> {
-        [reactHooksModuleName]: {
-            /**
-             *  Endpoints based on the input endpoints provided to `createApi`, containing `select`, `hooks` and `action matchers`.
-             */
-            endpoints: {
-                [K in keyof Definitions]: Definitions[K] extends QueryDefinition<any, any, any, any, any> ? QueryHooks<Definitions[K]> : Definitions[K] extends MutationDefinition<any, any, any, any, any> ? MutationHooks<Definitions[K]> : never;
-            };
-            /**
-             * A hook that accepts a string endpoint name, and provides a callback that when called, pre-fetches the data for that endpoint.
-             */
-            usePrefetch<EndpointName extends QueryKeys<Definitions>>(endpointName: EndpointName, options?: PrefetchOptions): (arg: QueryArgFrom<Definitions[EndpointName]>, options?: PrefetchOptions) => void;
-        } & HooksWithUniqueNames<Definitions>;
-    }
-}
-type RR = typeof import('react-redux');
-export interface ReactHooksModuleOptions {
-    /**
-     * The hooks from React Redux to be used
-     */
-    hooks?: {
-        /**
-         * The version of the `useDispatch` hook to be used
-         */
-        useDispatch: RR['useDispatch'];
-        /**
-         * The version of the `useSelector` hook to be used
-         */
-        useSelector: RR['useSelector'];
-        /**
-         * The version of the `useStore` hook to be used
-         */
-        useStore: RR['useStore'];
-    };
-    /**
-     * The version of the `batchedUpdates` function to be used
-     */
-    batch?: RR['batch'];
-    /**
-     * Enables performing asynchronous tasks immediately within a render.
-     *
-     * @example
-     *
-     * ```ts
-     * import {
-     *   buildCreateApi,
-     *   coreModule,
-     *   reactHooksModule
-     * } from '@reduxjs/toolkit/query/react'
-     *
-     * const createApi = buildCreateApi(
-     *   coreModule(),
-     *   reactHooksModule({ unstable__sideEffectsInRender: true })
-     * )
-     * ```
-     */
-    unstable__sideEffectsInRender?: boolean;
-}
-/**
- * Creates a module that generates react hooks from endpoints, for use with `buildCreateApi`.
- *
- *  @example
- * ```ts
- * const MyContext = React.createContext<ReactReduxContextValue>(null as any);
- * const customCreateApi = buildCreateApi(
- *   coreModule(),
- *   reactHooksModule({
- *     hooks: {
- *       useDispatch: createDispatchHook(MyContext),
- *       useSelector: createSelectorHook(MyContext),
- *       useStore: createStoreHook(MyContext)
- *     }
- *   })
- * );
- * ```
- *
- * @returns A module for use with `buildCreateApi`
- */
-export declare const reactHooksModule: ({ batch, hooks, unstable__sideEffectsInRender, ...rest }?: ReactHooksModuleOptions) => Module<ReactHooksModule>;
-export {};

+ 0 - 19
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/namedHooks.d.ts

@@ -1,19 +0,0 @@
-import type { UseMutation, UseLazyQuery, UseQuery } from './buildHooks';
-import type { DefinitionType, EndpointDefinitions, MutationDefinition, QueryDefinition } from '@reduxjs/toolkit/query';
-type QueryHookNames<Definitions extends EndpointDefinitions> = {
-    [K in keyof Definitions as Definitions[K] extends {
-        type: DefinitionType.query;
-    } ? `use${Capitalize<K & string>}Query` : never]: UseQuery<Extract<Definitions[K], QueryDefinition<any, any, any, any>>>;
-};
-type LazyQueryHookNames<Definitions extends EndpointDefinitions> = {
-    [K in keyof Definitions as Definitions[K] extends {
-        type: DefinitionType.query;
-    } ? `useLazy${Capitalize<K & string>}Query` : never]: UseLazyQuery<Extract<Definitions[K], QueryDefinition<any, any, any, any>>>;
-};
-type MutationHookNames<Definitions extends EndpointDefinitions> = {
-    [K in keyof Definitions as Definitions[K] extends {
-        type: DefinitionType.mutation;
-    } ? `use${Capitalize<K & string>}Mutation` : never]: UseMutation<Extract<Definitions[K], MutationDefinition<any, any, any, any>>>;
-};
-export type HooksWithUniqueNames<Definitions extends EndpointDefinitions> = QueryHookNames<Definitions> & LazyQueryHookNames<Definitions> & MutationHookNames<Definitions>;
-export {};

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.browser.mjs


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.browser.mjs.map


+ 0 - 594
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.legacy-esm.js

@@ -1,594 +0,0 @@
-// src/query/react/index.ts
-import { coreModule, buildCreateApi } from "@reduxjs/toolkit/query";
-
-// src/query/react/module.ts
-import { formatProdErrorMessage as _formatProdErrorMessage3 } from "@reduxjs/toolkit";
-
-// src/query/react/buildHooks.ts
-import { formatProdErrorMessage as _formatProdErrorMessage2 } from "@reduxjs/toolkit";
-import { formatProdErrorMessage as _formatProdErrorMessage } from "@reduxjs/toolkit";
-import { createSelector as createSelector2 } from "@reduxjs/toolkit";
-import { useCallback, useDebugValue, useEffect as useEffect3, useLayoutEffect, useMemo as useMemo2, useRef as useRef3, useState } from "react";
-import { QueryStatus, skipToken } from "@reduxjs/toolkit/query";
-import { shallowEqual as shallowEqual2 } from "react-redux";
-
-// src/query/react/useSerializedStableValue.ts
-import { useEffect, useRef, useMemo } from "react";
-function useStableQueryArgs(queryArgs, serialize, endpointDefinition, endpointName) {
-  const incoming = useMemo(() => ({
-    queryArgs,
-    serialized: typeof queryArgs == "object" ? serialize({
-      queryArgs,
-      endpointDefinition,
-      endpointName
-    }) : queryArgs
-  }), [queryArgs, serialize, endpointDefinition, endpointName]);
-  const cache2 = useRef(incoming);
-  useEffect(() => {
-    if (cache2.current.serialized !== incoming.serialized) {
-      cache2.current = incoming;
-    }
-  }, [incoming]);
-  return cache2.current.serialized === incoming.serialized ? cache2.current.queryArgs : queryArgs;
-}
-
-// src/query/react/constants.ts
-var UNINITIALIZED_VALUE = Symbol();
-
-// src/query/react/useShallowStableValue.ts
-import { useEffect as useEffect2, useRef as useRef2 } from "react";
-import { shallowEqual } from "react-redux";
-function useShallowStableValue(value) {
-  const cache2 = useRef2(value);
-  useEffect2(() => {
-    if (!shallowEqual(cache2.current, value)) {
-      cache2.current = value;
-    }
-  }, [value]);
-  return shallowEqual(cache2.current, value) ? cache2.current : value;
-}
-
-// src/query/core/rtkImports.ts
-import { createAction, createSlice, createSelector, createAsyncThunk, combineReducers, createNextState, isAnyOf, isAllOf, isAction, isPending, isRejected, isFulfilled, isRejectedWithValue, isAsyncThunkAction, prepareAutoBatched, SHOULD_AUTOBATCH, isPlainObject, nanoid } from "@reduxjs/toolkit";
-
-// src/query/defaultSerializeQueryArgs.ts
-var cache = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0;
-var defaultSerializeQueryArgs = ({
-  endpointName,
-  queryArgs
-}) => {
-  let serialized = "";
-  const cached = cache?.get(queryArgs);
-  if (typeof cached === "string") {
-    serialized = cached;
-  } else {
-    const stringified = JSON.stringify(queryArgs, (key, value) => isPlainObject(value) ? Object.keys(value).sort().reduce((acc, key2) => {
-      acc[key2] = value[key2];
-      return acc;
-    }, {}) : value);
-    if (isPlainObject(queryArgs)) {
-      cache?.set(queryArgs, stringified);
-    }
-    serialized = stringified;
-  }
-  return `${endpointName}(${serialized})`;
-};
-
-// src/query/react/buildHooks.ts
-var useIsomorphicLayoutEffect = typeof window !== "undefined" && !!window.document && !!window.document.createElement ? useLayoutEffect : useEffect3;
-var noPendingQueryStateSelector = (selected) => {
-  if (selected.isUninitialized) {
-    return {
-      ...selected,
-      isUninitialized: false,
-      isFetching: true,
-      isLoading: selected.data !== void 0 ? false : true,
-      status: QueryStatus.pending
-    };
-  }
-  return selected;
-};
-function buildHooks({
-  api,
-  moduleOptions: {
-    batch,
-    hooks: {
-      useDispatch,
-      useSelector,
-      useStore
-    },
-    unstable__sideEffectsInRender
-  },
-  serializeQueryArgs,
-  context
-}) {
-  const usePossiblyImmediateEffect = unstable__sideEffectsInRender ? (cb) => cb() : useEffect3;
-  return {
-    buildQueryHooks,
-    buildMutationHook,
-    usePrefetch
-  };
-  function queryStatePreSelector(currentState, lastResult, queryArgs) {
-    if (lastResult?.endpointName && currentState.isUninitialized) {
-      const {
-        endpointName
-      } = lastResult;
-      const endpointDefinition = context.endpointDefinitions[endpointName];
-      if (serializeQueryArgs({
-        queryArgs: lastResult.originalArgs,
-        endpointDefinition,
-        endpointName
-      }) === serializeQueryArgs({
-        queryArgs,
-        endpointDefinition,
-        endpointName
-      }))
-        lastResult = void 0;
-    }
-    let data = currentState.isSuccess ? currentState.data : lastResult?.data;
-    if (data === void 0)
-      data = currentState.data;
-    const hasData = data !== void 0;
-    const isFetching = currentState.isLoading;
-    const isLoading = !hasData && isFetching;
-    const isSuccess = currentState.isSuccess || isFetching && hasData;
-    return {
-      ...currentState,
-      data,
-      currentData: currentState.data,
-      isFetching,
-      isLoading,
-      isSuccess
-    };
-  }
-  function usePrefetch(endpointName, defaultOptions) {
-    const dispatch = useDispatch();
-    const stableDefaultOptions = useShallowStableValue(defaultOptions);
-    return useCallback((arg, options) => dispatch(api.util.prefetch(endpointName, arg, {
-      ...stableDefaultOptions,
-      ...options
-    })), [endpointName, dispatch, stableDefaultOptions]);
-  }
-  function buildQueryHooks(name) {
-    const useQuerySubscription = (arg, {
-      refetchOnReconnect,
-      refetchOnFocus,
-      refetchOnMountOrArgChange,
-      skip = false,
-      pollingInterval = 0
-    } = {}) => {
-      const {
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const subscriptionSelectorsRef = useRef3();
-      if (!subscriptionSelectorsRef.current) {
-        const returnedValue = dispatch(api.internalActions.internal_getRTKQSubscriptions());
-        if (process.env.NODE_ENV !== "production") {
-          if (typeof returnedValue !== "object" || typeof returnedValue?.type === "string") {
-            throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage(37) : `Warning: Middleware for RTK-Query API at reducerPath "${api.reducerPath}" has not been added to the store.
-    You must add the middleware for RTK-Query to function correctly!`);
-          }
-        }
-        subscriptionSelectorsRef.current = returnedValue;
-      }
-      const stableArg = useStableQueryArgs(
-        skip ? skipToken : arg,
-        // Even if the user provided a per-endpoint `serializeQueryArgs` with
-        // a consistent return value, _here_ we want to use the default behavior
-        // so we can tell if _anything_ actually changed. Otherwise, we can end up
-        // with a case where the query args did change but the serialization doesn't,
-        // and then we never try to initiate a refetch.
-        defaultSerializeQueryArgs,
-        context.endpointDefinitions[name],
-        name
-      );
-      const stableSubscriptionOptions = useShallowStableValue({
-        refetchOnReconnect,
-        refetchOnFocus,
-        pollingInterval
-      });
-      const lastRenderHadSubscription = useRef3(false);
-      const promiseRef = useRef3();
-      let {
-        queryCacheKey,
-        requestId
-      } = promiseRef.current || {};
-      let currentRenderHasSubscription = false;
-      if (queryCacheKey && requestId) {
-        currentRenderHasSubscription = subscriptionSelectorsRef.current.isRequestSubscribed(queryCacheKey, requestId);
-      }
-      const subscriptionRemoved = !currentRenderHasSubscription && lastRenderHadSubscription.current;
-      usePossiblyImmediateEffect(() => {
-        lastRenderHadSubscription.current = currentRenderHasSubscription;
-      });
-      usePossiblyImmediateEffect(() => {
-        if (subscriptionRemoved) {
-          promiseRef.current = void 0;
-        }
-      }, [subscriptionRemoved]);
-      usePossiblyImmediateEffect(() => {
-        const lastPromise = promiseRef.current;
-        if (typeof process !== "undefined" && process.env.NODE_ENV === "removeMeOnCompilation") {
-          console.log(subscriptionRemoved);
-        }
-        if (stableArg === skipToken) {
-          lastPromise?.unsubscribe();
-          promiseRef.current = void 0;
-          return;
-        }
-        const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
-        if (!lastPromise || lastPromise.arg !== stableArg) {
-          lastPromise?.unsubscribe();
-          const promise = dispatch(initiate(stableArg, {
-            subscriptionOptions: stableSubscriptionOptions,
-            forceRefetch: refetchOnMountOrArgChange
-          }));
-          promiseRef.current = promise;
-        } else if (stableSubscriptionOptions !== lastSubscriptionOptions) {
-          lastPromise.updateSubscriptionOptions(stableSubscriptionOptions);
-        }
-      }, [dispatch, initiate, refetchOnMountOrArgChange, stableArg, stableSubscriptionOptions, subscriptionRemoved]);
-      useEffect3(() => {
-        return () => {
-          promiseRef.current?.unsubscribe();
-          promiseRef.current = void 0;
-        };
-      }, []);
-      return useMemo2(() => ({
-        /**
-         * A method to manually refetch data for the query
-         */
-        refetch: () => {
-          if (!promiseRef.current)
-            throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage2(38) : "Cannot refetch a query that has not been started yet.");
-          return promiseRef.current?.refetch();
-        }
-      }), []);
-    };
-    const useLazyQuerySubscription = ({
-      refetchOnReconnect,
-      refetchOnFocus,
-      pollingInterval = 0
-    } = {}) => {
-      const {
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const [arg, setArg] = useState(UNINITIALIZED_VALUE);
-      const promiseRef = useRef3();
-      const stableSubscriptionOptions = useShallowStableValue({
-        refetchOnReconnect,
-        refetchOnFocus,
-        pollingInterval
-      });
-      usePossiblyImmediateEffect(() => {
-        const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
-        if (stableSubscriptionOptions !== lastSubscriptionOptions) {
-          promiseRef.current?.updateSubscriptionOptions(stableSubscriptionOptions);
-        }
-      }, [stableSubscriptionOptions]);
-      const subscriptionOptionsRef = useRef3(stableSubscriptionOptions);
-      usePossiblyImmediateEffect(() => {
-        subscriptionOptionsRef.current = stableSubscriptionOptions;
-      }, [stableSubscriptionOptions]);
-      const trigger = useCallback(function(arg2, preferCacheValue = false) {
-        let promise;
-        batch(() => {
-          promiseRef.current?.unsubscribe();
-          promiseRef.current = promise = dispatch(initiate(arg2, {
-            subscriptionOptions: subscriptionOptionsRef.current,
-            forceRefetch: !preferCacheValue
-          }));
-          setArg(arg2);
-        });
-        return promise;
-      }, [dispatch, initiate]);
-      useEffect3(() => {
-        return () => {
-          promiseRef?.current?.unsubscribe();
-        };
-      }, []);
-      useEffect3(() => {
-        if (arg !== UNINITIALIZED_VALUE && !promiseRef.current) {
-          trigger(arg, true);
-        }
-      }, [arg, trigger]);
-      return useMemo2(() => [trigger, arg], [trigger, arg]);
-    };
-    const useQueryState = (arg, {
-      skip = false,
-      selectFromResult
-    } = {}) => {
-      const {
-        select
-      } = api.endpoints[name];
-      const stableArg = useStableQueryArgs(skip ? skipToken : arg, serializeQueryArgs, context.endpointDefinitions[name], name);
-      const lastValue = useRef3();
-      const selectDefaultResult = useMemo2(() => createSelector2([select(stableArg), (_, lastResult) => lastResult, (_) => stableArg], queryStatePreSelector), [select, stableArg]);
-      const querySelector = useMemo2(() => selectFromResult ? createSelector2([selectDefaultResult], selectFromResult, {
-        devModeChecks: {
-          identityFunctionCheck: "never"
-        }
-      }) : selectDefaultResult, [selectDefaultResult, selectFromResult]);
-      const currentState = useSelector((state) => querySelector(state, lastValue.current), shallowEqual2);
-      const store = useStore();
-      const newLastValue = selectDefaultResult(store.getState(), lastValue.current);
-      useIsomorphicLayoutEffect(() => {
-        lastValue.current = newLastValue;
-      }, [newLastValue]);
-      return currentState;
-    };
-    return {
-      useQueryState,
-      useQuerySubscription,
-      useLazyQuerySubscription,
-      useLazyQuery(options) {
-        const [trigger, arg] = useLazyQuerySubscription(options);
-        const queryStateResults = useQueryState(arg, {
-          ...options,
-          skip: arg === UNINITIALIZED_VALUE
-        });
-        const info = useMemo2(() => ({
-          lastArg: arg
-        }), [arg]);
-        return useMemo2(() => [trigger, queryStateResults, info], [trigger, queryStateResults, info]);
-      },
-      useQuery(arg, options) {
-        const querySubscriptionResults = useQuerySubscription(arg, options);
-        const queryStateResults = useQueryState(arg, {
-          selectFromResult: arg === skipToken || options?.skip ? void 0 : noPendingQueryStateSelector,
-          ...options
-        });
-        const {
-          data,
-          status,
-          isLoading,
-          isSuccess,
-          isError,
-          error
-        } = queryStateResults;
-        useDebugValue({
-          data,
-          status,
-          isLoading,
-          isSuccess,
-          isError,
-          error
-        });
-        return useMemo2(() => ({
-          ...queryStateResults,
-          ...querySubscriptionResults
-        }), [queryStateResults, querySubscriptionResults]);
-      }
-    };
-  }
-  function buildMutationHook(name) {
-    return ({
-      selectFromResult,
-      fixedCacheKey
-    } = {}) => {
-      const {
-        select,
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const [promise, setPromise] = useState();
-      useEffect3(() => () => {
-        if (!promise?.arg.fixedCacheKey) {
-          promise?.reset();
-        }
-      }, [promise]);
-      const triggerMutation = useCallback(function(arg) {
-        const promise2 = dispatch(initiate(arg, {
-          fixedCacheKey
-        }));
-        setPromise(promise2);
-        return promise2;
-      }, [dispatch, initiate, fixedCacheKey]);
-      const {
-        requestId
-      } = promise || {};
-      const selectDefaultResult = useMemo2(() => select({
-        fixedCacheKey,
-        requestId: promise?.requestId
-      }), [fixedCacheKey, promise, select]);
-      const mutationSelector = useMemo2(() => selectFromResult ? createSelector2([selectDefaultResult], selectFromResult) : selectDefaultResult, [selectFromResult, selectDefaultResult]);
-      const currentState = useSelector(mutationSelector, shallowEqual2);
-      const originalArgs = fixedCacheKey == null ? promise?.arg.originalArgs : void 0;
-      const reset = useCallback(() => {
-        batch(() => {
-          if (promise) {
-            setPromise(void 0);
-          }
-          if (fixedCacheKey) {
-            dispatch(api.internalActions.removeMutationResult({
-              requestId,
-              fixedCacheKey
-            }));
-          }
-        });
-      }, [dispatch, fixedCacheKey, promise, requestId]);
-      const {
-        endpointName,
-        data,
-        status,
-        isLoading,
-        isSuccess,
-        isError,
-        error
-      } = currentState;
-      useDebugValue({
-        endpointName,
-        data,
-        status,
-        isLoading,
-        isSuccess,
-        isError,
-        error
-      });
-      const finalState = useMemo2(() => ({
-        ...currentState,
-        originalArgs,
-        reset
-      }), [currentState, originalArgs, reset]);
-      return useMemo2(() => [triggerMutation, finalState], [triggerMutation, finalState]);
-    };
-  }
-}
-
-// src/query/endpointDefinitions.ts
-function isQueryDefinition(e) {
-  return e.type === "query" /* query */;
-}
-function isMutationDefinition(e) {
-  return e.type === "mutation" /* mutation */;
-}
-
-// src/query/utils/capitalize.ts
-function capitalize(str) {
-  return str.replace(str[0], str[0].toUpperCase());
-}
-
-// src/query/tsHelpers.ts
-function safeAssign(target, ...args) {
-  return Object.assign(target, ...args);
-}
-
-// src/query/react/module.ts
-import { useDispatch as rrUseDispatch, useSelector as rrUseSelector, useStore as rrUseStore, batch as rrBatch } from "react-redux";
-
-// src/query/utils/countObjectKeys.ts
-function countObjectKeys(obj) {
-  let count = 0;
-  for (const _key in obj) {
-    count++;
-  }
-  return count;
-}
-
-// src/query/react/module.ts
-var reactHooksModuleName = /* @__PURE__ */ Symbol();
-var reactHooksModule = ({
-  batch = rrBatch,
-  hooks = {
-    useDispatch: rrUseDispatch,
-    useSelector: rrUseSelector,
-    useStore: rrUseStore
-  },
-  unstable__sideEffectsInRender = false,
-  ...rest
-} = {}) => {
-  if (process.env.NODE_ENV !== "production") {
-    const hookNames = ["useDispatch", "useSelector", "useStore"];
-    let warned = false;
-    for (const hookName of hookNames) {
-      if (countObjectKeys(rest) > 0) {
-        if (rest[hookName]) {
-          if (!warned) {
-            console.warn("As of RTK 2.0, the hooks now need to be specified as one object, provided under a `hooks` key:\n`reactHooksModule({ hooks: { useDispatch, useSelector, useStore } })`");
-            warned = true;
-          }
-        }
-        hooks[hookName] = rest[hookName];
-      }
-      if (typeof hooks[hookName] !== "function") {
-        throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage3(36) : `When using custom hooks for context, all ${hookNames.length} hooks need to be provided: ${hookNames.join(", ")}.
-Hook ${hookName} was either not provided or not a function.`);
-      }
-    }
-  }
-  return {
-    name: reactHooksModuleName,
-    init(api, {
-      serializeQueryArgs
-    }, context) {
-      const anyApi = api;
-      const {
-        buildQueryHooks,
-        buildMutationHook,
-        usePrefetch
-      } = buildHooks({
-        api,
-        moduleOptions: {
-          batch,
-          hooks,
-          unstable__sideEffectsInRender
-        },
-        serializeQueryArgs,
-        context
-      });
-      safeAssign(anyApi, {
-        usePrefetch
-      });
-      safeAssign(context, {
-        batch
-      });
-      return {
-        injectEndpoint(endpointName, definition) {
-          if (isQueryDefinition(definition)) {
-            const {
-              useQuery,
-              useLazyQuery,
-              useLazyQuerySubscription,
-              useQueryState,
-              useQuerySubscription
-            } = buildQueryHooks(endpointName);
-            safeAssign(anyApi.endpoints[endpointName], {
-              useQuery,
-              useLazyQuery,
-              useLazyQuerySubscription,
-              useQueryState,
-              useQuerySubscription
-            });
-            api[`use${capitalize(endpointName)}Query`] = useQuery;
-            api[`useLazy${capitalize(endpointName)}Query`] = useLazyQuery;
-          } else if (isMutationDefinition(definition)) {
-            const useMutation = buildMutationHook(endpointName);
-            safeAssign(anyApi.endpoints[endpointName], {
-              useMutation
-            });
-            api[`use${capitalize(endpointName)}Mutation`] = useMutation;
-          }
-        }
-      };
-    }
-  };
-};
-
-// src/query/react/index.ts
-export * from "@reduxjs/toolkit/query";
-
-// src/query/react/ApiProvider.tsx
-import { formatProdErrorMessage as _formatProdErrorMessage4 } from "@reduxjs/toolkit";
-import { configureStore } from "@reduxjs/toolkit";
-import { useContext } from "react";
-import { useEffect as useEffect4 } from "react";
-import React from "react";
-import { Provider, ReactReduxContext } from "react-redux";
-import { setupListeners } from "@reduxjs/toolkit/query";
-function ApiProvider(props) {
-  const context = props.context || ReactReduxContext;
-  const existingContext = useContext(context);
-  if (existingContext) {
-    throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage4(35) : "Existing Redux context detected. If you already have a store set up, please use the traditional Redux setup.");
-  }
-  const [store] = React.useState(() => configureStore({
-    reducer: {
-      [props.api.reducerPath]: props.api.reducer
-    },
-    middleware: (gDM) => gDM().concat(props.api.middleware)
-  }));
-  useEffect4(() => props.setupListeners === false ? void 0 : setupListeners(store.dispatch, props.setupListeners), [props.setupListeners, store.dispatch]);
-  return /* @__PURE__ */ React.createElement(Provider, { store, context }, props.children);
-}
-
-// src/query/react/index.ts
-var createApi = /* @__PURE__ */ buildCreateApi(coreModule(), reactHooksModule());
-export {
-  ApiProvider,
-  createApi,
-  reactHooksModule,
-  reactHooksModuleName
-};
-//# sourceMappingURL=rtk-query-react.legacy-esm.js.map

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.legacy-esm.js.map


+ 0 - 594
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.mjs

@@ -1,594 +0,0 @@
-// src/query/react/index.ts
-import { coreModule, buildCreateApi } from "@reduxjs/toolkit/query";
-
-// src/query/react/module.ts
-import { formatProdErrorMessage as _formatProdErrorMessage3 } from "@reduxjs/toolkit";
-
-// src/query/react/buildHooks.ts
-import { formatProdErrorMessage as _formatProdErrorMessage2 } from "@reduxjs/toolkit";
-import { formatProdErrorMessage as _formatProdErrorMessage } from "@reduxjs/toolkit";
-import { createSelector as createSelector2 } from "@reduxjs/toolkit";
-import { useCallback, useDebugValue, useEffect as useEffect3, useLayoutEffect, useMemo as useMemo2, useRef as useRef3, useState } from "react";
-import { QueryStatus, skipToken } from "@reduxjs/toolkit/query";
-import { shallowEqual as shallowEqual2 } from "react-redux";
-
-// src/query/react/useSerializedStableValue.ts
-import { useEffect, useRef, useMemo } from "react";
-function useStableQueryArgs(queryArgs, serialize, endpointDefinition, endpointName) {
-  const incoming = useMemo(() => ({
-    queryArgs,
-    serialized: typeof queryArgs == "object" ? serialize({
-      queryArgs,
-      endpointDefinition,
-      endpointName
-    }) : queryArgs
-  }), [queryArgs, serialize, endpointDefinition, endpointName]);
-  const cache2 = useRef(incoming);
-  useEffect(() => {
-    if (cache2.current.serialized !== incoming.serialized) {
-      cache2.current = incoming;
-    }
-  }, [incoming]);
-  return cache2.current.serialized === incoming.serialized ? cache2.current.queryArgs : queryArgs;
-}
-
-// src/query/react/constants.ts
-var UNINITIALIZED_VALUE = Symbol();
-
-// src/query/react/useShallowStableValue.ts
-import { useEffect as useEffect2, useRef as useRef2 } from "react";
-import { shallowEqual } from "react-redux";
-function useShallowStableValue(value) {
-  const cache2 = useRef2(value);
-  useEffect2(() => {
-    if (!shallowEqual(cache2.current, value)) {
-      cache2.current = value;
-    }
-  }, [value]);
-  return shallowEqual(cache2.current, value) ? cache2.current : value;
-}
-
-// src/query/core/rtkImports.ts
-import { createAction, createSlice, createSelector, createAsyncThunk, combineReducers, createNextState, isAnyOf, isAllOf, isAction, isPending, isRejected, isFulfilled, isRejectedWithValue, isAsyncThunkAction, prepareAutoBatched, SHOULD_AUTOBATCH, isPlainObject, nanoid } from "@reduxjs/toolkit";
-
-// src/query/defaultSerializeQueryArgs.ts
-var cache = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0;
-var defaultSerializeQueryArgs = ({
-  endpointName,
-  queryArgs
-}) => {
-  let serialized = "";
-  const cached = cache?.get(queryArgs);
-  if (typeof cached === "string") {
-    serialized = cached;
-  } else {
-    const stringified = JSON.stringify(queryArgs, (key, value) => isPlainObject(value) ? Object.keys(value).sort().reduce((acc, key2) => {
-      acc[key2] = value[key2];
-      return acc;
-    }, {}) : value);
-    if (isPlainObject(queryArgs)) {
-      cache?.set(queryArgs, stringified);
-    }
-    serialized = stringified;
-  }
-  return `${endpointName}(${serialized})`;
-};
-
-// src/query/react/buildHooks.ts
-var useIsomorphicLayoutEffect = typeof window !== "undefined" && !!window.document && !!window.document.createElement ? useLayoutEffect : useEffect3;
-var noPendingQueryStateSelector = (selected) => {
-  if (selected.isUninitialized) {
-    return {
-      ...selected,
-      isUninitialized: false,
-      isFetching: true,
-      isLoading: selected.data !== void 0 ? false : true,
-      status: QueryStatus.pending
-    };
-  }
-  return selected;
-};
-function buildHooks({
-  api,
-  moduleOptions: {
-    batch,
-    hooks: {
-      useDispatch,
-      useSelector,
-      useStore
-    },
-    unstable__sideEffectsInRender
-  },
-  serializeQueryArgs,
-  context
-}) {
-  const usePossiblyImmediateEffect = unstable__sideEffectsInRender ? (cb) => cb() : useEffect3;
-  return {
-    buildQueryHooks,
-    buildMutationHook,
-    usePrefetch
-  };
-  function queryStatePreSelector(currentState, lastResult, queryArgs) {
-    if (lastResult?.endpointName && currentState.isUninitialized) {
-      const {
-        endpointName
-      } = lastResult;
-      const endpointDefinition = context.endpointDefinitions[endpointName];
-      if (serializeQueryArgs({
-        queryArgs: lastResult.originalArgs,
-        endpointDefinition,
-        endpointName
-      }) === serializeQueryArgs({
-        queryArgs,
-        endpointDefinition,
-        endpointName
-      }))
-        lastResult = void 0;
-    }
-    let data = currentState.isSuccess ? currentState.data : lastResult?.data;
-    if (data === void 0)
-      data = currentState.data;
-    const hasData = data !== void 0;
-    const isFetching = currentState.isLoading;
-    const isLoading = !hasData && isFetching;
-    const isSuccess = currentState.isSuccess || isFetching && hasData;
-    return {
-      ...currentState,
-      data,
-      currentData: currentState.data,
-      isFetching,
-      isLoading,
-      isSuccess
-    };
-  }
-  function usePrefetch(endpointName, defaultOptions) {
-    const dispatch = useDispatch();
-    const stableDefaultOptions = useShallowStableValue(defaultOptions);
-    return useCallback((arg, options) => dispatch(api.util.prefetch(endpointName, arg, {
-      ...stableDefaultOptions,
-      ...options
-    })), [endpointName, dispatch, stableDefaultOptions]);
-  }
-  function buildQueryHooks(name) {
-    const useQuerySubscription = (arg, {
-      refetchOnReconnect,
-      refetchOnFocus,
-      refetchOnMountOrArgChange,
-      skip = false,
-      pollingInterval = 0
-    } = {}) => {
-      const {
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const subscriptionSelectorsRef = useRef3();
-      if (!subscriptionSelectorsRef.current) {
-        const returnedValue = dispatch(api.internalActions.internal_getRTKQSubscriptions());
-        if (process.env.NODE_ENV !== "production") {
-          if (typeof returnedValue !== "object" || typeof returnedValue?.type === "string") {
-            throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage(37) : `Warning: Middleware for RTK-Query API at reducerPath "${api.reducerPath}" has not been added to the store.
-    You must add the middleware for RTK-Query to function correctly!`);
-          }
-        }
-        subscriptionSelectorsRef.current = returnedValue;
-      }
-      const stableArg = useStableQueryArgs(
-        skip ? skipToken : arg,
-        // Even if the user provided a per-endpoint `serializeQueryArgs` with
-        // a consistent return value, _here_ we want to use the default behavior
-        // so we can tell if _anything_ actually changed. Otherwise, we can end up
-        // with a case where the query args did change but the serialization doesn't,
-        // and then we never try to initiate a refetch.
-        defaultSerializeQueryArgs,
-        context.endpointDefinitions[name],
-        name
-      );
-      const stableSubscriptionOptions = useShallowStableValue({
-        refetchOnReconnect,
-        refetchOnFocus,
-        pollingInterval
-      });
-      const lastRenderHadSubscription = useRef3(false);
-      const promiseRef = useRef3();
-      let {
-        queryCacheKey,
-        requestId
-      } = promiseRef.current || {};
-      let currentRenderHasSubscription = false;
-      if (queryCacheKey && requestId) {
-        currentRenderHasSubscription = subscriptionSelectorsRef.current.isRequestSubscribed(queryCacheKey, requestId);
-      }
-      const subscriptionRemoved = !currentRenderHasSubscription && lastRenderHadSubscription.current;
-      usePossiblyImmediateEffect(() => {
-        lastRenderHadSubscription.current = currentRenderHasSubscription;
-      });
-      usePossiblyImmediateEffect(() => {
-        if (subscriptionRemoved) {
-          promiseRef.current = void 0;
-        }
-      }, [subscriptionRemoved]);
-      usePossiblyImmediateEffect(() => {
-        const lastPromise = promiseRef.current;
-        if (typeof process !== "undefined" && process.env.NODE_ENV === "removeMeOnCompilation") {
-          console.log(subscriptionRemoved);
-        }
-        if (stableArg === skipToken) {
-          lastPromise?.unsubscribe();
-          promiseRef.current = void 0;
-          return;
-        }
-        const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
-        if (!lastPromise || lastPromise.arg !== stableArg) {
-          lastPromise?.unsubscribe();
-          const promise = dispatch(initiate(stableArg, {
-            subscriptionOptions: stableSubscriptionOptions,
-            forceRefetch: refetchOnMountOrArgChange
-          }));
-          promiseRef.current = promise;
-        } else if (stableSubscriptionOptions !== lastSubscriptionOptions) {
-          lastPromise.updateSubscriptionOptions(stableSubscriptionOptions);
-        }
-      }, [dispatch, initiate, refetchOnMountOrArgChange, stableArg, stableSubscriptionOptions, subscriptionRemoved]);
-      useEffect3(() => {
-        return () => {
-          promiseRef.current?.unsubscribe();
-          promiseRef.current = void 0;
-        };
-      }, []);
-      return useMemo2(() => ({
-        /**
-         * A method to manually refetch data for the query
-         */
-        refetch: () => {
-          if (!promiseRef.current)
-            throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage2(38) : "Cannot refetch a query that has not been started yet.");
-          return promiseRef.current?.refetch();
-        }
-      }), []);
-    };
-    const useLazyQuerySubscription = ({
-      refetchOnReconnect,
-      refetchOnFocus,
-      pollingInterval = 0
-    } = {}) => {
-      const {
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const [arg, setArg] = useState(UNINITIALIZED_VALUE);
-      const promiseRef = useRef3();
-      const stableSubscriptionOptions = useShallowStableValue({
-        refetchOnReconnect,
-        refetchOnFocus,
-        pollingInterval
-      });
-      usePossiblyImmediateEffect(() => {
-        const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
-        if (stableSubscriptionOptions !== lastSubscriptionOptions) {
-          promiseRef.current?.updateSubscriptionOptions(stableSubscriptionOptions);
-        }
-      }, [stableSubscriptionOptions]);
-      const subscriptionOptionsRef = useRef3(stableSubscriptionOptions);
-      usePossiblyImmediateEffect(() => {
-        subscriptionOptionsRef.current = stableSubscriptionOptions;
-      }, [stableSubscriptionOptions]);
-      const trigger = useCallback(function(arg2, preferCacheValue = false) {
-        let promise;
-        batch(() => {
-          promiseRef.current?.unsubscribe();
-          promiseRef.current = promise = dispatch(initiate(arg2, {
-            subscriptionOptions: subscriptionOptionsRef.current,
-            forceRefetch: !preferCacheValue
-          }));
-          setArg(arg2);
-        });
-        return promise;
-      }, [dispatch, initiate]);
-      useEffect3(() => {
-        return () => {
-          promiseRef?.current?.unsubscribe();
-        };
-      }, []);
-      useEffect3(() => {
-        if (arg !== UNINITIALIZED_VALUE && !promiseRef.current) {
-          trigger(arg, true);
-        }
-      }, [arg, trigger]);
-      return useMemo2(() => [trigger, arg], [trigger, arg]);
-    };
-    const useQueryState = (arg, {
-      skip = false,
-      selectFromResult
-    } = {}) => {
-      const {
-        select
-      } = api.endpoints[name];
-      const stableArg = useStableQueryArgs(skip ? skipToken : arg, serializeQueryArgs, context.endpointDefinitions[name], name);
-      const lastValue = useRef3();
-      const selectDefaultResult = useMemo2(() => createSelector2([select(stableArg), (_, lastResult) => lastResult, (_) => stableArg], queryStatePreSelector), [select, stableArg]);
-      const querySelector = useMemo2(() => selectFromResult ? createSelector2([selectDefaultResult], selectFromResult, {
-        devModeChecks: {
-          identityFunctionCheck: "never"
-        }
-      }) : selectDefaultResult, [selectDefaultResult, selectFromResult]);
-      const currentState = useSelector((state) => querySelector(state, lastValue.current), shallowEqual2);
-      const store = useStore();
-      const newLastValue = selectDefaultResult(store.getState(), lastValue.current);
-      useIsomorphicLayoutEffect(() => {
-        lastValue.current = newLastValue;
-      }, [newLastValue]);
-      return currentState;
-    };
-    return {
-      useQueryState,
-      useQuerySubscription,
-      useLazyQuerySubscription,
-      useLazyQuery(options) {
-        const [trigger, arg] = useLazyQuerySubscription(options);
-        const queryStateResults = useQueryState(arg, {
-          ...options,
-          skip: arg === UNINITIALIZED_VALUE
-        });
-        const info = useMemo2(() => ({
-          lastArg: arg
-        }), [arg]);
-        return useMemo2(() => [trigger, queryStateResults, info], [trigger, queryStateResults, info]);
-      },
-      useQuery(arg, options) {
-        const querySubscriptionResults = useQuerySubscription(arg, options);
-        const queryStateResults = useQueryState(arg, {
-          selectFromResult: arg === skipToken || options?.skip ? void 0 : noPendingQueryStateSelector,
-          ...options
-        });
-        const {
-          data,
-          status,
-          isLoading,
-          isSuccess,
-          isError,
-          error
-        } = queryStateResults;
-        useDebugValue({
-          data,
-          status,
-          isLoading,
-          isSuccess,
-          isError,
-          error
-        });
-        return useMemo2(() => ({
-          ...queryStateResults,
-          ...querySubscriptionResults
-        }), [queryStateResults, querySubscriptionResults]);
-      }
-    };
-  }
-  function buildMutationHook(name) {
-    return ({
-      selectFromResult,
-      fixedCacheKey
-    } = {}) => {
-      const {
-        select,
-        initiate
-      } = api.endpoints[name];
-      const dispatch = useDispatch();
-      const [promise, setPromise] = useState();
-      useEffect3(() => () => {
-        if (!promise?.arg.fixedCacheKey) {
-          promise?.reset();
-        }
-      }, [promise]);
-      const triggerMutation = useCallback(function(arg) {
-        const promise2 = dispatch(initiate(arg, {
-          fixedCacheKey
-        }));
-        setPromise(promise2);
-        return promise2;
-      }, [dispatch, initiate, fixedCacheKey]);
-      const {
-        requestId
-      } = promise || {};
-      const selectDefaultResult = useMemo2(() => select({
-        fixedCacheKey,
-        requestId: promise?.requestId
-      }), [fixedCacheKey, promise, select]);
-      const mutationSelector = useMemo2(() => selectFromResult ? createSelector2([selectDefaultResult], selectFromResult) : selectDefaultResult, [selectFromResult, selectDefaultResult]);
-      const currentState = useSelector(mutationSelector, shallowEqual2);
-      const originalArgs = fixedCacheKey == null ? promise?.arg.originalArgs : void 0;
-      const reset = useCallback(() => {
-        batch(() => {
-          if (promise) {
-            setPromise(void 0);
-          }
-          if (fixedCacheKey) {
-            dispatch(api.internalActions.removeMutationResult({
-              requestId,
-              fixedCacheKey
-            }));
-          }
-        });
-      }, [dispatch, fixedCacheKey, promise, requestId]);
-      const {
-        endpointName,
-        data,
-        status,
-        isLoading,
-        isSuccess,
-        isError,
-        error
-      } = currentState;
-      useDebugValue({
-        endpointName,
-        data,
-        status,
-        isLoading,
-        isSuccess,
-        isError,
-        error
-      });
-      const finalState = useMemo2(() => ({
-        ...currentState,
-        originalArgs,
-        reset
-      }), [currentState, originalArgs, reset]);
-      return useMemo2(() => [triggerMutation, finalState], [triggerMutation, finalState]);
-    };
-  }
-}
-
-// src/query/endpointDefinitions.ts
-function isQueryDefinition(e) {
-  return e.type === "query" /* query */;
-}
-function isMutationDefinition(e) {
-  return e.type === "mutation" /* mutation */;
-}
-
-// src/query/utils/capitalize.ts
-function capitalize(str) {
-  return str.replace(str[0], str[0].toUpperCase());
-}
-
-// src/query/tsHelpers.ts
-function safeAssign(target, ...args) {
-  return Object.assign(target, ...args);
-}
-
-// src/query/react/module.ts
-import { useDispatch as rrUseDispatch, useSelector as rrUseSelector, useStore as rrUseStore, batch as rrBatch } from "react-redux";
-
-// src/query/utils/countObjectKeys.ts
-function countObjectKeys(obj) {
-  let count = 0;
-  for (const _key in obj) {
-    count++;
-  }
-  return count;
-}
-
-// src/query/react/module.ts
-var reactHooksModuleName = /* @__PURE__ */ Symbol();
-var reactHooksModule = ({
-  batch = rrBatch,
-  hooks = {
-    useDispatch: rrUseDispatch,
-    useSelector: rrUseSelector,
-    useStore: rrUseStore
-  },
-  unstable__sideEffectsInRender = false,
-  ...rest
-} = {}) => {
-  if (process.env.NODE_ENV !== "production") {
-    const hookNames = ["useDispatch", "useSelector", "useStore"];
-    let warned = false;
-    for (const hookName of hookNames) {
-      if (countObjectKeys(rest) > 0) {
-        if (rest[hookName]) {
-          if (!warned) {
-            console.warn("As of RTK 2.0, the hooks now need to be specified as one object, provided under a `hooks` key:\n`reactHooksModule({ hooks: { useDispatch, useSelector, useStore } })`");
-            warned = true;
-          }
-        }
-        hooks[hookName] = rest[hookName];
-      }
-      if (typeof hooks[hookName] !== "function") {
-        throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage3(36) : `When using custom hooks for context, all ${hookNames.length} hooks need to be provided: ${hookNames.join(", ")}.
-Hook ${hookName} was either not provided or not a function.`);
-      }
-    }
-  }
-  return {
-    name: reactHooksModuleName,
-    init(api, {
-      serializeQueryArgs
-    }, context) {
-      const anyApi = api;
-      const {
-        buildQueryHooks,
-        buildMutationHook,
-        usePrefetch
-      } = buildHooks({
-        api,
-        moduleOptions: {
-          batch,
-          hooks,
-          unstable__sideEffectsInRender
-        },
-        serializeQueryArgs,
-        context
-      });
-      safeAssign(anyApi, {
-        usePrefetch
-      });
-      safeAssign(context, {
-        batch
-      });
-      return {
-        injectEndpoint(endpointName, definition) {
-          if (isQueryDefinition(definition)) {
-            const {
-              useQuery,
-              useLazyQuery,
-              useLazyQuerySubscription,
-              useQueryState,
-              useQuerySubscription
-            } = buildQueryHooks(endpointName);
-            safeAssign(anyApi.endpoints[endpointName], {
-              useQuery,
-              useLazyQuery,
-              useLazyQuerySubscription,
-              useQueryState,
-              useQuerySubscription
-            });
-            api[`use${capitalize(endpointName)}Query`] = useQuery;
-            api[`useLazy${capitalize(endpointName)}Query`] = useLazyQuery;
-          } else if (isMutationDefinition(definition)) {
-            const useMutation = buildMutationHook(endpointName);
-            safeAssign(anyApi.endpoints[endpointName], {
-              useMutation
-            });
-            api[`use${capitalize(endpointName)}Mutation`] = useMutation;
-          }
-        }
-      };
-    }
-  };
-};
-
-// src/query/react/index.ts
-export * from "@reduxjs/toolkit/query";
-
-// src/query/react/ApiProvider.tsx
-import { formatProdErrorMessage as _formatProdErrorMessage4 } from "@reduxjs/toolkit";
-import { configureStore } from "@reduxjs/toolkit";
-import { useContext } from "react";
-import { useEffect as useEffect4 } from "react";
-import React from "react";
-import { Provider, ReactReduxContext } from "react-redux";
-import { setupListeners } from "@reduxjs/toolkit/query";
-function ApiProvider(props) {
-  const context = props.context || ReactReduxContext;
-  const existingContext = useContext(context);
-  if (existingContext) {
-    throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage4(35) : "Existing Redux context detected. If you already have a store set up, please use the traditional Redux setup.");
-  }
-  const [store] = React.useState(() => configureStore({
-    reducer: {
-      [props.api.reducerPath]: props.api.reducer
-    },
-    middleware: (gDM) => gDM().concat(props.api.middleware)
-  }));
-  useEffect4(() => props.setupListeners === false ? void 0 : setupListeners(store.dispatch, props.setupListeners), [props.setupListeners, store.dispatch]);
-  return /* @__PURE__ */ React.createElement(Provider, { store, context }, props.children);
-}
-
-// src/query/react/index.ts
-var createApi = /* @__PURE__ */ buildCreateApi(coreModule(), reactHooksModule());
-export {
-  ApiProvider,
-  createApi,
-  reactHooksModule,
-  reactHooksModuleName
-};
-//# sourceMappingURL=rtk-query-react.modern.mjs.map

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.modern.mjs.map


+ 0 - 3
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/useSerializedStableValue.d.ts

@@ -1,3 +0,0 @@
-import type { SerializeQueryArgs } from '@reduxjs/toolkit/query';
-import type { EndpointDefinition } from '@reduxjs/toolkit/query';
-export declare function useStableQueryArgs<T>(queryArgs: T, serialize: SerializeQueryArgs<any>, endpointDefinition: EndpointDefinition<any, any, any, any>, endpointName: string): T;

+ 0 - 1
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/react/useShallowStableValue.d.ts

@@ -1 +0,0 @@
-export declare function useShallowStableValue<T>(value: T): T;

+ 0 - 63
react/study8/proect/node_modules/@reduxjs/toolkit/dist/query/retry.d.ts

@@ -1,63 +0,0 @@
-import type { BaseQueryApi, BaseQueryArg, BaseQueryEnhancer, BaseQueryExtraOptions, BaseQueryFn } from './baseQueryTypes';
-import type { FetchBaseQueryError } from './fetchBaseQuery';
-type RetryConditionFunction = (error: FetchBaseQueryError, args: BaseQueryArg<BaseQueryFn>, extraArgs: {
-    attempt: number;
-    baseQueryApi: BaseQueryApi;
-    extraOptions: BaseQueryExtraOptions<BaseQueryFn> & RetryOptions;
-}) => boolean;
-export type RetryOptions = {
-    /**
-     * Function used to determine delay between retries
-     */
-    backoff?: (attempt: number, maxRetries: number) => Promise<void>;
-} & ({
-    /**
-     * How many times the query will be retried (default: 5)
-     */
-    maxRetries?: number;
-    retryCondition?: undefined;
-} | {
-    /**
-     * Callback to determine if a retry should be attempted.
-     * Return `true` for another retry and `false` to quit trying prematurely.
-     */
-    retryCondition?: RetryConditionFunction;
-    maxRetries?: undefined;
-});
-declare function fail(e: any): never;
-/**
- * A utility that can wrap `baseQuery` in the API definition to provide retries with a basic exponential backoff.
- *
- * @example
- *
- * ```ts
- * // codeblock-meta title="Retry every request 5 times by default"
- * import { createApi, fetchBaseQuery, retry } from '@reduxjs/toolkit/query/react'
- * interface Post {
- *   id: number
- *   name: string
- * }
- * type PostsResponse = Post[]
- *
- * // maxRetries: 5 is the default, and can be omitted. Shown for documentation purposes.
- * const staggeredBaseQuery = retry(fetchBaseQuery({ baseUrl: '/' }), { maxRetries: 5 });
- * export const api = createApi({
- *   baseQuery: staggeredBaseQuery,
- *   endpoints: (build) => ({
- *     getPosts: build.query<PostsResponse, void>({
- *       query: () => ({ url: 'posts' }),
- *     }),
- *     getPost: build.query<PostsResponse, string>({
- *       query: (id) => ({ url: `post/${id}` }),
- *       extraOptions: { maxRetries: 8 }, // You can override the retry behavior on each endpoint
- *     }),
- *   }),
- * });
- *
- * export const { useGetPostsQuery, useGetPostQuery } = api;
- * ```
- */
-export declare const retry: BaseQueryEnhancer<unknown, RetryOptions, void | RetryOptions> & {
-    fail: typeof fail;
-};
-export {};

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است