-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathf4a70cfd8e24a6687475c1d41cee330daa78975e-6ed7be259872b5b3b399.js.map
1 lines (1 loc) · 35.6 KB
/
f4a70cfd8e24a6687475c1d41cee330daa78975e-6ed7be259872b5b3b399.js.map
1
{"version":3,"file":"f4a70cfd8e24a6687475c1d41cee330daa78975e-6ed7be259872b5b3b399.js","mappings":"sLAEA,SAASA,EAAYC,GACnB,IAAIC,EACAC,EAA2B,IAAIC,IAC/BC,EAAW,SAAkBC,EAASC,GACxC,IAAIC,EAA+B,mBAAZF,EAAyBA,EAAQJ,GAASI,EACjE,GAAIE,IAAcN,EAAO,CACvB,IAAIO,EAAgBP,EACpBA,EAAQK,EAAUC,EAAYE,OAAOC,OAAO,CAAC,EAAGT,EAAOM,GACvDL,EAAUS,SAAQ,SAAUC,GAC1B,OAAOA,EAASX,EAAOO,EACzB,GACF,CACF,EACIK,EAAW,WACb,OAAOZ,CACT,EA8BIa,EAAM,CACRV,SAAUA,EACVS,SAAUA,EACVE,UAfc,SAAmBH,EAAUI,EAAUC,GACrD,OAAID,GAAYC,EAlBU,SAA+BL,GACzD,IAAII,EAAWE,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAKL,EAC/EI,EAAaC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAKT,OAAOY,GAC5FC,QAAQC,KAAK,8DACb,IAAIC,EAAeR,EAASf,GAC5B,SAASwB,IACP,IAAIC,EAAYV,EAASf,GACzB,IAAKgB,EAAWO,EAAcE,GAAY,CACxC,IAAIC,EAAgBH,EACpBZ,EAASY,EAAeE,EAAWC,EACrC,CACF,CAEA,OADAzB,EAAU0B,IAAIH,GACP,WACL,OAAOvB,EAAU2B,OAAOJ,EAC1B,CACF,CAGWK,CAAsBlB,EAAUI,EAAUC,IAEnDf,EAAU0B,IAAIhB,GACP,WACL,OAAOV,EAAU2B,OAAOjB,EAC1B,EACF,EAQEmB,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,EAASM,QAAU7L,EACnByL,EAAYI,QAAU9K,EACtB2K,EAAcG,QAAU7K,EACxB2K,EAAWE,SAAU,CACvB,IACA,IAAIE,GAA6B,IAAAP,QAAOxL,GACxCgC,GAA0B,WACxB,IAAIrB,EAAW,WACb,IACE,IAAIL,EAAYO,EAAID,WAChBoL,EAAiBP,EAAYI,QAAQvL,GACpCoL,EAAcG,QAAQD,EAAgBC,QAASG,KAClDT,EAASM,QAAUvL,EACnBsL,EAAgBC,QAAUG,EAC1BV,IAKJ,CAHE,MAAOhB,GACPqB,EAAWE,SAAU,EACrBP,GACF,CACF,EACIW,EAAcpL,EAAIC,UAAUH,GAIhC,OAHIE,EAAID,aAAemL,EAA2BF,SAChDlL,IAEKsL,CACT,GAAG,IACH,IAAIC,EAAgBJ,EAAmBb,EAAgBW,EAAgBC,QAEvE,OADA,IAAAM,eAAcD,GACPA,CACT,EACA1L,OAAOC,OAAOwE,EAAUpE,GACxBoE,EAAStC,OAAOC,UAAY,WAC1BvB,QAAQC,KAAK,sEACb,IAAI8K,EAAQ,CAACnH,EAAUpE,GACvB,MAAO,CACL0D,KAAM,WACJ,IAAIV,EAAOuI,EAAMlL,QAAU,EAC3B,MAAO,CACL4C,MAAOsI,EAAMC,QACbxI,KAAMA,EAEV,EAEJ,EACOoB,GEnET,G","sources":["webpack://gatsby-starter-blog/./node_modules/zustand/esm/index.js","webpack://gatsby-starter-blog/./node_modules/zustand/esm/middleware.js","webpack://gatsby-starter-blog/./src/store/index.js"],"sourcesContent":["import _slicedToArray from \"/home/runner/work/blog/blog/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport { useReducer, useRef, useDebugValue, useEffect, useLayoutEffect } from 'react';\nfunction createStore(createState) {\n var state;\n var listeners = /* @__PURE__ */new Set();\n var setState = function setState(partial, replace) {\n var nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (nextState !== state) {\n var previousState = state;\n state = replace ? nextState : Object.assign({}, state, nextState);\n listeners.forEach(function (listener) {\n return listener(state, previousState);\n });\n }\n };\n var getState = function getState() {\n return state;\n };\n var subscribeWithSelector = function subscribeWithSelector(listener) {\n var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getState;\n var equalityFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Object.is;\n console.warn(\"[DEPRECATED] Please use `subscribeWithSelector` middleware\");\n var currentSlice = selector(state);\n function listenerToAdd() {\n var nextSlice = selector(state);\n if (!equalityFn(currentSlice, nextSlice)) {\n var previousSlice = currentSlice;\n listener(currentSlice = nextSlice, previousSlice);\n }\n }\n listeners.add(listenerToAdd);\n return function () {\n return listeners.delete(listenerToAdd);\n };\n };\n var subscribe = function subscribe(listener, selector, equalityFn) {\n if (selector || equalityFn) {\n return subscribeWithSelector(listener, selector, equalityFn);\n }\n listeners.add(listener);\n return function () {\n return listeners.delete(listener);\n };\n };\n var destroy = function destroy() {\n return listeners.clear();\n };\n var api = {\n setState: setState,\n getState: getState,\n subscribe: subscribe,\n destroy: destroy\n };\n state = createState(setState, getState, api);\n return api;\n}\nvar isSSR = typeof window === \"undefined\" || !window.navigator || /ServerSideRendering|^Deno\\//.test(window.navigator.userAgent);\nvar useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect;\nfunction create(createState) {\n var api = typeof createState === \"function\" ? createStore(createState) : createState;\n var useStore = function useStore() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : api.getState;\n var equalityFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Object.is;\n var _useReducer = useReducer(function (c) {\n return c + 1;\n }, 0),\n _useReducer2 = _slicedToArray(_useReducer, 2),\n forceUpdate = _useReducer2[1];\n var state = api.getState();\n var stateRef = useRef(state);\n var selectorRef = useRef(selector);\n var equalityFnRef = useRef(equalityFn);\n var erroredRef = useRef(false);\n var currentSliceRef = useRef();\n if (currentSliceRef.current === void 0) {\n currentSliceRef.current = selector(state);\n }\n var newStateSlice;\n var hasNewStateSlice = false;\n if (stateRef.current !== state || selectorRef.current !== selector || equalityFnRef.current !== equalityFn || erroredRef.current) {\n newStateSlice = selector(state);\n hasNewStateSlice = !equalityFn(currentSliceRef.current, newStateSlice);\n }\n useIsomorphicLayoutEffect(function () {\n if (hasNewStateSlice) {\n currentSliceRef.current = newStateSlice;\n }\n stateRef.current = state;\n selectorRef.current = selector;\n equalityFnRef.current = equalityFn;\n erroredRef.current = false;\n });\n var stateBeforeSubscriptionRef = useRef(state);\n useIsomorphicLayoutEffect(function () {\n var listener = function listener() {\n try {\n var nextState = api.getState();\n var nextStateSlice = selectorRef.current(nextState);\n if (!equalityFnRef.current(currentSliceRef.current, nextStateSlice)) {\n stateRef.current = nextState;\n currentSliceRef.current = nextStateSlice;\n forceUpdate();\n }\n } catch (error) {\n erroredRef.current = true;\n forceUpdate();\n }\n };\n var unsubscribe = api.subscribe(listener);\n if (api.getState() !== stateBeforeSubscriptionRef.current) {\n listener();\n }\n return unsubscribe;\n }, []);\n var sliceToReturn = hasNewStateSlice ? newStateSlice : currentSliceRef.current;\n useDebugValue(sliceToReturn);\n return sliceToReturn;\n };\n Object.assign(useStore, api);\n useStore[Symbol.iterator] = function () {\n console.warn(\"[useStore, api] = create() is deprecated and will be removed in v4\");\n var items = [useStore, api];\n return {\n next: function next() {\n var done = items.length <= 0;\n return {\n value: items.shift(),\n done: done\n };\n }\n };\n };\n return useStore;\n}\nexport { create as default };","function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nvar __defProp$1 = Object.defineProperty;\nvar __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;\nvar __hasOwnProp$1 = Object.prototype.hasOwnProperty;\nvar __propIsEnum$1 = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp$1 = function __defNormalProp$1(obj, key, value) {\n return key in obj ? __defProp$1(obj, key, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: value\n }) : obj[key] = value;\n};\nvar __spreadValues$1 = function __spreadValues$1(a, b) {\n for (var prop in b || (b = {})) if (__hasOwnProp$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);\n if (__getOwnPropSymbols$1) {\n var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols$1(b)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var prop = _step.value;\n if (__propIsEnum$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n return a;\n};\nvar redux = function redux(reducer, initial) {\n return function (set, get, api) {\n api.dispatch = function (action) {\n set(function (state) {\n return reducer(state, action);\n }, false, action);\n return action;\n };\n api.dispatchFromDevtools = true;\n return __spreadValues$1({\n dispatch: function dispatch() {\n return api.dispatch.apply(api, arguments);\n }\n }, initial);\n };\n};\nfunction devtools(fn, options) {\n return function (set, get, api) {\n var _a;\n var didWarnAboutNameDeprecation = false;\n if (typeof options === \"string\" && !didWarnAboutNameDeprecation) {\n console.warn(\"[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead\");\n didWarnAboutNameDeprecation = true;\n }\n var devtoolsOptions = options === void 0 ? {\n name: void 0,\n anonymousActionType: void 0\n } : typeof options === \"string\" ? {\n name: options\n } : options;\n if (typeof ((_a = devtoolsOptions == null ? void 0 : devtoolsOptions.serialize) == null ? void 0 : _a.options) !== \"undefined\") {\n console.warn(\"[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`\");\n }\n var extensionConnector;\n try {\n extensionConnector = window.__REDUX_DEVTOOLS_EXTENSION__ || window.top.__REDUX_DEVTOOLS_EXTENSION__;\n } catch (_unused) {}\n if (!extensionConnector) {\n if ((import.meta.env && import.meta.env.MODE) !== \"production\" && typeof window !== \"undefined\") {\n console.warn(\"[zustand devtools middleware] Please install/enable Redux devtools extension\");\n }\n return fn(set, get, api);\n }\n var extension = Object.create(extensionConnector.connect(devtoolsOptions));\n var didWarnAboutDevtools = false;\n Object.defineProperty(api, \"devtools\", {\n get: function get() {\n if (!didWarnAboutDevtools) {\n console.warn(\"[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly\");\n didWarnAboutDevtools = true;\n }\n return extension;\n },\n set: function set(value) {\n if (!didWarnAboutDevtools) {\n console.warn(\"[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly\");\n didWarnAboutDevtools = true;\n }\n extension = value;\n }\n });\n var didWarnAboutPrefix = false;\n Object.defineProperty(extension, \"prefix\", {\n get: function get() {\n if (!didWarnAboutPrefix) {\n console.warn(\"[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\\nWe no longer prefix the actions/names\" + devtoolsOptions.name === void 0 ? \", pass the `name` option to create a separate instance of devtools for each store.\" : \", because the `name` option already creates a separate instance of devtools for each store.\");\n didWarnAboutPrefix = true;\n }\n return \"\";\n },\n set: function set() {\n if (!didWarnAboutPrefix) {\n console.warn(\"[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\\nWe no longer prefix the actions/names\" + devtoolsOptions.name === void 0 ? \", pass the `name` option to create a separate instance of devtools for each store.\" : \", because the `name` option already creates a separate instance of devtools for each store.\");\n didWarnAboutPrefix = true;\n }\n }\n });\n var isRecording = true;\n api.setState = function (state, replace, nameOrAction) {\n set(state, replace);\n if (!isRecording) return;\n extension.send(nameOrAction === void 0 ? {\n type: devtoolsOptions.anonymousActionType || \"anonymous\"\n } : typeof nameOrAction === \"string\" ? {\n type: nameOrAction\n } : nameOrAction, get());\n };\n var setStateFromDevtools = function setStateFromDevtools() {\n var originalIsRecording = isRecording;\n isRecording = false;\n set.apply(void 0, arguments);\n isRecording = originalIsRecording;\n };\n var initialState = fn(api.setState, get, api);\n extension.init(initialState);\n if (api.dispatchFromDevtools && typeof api.dispatch === \"function\") {\n var didWarnAboutReservedActionType = false;\n var originalDispatch = api.dispatch;\n api.dispatch = function () {\n for (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) {\n a[_key] = arguments[_key];\n }\n if (a[0].type === \"__setState\" && !didWarnAboutReservedActionType) {\n console.warn('[zustand devtools middleware] \"__setState\" action type is reserved to set state from the devtools. Avoid using it.');\n didWarnAboutReservedActionType = true;\n }\n originalDispatch.apply(void 0, a);\n };\n }\n extension.subscribe(function (message) {\n var _a2;\n switch (message.type) {\n case \"ACTION\":\n if (typeof message.payload !== \"string\") {\n console.error(\"[zustand devtools middleware] Unsupported action format\");\n return;\n }\n return parseJsonThen(message.payload, function (action) {\n if (action.type === \"__setState\") {\n setStateFromDevtools(action.state);\n return;\n }\n if (!api.dispatchFromDevtools) return;\n if (typeof api.dispatch !== \"function\") return;\n api.dispatch(action);\n });\n case \"DISPATCH\":\n switch (message.payload.type) {\n case \"RESET\":\n setStateFromDevtools(initialState);\n return extension.init(api.getState());\n case \"COMMIT\":\n return extension.init(api.getState());\n case \"ROLLBACK\":\n return parseJsonThen(message.state, function (state) {\n setStateFromDevtools(state);\n extension.init(api.getState());\n });\n case \"JUMP_TO_STATE\":\n case \"JUMP_TO_ACTION\":\n return parseJsonThen(message.state, function (state) {\n setStateFromDevtools(state);\n });\n case \"IMPORT_STATE\":\n {\n var nextLiftedState = message.payload.nextLiftedState;\n var lastComputedState = (_a2 = nextLiftedState.computedStates.slice(-1)[0]) == null ? void 0 : _a2.state;\n if (!lastComputedState) return;\n setStateFromDevtools(lastComputedState);\n extension.send(null, nextLiftedState);\n return;\n }\n case \"PAUSE_RECORDING\":\n return isRecording = !isRecording;\n }\n return;\n }\n });\n return initialState;\n };\n}\nvar parseJsonThen = function parseJsonThen(stringified, f) {\n var parsed;\n try {\n parsed = JSON.parse(stringified);\n } catch (e) {\n console.error(\"[zustand devtools middleware] Could not parse the received json\", e);\n }\n if (parsed !== void 0) f(parsed);\n};\nvar subscribeWithSelector = function subscribeWithSelector(fn) {\n return function (set, get, api) {\n var origSubscribe = api.subscribe;\n api.subscribe = function (selector, optListener, options) {\n var listener = selector;\n if (optListener) {\n var equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;\n var currentSlice = selector(api.getState());\n listener = function listener(state) {\n var nextSlice = selector(state);\n if (!equalityFn(currentSlice, nextSlice)) {\n var previousSlice = currentSlice;\n optListener(currentSlice = nextSlice, previousSlice);\n }\n };\n if (options == null ? void 0 : options.fireImmediately) {\n optListener(currentSlice, currentSlice);\n }\n }\n return origSubscribe(listener);\n };\n var initialState = fn(set, get, api);\n return initialState;\n };\n};\nvar combine = function combine(initialState, create) {\n return function (set, get, api) {\n return Object.assign({}, initialState, create(set, get, api));\n };\n};\nvar __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = function __defNormalProp(obj, key, value) {\n return key in obj ? __defProp(obj, key, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: value\n }) : obj[key] = value;\n};\nvar __spreadValues = function __spreadValues(a, b) {\n for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols) {\n var _iterator2 = _createForOfIteratorHelper(__getOwnPropSymbols(b)),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var prop = _step2.value;\n if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n return a;\n};\nvar toThenable = function toThenable(fn) {\n return function (input) {\n try {\n var result = fn(input);\n if (result instanceof Promise) {\n return result;\n }\n return {\n then: function then(onFulfilled) {\n return toThenable(onFulfilled)(result);\n },\n catch: function _catch(_onRejected) {\n return this;\n }\n };\n } catch (e) {\n return {\n then: function then(_onFulfilled) {\n return this;\n },\n catch: function _catch(onRejected) {\n return toThenable(onRejected)(e);\n }\n };\n }\n };\n};\nvar persist = function persist(config, baseOptions) {\n return function (set, get, api) {\n var options = __spreadValues({\n getStorage: function getStorage() {\n return localStorage;\n },\n serialize: JSON.stringify,\n deserialize: JSON.parse,\n partialize: function partialize(state) {\n return state;\n },\n version: 0,\n merge: function merge(persistedState, currentState) {\n return __spreadValues(__spreadValues({}, currentState), persistedState);\n }\n }, baseOptions);\n if (options.blacklist || options.whitelist) {\n console.warn(\"The \".concat(options.blacklist ? \"blacklist\" : \"whitelist\", \" option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.\"));\n }\n var _hasHydrated = false;\n var hydrationListeners = /* @__PURE__ */new Set();\n var finishHydrationListeners = /* @__PURE__ */new Set();\n var storage;\n try {\n storage = options.getStorage();\n } catch (e) {}\n if (!storage) {\n return config(function () {\n console.warn(\"[zustand persist middleware] Unable to update item '\".concat(options.name, \"', the given storage is currently unavailable.\"));\n set.apply(void 0, arguments);\n }, get, api);\n } else if (!storage.removeItem) {\n console.warn(\"[zustand persist middleware] The given storage for item '\".concat(options.name, \"' does not contain a 'removeItem' method, which will be required in v4.\"));\n }\n var thenableSerialize = toThenable(options.serialize);\n var setItem = function setItem() {\n var state = options.partialize(__spreadValues({}, get()));\n if (options.whitelist) {\n Object.keys(state).forEach(function (key) {\n var _a;\n !((_a = options.whitelist) == null ? void 0 : _a.includes(key)) && delete state[key];\n });\n }\n if (options.blacklist) {\n options.blacklist.forEach(function (key) {\n return delete state[key];\n });\n }\n var errorInSync;\n var thenable = thenableSerialize({\n state: state,\n version: options.version\n }).then(function (serializedValue) {\n return storage.setItem(options.name, serializedValue);\n }).catch(function (e) {\n errorInSync = e;\n });\n if (errorInSync) {\n throw errorInSync;\n }\n return thenable;\n };\n var savedSetState = api.setState;\n api.setState = function (state, replace) {\n savedSetState(state, replace);\n void setItem();\n };\n var configResult = config(function () {\n set.apply(void 0, arguments);\n void setItem();\n }, get, api);\n var stateFromStorage;\n var hydrate = function hydrate() {\n var _a;\n if (!storage) return;\n _hasHydrated = false;\n hydrationListeners.forEach(function (cb) {\n return cb(get());\n });\n var postRehydrationCallback = ((_a = options.onRehydrateStorage) == null ? void 0 : _a.call(options, get())) || void 0;\n return toThenable(storage.getItem.bind(storage))(options.name).then(function (storageValue) {\n if (storageValue) {\n return options.deserialize(storageValue);\n }\n }).then(function (deserializedStorageValue) {\n if (deserializedStorageValue) {\n if (typeof deserializedStorageValue.version === \"number\" && deserializedStorageValue.version !== options.version) {\n if (options.migrate) {\n return options.migrate(deserializedStorageValue.state, deserializedStorageValue.version);\n }\n console.error(\"State loaded from storage couldn't be migrated since no migrate function was provided\");\n } else {\n return deserializedStorageValue.state;\n }\n }\n }).then(function (migratedState) {\n var _a2;\n stateFromStorage = options.merge(migratedState, (_a2 = get()) != null ? _a2 : configResult);\n set(stateFromStorage, true);\n return setItem();\n }).then(function () {\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(stateFromStorage, void 0);\n _hasHydrated = true;\n finishHydrationListeners.forEach(function (cb) {\n return cb(stateFromStorage);\n });\n }).catch(function (e) {\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(void 0, e);\n });\n };\n api.persist = {\n setOptions: function setOptions(newOptions) {\n options = __spreadValues(__spreadValues({}, options), newOptions);\n if (newOptions.getStorage) {\n storage = newOptions.getStorage();\n }\n },\n clearStorage: function clearStorage() {\n var _a;\n (_a = storage == null ? void 0 : storage.removeItem) == null ? void 0 : _a.call(storage, options.name);\n },\n rehydrate: function rehydrate() {\n return hydrate();\n },\n hasHydrated: function hasHydrated() {\n return _hasHydrated;\n },\n onHydrate: function onHydrate(cb) {\n hydrationListeners.add(cb);\n return function () {\n hydrationListeners.delete(cb);\n };\n },\n onFinishHydration: function onFinishHydration(cb) {\n finishHydrationListeners.add(cb);\n return function () {\n finishHydrationListeners.delete(cb);\n };\n }\n };\n hydrate();\n return stateFromStorage || configResult;\n };\n};\nexport { combine, devtools, persist, redux, subscribeWithSelector };","import create from \"zustand\"\nimport { persist } from \"zustand/middleware\"\nconst UseStore = create(\n persist(\n (set, get) => ({\n /**保存tag页面路径 */\n lastPathName: \"\",\n /** 保存tag名*/\n tag: \"\",\n // 标记选中的是实习生或者知识库\n knowledgeType: \"\",\n /** 保存默认展开项的值*/\n key: \"\",\n /** 保存 展开菜单第一项值 */\n firstTag: \"\",\n /**侧边菜单数据 */\n Data: {\n trainee: [\n {\n step: \"入职指南\",\n stepTags: [\"入职指南\"],\n },\n {\n step: \"开发规范\",\n stepTags: [\"编码规范\", \"设计(还原)规范\", \"用户体验规范\"],\n },\n {\n step: \"第一阶段 (建议12天)\",\n stepTags: [\"React\", \"TypeScript\", \"Demo-1\"],\n },\n {\n step: \"第二阶段 (建议10天)\",\n stepTags: [\"React Router\", \"Zustand\", \"Antd\", \"Demo-2\"],\n },\n {\n step: \"第三阶段 (建议14天)\",\n stepTags: [\"业务组件库\", \"GraphQL\", \"规范\", \"Demo-3\"],\n },\n {\n step: \"第四阶段 (建议10天)\",\n stepTags: [\"React Native\", \"业务学习\"],\n },\n ],\n knowledge: [\n {\n step: \"知识库\",\n stepTags: [\n \"Node.js\",\n \"React\",\n \"TypeScript\",\n \"JavaScript\",\n \"CSS\",\n \"Webpack\",\n \"其他\",\n ],\n },\n ],\n },\n }),\n {\n name: \"storage\",\n getStorage: () => sessionStorage,\n }\n )\n)\nexport default UseStore\n"],"names":["createStore","createState","state","listeners","Set","setState","partial","replace","nextState","previousState","Object","assign","forEach","listener","getState","api","subscribe","selector","equalityFn","arguments","length","undefined","is","console","warn","currentSlice","listenerToAdd","nextSlice","previousSlice","add","delete","subscribeWithSelector","destroy","clear","useIsomorphicLayoutEffect","window","navigator","test","userAgent","useEffect","useLayoutEffect","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","minLen","_arrayLikeToArray","n","prototype","toString","call","slice","constructor","name","from","_unsupportedIterableToArray","i","F","s","done","value","e","_e","f","TypeError","err","normalCompletion","didErr","step","next","_e2","return","arr","len","arr2","defineProperty","getOwnPropertySymbols","hasOwnProperty","propertyIsEnumerable","useStore","config","baseOptions","__defProp","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","__defNormalProp","obj","key","enumerable","configurable","writable","__spreadValues","a","b","prop","_step2","_iterator2","toThenable","fn","input","result","Promise","then","onFulfilled","catch","_onRejected","this","_onFulfilled","onRejected","UseStore","set","get","lastPathName","tag","knowledgeType","firstTag","Data","trainee","stepTags","knowledge","getStorage","sessionStorage","options","localStorage","serialize","JSON","stringify","deserialize","parse","partialize","version","merge","persistedState","currentState","blacklist","whitelist","concat","storage","_hasHydrated","hydrationListeners","finishHydrationListeners","apply","removeItem","thenableSerialize","setItem","errorInSync","keys","_a","includes","thenable","serializedValue","savedSetState","stateFromStorage","configResult","hydrate","cb","postRehydrationCallback","onRehydrateStorage","getItem","bind","storageValue","deserializedStorageValue","migrate","error","migratedState","_a2","persist","setOptions","newOptions","clearStorage","rehydrate","hasHydrated","onHydrate","onFinishHydration","newStateSlice","_useReducer","useReducer","c","_useReducer2","forceUpdate","stateRef","useRef","selectorRef","equalityFnRef","erroredRef","currentSliceRef","current","hasNewStateSlice","stateBeforeSubscriptionRef","nextStateSlice","unsubscribe","sliceToReturn","useDebugValue","items","shift"],"sourceRoot":""}