{"version":3,"file":"core-api.cjs","sources":["../../../../node_modules/axios/lib/helpers/bind.js","../../../../node_modules/axios/lib/utils.js","../../../../node_modules/axios/lib/core/AxiosError.js","../../../../node_modules/axios/lib/helpers/null.js","../../../../node_modules/axios/lib/helpers/toFormData.js","../../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../../../../node_modules/axios/lib/helpers/buildURL.js","../../../../node_modules/axios/lib/core/InterceptorManager.js","../../../../node_modules/axios/lib/defaults/transitional.js","../../../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../../../../node_modules/axios/lib/platform/browser/classes/FormData.js","../../../../node_modules/axios/lib/platform/browser/classes/Blob.js","../../../../node_modules/axios/lib/platform/browser/index.js","../../../../node_modules/axios/lib/platform/common/utils.js","../../../../node_modules/axios/lib/platform/index.js","../../../../node_modules/axios/lib/helpers/toURLEncodedForm.js","../../../../node_modules/axios/lib/helpers/formDataToJSON.js","../../../../node_modules/axios/lib/defaults/index.js","../../../../node_modules/axios/lib/helpers/parseHeaders.js","../../../../node_modules/axios/lib/core/AxiosHeaders.js","../../../../node_modules/axios/lib/core/transformData.js","../../../../node_modules/axios/lib/cancel/isCancel.js","../../../../node_modules/axios/lib/cancel/CanceledError.js","../../../../node_modules/axios/lib/core/settle.js","../../../../node_modules/axios/lib/helpers/parseProtocol.js","../../../../node_modules/axios/lib/helpers/speedometer.js","../../../../node_modules/axios/lib/helpers/throttle.js","../../../../node_modules/axios/lib/helpers/progressEventReducer.js","../../../../node_modules/axios/lib/helpers/isURLSameOrigin.js","../../../../node_modules/axios/lib/helpers/cookies.js","../../../../node_modules/axios/lib/helpers/isAbsoluteURL.js","../../../../node_modules/axios/lib/helpers/combineURLs.js","../../../../node_modules/axios/lib/core/buildFullPath.js","../../../../node_modules/axios/lib/core/mergeConfig.js","../../../../node_modules/axios/lib/helpers/resolveConfig.js","../../../../node_modules/axios/lib/adapters/xhr.js","../../../../node_modules/axios/lib/helpers/composeSignals.js","../../../../node_modules/axios/lib/helpers/trackStream.js","../../../../node_modules/axios/lib/adapters/fetch.js","../../../../node_modules/axios/lib/adapters/adapters.js","../../../../node_modules/axios/lib/core/dispatchRequest.js","../../../../node_modules/axios/lib/env/data.js","../../../../node_modules/axios/lib/helpers/validator.js","../../../../node_modules/axios/lib/core/Axios.js","../../../../node_modules/axios/lib/cancel/CancelToken.js","../../../../node_modules/axios/lib/helpers/spread.js","../../../../node_modules/axios/lib/helpers/isAxiosError.js","../../../../node_modules/axios/lib/helpers/HttpStatusCode.js","../../../../node_modules/axios/lib/axios.js","../../../../node_modules/axios/index.js","../src/client/http-client.ts","../src/cache/memory-cache.ts","../src/cache/storage-cache.ts","../src/cache/cache-manager.ts","../src/retry/retry-manager.ts","../src/utils/rate-limiter.ts","../src/client/api-client.ts","../src/interceptors/common-interceptors.ts","../src/client/factory.ts","../src/interceptors/interceptor-manager.ts","../src/retry/retry-strategies.ts","../src/utils/url-utils.ts","../src/utils/request-utils.ts","../src/utils/response-utils.ts","../src/query/query-client.ts","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/index.js","../src/query/hooks.ts","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/jsx-runtime.js","../src/query/provider.tsx","../src/query/utils.ts"],"sourcesContent":["'use strict';\n\nexport default function bind(fn, thisArg) {\n  return function wrap() {\n    return fn.apply(thisArg, arguments);\n  };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\nconst {iterator, toStringTag} = Symbol;\n\nconst kindOf = (cache => thing => {\n    const str = toString.call(thing);\n    return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n  type = type.toLowerCase();\n  return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n    && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n  let result;\n  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n    result = ArrayBuffer.isView(val);\n  } else {\n    result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n  }\n  return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n  if (kindOf(val) !== 'object') {\n    return false;\n  }\n\n  const prototype = getPrototypeOf(val);\n  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);\n}\n\n/**\n * Determine if a value is an empty object (safely handles Buffers)\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an empty object, otherwise false\n */\nconst isEmptyObject = (val) => {\n  // Early return for non-objects or Buffers to prevent RangeError\n  if (!isObject(val) || isBuffer(val)) {\n    return false;\n  }\n  \n  try {\n    return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;\n  } catch (e) {\n    // Fallback for any other objects that might cause RangeError with Object.keys()\n    return false;\n  }\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n  let kind;\n  return thing && (\n    (typeof FormData === 'function' && thing instanceof FormData) || (\n      isFunction(thing.append) && (\n        (kind = kindOf(thing)) === 'formdata' ||\n        // detect form-data instance\n        (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n      )\n    )\n  )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n  str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n  // Don't bother if no value provided\n  if (obj === null || typeof obj === 'undefined') {\n    return;\n  }\n\n  let i;\n  let l;\n\n  // Force an array if not already something iterable\n  if (typeof obj !== 'object') {\n    /*eslint no-param-reassign:0*/\n    obj = [obj];\n  }\n\n  if (isArray(obj)) {\n    // Iterate over array values\n    for (i = 0, l = obj.length; i < l; i++) {\n      fn.call(null, obj[i], i, obj);\n    }\n  } else {\n    // Buffer check\n    if (isBuffer(obj)) {\n      return;\n    }\n\n    // Iterate over object keys\n    const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n    const len = keys.length;\n    let key;\n\n    for (i = 0; i < len; i++) {\n      key = keys[i];\n      fn.call(null, obj[key], key, obj);\n    }\n  }\n}\n\nfunction findKey(obj, key) {\n  if (isBuffer(obj)){\n    return null;\n  }\n\n  key = key.toLowerCase();\n  const keys = Object.keys(obj);\n  let i = keys.length;\n  let _key;\n  while (i-- > 0) {\n    _key = keys[i];\n    if (key === _key.toLowerCase()) {\n      return _key;\n    }\n  }\n  return null;\n}\n\nconst _global = (() => {\n  /*eslint no-undef:0*/\n  if (typeof globalThis !== \"undefined\") return globalThis;\n  return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n  const {caseless} = isContextDefined(this) && this || {};\n  const result = {};\n  const assignValue = (val, key) => {\n    const targetKey = caseless && findKey(result, key) || key;\n    if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n      result[targetKey] = merge(result[targetKey], val);\n    } else if (isPlainObject(val)) {\n      result[targetKey] = merge({}, val);\n    } else if (isArray(val)) {\n      result[targetKey] = val.slice();\n    } else {\n      result[targetKey] = val;\n    }\n  }\n\n  for (let i = 0, l = arguments.length; i < l; i++) {\n    arguments[i] && forEach(arguments[i], assignValue);\n  }\n  return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n  forEach(b, (val, key) => {\n    if (thisArg && isFunction(val)) {\n      a[key] = bind(val, thisArg);\n    } else {\n      a[key] = val;\n    }\n  }, {allOwnKeys});\n  return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n  if (content.charCodeAt(0) === 0xFEFF) {\n    content = content.slice(1);\n  }\n  return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n  constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n  constructor.prototype.constructor = constructor;\n  Object.defineProperty(constructor, 'super', {\n    value: superConstructor.prototype\n  });\n  props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n  let props;\n  let i;\n  let prop;\n  const merged = {};\n\n  destObj = destObj || {};\n  // eslint-disable-next-line no-eq-null,eqeqeq\n  if (sourceObj == null) return destObj;\n\n  do {\n    props = Object.getOwnPropertyNames(sourceObj);\n    i = props.length;\n    while (i-- > 0) {\n      prop = props[i];\n      if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n        destObj[prop] = sourceObj[prop];\n        merged[prop] = true;\n      }\n    }\n    sourceObj = filter !== false && getPrototypeOf(sourceObj);\n  } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n  return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n  str = String(str);\n  if (position === undefined || position > str.length) {\n    position = str.length;\n  }\n  position -= searchString.length;\n  const lastIndex = str.indexOf(searchString, position);\n  return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n  if (!thing) return null;\n  if (isArray(thing)) return thing;\n  let i = thing.length;\n  if (!isNumber(i)) return null;\n  const arr = new Array(i);\n  while (i-- > 0) {\n    arr[i] = thing[i];\n  }\n  return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n  // eslint-disable-next-line func-names\n  return thing => {\n    return TypedArray && thing instanceof TypedArray;\n  };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n  const generator = obj && obj[iterator];\n\n  const _iterator = generator.call(obj);\n\n  let result;\n\n  while ((result = _iterator.next()) && !result.done) {\n    const pair = result.value;\n    fn.call(obj, pair[0], pair[1]);\n  }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n  let matches;\n  const arr = [];\n\n  while ((matches = regExp.exec(str)) !== null) {\n    arr.push(matches);\n  }\n\n  return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n  return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n    function replacer(m, p1, p2) {\n      return p1.toUpperCase() + p2;\n    }\n  );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n  const descriptors = Object.getOwnPropertyDescriptors(obj);\n  const reducedDescriptors = {};\n\n  forEach(descriptors, (descriptor, name) => {\n    let ret;\n    if ((ret = reducer(descriptor, name, obj)) !== false) {\n      reducedDescriptors[name] = ret || descriptor;\n    }\n  });\n\n  Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n  reduceDescriptors(obj, (descriptor, name) => {\n    // skip restricted props in strict mode\n    if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n      return false;\n    }\n\n    const value = obj[name];\n\n    if (!isFunction(value)) return;\n\n    descriptor.enumerable = false;\n\n    if ('writable' in descriptor) {\n      descriptor.writable = false;\n      return;\n    }\n\n    if (!descriptor.set) {\n      descriptor.set = () => {\n        throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n      };\n    }\n  });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n  const obj = {};\n\n  const define = (arr) => {\n    arr.forEach(value => {\n      obj[value] = true;\n    });\n  }\n\n  isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n  return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n  return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n  return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);\n}\n\nconst toJSONObject = (obj) => {\n  const stack = new Array(10);\n\n  const visit = (source, i) => {\n\n    if (isObject(source)) {\n      if (stack.indexOf(source) >= 0) {\n        return;\n      }\n\n      //Buffer check\n      if (isBuffer(source)) {\n        return source;\n      }\n\n      if(!('toJSON' in source)) {\n        stack[i] = source;\n        const target = isArray(source) ? [] : {};\n\n        forEach(source, (value, key) => {\n          const reducedValue = visit(value, i + 1);\n          !isUndefined(reducedValue) && (target[key] = reducedValue);\n        });\n\n        stack[i] = undefined;\n\n        return target;\n      }\n    }\n\n    return source;\n  }\n\n  return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n  thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n  if (setImmediateSupported) {\n    return setImmediate;\n  }\n\n  return postMessageSupported ? ((token, callbacks) => {\n    _global.addEventListener(\"message\", ({source, data}) => {\n      if (source === _global && data === token) {\n        callbacks.length && callbacks.shift()();\n      }\n    }, false);\n\n    return (cb) => {\n      callbacks.push(cb);\n      _global.postMessage(token, \"*\");\n    }\n  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n  typeof setImmediate === 'function',\n  isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n  queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\n\nconst isIterable = (thing) => thing != null && isFunction(thing[iterator]);\n\n\nexport default {\n  isArray,\n  isArrayBuffer,\n  isBuffer,\n  isFormData,\n  isArrayBufferView,\n  isString,\n  isNumber,\n  isBoolean,\n  isObject,\n  isPlainObject,\n  isEmptyObject,\n  isReadableStream,\n  isRequest,\n  isResponse,\n  isHeaders,\n  isUndefined,\n  isDate,\n  isFile,\n  isBlob,\n  isRegExp,\n  isFunction,\n  isStream,\n  isURLSearchParams,\n  isTypedArray,\n  isFileList,\n  forEach,\n  merge,\n  extend,\n  trim,\n  stripBOM,\n  inherits,\n  toFlatObject,\n  kindOf,\n  kindOfTest,\n  endsWith,\n  toArray,\n  forEachEntry,\n  matchAll,\n  isHTMLForm,\n  hasOwnProperty,\n  hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n  reduceDescriptors,\n  freezeMethods,\n  toObjectSet,\n  toCamelCase,\n  noop,\n  toFiniteNumber,\n  findKey,\n  global: _global,\n  isContextDefined,\n  isSpecCompliantForm,\n  toJSONObject,\n  isAsyncFn,\n  isThenable,\n  setImmediate: _setImmediate,\n  asap,\n  isIterable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n  Error.call(this);\n\n  if (Error.captureStackTrace) {\n    Error.captureStackTrace(this, this.constructor);\n  } else {\n    this.stack = (new Error()).stack;\n  }\n\n  this.message = message;\n  this.name = 'AxiosError';\n  code && (this.code = code);\n  config && (this.config = config);\n  request && (this.request = request);\n  if (response) {\n    this.response = response;\n    this.status = response.status ? response.status : null;\n  }\n}\n\nutils.inherits(AxiosError, Error, {\n  toJSON: function toJSON() {\n    return {\n      // Standard\n      message: this.message,\n      name: this.name,\n      // Microsoft\n      description: this.description,\n      number: this.number,\n      // Mozilla\n      fileName: this.fileName,\n      lineNumber: this.lineNumber,\n      columnNumber: this.columnNumber,\n      stack: this.stack,\n      // Axios\n      config: utils.toJSONObject(this.config),\n      code: this.code,\n      status: this.status\n    };\n  }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n  'ERR_BAD_OPTION_VALUE',\n  'ERR_BAD_OPTION',\n  'ECONNABORTED',\n  'ETIMEDOUT',\n  'ERR_NETWORK',\n  'ERR_FR_TOO_MANY_REDIRECTS',\n  'ERR_DEPRECATED',\n  'ERR_BAD_RESPONSE',\n  'ERR_BAD_REQUEST',\n  'ERR_CANCELED',\n  'ERR_NOT_SUPPORT',\n  'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n  descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n  const axiosError = Object.create(prototype);\n\n  utils.toFlatObject(error, axiosError, function filter(obj) {\n    return obj !== Error.prototype;\n  }, prop => {\n    return prop !== 'isAxiosError';\n  });\n\n  AxiosError.call(axiosError, error.message, code, config, request, response);\n\n  axiosError.cause = error;\n\n  axiosError.name = error.name;\n\n  customProps && Object.assign(axiosError, customProps);\n\n  return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n  return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n  return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n  if (!path) return key;\n  return path.concat(key).map(function each(token, i) {\n    // eslint-disable-next-line no-param-reassign\n    token = removeBrackets(token);\n    return !dots && i ? '[' + token + ']' : token;\n  }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n  return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n  return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n  if (!utils.isObject(obj)) {\n    throw new TypeError('target must be an object');\n  }\n\n  // eslint-disable-next-line no-param-reassign\n  formData = formData || new (PlatformFormData || FormData)();\n\n  // eslint-disable-next-line no-param-reassign\n  options = utils.toFlatObject(options, {\n    metaTokens: true,\n    dots: false,\n    indexes: false\n  }, false, function defined(option, source) {\n    // eslint-disable-next-line no-eq-null,eqeqeq\n    return !utils.isUndefined(source[option]);\n  });\n\n  const metaTokens = options.metaTokens;\n  // eslint-disable-next-line no-use-before-define\n  const visitor = options.visitor || defaultVisitor;\n  const dots = options.dots;\n  const indexes = options.indexes;\n  const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n  const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n  if (!utils.isFunction(visitor)) {\n    throw new TypeError('visitor must be a function');\n  }\n\n  function convertValue(value) {\n    if (value === null) return '';\n\n    if (utils.isDate(value)) {\n      return value.toISOString();\n    }\n\n    if (utils.isBoolean(value)) {\n      return value.toString();\n    }\n\n    if (!useBlob && utils.isBlob(value)) {\n      throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n    }\n\n    if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n      return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n    }\n\n    return value;\n  }\n\n  /**\n   * Default visitor.\n   *\n   * @param {*} value\n   * @param {String|Number} key\n   * @param {Array<String|Number>} path\n   * @this {FormData}\n   *\n   * @returns {boolean} return true to visit the each prop of the value recursively\n   */\n  function defaultVisitor(value, key, path) {\n    let arr = value;\n\n    if (value && !path && typeof value === 'object') {\n      if (utils.endsWith(key, '{}')) {\n        // eslint-disable-next-line no-param-reassign\n        key = metaTokens ? key : key.slice(0, -2);\n        // eslint-disable-next-line no-param-reassign\n        value = JSON.stringify(value);\n      } else if (\n        (utils.isArray(value) && isFlatArray(value)) ||\n        ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n        )) {\n        // eslint-disable-next-line no-param-reassign\n        key = removeBrackets(key);\n\n        arr.forEach(function each(el, index) {\n          !(utils.isUndefined(el) || el === null) && formData.append(\n            // eslint-disable-next-line no-nested-ternary\n            indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n            convertValue(el)\n          );\n        });\n        return false;\n      }\n    }\n\n    if (isVisitable(value)) {\n      return true;\n    }\n\n    formData.append(renderKey(path, key, dots), convertValue(value));\n\n    return false;\n  }\n\n  const stack = [];\n\n  const exposedHelpers = Object.assign(predicates, {\n    defaultVisitor,\n    convertValue,\n    isVisitable\n  });\n\n  function build(value, path) {\n    if (utils.isUndefined(value)) return;\n\n    if (stack.indexOf(value) !== -1) {\n      throw Error('Circular reference detected in ' + path.join('.'));\n    }\n\n    stack.push(value);\n\n    utils.forEach(value, function each(el, key) {\n      const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n        formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n      );\n\n      if (result === true) {\n        build(el, path ? path.concat(key) : [key]);\n      }\n    });\n\n    stack.pop();\n  }\n\n  if (!utils.isObject(obj)) {\n    throw new TypeError('data must be an object');\n  }\n\n  build(obj);\n\n  return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n  const charMap = {\n    '!': '%21',\n    \"'\": '%27',\n    '(': '%28',\n    ')': '%29',\n    '~': '%7E',\n    '%20': '+',\n    '%00': '\\x00'\n  };\n  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n    return charMap[match];\n  });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n  this._pairs = [];\n\n  params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n  this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n  const _encode = encoder ? function(value) {\n    return encoder.call(this, value, encode);\n  } : encode;\n\n  return this._pairs.map(function each(pair) {\n    return _encode(pair[0]) + '=' + _encode(pair[1]);\n  }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n  return encodeURIComponent(val).\n    replace(/%3A/gi, ':').\n    replace(/%24/g, '$').\n    replace(/%2C/gi, ',').\n    replace(/%20/g, '+').\n    replace(/%5B/gi, '[').\n    replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n  /*eslint no-param-reassign:0*/\n  if (!params) {\n    return url;\n  }\n  \n  const _encode = options && options.encode || encode;\n\n  if (utils.isFunction(options)) {\n    options = {\n      serialize: options\n    };\n  } \n\n  const serializeFn = options && options.serialize;\n\n  let serializedParams;\n\n  if (serializeFn) {\n    serializedParams = serializeFn(params, options);\n  } else {\n    serializedParams = utils.isURLSearchParams(params) ?\n      params.toString() :\n      new AxiosURLSearchParams(params, options).toString(_encode);\n  }\n\n  if (serializedParams) {\n    const hashmarkIndex = url.indexOf(\"#\");\n\n    if (hashmarkIndex !== -1) {\n      url = url.slice(0, hashmarkIndex);\n    }\n    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n  }\n\n  return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n  constructor() {\n    this.handlers = [];\n  }\n\n  /**\n   * Add a new interceptor to the stack\n   *\n   * @param {Function} fulfilled The function to handle `then` for a `Promise`\n   * @param {Function} rejected The function to handle `reject` for a `Promise`\n   *\n   * @return {Number} An ID used to remove interceptor later\n   */\n  use(fulfilled, rejected, options) {\n    this.handlers.push({\n      fulfilled,\n      rejected,\n      synchronous: options ? options.synchronous : false,\n      runWhen: options ? options.runWhen : null\n    });\n    return this.handlers.length - 1;\n  }\n\n  /**\n   * Remove an interceptor from the stack\n   *\n   * @param {Number} id The ID that was returned by `use`\n   *\n   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n   */\n  eject(id) {\n    if (this.handlers[id]) {\n      this.handlers[id] = null;\n    }\n  }\n\n  /**\n   * Clear all interceptors from the stack\n   *\n   * @returns {void}\n   */\n  clear() {\n    if (this.handlers) {\n      this.handlers = [];\n    }\n  }\n\n  /**\n   * Iterate over all the registered interceptors\n   *\n   * This method is particularly useful for skipping over any\n   * interceptors that may have become `null` calling `eject`.\n   *\n   * @param {Function} fn The function to call for each interceptor\n   *\n   * @returns {void}\n   */\n  forEach(fn) {\n    utils.forEach(this.handlers, function forEachHandler(h) {\n      if (h !== null) {\n        fn(h);\n      }\n    });\n  }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n  silentJSONParsing: true,\n  forcedJSONParsing: true,\n  clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n  isBrowser: true,\n  classes: {\n    URLSearchParams,\n    FormData,\n    Blob\n  },\n  protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n *  typeof window -> undefined\n *  typeof document -> undefined\n *\n * react-native:\n *  navigator.product -> 'ReactNative'\n * nativescript\n *  navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n  return (\n    typeof WorkerGlobalScope !== 'undefined' &&\n    // eslint-disable-next-line no-undef\n    self instanceof WorkerGlobalScope &&\n    typeof self.importScripts === 'function'\n  );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n  hasBrowserEnv,\n  hasStandardBrowserWebWorkerEnv,\n  hasStandardBrowserEnv,\n  _navigator as navigator,\n  origin\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n  ...utils,\n  ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n  return toFormData(data, new platform.classes.URLSearchParams(), {\n    visitor: function(value, key, path, helpers) {\n      if (platform.isNode && utils.isBuffer(value)) {\n        this.append(key, value.toString('base64'));\n        return false;\n      }\n\n      return helpers.defaultVisitor.apply(this, arguments);\n    },\n    ...options\n  });\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n  // foo[x][y][z]\n  // foo.x.y.z\n  // foo-x-y-z\n  // foo x y z\n  return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n    return match[0] === '[]' ? '' : match[1] || match[0];\n  });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n  const obj = {};\n  const keys = Object.keys(arr);\n  let i;\n  const len = keys.length;\n  let key;\n  for (i = 0; i < len; i++) {\n    key = keys[i];\n    obj[key] = arr[key];\n  }\n  return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n  function buildPath(path, value, target, index) {\n    let name = path[index++];\n\n    if (name === '__proto__') return true;\n\n    const isNumericKey = Number.isFinite(+name);\n    const isLast = index >= path.length;\n    name = !name && utils.isArray(target) ? target.length : name;\n\n    if (isLast) {\n      if (utils.hasOwnProp(target, name)) {\n        target[name] = [target[name], value];\n      } else {\n        target[name] = value;\n      }\n\n      return !isNumericKey;\n    }\n\n    if (!target[name] || !utils.isObject(target[name])) {\n      target[name] = [];\n    }\n\n    const result = buildPath(path, value, target[name], index);\n\n    if (result && utils.isArray(target[name])) {\n      target[name] = arrayToObject(target[name]);\n    }\n\n    return !isNumericKey;\n  }\n\n  if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n    const obj = {};\n\n    utils.forEachEntry(formData, (name, value) => {\n      buildPath(parsePropPath(name), value, obj, 0);\n    });\n\n    return obj;\n  }\n\n  return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n  if (utils.isString(rawValue)) {\n    try {\n      (parser || JSON.parse)(rawValue);\n      return utils.trim(rawValue);\n    } catch (e) {\n      if (e.name !== 'SyntaxError') {\n        throw e;\n      }\n    }\n  }\n\n  return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n  transitional: transitionalDefaults,\n\n  adapter: ['xhr', 'http', 'fetch'],\n\n  transformRequest: [function transformRequest(data, headers) {\n    const contentType = headers.getContentType() || '';\n    const hasJSONContentType = contentType.indexOf('application/json') > -1;\n    const isObjectPayload = utils.isObject(data);\n\n    if (isObjectPayload && utils.isHTMLForm(data)) {\n      data = new FormData(data);\n    }\n\n    const isFormData = utils.isFormData(data);\n\n    if (isFormData) {\n      return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n    }\n\n    if (utils.isArrayBuffer(data) ||\n      utils.isBuffer(data) ||\n      utils.isStream(data) ||\n      utils.isFile(data) ||\n      utils.isBlob(data) ||\n      utils.isReadableStream(data)\n    ) {\n      return data;\n    }\n    if (utils.isArrayBufferView(data)) {\n      return data.buffer;\n    }\n    if (utils.isURLSearchParams(data)) {\n      headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n      return data.toString();\n    }\n\n    let isFileList;\n\n    if (isObjectPayload) {\n      if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n        return toURLEncodedForm(data, this.formSerializer).toString();\n      }\n\n      if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n        const _FormData = this.env && this.env.FormData;\n\n        return toFormData(\n          isFileList ? {'files[]': data} : data,\n          _FormData && new _FormData(),\n          this.formSerializer\n        );\n      }\n    }\n\n    if (isObjectPayload || hasJSONContentType ) {\n      headers.setContentType('application/json', false);\n      return stringifySafely(data);\n    }\n\n    return data;\n  }],\n\n  transformResponse: [function transformResponse(data) {\n    const transitional = this.transitional || defaults.transitional;\n    const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n    const JSONRequested = this.responseType === 'json';\n\n    if (utils.isResponse(data) || utils.isReadableStream(data)) {\n      return data;\n    }\n\n    if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n      const silentJSONParsing = transitional && transitional.silentJSONParsing;\n      const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n      try {\n        return JSON.parse(data);\n      } catch (e) {\n        if (strictJSONParsing) {\n          if (e.name === 'SyntaxError') {\n            throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n          }\n          throw e;\n        }\n      }\n    }\n\n    return data;\n  }],\n\n  /**\n   * A timeout in milliseconds to abort a request. If set to 0 (default) a\n   * timeout is not created.\n   */\n  timeout: 0,\n\n  xsrfCookieName: 'XSRF-TOKEN',\n  xsrfHeaderName: 'X-XSRF-TOKEN',\n\n  maxContentLength: -1,\n  maxBodyLength: -1,\n\n  env: {\n    FormData: platform.classes.FormData,\n    Blob: platform.classes.Blob\n  },\n\n  validateStatus: function validateStatus(status) {\n    return status >= 200 && status < 300;\n  },\n\n  headers: {\n    common: {\n      'Accept': 'application/json, text/plain, */*',\n      'Content-Type': undefined\n    }\n  }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n  defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n  'age', 'authorization', 'content-length', 'content-type', 'etag',\n  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n  'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n  'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n  const parsed = {};\n  let key;\n  let val;\n  let i;\n\n  rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n    i = line.indexOf(':');\n    key = line.substring(0, i).trim().toLowerCase();\n    val = line.substring(i + 1).trim();\n\n    if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n      return;\n    }\n\n    if (key === 'set-cookie') {\n      if (parsed[key]) {\n        parsed[key].push(val);\n      } else {\n        parsed[key] = [val];\n      }\n    } else {\n      parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n    }\n  });\n\n  return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n  return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n  if (value === false || value == null) {\n    return value;\n  }\n\n  return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n  const tokens = Object.create(null);\n  const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n  let match;\n\n  while ((match = tokensRE.exec(str))) {\n    tokens[match[1]] = match[2];\n  }\n\n  return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n  if (utils.isFunction(filter)) {\n    return filter.call(this, value, header);\n  }\n\n  if (isHeaderNameFilter) {\n    value = header;\n  }\n\n  if (!utils.isString(value)) return;\n\n  if (utils.isString(filter)) {\n    return value.indexOf(filter) !== -1;\n  }\n\n  if (utils.isRegExp(filter)) {\n    return filter.test(value);\n  }\n}\n\nfunction formatHeader(header) {\n  return header.trim()\n    .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n      return char.toUpperCase() + str;\n    });\n}\n\nfunction buildAccessors(obj, header) {\n  const accessorName = utils.toCamelCase(' ' + header);\n\n  ['get', 'set', 'has'].forEach(methodName => {\n    Object.defineProperty(obj, methodName + accessorName, {\n      value: function(arg1, arg2, arg3) {\n        return this[methodName].call(this, header, arg1, arg2, arg3);\n      },\n      configurable: true\n    });\n  });\n}\n\nclass AxiosHeaders {\n  constructor(headers) {\n    headers && this.set(headers);\n  }\n\n  set(header, valueOrRewrite, rewrite) {\n    const self = this;\n\n    function setHeader(_value, _header, _rewrite) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!lHeader) {\n        throw new Error('header name must be a non-empty string');\n      }\n\n      const key = utils.findKey(self, lHeader);\n\n      if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n        self[key || _header] = normalizeValue(_value);\n      }\n    }\n\n    const setHeaders = (headers, _rewrite) =>\n      utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n    if (utils.isPlainObject(header) || header instanceof this.constructor) {\n      setHeaders(header, valueOrRewrite)\n    } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n      setHeaders(parseHeaders(header), valueOrRewrite);\n    } else if (utils.isObject(header) && utils.isIterable(header)) {\n      let obj = {}, dest, key;\n      for (const entry of header) {\n        if (!utils.isArray(entry)) {\n          throw TypeError('Object iterator must return a key-value pair');\n        }\n\n        obj[key = entry[0]] = (dest = obj[key]) ?\n          (utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];\n      }\n\n      setHeaders(obj, valueOrRewrite)\n    } else {\n      header != null && setHeader(valueOrRewrite, header, rewrite);\n    }\n\n    return this;\n  }\n\n  get(header, parser) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = utils.findKey(this, header);\n\n      if (key) {\n        const value = this[key];\n\n        if (!parser) {\n          return value;\n        }\n\n        if (parser === true) {\n          return parseTokens(value);\n        }\n\n        if (utils.isFunction(parser)) {\n          return parser.call(this, value, key);\n        }\n\n        if (utils.isRegExp(parser)) {\n          return parser.exec(value);\n        }\n\n        throw new TypeError('parser must be boolean|regexp|function');\n      }\n    }\n  }\n\n  has(header, matcher) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = utils.findKey(this, header);\n\n      return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n    }\n\n    return false;\n  }\n\n  delete(header, matcher) {\n    const self = this;\n    let deleted = false;\n\n    function deleteHeader(_header) {\n      _header = normalizeHeader(_header);\n\n      if (_header) {\n        const key = utils.findKey(self, _header);\n\n        if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n          delete self[key];\n\n          deleted = true;\n        }\n      }\n    }\n\n    if (utils.isArray(header)) {\n      header.forEach(deleteHeader);\n    } else {\n      deleteHeader(header);\n    }\n\n    return deleted;\n  }\n\n  clear(matcher) {\n    const keys = Object.keys(this);\n    let i = keys.length;\n    let deleted = false;\n\n    while (i--) {\n      const key = keys[i];\n      if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n        delete this[key];\n        deleted = true;\n      }\n    }\n\n    return deleted;\n  }\n\n  normalize(format) {\n    const self = this;\n    const headers = {};\n\n    utils.forEach(this, (value, header) => {\n      const key = utils.findKey(headers, header);\n\n      if (key) {\n        self[key] = normalizeValue(value);\n        delete self[header];\n        return;\n      }\n\n      const normalized = format ? formatHeader(header) : String(header).trim();\n\n      if (normalized !== header) {\n        delete self[header];\n      }\n\n      self[normalized] = normalizeValue(value);\n\n      headers[normalized] = true;\n    });\n\n    return this;\n  }\n\n  concat(...targets) {\n    return this.constructor.concat(this, ...targets);\n  }\n\n  toJSON(asStrings) {\n    const obj = Object.create(null);\n\n    utils.forEach(this, (value, header) => {\n      value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n    });\n\n    return obj;\n  }\n\n  [Symbol.iterator]() {\n    return Object.entries(this.toJSON())[Symbol.iterator]();\n  }\n\n  toString() {\n    return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n  }\n\n  getSetCookie() {\n    return this.get(\"set-cookie\") || [];\n  }\n\n  get [Symbol.toStringTag]() {\n    return 'AxiosHeaders';\n  }\n\n  static from(thing) {\n    return thing instanceof this ? thing : new this(thing);\n  }\n\n  static concat(first, ...targets) {\n    const computed = new this(first);\n\n    targets.forEach((target) => computed.set(target));\n\n    return computed;\n  }\n\n  static accessor(header) {\n    const internals = this[$internals] = (this[$internals] = {\n      accessors: {}\n    });\n\n    const accessors = internals.accessors;\n    const prototype = this.prototype;\n\n    function defineAccessor(_header) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!accessors[lHeader]) {\n        buildAccessors(prototype, _header);\n        accessors[lHeader] = true;\n      }\n    }\n\n    utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n    return this;\n  }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n  return {\n    get: () => value,\n    set(headerValue) {\n      this[mapped] = headerValue;\n    }\n  }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n  const config = this || defaults;\n  const context = response || config;\n  const headers = AxiosHeaders.from(context.headers);\n  let data = context.data;\n\n  utils.forEach(fns, function transform(fn) {\n    data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n  });\n\n  headers.normalize();\n\n  return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n  return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n  // eslint-disable-next-line no-eq-null,eqeqeq\n  AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n  this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n  __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n  const validateStatus = response.config.validateStatus;\n  if (!response.status || !validateStatus || validateStatus(response.status)) {\n    resolve(response);\n  } else {\n    reject(new AxiosError(\n      'Request failed with status code ' + response.status,\n      [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n      response.config,\n      response.request,\n      response\n    ));\n  }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n  const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n  return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n  samplesCount = samplesCount || 10;\n  const bytes = new Array(samplesCount);\n  const timestamps = new Array(samplesCount);\n  let head = 0;\n  let tail = 0;\n  let firstSampleTS;\n\n  min = min !== undefined ? min : 1000;\n\n  return function push(chunkLength) {\n    const now = Date.now();\n\n    const startedAt = timestamps[tail];\n\n    if (!firstSampleTS) {\n      firstSampleTS = now;\n    }\n\n    bytes[head] = chunkLength;\n    timestamps[head] = now;\n\n    let i = tail;\n    let bytesCount = 0;\n\n    while (i !== head) {\n      bytesCount += bytes[i++];\n      i = i % samplesCount;\n    }\n\n    head = (head + 1) % samplesCount;\n\n    if (head === tail) {\n      tail = (tail + 1) % samplesCount;\n    }\n\n    if (now - firstSampleTS < min) {\n      return;\n    }\n\n    const passed = startedAt && now - startedAt;\n\n    return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n  };\n}\n\nexport default speedometer;\n","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n  let timestamp = 0;\n  let threshold = 1000 / freq;\n  let lastArgs;\n  let timer;\n\n  const invoke = (args, now = Date.now()) => {\n    timestamp = now;\n    lastArgs = null;\n    if (timer) {\n      clearTimeout(timer);\n      timer = null;\n    }\n    fn(...args);\n  }\n\n  const throttled = (...args) => {\n    const now = Date.now();\n    const passed = now - timestamp;\n    if ( passed >= threshold) {\n      invoke(args, now);\n    } else {\n      lastArgs = args;\n      if (!timer) {\n        timer = setTimeout(() => {\n          timer = null;\n          invoke(lastArgs)\n        }, threshold - passed);\n      }\n    }\n  }\n\n  const flush = () => lastArgs && invoke(lastArgs);\n\n  return [throttled, flush];\n}\n\nexport default throttle;\n","import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n  let bytesNotified = 0;\n  const _speedometer = speedometer(50, 250);\n\n  return throttle(e => {\n    const loaded = e.loaded;\n    const total = e.lengthComputable ? e.total : undefined;\n    const progressBytes = loaded - bytesNotified;\n    const rate = _speedometer(progressBytes);\n    const inRange = loaded <= total;\n\n    bytesNotified = loaded;\n\n    const data = {\n      loaded,\n      total,\n      progress: total ? (loaded / total) : undefined,\n      bytes: progressBytes,\n      rate: rate ? rate : undefined,\n      estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n      event: e,\n      lengthComputable: total != null,\n      [isDownloadStream ? 'download' : 'upload']: true\n    };\n\n    listener(data);\n  }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n  const lengthComputable = total != null;\n\n  return [(loaded) => throttled[0]({\n    lengthComputable,\n    total,\n    loaded\n  }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n","import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n  url = new URL(url, platform.origin);\n\n  return (\n    origin.protocol === url.protocol &&\n    origin.host === url.host &&\n    (isMSIE || origin.port === url.port)\n  );\n})(\n  new URL(platform.origin),\n  platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n  // Standard browser envs support document.cookie\n  {\n    write(name, value, expires, path, domain, secure) {\n      const cookie = [name + '=' + encodeURIComponent(value)];\n\n      utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n      utils.isString(path) && cookie.push('path=' + path);\n\n      utils.isString(domain) && cookie.push('domain=' + domain);\n\n      secure === true && cookie.push('secure');\n\n      document.cookie = cookie.join('; ');\n    },\n\n    read(name) {\n      const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n      return (match ? decodeURIComponent(match[3]) : null);\n    },\n\n    remove(name) {\n      this.write(name, '', Date.now() - 86400000);\n    }\n  }\n\n  :\n\n  // Non-standard browser env (web workers, react-native) lack needed support.\n  {\n    write() {},\n    read() {\n      return null;\n    },\n    remove() {}\n  };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n  // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n  // by any combination of letters, digits, plus, period, or hyphen.\n  return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n  return relativeURL\n    ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n    : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {\n  let isRelativeUrl = !isAbsoluteURL(requestedURL);\n  if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {\n    return combineURLs(baseURL, requestedURL);\n  }\n  return requestedURL;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n  // eslint-disable-next-line no-param-reassign\n  config2 = config2 || {};\n  const config = {};\n\n  function getMergedValue(target, source, prop, caseless) {\n    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n      return utils.merge.call({caseless}, target, source);\n    } else if (utils.isPlainObject(source)) {\n      return utils.merge({}, source);\n    } else if (utils.isArray(source)) {\n      return source.slice();\n    }\n    return source;\n  }\n\n  // eslint-disable-next-line consistent-return\n  function mergeDeepProperties(a, b, prop , caseless) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(a, b, prop , caseless);\n    } else if (!utils.isUndefined(a)) {\n      return getMergedValue(undefined, a, prop , caseless);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function valueFromConfig2(a, b) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function defaultToConfig2(a, b) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    } else if (!utils.isUndefined(a)) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function mergeDirectKeys(a, b, prop) {\n    if (prop in config2) {\n      return getMergedValue(a, b);\n    } else if (prop in config1) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  const mergeMap = {\n    url: valueFromConfig2,\n    method: valueFromConfig2,\n    data: valueFromConfig2,\n    baseURL: defaultToConfig2,\n    transformRequest: defaultToConfig2,\n    transformResponse: defaultToConfig2,\n    paramsSerializer: defaultToConfig2,\n    timeout: defaultToConfig2,\n    timeoutMessage: defaultToConfig2,\n    withCredentials: defaultToConfig2,\n    withXSRFToken: defaultToConfig2,\n    adapter: defaultToConfig2,\n    responseType: defaultToConfig2,\n    xsrfCookieName: defaultToConfig2,\n    xsrfHeaderName: defaultToConfig2,\n    onUploadProgress: defaultToConfig2,\n    onDownloadProgress: defaultToConfig2,\n    decompress: defaultToConfig2,\n    maxContentLength: defaultToConfig2,\n    maxBodyLength: defaultToConfig2,\n    beforeRedirect: defaultToConfig2,\n    transport: defaultToConfig2,\n    httpAgent: defaultToConfig2,\n    httpsAgent: defaultToConfig2,\n    cancelToken: defaultToConfig2,\n    socketPath: defaultToConfig2,\n    responseEncoding: defaultToConfig2,\n    validateStatus: mergeDirectKeys,\n    headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n  };\n\n  utils.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {\n    const merge = mergeMap[prop] || mergeDeepProperties;\n    const configValue = merge(config1[prop], config2[prop], prop);\n    (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n  });\n\n  return config;\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n  const newConfig = mergeConfig({}, config);\n\n  let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n  newConfig.headers = headers = AxiosHeaders.from(headers);\n\n  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);\n\n  // HTTP basic authentication\n  if (auth) {\n    headers.set('Authorization', 'Basic ' +\n      btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n    );\n  }\n\n  let contentType;\n\n  if (utils.isFormData(data)) {\n    if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n      headers.setContentType(undefined); // Let the browser set it\n    } else if ((contentType = headers.getContentType()) !== false) {\n      // fix semicolon duplication issue for ReactNative FormData implementation\n      const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n      headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n    }\n  }\n\n  // Add xsrf header\n  // This is only done if running in a standard browser environment.\n  // Specifically not if we're in a web worker, or react-native.\n\n  if (platform.hasStandardBrowserEnv) {\n    withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n    if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n      // Add xsrf header\n      const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n      if (xsrfValue) {\n        headers.set(xsrfHeaderName, xsrfValue);\n      }\n    }\n  }\n\n  return newConfig;\n}\n\n","import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n  return new Promise(function dispatchXhrRequest(resolve, reject) {\n    const _config = resolveConfig(config);\n    let requestData = _config.data;\n    const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n    let {responseType, onUploadProgress, onDownloadProgress} = _config;\n    let onCanceled;\n    let uploadThrottled, downloadThrottled;\n    let flushUpload, flushDownload;\n\n    function done() {\n      flushUpload && flushUpload(); // flush events\n      flushDownload && flushDownload(); // flush events\n\n      _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n      _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n    }\n\n    let request = new XMLHttpRequest();\n\n    request.open(_config.method.toUpperCase(), _config.url, true);\n\n    // Set the request timeout in MS\n    request.timeout = _config.timeout;\n\n    function onloadend() {\n      if (!request) {\n        return;\n      }\n      // Prepare the response\n      const responseHeaders = AxiosHeaders.from(\n        'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n      );\n      const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n        request.responseText : request.response;\n      const response = {\n        data: responseData,\n        status: request.status,\n        statusText: request.statusText,\n        headers: responseHeaders,\n        config,\n        request\n      };\n\n      settle(function _resolve(value) {\n        resolve(value);\n        done();\n      }, function _reject(err) {\n        reject(err);\n        done();\n      }, response);\n\n      // Clean up request\n      request = null;\n    }\n\n    if ('onloadend' in request) {\n      // Use onloadend if available\n      request.onloadend = onloadend;\n    } else {\n      // Listen for ready state to emulate onloadend\n      request.onreadystatechange = function handleLoad() {\n        if (!request || request.readyState !== 4) {\n          return;\n        }\n\n        // The request errored out and we didn't get a response, this will be\n        // handled by onerror instead\n        // With one exception: request that using file: protocol, most browsers\n        // will return status as 0 even though it's a successful request\n        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n          return;\n        }\n        // readystate handler is calling before onerror or ontimeout handlers,\n        // so we should call onloadend on the next 'tick'\n        setTimeout(onloadend);\n      };\n    }\n\n    // Handle browser request cancellation (as opposed to a manual cancellation)\n    request.onabort = function handleAbort() {\n      if (!request) {\n        return;\n      }\n\n      reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle low level network errors\n    request.onerror = function handleError() {\n      // Real errors are hidden from us by the browser\n      // onerror should only fire if it's a network error\n      reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle timeout\n    request.ontimeout = function handleTimeout() {\n      let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n      const transitional = _config.transitional || transitionalDefaults;\n      if (_config.timeoutErrorMessage) {\n        timeoutErrorMessage = _config.timeoutErrorMessage;\n      }\n      reject(new AxiosError(\n        timeoutErrorMessage,\n        transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n        config,\n        request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Remove Content-Type if data is undefined\n    requestData === undefined && requestHeaders.setContentType(null);\n\n    // Add headers to the request\n    if ('setRequestHeader' in request) {\n      utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n        request.setRequestHeader(key, val);\n      });\n    }\n\n    // Add withCredentials to request if needed\n    if (!utils.isUndefined(_config.withCredentials)) {\n      request.withCredentials = !!_config.withCredentials;\n    }\n\n    // Add responseType to request if needed\n    if (responseType && responseType !== 'json') {\n      request.responseType = _config.responseType;\n    }\n\n    // Handle progress if needed\n    if (onDownloadProgress) {\n      ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n      request.addEventListener('progress', downloadThrottled);\n    }\n\n    // Not all browsers support upload events\n    if (onUploadProgress && request.upload) {\n      ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n      request.upload.addEventListener('progress', uploadThrottled);\n\n      request.upload.addEventListener('loadend', flushUpload);\n    }\n\n    if (_config.cancelToken || _config.signal) {\n      // Handle cancellation\n      // eslint-disable-next-line func-names\n      onCanceled = cancel => {\n        if (!request) {\n          return;\n        }\n        reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n        request.abort();\n        request = null;\n      };\n\n      _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n      if (_config.signal) {\n        _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n      }\n    }\n\n    const protocol = parseProtocol(_config.url);\n\n    if (protocol && platform.protocols.indexOf(protocol) === -1) {\n      reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n      return;\n    }\n\n\n    // Send the request\n    request.send(requestData || null);\n  });\n}\n","import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n  const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n  if (timeout || length) {\n    let controller = new AbortController();\n\n    let aborted;\n\n    const onabort = function (reason) {\n      if (!aborted) {\n        aborted = true;\n        unsubscribe();\n        const err = reason instanceof Error ? reason : this.reason;\n        controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n      }\n    }\n\n    let timer = timeout && setTimeout(() => {\n      timer = null;\n      onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n    }, timeout)\n\n    const unsubscribe = () => {\n      if (signals) {\n        timer && clearTimeout(timer);\n        timer = null;\n        signals.forEach(signal => {\n          signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n        });\n        signals = null;\n      }\n    }\n\n    signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n    const {signal} = controller;\n\n    signal.unsubscribe = () => utils.asap(unsubscribe);\n\n    return signal;\n  }\n}\n\nexport default composeSignals;\n","\nexport const streamChunk = function* (chunk, chunkSize) {\n  let len = chunk.byteLength;\n\n  if (!chunkSize || len < chunkSize) {\n    yield chunk;\n    return;\n  }\n\n  let pos = 0;\n  let end;\n\n  while (pos < len) {\n    end = pos + chunkSize;\n    yield chunk.slice(pos, end);\n    pos = end;\n  }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n  for await (const chunk of readStream(iterable)) {\n    yield* streamChunk(chunk, chunkSize);\n  }\n}\n\nconst readStream = async function* (stream) {\n  if (stream[Symbol.asyncIterator]) {\n    yield* stream;\n    return;\n  }\n\n  const reader = stream.getReader();\n  try {\n    for (;;) {\n      const {done, value} = await reader.read();\n      if (done) {\n        break;\n      }\n      yield value;\n    }\n  } finally {\n    await reader.cancel();\n  }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n  const iterator = readBytes(stream, chunkSize);\n\n  let bytes = 0;\n  let done;\n  let _onFinish = (e) => {\n    if (!done) {\n      done = true;\n      onFinish && onFinish(e);\n    }\n  }\n\n  return new ReadableStream({\n    async pull(controller) {\n      try {\n        const {done, value} = await iterator.next();\n\n        if (done) {\n         _onFinish();\n          controller.close();\n          return;\n        }\n\n        let len = value.byteLength;\n        if (onProgress) {\n          let loadedBytes = bytes += len;\n          onProgress(loadedBytes);\n        }\n        controller.enqueue(new Uint8Array(value));\n      } catch (err) {\n        _onFinish(err);\n        throw err;\n      }\n    },\n    cancel(reason) {\n      _onFinish(reason);\n      return iterator.return();\n    }\n  }, {\n    highWaterMark: 2\n  })\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n    ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n    async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n  try {\n    return !!fn(...args);\n  } catch (e) {\n    return false\n  }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n  let duplexAccessed = false;\n\n  const hasContentType = new Request(platform.origin, {\n    body: new ReadableStream(),\n    method: 'POST',\n    get duplex() {\n      duplexAccessed = true;\n      return 'half';\n    },\n  }).headers.has('Content-Type');\n\n  return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n  test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n  stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n  ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n    !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n      (_, config) => {\n        throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n      })\n  });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n  if (body == null) {\n    return 0;\n  }\n\n  if(utils.isBlob(body)) {\n    return body.size;\n  }\n\n  if(utils.isSpecCompliantForm(body)) {\n    const _request = new Request(platform.origin, {\n      method: 'POST',\n      body,\n    });\n    return (await _request.arrayBuffer()).byteLength;\n  }\n\n  if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n    return body.byteLength;\n  }\n\n  if(utils.isURLSearchParams(body)) {\n    body = body + '';\n  }\n\n  if(utils.isString(body)) {\n    return (await encodeText(body)).byteLength;\n  }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n  const length = utils.toFiniteNumber(headers.getContentLength());\n\n  return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n  let {\n    url,\n    method,\n    data,\n    signal,\n    cancelToken,\n    timeout,\n    onDownloadProgress,\n    onUploadProgress,\n    responseType,\n    headers,\n    withCredentials = 'same-origin',\n    fetchOptions\n  } = resolveConfig(config);\n\n  responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n  let request;\n\n  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n      composedSignal.unsubscribe();\n  });\n\n  let requestContentLength;\n\n  try {\n    if (\n      onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n      (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n    ) {\n      let _request = new Request(url, {\n        method: 'POST',\n        body: data,\n        duplex: \"half\"\n      });\n\n      let contentTypeHeader;\n\n      if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n        headers.setContentType(contentTypeHeader)\n      }\n\n      if (_request.body) {\n        const [onProgress, flush] = progressEventDecorator(\n          requestContentLength,\n          progressEventReducer(asyncDecorator(onUploadProgress))\n        );\n\n        data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n      }\n    }\n\n    if (!utils.isString(withCredentials)) {\n      withCredentials = withCredentials ? 'include' : 'omit';\n    }\n\n    // Cloudflare Workers throws when credentials are defined\n    // see https://github.com/cloudflare/workerd/issues/902\n    const isCredentialsSupported = \"credentials\" in Request.prototype;\n    request = new Request(url, {\n      ...fetchOptions,\n      signal: composedSignal,\n      method: method.toUpperCase(),\n      headers: headers.normalize().toJSON(),\n      body: data,\n      duplex: \"half\",\n      credentials: isCredentialsSupported ? withCredentials : undefined\n    });\n\n    let response = await fetch(request, fetchOptions);\n\n    const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n    if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n      const options = {};\n\n      ['status', 'statusText', 'headers'].forEach(prop => {\n        options[prop] = response[prop];\n      });\n\n      const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n      const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n        responseContentLength,\n        progressEventReducer(asyncDecorator(onDownloadProgress), true)\n      ) || [];\n\n      response = new Response(\n        trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n          flush && flush();\n          unsubscribe && unsubscribe();\n        }),\n        options\n      );\n    }\n\n    responseType = responseType || 'text';\n\n    let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n    !isStreamResponse && unsubscribe && unsubscribe();\n\n    return await new Promise((resolve, reject) => {\n      settle(resolve, reject, {\n        data: responseData,\n        headers: AxiosHeaders.from(response.headers),\n        status: response.status,\n        statusText: response.statusText,\n        config,\n        request\n      })\n    })\n  } catch (err) {\n    unsubscribe && unsubscribe();\n\n    if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {\n      throw Object.assign(\n        new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n        {\n          cause: err.cause || err\n        }\n      )\n    }\n\n    throw AxiosError.from(err, err && err.code, config, request);\n  }\n});\n\n\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n  http: httpAdapter,\n  xhr: xhrAdapter,\n  fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n  if (fn) {\n    try {\n      Object.defineProperty(fn, 'name', {value});\n    } catch (e) {\n      // eslint-disable-next-line no-empty\n    }\n    Object.defineProperty(fn, 'adapterName', {value});\n  }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n  getAdapter: (adapters) => {\n    adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n    const {length} = adapters;\n    let nameOrAdapter;\n    let adapter;\n\n    const rejectedReasons = {};\n\n    for (let i = 0; i < length; i++) {\n      nameOrAdapter = adapters[i];\n      let id;\n\n      adapter = nameOrAdapter;\n\n      if (!isResolvedHandle(nameOrAdapter)) {\n        adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n        if (adapter === undefined) {\n          throw new AxiosError(`Unknown adapter '${id}'`);\n        }\n      }\n\n      if (adapter) {\n        break;\n      }\n\n      rejectedReasons[id || '#' + i] = adapter;\n    }\n\n    if (!adapter) {\n\n      const reasons = Object.entries(rejectedReasons)\n        .map(([id, state]) => `adapter ${id} ` +\n          (state === false ? 'is not supported by the environment' : 'is not available in the build')\n        );\n\n      let s = length ?\n        (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n        'as no adapter specified';\n\n      throw new AxiosError(\n        `There is no suitable adapter to dispatch the request ` + s,\n        'ERR_NOT_SUPPORT'\n      );\n    }\n\n    return adapter;\n  },\n  adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n  if (config.cancelToken) {\n    config.cancelToken.throwIfRequested();\n  }\n\n  if (config.signal && config.signal.aborted) {\n    throw new CanceledError(null, config);\n  }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n  throwIfCancellationRequested(config);\n\n  config.headers = AxiosHeaders.from(config.headers);\n\n  // Transform request data\n  config.data = transformData.call(\n    config,\n    config.transformRequest\n  );\n\n  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n    config.headers.setContentType('application/x-www-form-urlencoded', false);\n  }\n\n  const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n  return adapter(config).then(function onAdapterResolution(response) {\n    throwIfCancellationRequested(config);\n\n    // Transform response data\n    response.data = transformData.call(\n      config,\n      config.transformResponse,\n      response\n    );\n\n    response.headers = AxiosHeaders.from(response.headers);\n\n    return response;\n  }, function onAdapterRejection(reason) {\n    if (!isCancel(reason)) {\n      throwIfCancellationRequested(config);\n\n      // Transform response data\n      if (reason && reason.response) {\n        reason.response.data = transformData.call(\n          config,\n          config.transformResponse,\n          reason.response\n        );\n        reason.response.headers = AxiosHeaders.from(reason.response.headers);\n      }\n    }\n\n    return Promise.reject(reason);\n  });\n}\n","export const VERSION = \"1.11.0\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n  validators[type] = function validator(thing) {\n    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n  };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n  function formatMessage(opt, desc) {\n    return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n  }\n\n  // eslint-disable-next-line func-names\n  return (value, opt, opts) => {\n    if (validator === false) {\n      throw new AxiosError(\n        formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n        AxiosError.ERR_DEPRECATED\n      );\n    }\n\n    if (version && !deprecatedWarnings[opt]) {\n      deprecatedWarnings[opt] = true;\n      // eslint-disable-next-line no-console\n      console.warn(\n        formatMessage(\n          opt,\n          ' has been deprecated since v' + version + ' and will be removed in the near future'\n        )\n      );\n    }\n\n    return validator ? validator(value, opt, opts) : true;\n  };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n  return (value, opt) => {\n    // eslint-disable-next-line no-console\n    console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n    return true;\n  }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n  if (typeof options !== 'object') {\n    throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n  }\n  const keys = Object.keys(options);\n  let i = keys.length;\n  while (i-- > 0) {\n    const opt = keys[i];\n    const validator = schema[opt];\n    if (validator) {\n      const value = options[opt];\n      const result = value === undefined || validator(value, opt, options);\n      if (result !== true) {\n        throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n      }\n      continue;\n    }\n    if (allowUnknown !== true) {\n      throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n    }\n  }\n}\n\nexport default {\n  assertOptions,\n  validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n  constructor(instanceConfig) {\n    this.defaults = instanceConfig || {};\n    this.interceptors = {\n      request: new InterceptorManager(),\n      response: new InterceptorManager()\n    };\n  }\n\n  /**\n   * Dispatch a request\n   *\n   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n   * @param {?Object} config\n   *\n   * @returns {Promise} The Promise to be fulfilled\n   */\n  async request(configOrUrl, config) {\n    try {\n      return await this._request(configOrUrl, config);\n    } catch (err) {\n      if (err instanceof Error) {\n        let dummy = {};\n\n        Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n        // slice off the Error: ... line\n        const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n        try {\n          if (!err.stack) {\n            err.stack = stack;\n            // match without the 2 top stack lines\n          } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n            err.stack += '\\n' + stack\n          }\n        } catch (e) {\n          // ignore the case where \"stack\" is an un-writable property\n        }\n      }\n\n      throw err;\n    }\n  }\n\n  _request(configOrUrl, config) {\n    /*eslint no-param-reassign:0*/\n    // Allow for axios('example/url'[, config]) a la fetch API\n    if (typeof configOrUrl === 'string') {\n      config = config || {};\n      config.url = configOrUrl;\n    } else {\n      config = configOrUrl || {};\n    }\n\n    config = mergeConfig(this.defaults, config);\n\n    const {transitional, paramsSerializer, headers} = config;\n\n    if (transitional !== undefined) {\n      validator.assertOptions(transitional, {\n        silentJSONParsing: validators.transitional(validators.boolean),\n        forcedJSONParsing: validators.transitional(validators.boolean),\n        clarifyTimeoutError: validators.transitional(validators.boolean)\n      }, false);\n    }\n\n    if (paramsSerializer != null) {\n      if (utils.isFunction(paramsSerializer)) {\n        config.paramsSerializer = {\n          serialize: paramsSerializer\n        }\n      } else {\n        validator.assertOptions(paramsSerializer, {\n          encode: validators.function,\n          serialize: validators.function\n        }, true);\n      }\n    }\n\n    // Set config.allowAbsoluteUrls\n    if (config.allowAbsoluteUrls !== undefined) {\n      // do nothing\n    } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n      config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n    } else {\n      config.allowAbsoluteUrls = true;\n    }\n\n    validator.assertOptions(config, {\n      baseUrl: validators.spelling('baseURL'),\n      withXsrfToken: validators.spelling('withXSRFToken')\n    }, true);\n\n    // Set config.method\n    config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n    // Flatten headers\n    let contextHeaders = headers && utils.merge(\n      headers.common,\n      headers[config.method]\n    );\n\n    headers && utils.forEach(\n      ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n      (method) => {\n        delete headers[method];\n      }\n    );\n\n    config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n    // filter out skipped interceptors\n    const requestInterceptorChain = [];\n    let synchronousRequestInterceptors = true;\n    this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n      if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n        return;\n      }\n\n      synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n      requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n    });\n\n    const responseInterceptorChain = [];\n    this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n      responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n    });\n\n    let promise;\n    let i = 0;\n    let len;\n\n    if (!synchronousRequestInterceptors) {\n      const chain = [dispatchRequest.bind(this), undefined];\n      chain.unshift(...requestInterceptorChain);\n      chain.push(...responseInterceptorChain);\n      len = chain.length;\n\n      promise = Promise.resolve(config);\n\n      while (i < len) {\n        promise = promise.then(chain[i++], chain[i++]);\n      }\n\n      return promise;\n    }\n\n    len = requestInterceptorChain.length;\n\n    let newConfig = config;\n\n    i = 0;\n\n    while (i < len) {\n      const onFulfilled = requestInterceptorChain[i++];\n      const onRejected = requestInterceptorChain[i++];\n      try {\n        newConfig = onFulfilled(newConfig);\n      } catch (error) {\n        onRejected.call(this, error);\n        break;\n      }\n    }\n\n    try {\n      promise = dispatchRequest.call(this, newConfig);\n    } catch (error) {\n      return Promise.reject(error);\n    }\n\n    i = 0;\n    len = responseInterceptorChain.length;\n\n    while (i < len) {\n      promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n    }\n\n    return promise;\n  }\n\n  getUri(config) {\n    config = mergeConfig(this.defaults, config);\n    const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n    return buildURL(fullPath, config.params, config.paramsSerializer);\n  }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n  /*eslint func-names:0*/\n  Axios.prototype[method] = function(url, config) {\n    return this.request(mergeConfig(config || {}, {\n      method,\n      url,\n      data: (config || {}).data\n    }));\n  };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  /*eslint func-names:0*/\n\n  function generateHTTPMethod(isForm) {\n    return function httpMethod(url, data, config) {\n      return this.request(mergeConfig(config || {}, {\n        method,\n        headers: isForm ? {\n          'Content-Type': 'multipart/form-data'\n        } : {},\n        url,\n        data\n      }));\n    };\n  }\n\n  Axios.prototype[method] = generateHTTPMethod();\n\n  Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n  constructor(executor) {\n    if (typeof executor !== 'function') {\n      throw new TypeError('executor must be a function.');\n    }\n\n    let resolvePromise;\n\n    this.promise = new Promise(function promiseExecutor(resolve) {\n      resolvePromise = resolve;\n    });\n\n    const token = this;\n\n    // eslint-disable-next-line func-names\n    this.promise.then(cancel => {\n      if (!token._listeners) return;\n\n      let i = token._listeners.length;\n\n      while (i-- > 0) {\n        token._listeners[i](cancel);\n      }\n      token._listeners = null;\n    });\n\n    // eslint-disable-next-line func-names\n    this.promise.then = onfulfilled => {\n      let _resolve;\n      // eslint-disable-next-line func-names\n      const promise = new Promise(resolve => {\n        token.subscribe(resolve);\n        _resolve = resolve;\n      }).then(onfulfilled);\n\n      promise.cancel = function reject() {\n        token.unsubscribe(_resolve);\n      };\n\n      return promise;\n    };\n\n    executor(function cancel(message, config, request) {\n      if (token.reason) {\n        // Cancellation has already been requested\n        return;\n      }\n\n      token.reason = new CanceledError(message, config, request);\n      resolvePromise(token.reason);\n    });\n  }\n\n  /**\n   * Throws a `CanceledError` if cancellation has been requested.\n   */\n  throwIfRequested() {\n    if (this.reason) {\n      throw this.reason;\n    }\n  }\n\n  /**\n   * Subscribe to the cancel signal\n   */\n\n  subscribe(listener) {\n    if (this.reason) {\n      listener(this.reason);\n      return;\n    }\n\n    if (this._listeners) {\n      this._listeners.push(listener);\n    } else {\n      this._listeners = [listener];\n    }\n  }\n\n  /**\n   * Unsubscribe from the cancel signal\n   */\n\n  unsubscribe(listener) {\n    if (!this._listeners) {\n      return;\n    }\n    const index = this._listeners.indexOf(listener);\n    if (index !== -1) {\n      this._listeners.splice(index, 1);\n    }\n  }\n\n  toAbortSignal() {\n    const controller = new AbortController();\n\n    const abort = (err) => {\n      controller.abort(err);\n    };\n\n    this.subscribe(abort);\n\n    controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n    return controller.signal;\n  }\n\n  /**\n   * Returns an object that contains a new `CancelToken` and a function that, when called,\n   * cancels the `CancelToken`.\n   */\n  static source() {\n    let cancel;\n    const token = new CancelToken(function executor(c) {\n      cancel = c;\n    });\n    return {\n      token,\n      cancel\n    };\n  }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n *  ```js\n *  function f(x, y, z) {}\n *  var args = [1, 2, 3];\n *  f.apply(null, args);\n *  ```\n *\n * With `spread` this example can be re-written.\n *\n *  ```js\n *  spread(function(x, y, z) {})([1, 2, 3]);\n *  ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n  return function wrap(arr) {\n    return callback.apply(null, arr);\n  };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n  return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n  Continue: 100,\n  SwitchingProtocols: 101,\n  Processing: 102,\n  EarlyHints: 103,\n  Ok: 200,\n  Created: 201,\n  Accepted: 202,\n  NonAuthoritativeInformation: 203,\n  NoContent: 204,\n  ResetContent: 205,\n  PartialContent: 206,\n  MultiStatus: 207,\n  AlreadyReported: 208,\n  ImUsed: 226,\n  MultipleChoices: 300,\n  MovedPermanently: 301,\n  Found: 302,\n  SeeOther: 303,\n  NotModified: 304,\n  UseProxy: 305,\n  Unused: 306,\n  TemporaryRedirect: 307,\n  PermanentRedirect: 308,\n  BadRequest: 400,\n  Unauthorized: 401,\n  PaymentRequired: 402,\n  Forbidden: 403,\n  NotFound: 404,\n  MethodNotAllowed: 405,\n  NotAcceptable: 406,\n  ProxyAuthenticationRequired: 407,\n  RequestTimeout: 408,\n  Conflict: 409,\n  Gone: 410,\n  LengthRequired: 411,\n  PreconditionFailed: 412,\n  PayloadTooLarge: 413,\n  UriTooLong: 414,\n  UnsupportedMediaType: 415,\n  RangeNotSatisfiable: 416,\n  ExpectationFailed: 417,\n  ImATeapot: 418,\n  MisdirectedRequest: 421,\n  UnprocessableEntity: 422,\n  Locked: 423,\n  FailedDependency: 424,\n  TooEarly: 425,\n  UpgradeRequired: 426,\n  PreconditionRequired: 428,\n  TooManyRequests: 429,\n  RequestHeaderFieldsTooLarge: 431,\n  UnavailableForLegalReasons: 451,\n  InternalServerError: 500,\n  NotImplemented: 501,\n  BadGateway: 502,\n  ServiceUnavailable: 503,\n  GatewayTimeout: 504,\n  HttpVersionNotSupported: 505,\n  VariantAlsoNegotiates: 506,\n  InsufficientStorage: 507,\n  LoopDetected: 508,\n  NotExtended: 510,\n  NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n  HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n  const context = new Axios(defaultConfig);\n  const instance = bind(Axios.prototype.request, context);\n\n  // Copy axios.prototype to instance\n  utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n  // Copy context to instance\n  utils.extend(instance, context, null, {allOwnKeys: true});\n\n  // Factory for creating new instances\n  instance.create = function create(instanceConfig) {\n    return createInstance(mergeConfig(defaultConfig, instanceConfig));\n  };\n\n  return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n  return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n  Axios,\n  AxiosError,\n  CanceledError,\n  isCancel,\n  CancelToken,\n  VERSION,\n  all,\n  Cancel,\n  isAxiosError,\n  spread,\n  toFormData,\n  AxiosHeaders,\n  HttpStatusCode,\n  formToJSON,\n  getAdapter,\n  mergeConfig\n} = axios;\n\nexport {\n  axios as default,\n  Axios,\n  AxiosError,\n  CanceledError,\n  isCancel,\n  CancelToken,\n  VERSION,\n  all,\n  Cancel,\n  isAxiosError,\n  spread,\n  toFormData,\n  AxiosHeaders,\n  HttpStatusCode,\n  formToJSON,\n  getAdapter,\n  mergeConfig\n}\n","/**\n * HTTP client implementation using Axios\n */\n\nimport axios, { type AxiosInstance, type AxiosResponse, type AxiosError, isAxiosError } from 'axios'\nimport type { RequestConfig, ApiResponse, ApiError } from '../types'\n\n/**\n * HTTP client for making requests using Axios\n */\nexport class HttpClient {\n  private axiosInstance: AxiosInstance\n\n  constructor(config: Partial<RequestConfig> = {}) {\n    // Create Axios instance with default configuration\n    const axiosConfig: any = {\n      timeout: config.timeout || 30000,\n      responseType:\n        (config.responseType === 'arrayBuffer' ? 'arraybuffer' : config.responseType) || 'json',\n      validateStatus: config.validateStatus || (status => status >= 200 && status < 300),\n    }\n\n    // Add optional properties only if they exist\n    if (config.baseURL) axiosConfig.baseURL = config.baseURL\n    if (config.headers) axiosConfig.headers = config.headers\n    if (config.params) axiosConfig.params = config.params\n    if (config.withCredentials !== undefined) axiosConfig.withCredentials = config.withCredentials\n    if (config.maxRedirects !== undefined) axiosConfig.maxRedirects = config.maxRedirects\n    if (config.signal) axiosConfig.signal = config.signal\n\n    this.axiosInstance = axios.create(axiosConfig)\n  }\n\n  /**\n   * Transform Axios response to our ApiResponse format\n   */\n  private transformAxiosResponse<T>(response: AxiosResponse<T>): ApiResponse<T> {\n    return {\n      data: response.data,\n      status: response.status,\n      statusText: response.statusText,\n      headers: response.headers as Record<string, string>,\n      config: response.config as unknown as RequestConfig,\n      request: response.request,\n    }\n  }\n\n  /**\n   * Transform Axios error to our ApiError format\n   */\n  private transformAxiosError(error: AxiosError): ApiError {\n    const apiError: ApiError = {\n      name: 'ApiError',\n      message: error.message,\n      config: error.config as unknown as RequestConfig,\n      request: error.request,\n      response: error.response ? this.transformAxiosResponse(error.response) : undefined,\n      code: error.code || 'UNKNOWN_ERROR',\n      isAxiosError: true,\n      toJSON: () => ({\n        name: 'ApiError',\n        message: error.message,\n        code: error.code || 'UNKNOWN_ERROR',\n        status: error.response?.status,\n        config: error.config as unknown as RequestConfig,\n        stack: (error as Error).stack,\n      }),\n    } as ApiError\n\n    // Copy Error prototype methods\n    Object.setPrototypeOf(apiError, Error.prototype)\n\n    return apiError\n  }\n\n  /**\n   * Makes an HTTP request using Axios\n   */\n  async request<T = any>(config: RequestConfig): Promise<ApiResponse<T>> {\n    try {\n      // Transform our config to Axios config\n      const axiosConfig: any = { ...config }\n\n      // Handle responseType mapping\n      if (config.responseType === 'arrayBuffer') {\n        axiosConfig.responseType = 'arraybuffer'\n      }\n\n      const response = await this.axiosInstance.request<T>(axiosConfig)\n      return this.transformAxiosResponse<T>(response)\n    } catch (error) {\n      if (isAxiosError(error)) {\n        throw this.transformAxiosError(error)\n      }\n      throw error\n    }\n  }\n\n  /**\n   * GET request\n   */\n  async get<T = any>(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'GET' })\n  }\n\n  /**\n   * POST request\n   */\n  async post<T = any>(\n    url: string,\n    data?: any,\n    config?: Partial<RequestConfig>\n  ): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'POST', data })\n  }\n\n  /**\n   * PUT request\n   */\n  async put<T = any>(\n    url: string,\n    data?: any,\n    config?: Partial<RequestConfig>\n  ): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'PUT', data })\n  }\n\n  /**\n   * PATCH request\n   */\n  async patch<T = any>(\n    url: string,\n    data?: any,\n    config?: Partial<RequestConfig>\n  ): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'PATCH', data })\n  }\n\n  /**\n   * DELETE request\n   */\n  async delete<T = any>(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'DELETE' })\n  }\n\n  /**\n   * HEAD request\n   */\n  async head<T = any>(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'HEAD' })\n  }\n\n  /**\n   * OPTIONS request\n   */\n  async options<T = any>(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'OPTIONS' })\n  }\n\n  /**\n   * Add request interceptor\n   */\n  addRequestInterceptor(\n    onFulfilled?: (config: any) => any | Promise<any>,\n    onRejected?: (error: any) => any\n  ) {\n    return this.axiosInstance.interceptors.request.use(onFulfilled, onRejected)\n  }\n\n  /**\n   * Add response interceptor\n   */\n  addResponseInterceptor(\n    onFulfilled?: (response: AxiosResponse) => any | Promise<any>,\n    onRejected?: (error: any) => any\n  ) {\n    return this.axiosInstance.interceptors.response.use(onFulfilled, onRejected)\n  }\n\n  /**\n   * Remove request interceptor\n   */\n  removeRequestInterceptor(interceptorId: number) {\n    this.axiosInstance.interceptors.request.eject(interceptorId)\n  }\n\n  /**\n   * Remove response interceptor\n   */\n  removeResponseInterceptor(interceptorId: number) {\n    this.axiosInstance.interceptors.response.eject(interceptorId)\n  }\n\n  /**\n   * Get the underlying Axios instance\n   */\n  getAxiosInstance(): AxiosInstance {\n    return this.axiosInstance\n  }\n}\n","/**\n * In-memory cache storage\n */\n\nimport type { CacheEntry } from '../types'\nimport type { CacheStorage } from './cache-manager'\n\n/**\n * In-memory cache storage implementation\n */\nexport class MemoryCache implements CacheStorage {\n  private cache = new Map<string, CacheEntry>()\n\n  /**\n   * Gets a cache entry\n   */\n  get<T>(key: string): CacheEntry<T> | null {\n    const entry = this.cache.get(key)\n    return entry ? (entry as CacheEntry<T>) : null\n  }\n\n  /**\n   * Sets a cache entry\n   */\n  set<T>(key: string, entry: CacheEntry<T>): void {\n    this.cache.set(key, entry)\n  }\n\n  /**\n   * Deletes a cache entry\n   */\n  delete(key: string): void {\n    this.cache.delete(key)\n  }\n\n  /**\n   * Clears all cache entries\n   */\n  clear(): void {\n    this.cache.clear()\n  }\n\n  /**\n   * Gets the number of cached entries\n   */\n  size(): number {\n    return this.cache.size\n  }\n\n  /**\n   * Gets all cache keys\n   */\n  keys(): string[] {\n    return Array.from(this.cache.keys())\n  }\n\n  /**\n   * Gets all cache values\n   */\n  values(): CacheEntry[] {\n    return Array.from(this.cache.values())\n  }\n\n  /**\n   * Gets all cache entries\n   */\n  entries(): Array<[string, CacheEntry]> {\n    return Array.from(this.cache.entries())\n  }\n\n  /**\n   * Checks if a key exists in cache\n   */\n  has(key: string): boolean {\n    return this.cache.has(key)\n  }\n\n  /**\n   * Iterates over cache entries\n   */\n  forEach(callback: (entry: CacheEntry, key: string) => void): void {\n    this.cache.forEach(callback)\n  }\n\n  /**\n   * Gets cache statistics\n   */\n  getStats(): {\n    size: number\n    memoryUsage: number\n  } {\n    let memoryUsage = 0\n\n    // Estimate memory usage (rough calculation)\n    for (const [key, entry] of this.cache.entries()) {\n      memoryUsage += key.length * 2 // UTF-16 characters\n      memoryUsage += this.estimateObjectSize(entry)\n    }\n\n    return {\n      size: this.cache.size,\n      memoryUsage,\n    }\n  }\n\n  /**\n   * Estimates the size of an object in bytes\n   */\n  private estimateObjectSize(obj: any): number {\n    let size = 0\n\n    if (obj === null || obj === undefined) {\n      return 0\n    }\n\n    if (typeof obj === 'string') {\n      return obj.length * 2 // UTF-16\n    }\n\n    if (typeof obj === 'number') {\n      return 8 // 64-bit number\n    }\n\n    if (typeof obj === 'boolean') {\n      return 4\n    }\n\n    if (Array.isArray(obj)) {\n      for (const item of obj) {\n        size += this.estimateObjectSize(item)\n      }\n      return size\n    }\n\n    if (typeof obj === 'object') {\n      for (const [key, value] of Object.entries(obj)) {\n        size += key.length * 2 // Key size\n        size += this.estimateObjectSize(value) // Value size\n      }\n      return size\n    }\n\n    return 0\n  }\n\n  /**\n   * Cleans up expired entries\n   */\n  cleanup(): number {\n    let cleaned = 0\n    const now = Date.now()\n\n    for (const [key, entry] of this.cache.entries()) {\n      if (now - entry.timestamp > entry.ttl) {\n        this.cache.delete(key)\n        cleaned++\n      }\n    }\n\n    return cleaned\n  }\n\n  /**\n   * Gets entries sorted by timestamp (oldest first)\n   */\n  getEntriesByAge(): Array<[string, CacheEntry]> {\n    return Array.from(this.cache.entries()).sort(([, a], [, b]) => a.timestamp - b.timestamp)\n  }\n\n  /**\n   * Removes oldest entries to free up space\n   */\n  evictOldest(count: number): string[] {\n    const evicted: string[] = []\n    const sortedEntries = this.getEntriesByAge()\n\n    for (let i = 0; i < count && i < sortedEntries.length; i++) {\n      const [key] = sortedEntries[i]!\n      this.cache.delete(key)\n      evicted.push(key)\n    }\n\n    return evicted\n  }\n\n  /**\n   * Sets maximum cache size with LRU eviction\n   */\n  setMaxSize(maxSize: number): void {\n    if (this.cache.size > maxSize) {\n      const toEvict = this.cache.size - maxSize\n      this.evictOldest(toEvict)\n    }\n  }\n\n  /**\n   * Gets cache hit ratio (requires tracking)\n   */\n  getHitRatio(): number {\n    // This would require additional tracking of hits/misses\n    // For now, return 0 as placeholder\n    return 0\n  }\n\n  /**\n   * Exports cache data for serialization\n   */\n  export(): Record<string, CacheEntry> {\n    const exported: Record<string, CacheEntry> = {}\n\n    for (const [key, entry] of this.cache.entries()) {\n      exported[key] = entry\n    }\n\n    return exported\n  }\n\n  /**\n   * Imports cache data from serialized format\n   */\n  import(data: Record<string, CacheEntry>): void {\n    this.cache.clear()\n\n    for (const [key, entry] of Object.entries(data)) {\n      this.cache.set(key, entry)\n    }\n  }\n\n  /**\n   * Creates a snapshot of current cache state\n   */\n  snapshot(): Map<string, CacheEntry> {\n    return new Map(this.cache)\n  }\n\n  /**\n   * Restores cache from a snapshot\n   */\n  restore(snapshot: Map<string, CacheEntry>): void {\n    this.cache = new Map(snapshot)\n  }\n}\n","/**\n * Browser storage cache implementation\n */\n\nimport type { CacheEntry } from '../types'\nimport type { CacheStorage } from './cache-manager'\n\n/**\n * Browser storage cache implementation (localStorage/sessionStorage)\n */\nexport class StorageCache implements CacheStorage {\n  private storage: Storage | null = null\n  private prefix: string\n\n  constructor(storageType: 'localStorage' | 'sessionStorage' = 'localStorage') {\n    this.prefix = `dbs_api_cache_${storageType}_`\n\n    try {\n      this.storage = storageType === 'localStorage' ? localStorage : sessionStorage\n\n      // Test if storage is available\n      const testKey = this.prefix + 'test'\n      this.storage.setItem(testKey, 'test')\n      this.storage.removeItem(testKey)\n    } catch {\n      this.storage = null\n      console.warn(`${storageType} is not available, falling back to memory cache`)\n    }\n  }\n\n  /**\n   * Gets a cache entry\n   */\n  get<T>(key: string): CacheEntry<T> | null {\n    if (!this.storage) {\n      return null\n    }\n\n    try {\n      const item = this.storage.getItem(this.prefix + key)\n      if (!item) {\n        return null\n      }\n\n      const entry = JSON.parse(item) as CacheEntry<T>\n\n      // Check if entry has expired\n      if (Date.now() - entry.timestamp > entry.ttl) {\n        this.delete(key)\n        return null\n      }\n\n      return entry\n    } catch {\n      return null\n    }\n  }\n\n  /**\n   * Sets a cache entry\n   */\n  set<T>(key: string, entry: CacheEntry<T>): void {\n    if (!this.storage) {\n      return\n    }\n\n    try {\n      const serialized = JSON.stringify(entry)\n      this.storage.setItem(this.prefix + key, serialized)\n    } catch (error) {\n      // Handle quota exceeded error\n      if (this.isQuotaExceededError(error)) {\n        this.cleanup()\n\n        // Try again after cleanup\n        try {\n          const serialized = JSON.stringify(entry)\n          this.storage.setItem(this.prefix + key, serialized)\n        } catch {\n          // If still failing, remove oldest entries\n          this.evictOldest(5)\n\n          try {\n            const serialized = JSON.stringify(entry)\n            this.storage.setItem(this.prefix + key, serialized)\n          } catch {\n            console.warn('Unable to store cache entry due to storage quota')\n          }\n        }\n      }\n    }\n  }\n\n  /**\n   * Deletes a cache entry\n   */\n  delete(key: string): void {\n    if (!this.storage) {\n      return\n    }\n\n    this.storage.removeItem(this.prefix + key)\n  }\n\n  /**\n   * Clears all cache entries\n   */\n  clear(): void {\n    if (!this.storage) {\n      return\n    }\n\n    const keys = this.keys()\n    for (const key of keys) {\n      this.delete(key)\n    }\n  }\n\n  /**\n   * Gets the number of cached entries\n   */\n  size(): number {\n    return this.keys().length\n  }\n\n  /**\n   * Gets all cache keys\n   */\n  keys(): string[] {\n    if (!this.storage) {\n      return []\n    }\n\n    const keys: string[] = []\n\n    for (let i = 0; i < this.storage.length; i++) {\n      const key = this.storage.key(i)\n      if (key && key.startsWith(this.prefix)) {\n        keys.push(key.substring(this.prefix.length))\n      }\n    }\n\n    return keys\n  }\n\n  /**\n   * Gets all cache entries\n   */\n  entries(): Array<[string, CacheEntry]> {\n    const entries: Array<[string, CacheEntry]> = []\n    const keys = this.keys()\n\n    for (const key of keys) {\n      const entry = this.get(key)\n      if (entry) {\n        entries.push([key, entry])\n      }\n    }\n\n    return entries\n  }\n\n  /**\n   * Checks if a key exists in cache\n   */\n  has(key: string): boolean {\n    if (!this.storage) {\n      return false\n    }\n\n    return this.storage.getItem(this.prefix + key) !== null\n  }\n\n  /**\n   * Gets storage usage information\n   */\n  getStorageInfo(): {\n    used: number\n    available: number\n    total: number\n  } {\n    if (!this.storage) {\n      return { used: 0, available: 0, total: 0 }\n    }\n\n    let used = 0\n\n    // Calculate used space\n    for (let i = 0; i < this.storage.length; i++) {\n      const key = this.storage.key(i)\n      if (key) {\n        const value = this.storage.getItem(key)\n        used += key.length + (value?.length || 0)\n      }\n    }\n\n    // Estimate total available space (varies by browser)\n    const total = 5 * 1024 * 1024 // 5MB estimate\n    const available = Math.max(0, total - used)\n\n    return { used, available, total }\n  }\n\n  /**\n   * Cleans up expired entries\n   */\n  cleanup(): number {\n    if (!this.storage) {\n      return 0\n    }\n\n    let cleaned = 0\n    const keys = this.keys()\n    const now = Date.now()\n\n    for (const key of keys) {\n      try {\n        const item = this.storage.getItem(this.prefix + key)\n        if (item) {\n          const entry = JSON.parse(item) as CacheEntry\n          if (now - entry.timestamp > entry.ttl) {\n            this.delete(key)\n            cleaned++\n          }\n        }\n      } catch {\n        // Remove corrupted entries\n        this.delete(key)\n        cleaned++\n      }\n    }\n\n    return cleaned\n  }\n\n  /**\n   * Evicts oldest entries\n   */\n  evictOldest(count: number): string[] {\n    if (!this.storage) {\n      return []\n    }\n\n    const entries = this.entries()\n    const sortedEntries = entries.sort(([, a], [, b]) => a.timestamp - b.timestamp)\n    const evicted: string[] = []\n\n    for (let i = 0; i < count && i < sortedEntries.length; i++) {\n      const [key] = sortedEntries[i]!\n      this.delete(key)\n      evicted.push(key)\n    }\n\n    return evicted\n  }\n\n  /**\n   * Checks if error is quota exceeded\n   */\n  private isQuotaExceededError(error: any): boolean {\n    return (\n      error instanceof DOMException &&\n      (error.code === 22 ||\n        error.code === 1014 ||\n        error.name === 'QuotaExceededError' ||\n        error.name === 'NS_ERROR_DOM_QUOTA_REACHED')\n    )\n  }\n\n  /**\n   * Gets cache statistics\n   */\n  getStats(): {\n    size: number\n    storageUsed: number\n    storageAvailable: number\n    hitRate: number\n  } {\n    const storageInfo = this.getStorageInfo()\n\n    return {\n      size: this.size(),\n      storageUsed: storageInfo.used,\n      storageAvailable: storageInfo.available,\n      hitRate: 0, // Would require additional tracking\n    }\n  }\n\n  /**\n   * Exports cache data\n   */\n  export(): Record<string, CacheEntry> {\n    const exported: Record<string, CacheEntry> = {}\n    const entries = this.entries()\n\n    for (const [key, entry] of entries) {\n      exported[key] = entry\n    }\n\n    return exported\n  }\n\n  /**\n   * Imports cache data\n   */\n  import(data: Record<string, CacheEntry>): void {\n    this.clear()\n\n    for (const [key, entry] of Object.entries(data)) {\n      this.set(key, entry)\n    }\n  }\n\n  /**\n   * Checks if storage is available\n   */\n  isAvailable(): boolean {\n    return this.storage !== null\n  }\n\n  /**\n   * Gets storage type\n   */\n  getStorageType(): 'localStorage' | 'sessionStorage' | 'unavailable' {\n    if (!this.storage) {\n      return 'unavailable'\n    }\n\n    return this.storage === localStorage ? 'localStorage' : 'sessionStorage'\n  }\n}\n","/**\n * Cache manager for API responses\n */\n\nimport { MemoryCache } from './memory-cache'\nimport { StorageCache } from './storage-cache'\nimport type { CacheConfig, RequestConfig, ApiResponse, CacheEntry } from '../types'\n\n/**\n * Interface for cache storage\n */\nexport interface CacheStorage {\n  get<T>(key: string): Promise<CacheEntry<T> | null> | CacheEntry<T> | null\n  set<T>(key: string, entry: CacheEntry<T>): Promise<void> | void\n  delete(key: string): Promise<void> | void\n  clear(): Promise<void> | void\n  size(): Promise<number> | number\n  keys(): Promise<string[]> | string[]\n}\n\n/**\n * Cache manager for API responses\n */\nexport class CacheManager {\n  private storage: CacheStorage\n  private config: CacheConfig\n\n  constructor(config: CacheConfig) {\n    this.config = {\n      ttl: 5 * 60 * 1000, // 5 minutes default\n      maxSize: 100,\n      storage: 'memory',\n      ...config,\n    }\n\n    // Initialize storage based on configuration\n    this.storage = this.createStorage()\n  }\n\n  /**\n   * Gets a cached response\n   */\n  async get<T>(config: RequestConfig): Promise<ApiResponse<T> | null> {\n    if (!this.config.enabled) {\n      return null\n    }\n\n    const key = this.generateKey(config)\n    const entry = await Promise.resolve(this.storage.get<T>(key))\n\n    if (!entry) {\n      return null\n    }\n\n    // Check if entry has expired\n    if (this.isExpired(entry)) {\n      await Promise.resolve(this.storage.delete(key))\n      return null\n    }\n\n    // Return cached response\n    return {\n      data: entry.data,\n      status: 200,\n      statusText: 'OK',\n      headers: entry.headers || {},\n      config,\n    } as ApiResponse<T>\n  }\n\n  /**\n   * Sets a response in cache\n   */\n  async set<T>(config: RequestConfig, response: ApiResponse<T>): Promise<void> {\n    if (!this.config.enabled) {\n      return\n    }\n\n    // Check if we should cache this response\n    if (this.config.shouldCache && !this.config.shouldCache(config)) {\n      return\n    }\n\n    const key = this.generateKey(config)\n    const entry: CacheEntry<T> = {\n      data: response.data,\n      timestamp: Date.now(),\n      ttl: this.config.ttl!,\n      headers: response.headers,\n    }\n\n    // Check cache size limit\n    await this.enforceMaxSize()\n\n    await Promise.resolve(this.storage.set(key, entry))\n  }\n\n  /**\n   * Deletes a cached entry\n   */\n  async delete(config: RequestConfig): Promise<void> {\n    const key = this.generateKey(config)\n    await Promise.resolve(this.storage.delete(key))\n  }\n\n  /**\n   * Clears all cached entries\n   */\n  async clear(): Promise<void> {\n    await Promise.resolve(this.storage.clear())\n  }\n\n  /**\n   * Invalidates cache entries based on pattern\n   */\n  async invalidate(pattern: string | RegExp): Promise<void> {\n    const keys = await Promise.resolve(this.storage.keys())\n    const regex = typeof pattern === 'string' ? new RegExp(pattern) : pattern\n\n    for (const key of keys) {\n      if (regex.test(key)) {\n        await Promise.resolve(this.storage.delete(key))\n      }\n    }\n  }\n\n  /**\n   * Gets cache statistics\n   */\n  async getStats(): Promise<{\n    size: number\n    maxSize: number\n    hitRate: number\n    missRate: number\n    totalRequests: number\n    hits: number\n    misses: number\n  }> {\n    const size = await Promise.resolve(this.storage.size())\n\n    // Note: Hit/miss tracking would require additional implementation\n    return {\n      size,\n      maxSize: this.config.maxSize!,\n      hitRate: 0,\n      missRate: 0,\n      totalRequests: 0,\n      hits: 0,\n      misses: 0,\n    }\n  }\n\n  /**\n   * Updates cache configuration\n   */\n  updateConfig(config: Partial<CacheConfig>): void {\n    this.config = { ...this.config, ...config }\n\n    // Recreate storage if storage type changed\n    if (config.storage) {\n      this.storage = this.createStorage()\n    }\n  }\n\n  /**\n   * Cleans up expired entries\n   */\n  async cleanup(): Promise<number> {\n    const keys = await Promise.resolve(this.storage.keys())\n    let cleaned = 0\n\n    for (const key of keys) {\n      const entry = await Promise.resolve(this.storage.get(key))\n      if (entry && this.isExpired(entry)) {\n        await Promise.resolve(this.storage.delete(key))\n        cleaned++\n      }\n    }\n\n    return cleaned\n  }\n\n  /**\n   * Generates cache key for request\n   */\n  private generateKey(config: RequestConfig): string {\n    if (this.config.keyGenerator) {\n      return this.config.keyGenerator(config)\n    }\n\n    // Default key generation\n    const method = config.method || 'GET'\n    const url = config.url\n    const params = config.params ? JSON.stringify(config.params) : ''\n\n    return `${method}:${url}:${params}`\n  }\n\n  /**\n   * Checks if cache entry has expired\n   */\n  private isExpired(entry: CacheEntry): boolean {\n    return Date.now() - entry.timestamp > entry.ttl\n  }\n\n  /**\n   * Enforces maximum cache size\n   */\n  private async enforceMaxSize(): Promise<void> {\n    if (!this.config.maxSize) {\n      return\n    }\n\n    const size = await Promise.resolve(this.storage.size())\n\n    if (size >= this.config.maxSize) {\n      // Simple LRU: remove oldest entries\n      // Note: This is a simplified implementation\n      // A proper LRU would track access times\n      const keys = await Promise.resolve(this.storage.keys())\n      const entriesToRemove = Math.max(1, Math.floor(this.config.maxSize * 0.1)) // Remove 10%\n\n      for (let i = 0; i < entriesToRemove && i < keys.length; i++) {\n        await Promise.resolve(this.storage.delete(keys[i]!))\n      }\n    }\n  }\n\n  /**\n   * Creates storage instance based on configuration\n   */\n  private createStorage(): CacheStorage {\n    switch (this.config.storage) {\n      case 'localStorage':\n        return new StorageCache('localStorage')\n      case 'sessionStorage':\n        return new StorageCache('sessionStorage')\n      case 'memory':\n      default:\n        return new MemoryCache()\n    }\n  }\n}\n","/**\n * Retry manager for failed requests\n */\n\nimport type { RetryConfig, ApiError } from '../types'\n\n/**\n * Default retry condition - retry on network errors and 5xx status codes\n */\nconst defaultRetryCondition = (error: ApiError): boolean => {\n  if (!error.response) {\n    // Network error\n    return true\n  }\n\n  const status = error.response.status\n\n  // Retry on 5xx server errors\n  if (status >= 500 && status < 600) {\n    return true\n  }\n\n  // Retry on specific 4xx errors\n  if (status === 408 || status === 429) {\n    return true\n  }\n\n  return false\n}\n\n/**\n * Default retry delay - exponential backoff\n */\nconst defaultRetryDelay = (retryCount: number): number => {\n  return Math.min(1000 * Math.pow(2, retryCount), 30000) // Max 30 seconds\n}\n\n/**\n * Retry manager for handling failed requests\n */\nexport class RetryManager {\n  private config: Required<RetryConfig>\n\n  constructor(config: RetryConfig) {\n    this.config = {\n      retries: config.retries,\n      retryDelay: config.retryDelay || defaultRetryDelay,\n      retryCondition: config.retryCondition || defaultRetryCondition,\n      shouldResetTimeout: config.shouldResetTimeout ?? true,\n    }\n  }\n\n  /**\n   * Executes a function with retry logic\n   */\n  async execute<T>(operation: () => Promise<T>): Promise<T> {\n    let lastError: Error\n    let retryCount = 0\n\n    while (retryCount <= this.config.retries) {\n      try {\n        return await operation()\n      } catch (error) {\n        lastError = error as Error\n\n        // Check if we should retry\n        if (retryCount >= this.config.retries || !this.shouldRetry(error as ApiError)) {\n          break\n        }\n\n        // Calculate delay\n        const delay = this.calculateDelay(retryCount)\n\n        // Wait before retrying\n        if (delay > 0) {\n          await this.delay(delay)\n        }\n\n        retryCount++\n      }\n    }\n\n    throw lastError!\n  }\n\n  /**\n   * Updates retry configuration\n   */\n  updateConfig(config: Partial<RetryConfig>): void {\n    this.config = {\n      ...this.config,\n      ...config,\n      retryDelay: config.retryDelay || this.config.retryDelay,\n      retryCondition: config.retryCondition || this.config.retryCondition,\n    }\n  }\n\n  /**\n   * Gets current configuration\n   */\n  getConfig(): RetryConfig {\n    return { ...this.config }\n  }\n\n  /**\n   * Determines if an error should trigger a retry\n   */\n  private shouldRetry(error: ApiError): boolean {\n    return this.config.retryCondition(error)\n  }\n\n  /**\n   * Calculates retry delay\n   */\n  private calculateDelay(retryCount: number): number {\n    if (typeof this.config.retryDelay === 'function') {\n      return this.config.retryDelay(retryCount)\n    }\n    return this.config.retryDelay\n  }\n\n  /**\n   * Creates a delay promise\n   */\n  private delay(ms: number): Promise<void> {\n    return new Promise(resolve => setTimeout(resolve, ms))\n  }\n\n  /**\n   * Creates a retry manager with exponential backoff\n   */\n  static exponentialBackoff(\n    retries = 3,\n    baseDelay = 1000,\n    maxDelay = 30000\n  ): RetryManager {\n    return new RetryManager({\n      retries,\n      retryDelay: retryCount => Math.min(baseDelay * Math.pow(2, retryCount), maxDelay),\n      retryCondition: defaultRetryCondition,\n    })\n  }\n\n  /**\n   * Creates a retry manager with linear backoff\n   */\n  static linearBackoff(retries = 3, delay = 1000): RetryManager {\n    return new RetryManager({\n      retries,\n      retryDelay: retryCount => delay * (retryCount + 1),\n      retryCondition: defaultRetryCondition,\n    })\n  }\n\n  /**\n   * Creates a retry manager with fixed delay\n   */\n  static fixedDelay(retries = 3, delay = 1000): RetryManager {\n    return new RetryManager({\n      retries,\n      retryDelay: delay,\n      retryCondition: defaultRetryCondition,\n    })\n  }\n\n  /**\n   * Creates a retry manager for network errors only\n   */\n  static networkErrorsOnly(retries = 3): RetryManager {\n    return new RetryManager({\n      retries,\n      retryDelay: defaultRetryDelay,\n      retryCondition: error => !error.response, // Only network errors\n    })\n  }\n\n  /**\n   * Creates a retry manager for server errors only\n   */\n  static serverErrorsOnly(retries = 3): RetryManager {\n    return new RetryManager({\n      retries,\n      retryDelay: defaultRetryDelay,\n      retryCondition: error => {\n        const status = error.response?.status\n        return status ? status >= 500 && status < 600 : false\n      },\n    })\n  }\n\n  /**\n   * Creates a retry manager with custom condition\n   */\n  static custom(\n    retries: number,\n    retryCondition: (error: ApiError) => boolean,\n    retryDelay?: number | ((retryCount: number) => number)\n  ): RetryManager {\n    return new RetryManager({\n      retries,\n      retryCondition,\n      retryDelay: retryDelay || defaultRetryDelay,\n    })\n  }\n\n  /**\n   * Creates a retry manager that respects Retry-After headers\n   */\n  static withRetryAfter(retries = 3): RetryManager {\n    return new RetryManager({\n      retries,\n      retryCondition: defaultRetryCondition,\n      retryDelay: (retryCount, error?: ApiError) => {\n        // Check for Retry-After header\n        const retryAfter = error?.response?.headers?.['retry-after']\n\n        if (retryAfter) {\n          const seconds = Number.parseInt(retryAfter, 10)\n          if (!isNaN(seconds)) {\n            return seconds * 1000 // Convert to milliseconds\n          }\n        }\n\n        // Fallback to exponential backoff\n        return defaultRetryDelay(retryCount)\n      },\n    })\n  }\n\n  /**\n   * Creates a retry manager with jitter to avoid thundering herd\n   */\n  static withJitter(\n    retries = 3,\n    baseDelay = 1000,\n    maxDelay = 30000,\n    jitterFactor = 0.1\n  ): RetryManager {\n    return new RetryManager({\n      retries,\n      retryCondition: defaultRetryCondition,\n      retryDelay: retryCount => {\n        const exponentialDelay = Math.min(baseDelay * Math.pow(2, retryCount), maxDelay)\n        const jitter = exponentialDelay * jitterFactor * Math.random()\n        return exponentialDelay + jitter\n      },\n    })\n  }\n}\n","/**\n * Rate limiter for API requests\n */\n\nimport type { RateLimitConfig } from '../types'\n\n/**\n * Token bucket rate limiter\n */\nexport class RateLimiter {\n  private tokens: number\n  private lastRefill: number\n  private config: Required<RateLimitConfig>\n\n  constructor(config: RateLimitConfig) {\n    this.config = {\n      maxRequests: config.maxRequests,\n      perMilliseconds: config.perMilliseconds,\n      maxRPS: config.maxRPS || Math.ceil(config.maxRequests / (config.perMilliseconds / 1000)),\n    }\n\n    this.tokens = this.config.maxRequests\n    this.lastRefill = Date.now()\n  }\n\n  /**\n   * Acquires a token (waits if necessary)\n   */\n  async acquire(): Promise<void> {\n    this.refillTokens()\n\n    if (this.tokens >= 1) {\n      this.tokens--\n      return\n    }\n\n    // Wait for next token\n    const waitTime = this.calculateWaitTime()\n    if (waitTime > 0) {\n      await this.delay(waitTime)\n      return this.acquire()\n    }\n  }\n\n  /**\n   * Tries to acquire a token without waiting\n   */\n  tryAcquire(): boolean {\n    this.refillTokens()\n\n    if (this.tokens >= 1) {\n      this.tokens--\n      return true\n    }\n\n    return false\n  }\n\n  /**\n   * Gets the current number of available tokens\n   */\n  getAvailableTokens(): number {\n    this.refillTokens()\n    return Math.floor(this.tokens)\n  }\n\n  /**\n   * Gets the time until next token is available\n   */\n  getTimeUntilNextToken(): number {\n    this.refillTokens()\n\n    if (this.tokens >= 1) {\n      return 0\n    }\n\n    return this.calculateWaitTime()\n  }\n\n  /**\n   * Updates rate limit configuration\n   */\n  updateConfig(config: Partial<RateLimitConfig>): void {\n    this.config = {\n      ...this.config,\n      ...config,\n      maxRPS:\n        config.maxRPS ||\n        Math.ceil(\n          (config.maxRequests || this.config.maxRequests) /\n            ((config.perMilliseconds || this.config.perMilliseconds) / 1000)\n        ),\n    }\n\n    // Reset tokens to new maximum\n    this.tokens = Math.min(this.tokens, this.config.maxRequests)\n  }\n\n  /**\n   * Gets current configuration\n   */\n  getConfig(): RateLimitConfig {\n    return { ...this.config }\n  }\n\n  /**\n   * Resets the rate limiter\n   */\n  reset(): void {\n    this.tokens = this.config.maxRequests\n    this.lastRefill = Date.now()\n  }\n\n  /**\n   * Gets rate limiter statistics\n   */\n  getStats(): {\n    availableTokens: number\n    maxTokens: number\n    refillRate: number\n    timeUntilNextToken: number\n  } {\n    return {\n      availableTokens: this.getAvailableTokens(),\n      maxTokens: this.config.maxRequests,\n      refillRate: this.config.maxRequests / this.config.perMilliseconds,\n      timeUntilNextToken: this.getTimeUntilNextToken(),\n    }\n  }\n\n  /**\n   * Refills tokens based on elapsed time\n   */\n  private refillTokens(): void {\n    const now = Date.now()\n    const elapsed = now - this.lastRefill\n\n    if (elapsed > 0) {\n      const tokensToAdd = (elapsed / this.config.perMilliseconds) * this.config.maxRequests\n      this.tokens = Math.min(this.config.maxRequests, this.tokens + tokensToAdd)\n      this.lastRefill = now\n    }\n  }\n\n  /**\n   * Calculates wait time for next token\n   */\n  private calculateWaitTime(): number {\n    const tokensNeeded = 1 - this.tokens\n    const timePerToken = this.config.perMilliseconds / this.config.maxRequests\n    return Math.ceil(tokensNeeded * timePerToken)\n  }\n\n  /**\n   * Creates a delay promise\n   */\n  private delay(ms: number): Promise<void> {\n    return new Promise(resolve => setTimeout(resolve, ms))\n  }\n\n  /**\n   * Creates a rate limiter for requests per second\n   */\n  static perSecond(requestsPerSecond: number): RateLimiter {\n    return new RateLimiter({\n      maxRequests: requestsPerSecond,\n      perMilliseconds: 1000,\n    })\n  }\n\n  /**\n   * Creates a rate limiter for requests per minute\n   */\n  static perMinute(requestsPerMinute: number): RateLimiter {\n    return new RateLimiter({\n      maxRequests: requestsPerMinute,\n      perMilliseconds: 60000,\n    })\n  }\n\n  /**\n   * Creates a rate limiter for requests per hour\n   */\n  static perHour(requestsPerHour: number): RateLimiter {\n    return new RateLimiter({\n      maxRequests: requestsPerHour,\n      perMilliseconds: 3600000,\n    })\n  }\n\n  /**\n   * Creates a burst rate limiter (allows bursts up to maxBurst, then limits to sustainedRate)\n   */\n  static burst(\n    maxBurst: number,\n    sustainedRate: number,\n    perMilliseconds = 1000\n  ): RateLimiter {\n    return new RateLimiter({\n      maxRequests: maxBurst,\n      perMilliseconds,\n      maxRPS: sustainedRate,\n    })\n  }\n}\n","/**\n * Advanced API client with interceptors, caching, retry logic, and more\n * Now powered by Axios for robust HTTP handling\n */\n\nimport { HttpClient } from './http-client'\nimport { CacheManager } from '../cache/cache-manager'\nimport { RetryManager } from '../retry/retry-manager'\nimport { RateLimiter } from '../utils/rate-limiter'\nimport type { ApiClientConfig, RequestConfig, ApiResponse, ApiError } from '../types'\nimport type { AxiosResponse } from 'axios'\n\n/**\n * Advanced API client with comprehensive features using Axios\n */\nexport class ApiClient {\n  private httpClient: HttpClient\n  private cacheManager?: CacheManager\n  private retryManager?: RetryManager\n  private rateLimiter?: RateLimiter\n  private config: ApiClientConfig\n  private interceptorIds: number[] = []\n\n  constructor(config: ApiClientConfig = {}) {\n    this.config = config\n    this.httpClient = new HttpClient(config as Partial<RequestConfig>)\n\n    // Initialize optional features\n    if (config.cache?.enabled) {\n      this.cacheManager = new CacheManager(config.cache)\n    }\n\n    if (config.retry) {\n      this.retryManager = new RetryManager(config.retry)\n    }\n\n    if (config.rateLimit) {\n      this.rateLimiter = new RateLimiter(config.rateLimit)\n    }\n\n    // Set up Axios interceptors\n    this.setupAxiosInterceptors()\n  }\n\n  /**\n   * Set up Axios interceptors for caching, rate limiting, and event handling\n   */\n  private setupAxiosInterceptors(): void {\n    // Request interceptor for rate limiting and caching\n    const requestInterceptorId = this.httpClient.addRequestInterceptor(\n      async (config: any) => {\n        // Apply rate limiting\n        if (this.rateLimiter) {\n          await this.rateLimiter.acquire()\n        }\n\n        // Call event handler\n        if (this.config.onRequest) {\n          this.config.onRequest(config as RequestConfig)\n        }\n\n        return config\n      },\n      (error: any) => {\n        return Promise.reject(error)\n      }\n    )\n\n    // Response interceptor for caching and event handling\n    const responseInterceptorId = this.httpClient.addResponseInterceptor(\n      async (response: AxiosResponse) => {\n        const apiResponse = response as unknown as ApiResponse<any>\n\n        // Call event handler\n        if (this.config.onResponse) {\n          this.config.onResponse(apiResponse)\n        }\n\n        // Cache the response if applicable\n        if (\n          this.cacheManager &&\n          this.shouldCacheResponse(response.config as unknown as RequestConfig, apiResponse)\n        ) {\n          await this.cacheManager.set(response.config as unknown as RequestConfig, apiResponse)\n        }\n\n        return response\n      },\n      (error: any) => {\n        // Call error event handler\n        if (this.config.onError) {\n          this.config.onError(error as ApiError)\n        }\n\n        return Promise.reject(error)\n      }\n    )\n\n    this.interceptorIds.push(requestInterceptorId, responseInterceptorId)\n  }\n\n  /**\n   * Makes an HTTP request with all features applied\n   */\n  async request<T = any>(config: RequestConfig): Promise<ApiResponse<T>> {\n    // Check cache first\n    if (this.cacheManager && this.shouldUseCache(config)) {\n      const cached = await this.cacheManager.get<T>(config)\n      if (cached) {\n        return cached\n      }\n    }\n\n    // Execute request with retry logic if configured\n    const executeRequest = async (): Promise<ApiResponse<T>> => {\n      return await this.httpClient.request<T>(config)\n    }\n\n    if (this.retryManager) {\n      return await this.retryManager.execute(executeRequest)\n    } else {\n      return await executeRequest()\n    }\n  }\n\n  /**\n   * GET request\n   */\n  async get<T = any>(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'GET' })\n  }\n\n  /**\n   * POST request\n   */\n  async post<T = any>(\n    url: string,\n    data?: any,\n    config?: Partial<RequestConfig>\n  ): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'POST', data })\n  }\n\n  /**\n   * PUT request\n   */\n  async put<T = any>(\n    url: string,\n    data?: any,\n    config?: Partial<RequestConfig>\n  ): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'PUT', data })\n  }\n\n  /**\n   * PATCH request\n   */\n  async patch<T = any>(\n    url: string,\n    data?: any,\n    config?: Partial<RequestConfig>\n  ): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'PATCH', data })\n  }\n\n  /**\n   * DELETE request\n   */\n  async delete<T = any>(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'DELETE' })\n  }\n\n  /**\n   * HEAD request\n   */\n  async head(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<void>> {\n    return this.request<void>({ ...config, url, method: 'HEAD' })\n  }\n\n  /**\n   * OPTIONS request\n   */\n  async options<T = any>(url: string, config?: Partial<RequestConfig>): Promise<ApiResponse<T>> {\n    return this.request<T>({ ...config, url, method: 'OPTIONS' })\n  }\n\n  /**\n   * Adds a request interceptor using Axios\n   */\n  addRequestInterceptor(\n    onFulfilled?: (config: any) => any | Promise<any>,\n    onRejected?: (error: any) => any\n  ): number {\n    return this.httpClient.addRequestInterceptor(onFulfilled, onRejected)\n  }\n\n  /**\n   * Adds a response interceptor using Axios\n   */\n  addResponseInterceptor(\n    onFulfilled?: (response: any) => any | Promise<any>,\n    onRejected?: (error: any) => any\n  ): number {\n    return this.httpClient.addResponseInterceptor(onFulfilled, onRejected)\n  }\n\n  /**\n   * Removes a request interceptor\n   */\n  removeRequestInterceptor(id: number): void {\n    this.httpClient.removeRequestInterceptor(id)\n  }\n\n  /**\n   * Removes a response interceptor\n   */\n  removeResponseInterceptor(id: number): void {\n    this.httpClient.removeResponseInterceptor(id)\n  }\n\n  /**\n   * Clears all custom interceptors (keeps built-in ones)\n   */\n  clearInterceptors(): void {\n    // Note: This only clears custom interceptors, not the built-in ones for caching/rate limiting\n    // The built-in interceptors are managed internally\n  }\n\n  /**\n   * Clears cache\n   */\n  clearCache(): void {\n    if (this.cacheManager) {\n      this.cacheManager.clear()\n    }\n  }\n\n  /**\n   * Gets cache statistics\n   */\n  getCacheStats(): any {\n    return this.cacheManager?.getStats() || null\n  }\n\n  /**\n   * Updates client configuration\n   */\n  updateConfig(config: Partial<ApiClientConfig>): void {\n    this.config = { ...this.config, ...config }\n\n    // Clear existing interceptors\n    this.interceptorIds.forEach(id => {\n      this.httpClient.removeRequestInterceptor(id)\n      this.httpClient.removeResponseInterceptor(id)\n    })\n    this.interceptorIds = []\n\n    // Update HTTP client\n    this.httpClient = new HttpClient(this.config as Partial<RequestConfig>)\n\n    // Re-setup interceptors with new config\n    this.setupAxiosInterceptors()\n\n    // Update cache manager\n    if (config.cache && this.cacheManager) {\n      this.cacheManager.updateConfig(config.cache)\n    }\n\n    // Update retry manager\n    if (config.retry && this.retryManager) {\n      this.retryManager.updateConfig(config.retry)\n    }\n\n    // Update rate limiter\n    if (config.rateLimit && this.rateLimiter) {\n      this.rateLimiter.updateConfig(config.rateLimit)\n    }\n  }\n\n  /**\n   * Gets current configuration\n   */\n  getConfig(): ApiClientConfig {\n    return { ...this.config }\n  }\n\n  /**\n   * Gets the underlying Axios instance for advanced usage\n   */\n  getAxiosInstance() {\n    return this.httpClient.getAxiosInstance()\n  }\n\n  /**\n   * Gets the underlying HTTP client\n   */\n  getHttpClient(): HttpClient {\n    return this.httpClient\n  }\n\n  /**\n   * Determines if cache should be used for request\n   */\n  private shouldUseCache(config: RequestConfig): boolean {\n    if (!this.cacheManager) return false\n\n    // Only cache GET requests by default\n    if (config.method && config.method !== 'GET') return false\n\n    // Check custom cache condition\n    if (this.config.cache?.shouldCache) {\n      return this.config.cache.shouldCache(config)\n    }\n\n    return true\n  }\n\n  /**\n   * Determines if response should be cached\n   */\n  private shouldCacheResponse(config: RequestConfig, response: ApiResponse): boolean {\n    if (!this.cacheManager) return false\n\n    // Don't cache error responses\n    if (response.status >= 400) return false\n\n    return this.shouldUseCache(config)\n  }\n}\n","/**\n * Common interceptors for API requests and responses\n */\n\nimport type { RequestConfig, ApiResponse, RequestInterceptor, ResponseInterceptor } from '../types'\n\n/**\n * Authentication interceptor that adds bearer token to requests\n */\nexport function createAuthInterceptor(getToken: () => string | null): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      const token = getToken()\n      if (token) {\n        config.headers = {\n          ...config.headers,\n          Authorization: `Bearer ${token}`,\n        }\n      }\n      return config\n    },\n  }\n}\n\n/**\n * Base URL interceptor\n */\nexport function createBaseUrlInterceptor(baseURL: string): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      if (!config.baseURL && !isAbsoluteUrl(config.url)) {\n        config.baseURL = baseURL\n      }\n      return config\n    },\n  }\n}\n\n/**\n * Request ID interceptor that adds unique request IDs\n */\nexport function createRequestIdInterceptor(): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      config.headers = {\n        ...config.headers,\n        'X-Request-ID': generateRequestId(),\n      }\n      return config\n    },\n  }\n}\n\n/**\n * Content type interceptor\n */\nexport function createContentTypeInterceptor(contentType: string): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      if (config.data && !config.headers?.['Content-Type'] && !config.headers?.['content-type']) {\n        config.headers = {\n          ...config.headers,\n          'Content-Type': contentType,\n        }\n      }\n      return config\n    },\n  }\n}\n\n/**\n * User agent interceptor\n */\nexport function createUserAgentInterceptor(userAgent: string): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      config.headers = {\n        ...config.headers,\n        'User-Agent': userAgent,\n      }\n      return config\n    },\n  }\n}\n\n/**\n * API version interceptor\n */\nexport function createApiVersionInterceptor(\n  version: string,\n  headerName = 'X-API-Version'\n): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      config.headers = {\n        ...config.headers,\n        [headerName]: version,\n      }\n      return config\n    },\n  }\n}\n\n/**\n * Logging interceptor for requests\n */\nexport function createRequestLoggingInterceptor(\n  logger: (message: string, data?: any) => void = console.log\n): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      logger('API Request', {\n        method: config.method,\n        url: config.url,\n        headers: config.headers,\n        data: config.data,\n      })\n      return config\n    },\n    onRejected: error => {\n      logger('API Request Error', error)\n      return Promise.reject(error)\n    },\n  }\n}\n\n/**\n * Logging interceptor for responses\n */\nexport function createResponseLoggingInterceptor(\n  logger: (message: string, data?: any) => void = console.log\n): ResponseInterceptor {\n  return {\n    onFulfilled: response => {\n      logger('API Response', {\n        status: response.status,\n        statusText: response.statusText,\n        headers: response.headers,\n        data: response.data,\n      })\n      return response\n    },\n    onRejected: error => {\n      logger('API Response Error', {\n        status: error.response?.status,\n        statusText: error.response?.statusText,\n        message: error.message,\n        data: error.response?.data,\n      })\n      return Promise.reject(error)\n    },\n  }\n}\n\n/**\n * Response transformation interceptor\n */\nexport function createResponseTransformInterceptor<T, U>(\n  transformer: (data: T) => U\n): ResponseInterceptor {\n  return {\n    onFulfilled: response => {\n      response.data = transformer(response.data)\n      return response\n    },\n  }\n}\n\n/**\n * Error handling interceptor\n */\nexport function createErrorHandlingInterceptor(\n  errorHandler: (error: any) => any\n): ResponseInterceptor {\n  return {\n    onRejected: error => {\n      return errorHandler(error)\n    },\n  }\n}\n\n/**\n * Timeout interceptor\n */\nexport function createTimeoutInterceptor(timeout: number): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      if (!config.timeout) {\n        config.timeout = timeout\n      }\n      return config\n    },\n  }\n}\n\n/**\n * Cache control interceptor\n */\nexport function createCacheControlInterceptor(cacheControl: string): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      config.headers = {\n        ...config.headers,\n        'Cache-Control': cacheControl,\n      }\n      return config\n    },\n  }\n}\n\n/**\n * CSRF token interceptor\n */\nexport function createCsrfInterceptor(\n  getToken: () => string | null,\n  headerName = 'X-CSRF-Token'\n): RequestInterceptor {\n  return {\n    onFulfilled: config => {\n      const token = getToken()\n      if (\n        token &&\n        ['POST', 'PUT', 'PATCH', 'DELETE'].includes(config.method?.toUpperCase() || '')\n      ) {\n        config.headers = {\n          ...config.headers,\n          [headerName]: token,\n        }\n      }\n      return config\n    },\n  }\n}\n\n/**\n * Rate limit handling interceptor\n */\nexport function createRateLimitInterceptor(\n  onRateLimit?: (retryAfter: number) => void\n): ResponseInterceptor {\n  return {\n    onRejected: error => {\n      if (error.response?.status === 429) {\n        const retryAfter = Number.parseInt(error.response.headers['retry-after'] || '60')\n        if (onRateLimit) {\n          onRateLimit(retryAfter)\n        }\n      }\n      return Promise.reject(error)\n    },\n  }\n}\n\n/**\n * Response validation interceptor\n */\nexport function createResponseValidationInterceptor(\n  validator: (data: any) => boolean,\n  errorMessage = 'Invalid response data'\n): ResponseInterceptor {\n  return {\n    onFulfilled: response => {\n      if (!validator(response.data)) {\n        throw new Error(errorMessage)\n      }\n      return response\n    },\n  }\n}\n\n/**\n * Request deduplication interceptor\n */\nexport function createDeduplicationInterceptor(): {\n  requestInterceptor: RequestInterceptor\n  responseInterceptor: ResponseInterceptor\n} {\n  const pendingRequests = new Map<string, Promise<ApiResponse>>()\n\n  const generateKey = (config: RequestConfig): string => {\n    return `${config.method || 'GET'}:${config.url}:${JSON.stringify(config.params || {})}`\n  }\n\n  return {\n    requestInterceptor: {\n      onFulfilled: config => {\n        const key = generateKey(config)\n\n        // Add request key to config for cleanup\n        ;(config as any).__requestKey = key\n\n        return config\n      },\n    },\n    responseInterceptor: {\n      onFulfilled: response => {\n        const key = (response.config as any).__requestKey\n        if (key) {\n          pendingRequests.delete(key)\n        }\n        return response\n      },\n      onRejected: error => {\n        const key = (error.config as any).__requestKey\n        if (key) {\n          pendingRequests.delete(key)\n        }\n        return Promise.reject(error)\n      },\n    },\n  }\n}\n\n/**\n * Performance monitoring interceptor\n */\nexport function createPerformanceInterceptor(\n  onMetrics?: (metrics: {\n    url: string\n    method: string\n    duration: number\n    status: number\n  }) => void\n): {\n  requestInterceptor: RequestInterceptor\n  responseInterceptor: ResponseInterceptor\n} {\n  return {\n    requestInterceptor: {\n      onFulfilled: config => {\n        ;(config as any).__startTime = Date.now()\n        return config\n      },\n    },\n    responseInterceptor: {\n      onFulfilled: response => {\n        const startTime = (response.config as any).__startTime\n        if (startTime && onMetrics) {\n          onMetrics({\n            url: response.config.url,\n            method: response.config.method || 'GET',\n            duration: Date.now() - startTime,\n            status: response.status,\n          })\n        }\n        return response\n      },\n      onRejected: error => {\n        const startTime = (error.config as any).__startTime\n        if (startTime && onMetrics) {\n          onMetrics({\n            url: error.config?.url || '',\n            method: error.config?.method || 'GET',\n            duration: Date.now() - startTime,\n            status: error.response?.status || 0,\n          })\n        }\n        return Promise.reject(error)\n      },\n    },\n  }\n}\n\n/**\n * Helper function to check if URL is absolute\n */\nfunction isAbsoluteUrl(url: string): boolean {\n  return /^https?:\\/\\//.test(url)\n}\n\n/**\n * Helper function to generate request ID\n */\nfunction generateRequestId(): string {\n  return `req_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`\n}\n","/**\n * Factory functions for creating API clients\n */\n\nimport { ApiClient } from './api-client'\nimport {\n  createAuthInterceptor,\n  createRequestIdInterceptor,\n  createRequestLoggingInterceptor,\n  createResponseLoggingInterceptor,\n} from '../interceptors/common-interceptors'\nimport type { ApiClientConfig } from '../types'\n\n/**\n * Creates a basic API client with minimal configuration\n */\nexport function createApiClient(config: ApiClientConfig = {}): ApiClient {\n  return new ApiClient(config)\n}\n\n/**\n * Creates an API client with authentication\n */\nexport function createAuthenticatedApiClient(\n  baseURL: string,\n  getToken: () => string | null,\n  config: Partial<ApiClientConfig> = {}\n): ApiClient {\n  const client = new ApiClient({\n    baseURL,\n    timeout: 30000,\n    ...config,\n  })\n\n  // Add authentication interceptor\n  client.addRequestInterceptor(\n    createAuthInterceptor(getToken).onFulfilled,\n    createAuthInterceptor(getToken).onRejected\n  )\n\n  return client\n}\n\n/**\n * Creates an API client with caching enabled\n */\nexport function createCachedApiClient(\n  baseURL: string,\n  config: Partial<ApiClientConfig> = {}\n): ApiClient {\n  return new ApiClient({\n    baseURL,\n    timeout: 30000,\n    cache: {\n      enabled: true,\n      ttl: 5 * 60 * 1000, // 5 minutes\n      maxSize: 100,\n      storage: 'memory',\n      ...config.cache,\n    },\n    ...config,\n  })\n}\n\n/**\n * Creates an API client with retry logic\n */\nexport function createRetryApiClient(\n  baseURL: string,\n  config: Partial<ApiClientConfig> = {}\n): ApiClient {\n  return new ApiClient({\n    baseURL,\n    timeout: 30000,\n    retry: {\n      retries: 3,\n      retryDelay: retryCount => Math.min(1000 * Math.pow(2, retryCount), 30000),\n      ...config.retry,\n    },\n    ...config,\n  })\n}\n\n/**\n * Creates an API client with rate limiting\n */\nexport function createRateLimitedApiClient(\n  baseURL: string,\n  maxRequests = 100,\n  perMilliseconds = 60000,\n  config: Partial<ApiClientConfig> = {}\n): ApiClient {\n  return new ApiClient({\n    baseURL,\n    timeout: 30000,\n    rateLimit: {\n      maxRequests,\n      perMilliseconds,\n      ...config.rateLimit,\n    },\n    ...config,\n  })\n}\n\n/**\n * Creates a fully featured API client with all advanced features\n */\nexport function createAdvancedApiClient(\n  baseURL: string,\n  getToken: () => string | null,\n  config: Partial<ApiClientConfig> = {}\n): ApiClient {\n  const client = new ApiClient({\n    baseURL,\n    timeout: 30000,\n    cache: {\n      enabled: true,\n      ttl: 5 * 60 * 1000,\n      maxSize: 100,\n      storage: 'memory',\n    },\n    retry: {\n      retries: 3,\n      retryDelay: retryCount => Math.min(1000 * Math.pow(2, retryCount), 30000),\n    },\n    rateLimit: {\n      maxRequests: 100,\n      perMilliseconds: 60000,\n    },\n    ...config,\n  })\n\n  // Add common interceptors\n  client.addRequestInterceptor(\n    createAuthInterceptor(getToken).onFulfilled,\n    createAuthInterceptor(getToken).onRejected\n  )\n\n  client.addRequestInterceptor(\n    createRequestIdInterceptor().onFulfilled,\n    createRequestIdInterceptor().onRejected\n  )\n\n  return client\n}\n\n/**\n * Creates an API client for development with logging\n */\nexport function createDevelopmentApiClient(\n  baseURL: string,\n  config: Partial<ApiClientConfig> = {}\n): ApiClient {\n  const client = new ApiClient({\n    baseURL,\n    timeout: 30000,\n    ...config,\n  })\n\n  // Add logging interceptors\n  client.addRequestInterceptor(\n    createRequestLoggingInterceptor().onFulfilled,\n    createRequestLoggingInterceptor().onRejected\n  )\n\n  client.addResponseInterceptor(\n    createResponseLoggingInterceptor().onFulfilled,\n    createResponseLoggingInterceptor().onRejected\n  )\n\n  return client\n}\n\n/**\n * Creates an API client for production with optimizations\n */\nexport function createProductionApiClient(\n  baseURL: string,\n  config: Partial<ApiClientConfig> = {}\n): ApiClient {\n  return new ApiClient({\n    baseURL,\n    timeout: 15000, // Shorter timeout for production\n    cache: {\n      enabled: true,\n      ttl: 10 * 60 * 1000, // 10 minutes\n      maxSize: 200,\n      storage: 'localStorage',\n    },\n    retry: {\n      retries: 2, // Fewer retries for production\n      retryDelay: retryCount => Math.min(500 * Math.pow(2, retryCount), 10000),\n    },\n    rateLimit: {\n      maxRequests: 200,\n      perMilliseconds: 60000,\n    },\n    ...config,\n  })\n}\n\n/**\n * Creates an API client from configuration object\n */\nexport function createApiClientFromConfig(config: {\n  baseURL: string\n  auth?: {\n    type: 'bearer' | 'basic' | 'apiKey'\n    token?: string\n    username?: string\n    password?: string\n    apiKey?: string\n  }\n  features?: {\n    cache?: boolean\n    retry?: boolean\n    rateLimit?: boolean\n    logging?: boolean\n  }\n  options?: Partial<ApiClientConfig>\n}): ApiClient {\n  const clientConfig: ApiClientConfig = {\n    baseURL: config.baseURL,\n    timeout: 30000,\n    ...config.options,\n  }\n\n  // Enable features based on configuration\n  if (config.features?.cache) {\n    clientConfig.cache = {\n      enabled: true,\n      ttl: 5 * 60 * 1000,\n      maxSize: 100,\n      storage: 'memory',\n      ...clientConfig.cache,\n    }\n  }\n\n  if (config.features?.retry) {\n    clientConfig.retry = {\n      retries: 3,\n      retryDelay: retryCount => Math.min(1000 * Math.pow(2, retryCount), 30000),\n      ...clientConfig.retry,\n    }\n  }\n\n  if (config.features?.rateLimit) {\n    clientConfig.rateLimit = {\n      maxRequests: 100,\n      perMilliseconds: 60000,\n      ...clientConfig.rateLimit,\n    }\n  }\n\n  const client = new ApiClient(clientConfig)\n\n  // Add authentication if configured\n  if (config.auth) {\n    const getToken = () => {\n      switch (config.auth!.type) {\n        case 'bearer':\n          return config.auth!.token || null\n        case 'basic':\n          if (config.auth!.username && config.auth!.password) {\n            return btoa(`${config.auth!.username}:${config.auth!.password}`)\n          }\n          return null\n        case 'apiKey':\n          return config.auth!.apiKey || null\n        default:\n          return null\n      }\n    }\n\n    if (config.auth.type === 'bearer') {\n      client.addRequestInterceptor(\n        createAuthInterceptor(getToken).onFulfilled,\n        createAuthInterceptor(getToken).onRejected\n      )\n    } else if (config.auth.type === 'basic') {\n      client.addRequestInterceptor(requestConfig => {\n        const token = getToken()\n        if (token) {\n          requestConfig.headers = {\n            ...requestConfig.headers,\n            Authorization: `Basic ${token}`,\n          }\n        }\n        return requestConfig\n      })\n    } else if (config.auth.type === 'apiKey') {\n      client.addRequestInterceptor(requestConfig => {\n        const apiKey = getToken()\n        if (apiKey) {\n          requestConfig.headers = {\n            ...requestConfig.headers,\n            'X-API-Key': apiKey,\n          }\n        }\n        return requestConfig\n      })\n    }\n  }\n\n  // Add logging if enabled\n  if (config.features?.logging) {\n    client.addRequestInterceptor(\n      createRequestLoggingInterceptor().onFulfilled,\n      createRequestLoggingInterceptor().onRejected\n    )\n\n    client.addResponseInterceptor(\n      createResponseLoggingInterceptor().onFulfilled,\n      createResponseLoggingInterceptor().onRejected\n    )\n  }\n\n  return client\n}\n","/**\n * Interceptor manager for handling request and response interceptors\n */\n\nimport type { IInterceptorManager } from '../types'\n\n/**\n * Manages interceptors for requests and responses\n */\nexport class InterceptorManager<T> implements IInterceptorManager {\n  private interceptors: Array<T | null> = []\n  private nextId = 0\n\n  /**\n   * Adds an interceptor\n   */\n  use(onFulfilled?: any, onRejected?: any): number {\n    const id = this.nextId++\n\n    this.interceptors[id] = {\n      onFulfilled,\n      onRejected,\n    } as T\n\n    return id\n  }\n\n  /**\n   * Removes an interceptor by ID\n   */\n  eject(id: number): void {\n    if (this.interceptors[id]) {\n      this.interceptors[id] = null\n    }\n  }\n\n  /**\n   * Clears all interceptors\n   */\n  clear(): void {\n    this.interceptors = []\n    this.nextId = 0\n  }\n\n  /**\n   * Gets all active interceptors\n   */\n  getInterceptors(): T[] {\n    return this.interceptors.filter((interceptor): interceptor is T => interceptor !== null)\n  }\n\n  /**\n   * Gets the number of active interceptors\n   */\n  size(): number {\n    return this.getInterceptors().length\n  }\n\n  /**\n   * Checks if there are any interceptors\n   */\n  isEmpty(): boolean {\n    return this.size() === 0\n  }\n\n  /**\n   * Executes all interceptors in sequence\n   */\n  async executeAll<TInput, TOutput = TInput>(\n    input: TInput,\n    executor: (interceptor: T, input: TInput) => Promise<TOutput> | TOutput\n  ): Promise<TOutput> {\n    let result = input as unknown as TOutput\n\n    for (const interceptor of this.getInterceptors()) {\n      try {\n        result = await Promise.resolve(executor(interceptor, result as unknown as TInput))\n      } catch (error) {\n        // If an interceptor throws, we still want to continue with the next one\n        // The specific error handling should be done in the executor\n        throw error\n      }\n    }\n\n    return result\n  }\n\n  /**\n   * Executes interceptors with error handling\n   */\n  async executeWithErrorHandling<TInput, TOutput = TInput>(\n    input: TInput,\n    onFulfilledExecutor: (interceptor: T, input: TInput) => Promise<TOutput> | TOutput,\n    onRejectedExecutor?: (interceptor: T, error: any) => Promise<any> | any\n  ): Promise<TOutput> {\n    let result = input as unknown as TOutput\n    let lastError: any = null\n\n    for (const interceptor of this.getInterceptors()) {\n      try {\n        if (lastError && onRejectedExecutor) {\n          // If there was an error and we have an error handler, use it\n          lastError = await Promise.resolve(onRejectedExecutor(interceptor, lastError))\n          if (lastError === null || lastError === undefined) {\n            // Error was handled, continue with normal flow\n            lastError = null\n            continue\n          }\n        } else if (!lastError) {\n          // Normal execution\n          result = await Promise.resolve(\n            onFulfilledExecutor(interceptor, result as unknown as TInput)\n          )\n        }\n      } catch (error) {\n        lastError = error\n      }\n    }\n\n    if (lastError) {\n      throw lastError\n    }\n\n    return result\n  }\n\n  /**\n   * Creates a new interceptor manager with copied interceptors\n   */\n  clone(): InterceptorManager<T> {\n    const cloned = new InterceptorManager<T>()\n    cloned.interceptors = [...this.interceptors]\n    cloned.nextId = this.nextId\n    return cloned\n  }\n\n  /**\n   * Merges interceptors from another manager\n   */\n  merge(other: InterceptorManager<T>): void {\n    for (const interceptor of other.getInterceptors()) {\n      this.interceptors.push(interceptor)\n    }\n  }\n\n  /**\n   * Filters interceptors based on a predicate\n   */\n  filter(predicate: (interceptor: T) => boolean): InterceptorManager<T> {\n    const filtered = new InterceptorManager<T>()\n\n    for (const interceptor of this.getInterceptors()) {\n      if (predicate(interceptor)) {\n        filtered.interceptors.push(interceptor)\n      }\n    }\n\n    return filtered\n  }\n\n  /**\n   * Maps interceptors to a new type\n   */\n  map<U>(mapper: (interceptor: T) => U): U[] {\n    return this.getInterceptors().map(mapper)\n  }\n\n  /**\n   * Finds an interceptor by predicate\n   */\n  find(predicate: (interceptor: T) => boolean): T | undefined {\n    return this.getInterceptors().find(predicate)\n  }\n\n  /**\n   * Checks if any interceptor matches the predicate\n   */\n  some(predicate: (interceptor: T) => boolean): boolean {\n    return this.getInterceptors().some(predicate)\n  }\n\n  /**\n   * Checks if all interceptors match the predicate\n   */\n  every(predicate: (interceptor: T) => boolean): boolean {\n    return this.getInterceptors().every(predicate)\n  }\n\n  /**\n   * Iterates over all interceptors\n   */\n  forEach(callback: (interceptor: T, index: number) => void): void {\n    this.getInterceptors().forEach(callback)\n  }\n\n  /**\n   * Converts to array\n   */\n  toArray(): T[] {\n    return this.getInterceptors()\n  }\n\n  /**\n   * Gets interceptor statistics\n   */\n  getStats(): {\n    total: number\n    active: number\n    removed: number\n  } {\n    const active = this.getInterceptors().length\n    const total = this.interceptors.length\n\n    return {\n      total,\n      active,\n      removed: total - active,\n    }\n  }\n}\n","/**\n * Retry strategies for different scenarios\n */\n\nimport type { ApiError, RetryConfig } from '../types'\n\n/**\n * Exponential backoff strategy\n */\nexport function exponentialBackoff(\n  baseDelay = 1000,\n  maxDelay = 30000,\n  multiplier = 2\n): (retryCount: number) => number {\n  return (retryCount: number) => {\n    return Math.min(baseDelay * Math.pow(multiplier, retryCount), maxDelay)\n  }\n}\n\n/**\n * Linear backoff strategy\n */\nexport function linearBackoff(\n  baseDelay = 1000,\n  increment = 1000\n): (retryCount: number) => number {\n  return (retryCount: number) => {\n    return baseDelay + increment * retryCount\n  }\n}\n\n/**\n * Fixed delay strategy\n */\nexport function fixedDelay(delay = 1000): (retryCount: number) => number {\n  return () => delay\n}\n\n/**\n * Jittered exponential backoff to avoid thundering herd\n */\nexport function jitteredExponentialBackoff(\n  baseDelay = 1000,\n  maxDelay = 30000,\n  jitterFactor = 0.1\n): (retryCount: number) => number {\n  return (retryCount: number) => {\n    const exponentialDelay = Math.min(baseDelay * Math.pow(2, retryCount), maxDelay)\n    const jitter = exponentialDelay * jitterFactor * Math.random()\n    return exponentialDelay + jitter\n  }\n}\n\n/**\n * Retry condition for network errors only\n */\nexport function networkErrorsOnly(error: ApiError): boolean {\n  return !error.response // No response means network error\n}\n\n/**\n * Retry condition for server errors only\n */\nexport function serverErrorsOnly(error: ApiError): boolean {\n  const status = error.response?.status\n  return status ? status >= 500 && status < 600 : false\n}\n\n/**\n * Retry condition for specific status codes\n */\nexport function statusCodesOnly(codes: number[]): (error: ApiError) => boolean {\n  return (error: ApiError) => {\n    const status = error.response?.status\n    return status ? codes.includes(status) : false\n  }\n}\n\n/**\n * Retry condition for timeout errors\n */\nexport function timeoutErrorsOnly(error: ApiError): boolean {\n  return error.code === 'TIMEOUT' || error.message.includes('timeout')\n}\n\n/**\n * Retry condition that respects Retry-After headers\n */\nexport function respectRetryAfter(error: ApiError): boolean {\n  if (error.response?.status === 429) {\n    // Rate limited - check if Retry-After header is present\n    const retryAfter =\n      error.response.headers?.['retry-after'] || error.response.headers?.['Retry-After']\n    return !!retryAfter\n  }\n\n  // Default retry logic for other errors\n  return !error.response || (error.response.status >= 500 && error.response.status < 600)\n}\n\n/**\n * Comprehensive retry condition for production use\n */\nexport function productionRetryCondition(error: ApiError): boolean {\n  // Don't retry client errors (4xx) except for specific cases\n  if (error.response) {\n    const status = error.response.status\n\n    // Retry on server errors\n    if (status >= 500 && status < 600) {\n      return true\n    }\n\n    // Retry on specific client errors\n    if (status === 408 || status === 429) {\n      return true\n    }\n\n    // Don't retry other client errors\n    return false\n  }\n\n  // Retry network errors\n  return true\n}\n\n/**\n * Conservative retry condition for critical operations\n */\nexport function conservativeRetryCondition(error: ApiError): boolean {\n  // Only retry on clear network errors and 503 Service Unavailable\n  if (!error.response) {\n    return true // Network error\n  }\n\n  return error.response.status === 503\n}\n\n/**\n * Aggressive retry condition for non-critical operations\n */\nexport function aggressiveRetryCondition(error: ApiError): boolean {\n  if (!error.response) {\n    return true // Network error\n  }\n\n  const status = error.response.status\n\n  // Don't retry on authentication/authorization errors\n  if (status === 401 || status === 403) {\n    return false\n  }\n\n  // Don't retry on not found\n  if (status === 404) {\n    return false\n  }\n\n  // Don't retry on bad request\n  if (status === 400) {\n    return false\n  }\n\n  // Retry everything else\n  return true\n}\n\n/**\n * Creates a retry strategy that respects Retry-After headers\n */\nexport function createRetryAfterStrategy(): RetryConfig {\n  return {\n    retries: 3,\n    retryCondition: respectRetryAfter,\n    retryDelay: (retryCount: number) => {\n      // For now, just use exponential backoff\n      // In a real implementation, you'd pass the error to access headers\n\n      // Fallback to exponential backoff\n      return exponentialBackoff()(retryCount)\n    },\n  }\n}\n\n/**\n * Creates a retry strategy for API rate limiting\n */\nexport function createRateLimitStrategy(): RetryConfig {\n  return {\n    retries: 5,\n    retryCondition: (error: ApiError) => error.response?.status === 429,\n    retryDelay: (retryCount: number) => {\n      // For now, just use exponential backoff with jitter\n      // In a real implementation, you'd pass the error to access headers\n\n      // Fallback to exponential backoff with jitter\n      return jitteredExponentialBackoff(2000, 60000)(retryCount)\n    },\n  }\n}\n\n/**\n * Creates a retry strategy for unreliable networks\n */\nexport function createUnreliableNetworkStrategy(): RetryConfig {\n  return {\n    retries: 5,\n    retryCondition: (error: ApiError) => {\n      // Retry on network errors and server errors\n      return !error.response || (error.response.status >= 500 && error.response.status < 600)\n    },\n    retryDelay: jitteredExponentialBackoff(500, 10000, 0.2),\n  }\n}\n\n/**\n * Creates a retry strategy for critical operations\n */\nexport function createCriticalOperationStrategy(): RetryConfig {\n  return {\n    retries: 2,\n    retryCondition: conservativeRetryCondition,\n    retryDelay: fixedDelay(1000),\n  }\n}\n\n/**\n * Creates a retry strategy for background operations\n */\nexport function createBackgroundOperationStrategy(): RetryConfig {\n  return {\n    retries: 10,\n    retryCondition: aggressiveRetryCondition,\n    retryDelay: exponentialBackoff(1000, 300000), // Up to 5 minutes\n  }\n}\n","/**\n * URL utility functions\n */\n\n/**\n * Combines base URL with relative URL\n */\nexport function combineUrls(baseUrl: string, relativeUrl: string): string {\n  if (isAbsoluteUrl(relativeUrl)) {\n    return relativeUrl\n  }\n\n  const base = baseUrl.replace(/\\/+$/, '')\n  const relative = relativeUrl.replace(/^\\/+/, '')\n\n  return `${base}/${relative}`\n}\n\n/**\n * Checks if URL is absolute\n */\nexport function isAbsoluteUrl(url: string): boolean {\n  return /^https?:\\/\\//.test(url)\n}\n\n/**\n * Builds URL with query parameters\n */\nexport function buildUrlWithParams(url: string, params: Record<string, any>): string {\n  if (!params || Object.keys(params).length === 0) {\n    return url\n  }\n\n  const searchParams = new URLSearchParams()\n\n  for (const [key, value] of Object.entries(params)) {\n    if (value !== null && value !== undefined) {\n      if (Array.isArray(value)) {\n        value.forEach(item => searchParams.append(key, String(item)))\n      } else {\n        searchParams.append(key, String(value))\n      }\n    }\n  }\n\n  const separator = url.includes('?') ? '&' : '?'\n  return url + separator + searchParams.toString()\n}\n\n/**\n * Parses query parameters from URL\n */\nexport function parseUrlParams(url: string): Record<string, string | string[]> {\n  const urlObj = new URL(url)\n  const params: Record<string, string | string[]> = {}\n\n  for (const [key, value] of urlObj.searchParams.entries()) {\n    if (key in params) {\n      if (Array.isArray(params[key])) {\n        ;(params[key] as string[]).push(value)\n      } else {\n        params[key] = [params[key] as string, value]\n      }\n    } else {\n      params[key] = value\n    }\n  }\n\n  return params\n}\n\n/**\n * Normalizes URL by removing redundant parts\n */\nexport function normalizeUrl(url: string): string {\n  try {\n    const urlObj = new URL(url)\n\n    // Remove default ports\n    if (\n      (urlObj.protocol === 'http:' && urlObj.port === '80') ||\n      (urlObj.protocol === 'https:' && urlObj.port === '443')\n    ) {\n      urlObj.port = ''\n    }\n\n    // Normalize pathname\n    urlObj.pathname = urlObj.pathname.replace(/\\/+/g, '/').replace(/\\/$/, '') || '/'\n\n    return urlObj.toString()\n  } catch {\n    return url\n  }\n}\n\n/**\n * Extracts domain from URL\n */\nexport function extractDomain(url: string): string {\n  try {\n    return new URL(url).hostname\n  } catch {\n    return ''\n  }\n}\n\n/**\n * Checks if two URLs have the same origin\n */\nexport function isSameOrigin(url1: string, url2: string): boolean {\n  try {\n    const origin1 = new URL(url1).origin\n    const origin2 = new URL(url2).origin\n    return origin1 === origin2\n  } catch {\n    return false\n  }\n}\n\n/**\n * Converts relative URL to absolute using base URL\n */\nexport function toAbsoluteUrl(relativeUrl: string, baseUrl: string): string {\n  try {\n    return new URL(relativeUrl, baseUrl).toString()\n  } catch {\n    return relativeUrl\n  }\n}\n","/**\n * Request utility functions\n */\n\nimport type { RequestConfig, MultipartFormData } from '../types'\n\n/**\n * Serializes data for request body\n */\nexport function serializeRequestData(data: any, contentType?: string): BodyInit | null {\n  if (!data) {\n    return null\n  }\n\n  if (typeof data === 'string') {\n    return data\n  }\n\n  if (data instanceof FormData || data instanceof URLSearchParams || data instanceof Blob) {\n    return data\n  }\n\n  if (contentType?.includes('application/x-www-form-urlencoded')) {\n    return new URLSearchParams(data).toString()\n  }\n\n  // Default to JSON\n  return JSON.stringify(data)\n}\n\n/**\n * Creates FormData from object\n */\nexport function createFormData(data: MultipartFormData): FormData {\n  const formData = new FormData()\n\n  for (const [key, value] of Object.entries(data)) {\n    if (value instanceof File || value instanceof Blob) {\n      formData.append(key, value)\n    } else {\n      formData.append(key, String(value))\n    }\n  }\n\n  return formData\n}\n\n/**\n * Merges request configurations\n */\nexport function mergeConfigs(\n  defaultConfig: Partial<RequestConfig>,\n  requestConfig: RequestConfig\n): RequestConfig {\n  return {\n    ...defaultConfig,\n    ...requestConfig,\n    headers: {\n      ...defaultConfig.headers,\n      ...requestConfig.headers,\n    },\n    params: {\n      ...defaultConfig.params,\n      ...requestConfig.params,\n    },\n  }\n}\n\n/**\n * Validates request configuration\n */\nexport function validateRequestConfig(config: RequestConfig): void {\n  if (!config.url) {\n    throw new Error('URL is required')\n  }\n\n  if (config.timeout && config.timeout < 0) {\n    throw new Error('Timeout must be positive')\n  }\n\n  if (\n    config.method &&\n    !['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'].includes(config.method)\n  ) {\n    throw new Error(`Invalid HTTP method: ${config.method}`)\n  }\n}\n\n/**\n * Creates abort controller with timeout\n */\nexport function createAbortController(timeout?: number): {\n  controller: AbortController\n  timeoutId?: NodeJS.Timeout\n} {\n  const controller = new AbortController()\n\n  if (timeout && timeout > 0) {\n    const timeoutId = setTimeout(() => {\n      controller.abort()\n    }, timeout)\n\n    return { controller, timeoutId }\n  }\n\n  return { controller }\n}\n\n/**\n * Determines content type from data\n */\nexport function getContentType(data: any): string {\n  if (typeof data === 'string') {\n    return 'text/plain'\n  }\n\n  if (data instanceof FormData) {\n    return 'multipart/form-data'\n  }\n\n  if (data instanceof URLSearchParams) {\n    return 'application/x-www-form-urlencoded'\n  }\n\n  if (data instanceof Blob) {\n    return data.type || 'application/octet-stream'\n  }\n\n  if (data instanceof ArrayBuffer) {\n    return 'application/octet-stream'\n  }\n\n  // Default to JSON for objects\n  return 'application/json'\n}\n\n/**\n * Checks if request should have body\n */\nexport function shouldHaveBody(method: string): boolean {\n  return ['POST', 'PUT', 'PATCH'].includes(method.toUpperCase())\n}\n\n/**\n * Sanitizes headers by removing undefined values\n */\nexport function sanitizeHeaders(headers: Record<string, any>): Record<string, string> {\n  const sanitized: Record<string, string> = {}\n\n  for (const [key, value] of Object.entries(headers)) {\n    if (value !== undefined && value !== null) {\n      sanitized[key] = String(value)\n    }\n  }\n\n  return sanitized\n}\n\n/**\n * Creates request signature for caching/deduplication\n */\nexport function createRequestSignature(config: RequestConfig): string {\n  const method = config.method || 'GET'\n  const url = config.url\n  const params = config.params ? JSON.stringify(config.params) : ''\n  const data = config.data ? JSON.stringify(config.data) : ''\n\n  return `${method}:${url}:${params}:${data}`\n}\n\n/**\n * Checks if request is cacheable\n */\nexport function isCacheableRequest(config: RequestConfig): boolean {\n  const method = config.method || 'GET'\n\n  // Only cache safe methods\n  if (!['GET', 'HEAD', 'OPTIONS'].includes(method)) {\n    return false\n  }\n\n  // Don't cache requests with authorization headers (unless explicitly allowed)\n  if (config.headers?.['Authorization'] || config.headers?.['authorization']) {\n    return false\n  }\n\n  return true\n}\n\n/**\n * Estimates request size for monitoring\n */\nexport function estimateRequestSize(config: RequestConfig): number {\n  let size = 0\n\n  // URL size\n  size += config.url.length\n\n  // Headers size\n  if (config.headers) {\n    for (const [key, value] of Object.entries(config.headers)) {\n      size += key.length + String(value).length\n    }\n  }\n\n  // Body size\n  if (config.data) {\n    if (typeof config.data === 'string') {\n      size += config.data.length\n    } else if (config.data instanceof Blob) {\n      size += config.data.size\n    } else {\n      size += JSON.stringify(config.data).length\n    }\n  }\n\n  return size\n}\n\n/**\n * Creates request metadata for logging/monitoring\n */\nexport function createRequestMetadata(config: RequestConfig): {\n  method: string\n  url: string\n  hasAuth: boolean\n  hasBody: boolean\n  estimatedSize: number\n  timestamp: number\n} {\n  return {\n    method: config.method || 'GET',\n    url: config.url,\n    hasAuth: !!(config.headers?.['Authorization'] || config.headers?.['authorization']),\n    hasBody: !!config.data,\n    estimatedSize: estimateRequestSize(config),\n    timestamp: Date.now(),\n  }\n}\n","/**\n * Response utility functions\n */\n\nimport type { ApiResponse, ApiError } from '../types'\n\n/**\n * Checks if response is successful\n */\nexport function isSuccessResponse(response: ApiResponse): boolean {\n  return response.status >= 200 && response.status < 300\n}\n\n/**\n * Checks if response is a client error\n */\nexport function isClientError(response: ApiResponse): boolean {\n  return response.status >= 400 && response.status < 500\n}\n\n/**\n * Checks if response is a server error\n */\nexport function isServerError(response: ApiResponse): boolean {\n  return response.status >= 500 && response.status < 600\n}\n\n/**\n * Checks if response is a redirect\n */\nexport function isRedirect(response: ApiResponse): boolean {\n  return response.status >= 300 && response.status < 400\n}\n\n/**\n * Extracts error message from response\n */\nexport function extractErrorMessage(response: ApiResponse): string {\n  if (typeof response.data === 'string') {\n    return response.data\n  }\n\n  if (typeof response.data === 'object' && response.data) {\n    // Try common error message fields\n    const errorFields = ['message', 'error', 'detail', 'description', 'msg']\n\n    for (const field of errorFields) {\n      if (response.data[field] && typeof response.data[field] === 'string') {\n        return response.data[field]\n      }\n    }\n\n    // If no standard field found, stringify the object\n    return JSON.stringify(response.data)\n  }\n\n  return response.statusText || 'Unknown error'\n}\n\n/**\n * Creates standardized error from response\n */\nexport function createErrorFromResponse(response: ApiResponse): ApiError {\n  const message = extractErrorMessage(response)\n  const error = new Error(message) as ApiError\n\n  error.response = response\n  error.code = String(response.status)\n  error.config = response.config\n\n  return error\n}\n\n/**\n * Parses response headers into object\n */\nexport function parseResponseHeaders(headers: Headers): Record<string, string> {\n  const result: Record<string, string> = {}\n\n  headers.forEach((value, key) => {\n    result[key.toLowerCase()] = value\n  })\n\n  return result\n}\n\n/**\n * Gets content type from response\n */\nexport function getResponseContentType(response: ApiResponse): string {\n  return response.headers['content-type'] || response.headers['Content-Type'] || ''\n}\n\n/**\n * Checks if response is JSON\n */\nexport function isJsonResponse(response: ApiResponse): boolean {\n  const contentType = getResponseContentType(response)\n  return contentType.includes('application/json')\n}\n\n/**\n * Checks if response is HTML\n */\nexport function isHtmlResponse(response: ApiResponse): boolean {\n  const contentType = getResponseContentType(response)\n  return contentType.includes('text/html')\n}\n\n/**\n * Checks if response is XML\n */\nexport function isXmlResponse(response: ApiResponse): boolean {\n  const contentType = getResponseContentType(response)\n  return contentType.includes('application/xml') || contentType.includes('text/xml')\n}\n\n/**\n * Gets response size from headers\n */\nexport function getResponseSize(response: ApiResponse): number {\n  const contentLength = response.headers['content-length'] || response.headers['Content-Length']\n  return contentLength ? Number.parseInt(contentLength, 10) : 0\n}\n\n/**\n * Checks if response is compressed\n */\nexport function isCompressedResponse(response: ApiResponse): boolean {\n  const encoding = response.headers['content-encoding'] || response.headers['Content-Encoding']\n  return !!(encoding && ['gzip', 'deflate', 'br'].includes(encoding))\n}\n\n/**\n * Gets cache control directives from response\n */\nexport function getCacheControl(response: ApiResponse): Record<string, string | boolean> {\n  const cacheControl = response.headers['cache-control'] || response.headers['Cache-Control']\n\n  if (!cacheControl) {\n    return {}\n  }\n\n  const directives: Record<string, string | boolean> = {}\n  const parts = cacheControl.split(',').map(part => part.trim())\n\n  for (const part of parts) {\n    if (part.includes('=')) {\n      const [key, value] = part.split('=', 2)\n      directives[key!.trim()] = value!.trim().replace(/\"/g, '')\n    } else {\n      directives[part] = true\n    }\n  }\n\n  return directives\n}\n\n/**\n * Checks if response can be cached\n */\nexport function isCacheableResponse(response: ApiResponse): boolean {\n  // Don't cache error responses\n  if (!isSuccessResponse(response)) {\n    return false\n  }\n\n  const cacheControl = getCacheControl(response)\n\n  // Explicit no-cache directive\n  if (cacheControl['no-cache'] || cacheControl['no-store']) {\n    return false\n  }\n\n  // Private responses shouldn't be cached in shared caches\n  if (cacheControl['private']) {\n    return false\n  }\n\n  return true\n}\n\n/**\n * Gets response TTL from cache headers\n */\nexport function getResponseTTL(response: ApiResponse): number {\n  const cacheControl = getCacheControl(response)\n\n  if (cacheControl['max-age']) {\n    return Number.parseInt(String(cacheControl['max-age']), 10) * 1000\n  }\n\n  // Check Expires header\n  const expires = response.headers['expires'] || response.headers['Expires']\n  if (expires) {\n    const expiresDate = new Date(expires)\n    const now = new Date()\n    return Math.max(0, expiresDate.getTime() - now.getTime())\n  }\n\n  // Default TTL\n  return 5 * 60 * 1000 // 5 minutes\n}\n\n/**\n * Validates response data against schema\n */\nexport function validateResponseData<T>(\n  response: ApiResponse<T>,\n  validator: (data: any) => boolean\n): boolean {\n  try {\n    return validator(response.data)\n  } catch {\n    return false\n  }\n}\n\n/**\n * Transforms response data\n */\nexport function transformResponseData<T, U>(\n  response: ApiResponse<T>,\n  transformer: (data: T) => U\n): ApiResponse<U> {\n  return {\n    ...response,\n    data: transformer(response.data),\n  }\n}\n\n/**\n * Creates response metadata for logging/monitoring\n */\nexport function createResponseMetadata(response: ApiResponse): {\n  status: number\n  statusText: string\n  contentType: string\n  size: number\n  compressed: boolean\n  cacheable: boolean\n  timestamp: number\n} {\n  return {\n    status: response.status,\n    statusText: response.statusText,\n    contentType: getResponseContentType(response),\n    size: getResponseSize(response),\n    compressed: isCompressedResponse(response),\n    cacheable: isCacheableResponse(response),\n    timestamp: Date.now(),\n  }\n}\n\n/**\n * Extracts pagination info from response headers\n */\nexport function extractPaginationInfo(response: ApiResponse): {\n  page?: number\n  limit?: number\n  total?: number\n  totalPages?: number\n  hasNext?: boolean\n  hasPrevious?: boolean\n} | null {\n  const headers = response.headers\n\n  // Try different header formats\n  const page = Number.parseInt(headers['x-page'] || headers['X-Page'] || '1', 10)\n  const limit = Number.parseInt(headers['x-per-page'] || headers['X-Per-Page'] || '10', 10)\n  const total = Number.parseInt(headers['x-total'] || headers['X-Total'] || '0', 10)\n\n  if (isNaN(total)) {\n    return null\n  }\n\n  const totalPages = Math.ceil(total / limit)\n\n  return {\n    page,\n    limit,\n    total,\n    totalPages,\n    hasNext: page < totalPages,\n    hasPrevious: page > 1,\n  }\n}\n\n/**\n * Checks if response indicates rate limiting\n */\nexport function isRateLimited(response: ApiResponse): boolean {\n  return response.status === 429\n}\n\n/**\n * Gets retry-after value from response\n */\nexport function getRetryAfter(response: ApiResponse): number | null {\n  const retryAfter = response.headers['retry-after'] || response.headers['Retry-After']\n\n  if (!retryAfter) {\n    return null\n  }\n\n  const seconds = Number.parseInt(retryAfter, 10)\n  return isNaN(seconds) ? null : seconds * 1000 // Convert to milliseconds\n}\n","/**\n * TanStack Query client configuration and setup\n */\n\nimport { QueryClient, type QueryClientConfig } from '@tanstack/react-query'\nimport type { ApiClient } from '../client/api-client'\n\nconst { VITE_NODE_ENV: NODE_ENV } = import.meta.env;\n\n/**\n * Default query client configuration\n */\nconst defaultQueryConfig: QueryClientConfig = {\n  defaultOptions: {\n    queries: {\n      // Cache data for 5 minutes by default\n      staleTime: 5 * 60 * 1000,\n      // Keep data in cache for 10 minutes\n      gcTime: 10 * 60 * 1000,\n      // Retry failed requests 3 times\n      retry: (failureCount, error) => {\n        // Don't retry on 4xx errors (client errors)\n        if (error && typeof error === 'object' && 'status' in error) {\n          const status = (error as any).status\n          if (typeof status === 'number' && status >= 400 && status < 500) {\n            return false\n          }\n        }\n        return failureCount < 3\n      },\n      // Retry with exponential backoff\n      retryDelay: attemptIndex => Math.min(1000 * 2 ** attemptIndex, 30000),\n      // Refetch on window focus in production\n      refetchOnWindowFocus: NODE_ENV === 'production',\n      // Don't refetch on reconnect by default\n      refetchOnReconnect: false,\n      // Network mode\n      networkMode: 'online',\n    },\n    mutations: {\n      // Retry mutations once\n      retry: 1,\n      // Retry delay for mutations\n      retryDelay: 1000,\n      // Network mode for mutations\n      networkMode: 'online',\n    },\n  },\n}\n\n/**\n * Create a configured QueryClient instance\n */\nexport function createQueryClient(\n  apiClient?: ApiClient,\n  config: QueryClientConfig = {}\n): QueryClient {\n  const mergedConfig: QueryClientConfig = {\n    ...defaultQueryConfig,\n    ...config,\n    defaultOptions: {\n      ...defaultQueryConfig.defaultOptions,\n      ...config.defaultOptions,\n      queries: {\n        ...defaultQueryConfig.defaultOptions?.queries,\n        ...config.defaultOptions?.queries,\n        // Add global error handling\n        throwOnError: error => {\n          // Log errors in development\n          if (NODE_ENV === 'development') {\n            console.error('Query error:', error)\n          }\n\n          // Always throw errors so they can be handled by the UI\n          return true\n        },\n      },\n      mutations: {\n        ...defaultQueryConfig.defaultOptions?.mutations,\n        ...config.defaultOptions?.mutations,\n        // Add global mutation error handling\n        throwOnError: error => {\n          // Log mutation errors in development\n          if (NODE_ENV === 'development') {\n            console.error('Mutation error:', error)\n          }\n\n          // Always throw mutation errors so they can be handled by the UI\n          return true\n        },\n      },\n    },\n  }\n\n  const queryClient = new QueryClient(mergedConfig)\n\n  // Add global error handler\n  queryClient.setMutationDefaults(['default'], {\n    mutationFn: async (variables: any) => {\n      if (!apiClient) {\n        throw new Error('API client not configured')\n      }\n      return variables\n    },\n  })\n\n  return queryClient\n}\n\n/**\n * Default query client instance\n */\nexport const queryClient = createQueryClient()\n\n/**\n * Query key factory for consistent key generation\n */\nexport const queryKeys = {\n  // Base keys\n  all: ['api'] as const,\n\n  // Resource-based keys\n  users: () => [...queryKeys.all, 'users'] as const,\n  user: (id: string) => [...queryKeys.users(), id] as const,\n  userProfile: (id: string) => [...queryKeys.user(id), 'profile'] as const,\n\n  posts: () => [...queryKeys.all, 'posts'] as const,\n  post: (id: string) => [...queryKeys.posts(), id] as const,\n  postComments: (id: string) => [...queryKeys.post(id), 'comments'] as const,\n\n  // Search and filters\n  search: (query: string) => [...queryKeys.all, 'search', query] as const,\n  filtered: (resource: string, filters: Record<string, any>) =>\n    [...queryKeys.all, resource, 'filtered', filters] as const,\n\n  // Paginated queries\n  paginated: (resource: string, page: number, limit: number) =>\n    [...queryKeys.all, resource, 'paginated', { page, limit }] as const,\n\n  // Infinite queries\n  infinite: (resource: string, filters?: Record<string, any>) =>\n    [...queryKeys.all, resource, 'infinite', filters] as const,\n\n  // Custom query key generator\n  custom: (key: string, ...params: any[]) => [...queryKeys.all, key, ...params] as const,\n}\n\n/**\n * Query options factory for common patterns\n */\nexport const queryOptions = {\n  // Standard fetch with caching\n  standard: <T>(key: readonly unknown[], fetcher: () => Promise<T>) => ({\n    queryKey: key,\n    queryFn: fetcher,\n    staleTime: 5 * 60 * 1000, // 5 minutes\n    gcTime: 10 * 60 * 1000, // 10 minutes\n  }),\n\n  // Real-time data (short cache)\n  realtime: <T>(key: readonly unknown[], fetcher: () => Promise<T>) => ({\n    queryKey: key,\n    queryFn: fetcher,\n    staleTime: 30 * 1000, // 30 seconds\n    gcTime: 2 * 60 * 1000, // 2 minutes\n    refetchInterval: 30 * 1000, // Refetch every 30 seconds\n  }),\n\n  // Static data (long cache)\n  static: <T>(key: readonly unknown[], fetcher: () => Promise<T>) => ({\n    queryKey: key,\n    queryFn: fetcher,\n    staleTime: 60 * 60 * 1000, // 1 hour\n    gcTime: 24 * 60 * 60 * 1000, // 24 hours\n  }),\n\n  // User-specific data\n  user: <T>(key: readonly unknown[], fetcher: () => Promise<T>) => ({\n    queryKey: key,\n    queryFn: fetcher,\n    staleTime: 2 * 60 * 1000, // 2 minutes\n    gcTime: 5 * 60 * 1000, // 5 minutes\n  }),\n\n  // Background sync\n  background: <T>(key: readonly unknown[], fetcher: () => Promise<T>) => ({\n    queryKey: key,\n    queryFn: fetcher,\n    staleTime: 0, // Always stale\n    gcTime: 5 * 60 * 1000, // 5 minutes\n    refetchOnWindowFocus: true,\n    refetchOnReconnect: true,\n  }),\n}\n\n/**\n * Mutation options factory\n */\nexport const mutationOptions = {\n  // Standard mutation\n  standard: <TData, TVariables>(mutationFn: (variables: TVariables) => Promise<TData>) => ({\n    mutationFn,\n    retry: 1,\n    retryDelay: 1000,\n  }),\n\n  // Optimistic mutation\n  optimistic: <TData, TVariables>(\n    mutationFn: (variables: TVariables) => Promise<TData>,\n    optimisticUpdate?: (variables: TVariables) => TData\n  ) => ({\n    mutationFn,\n    retry: 1,\n    retryDelay: 1000,\n    ...(optimisticUpdate && {\n      onMutate: optimisticUpdate,\n    }),\n  }),\n\n  // Critical mutation (no retry on client errors)\n  critical: <TData, TVariables>(mutationFn: (variables: TVariables) => Promise<TData>) => ({\n    mutationFn,\n    retry: (failureCount: number, error: any) => {\n      if (error?.status >= 400 && error?.status < 500) {\n        return false\n      }\n      return failureCount < 2\n    },\n    retryDelay: 2000,\n  }),\n}\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error(\"act(...) is not supported in production builds of React.\");}\nexports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.act=X;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=X;exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};\nexports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};\nexports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.3.1\";\n","/**\n * @license React\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n\n          'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n          var ReactVersion = '18.3.1';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n  if (maybeIterable === null || typeof maybeIterable !== 'object') {\n    return null;\n  }\n\n  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if (typeof maybeIterator === 'function') {\n    return maybeIterator;\n  }\n\n  return null;\n}\n\n/**\n * Keeps track of the current dispatcher.\n */\nvar ReactCurrentDispatcher = {\n  /**\n   * @internal\n   * @type {ReactComponent}\n   */\n  current: null\n};\n\n/**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\nvar ReactCurrentBatchConfig = {\n  transition: null\n};\n\nvar ReactCurrentActQueue = {\n  current: null,\n  // Used to reproduce behavior of `batchedUpdates` in legacy mode.\n  isBatchingLegacy: false,\n  didScheduleLegacyUpdate: false\n};\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n  /**\n   * @internal\n   * @type {ReactComponent}\n   */\n  current: null\n};\n\nvar ReactDebugCurrentFrame = {};\nvar currentExtraStackFrame = null;\nfunction setExtraStackFrame(stack) {\n  {\n    currentExtraStackFrame = stack;\n  }\n}\n\n{\n  ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n    {\n      currentExtraStackFrame = stack;\n    }\n  }; // Stack implementation injected by the current renderer.\n\n\n  ReactDebugCurrentFrame.getCurrentStack = null;\n\n  ReactDebugCurrentFrame.getStackAddendum = function () {\n    var stack = ''; // Add an extra top frame while an element is being validated\n\n    if (currentExtraStackFrame) {\n      stack += currentExtraStackFrame;\n    } // Delegate to the injected renderer-specific implementation\n\n\n    var impl = ReactDebugCurrentFrame.getCurrentStack;\n\n    if (impl) {\n      stack += impl() || '';\n    }\n\n    return stack;\n  };\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar ReactSharedInternals = {\n  ReactCurrentDispatcher: ReactCurrentDispatcher,\n  ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n  ReactCurrentOwner: ReactCurrentOwner\n};\n\n{\n  ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n  ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;\n}\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n  {\n    {\n      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      printWarning('warn', format, args);\n    }\n  }\n}\nfunction error(format) {\n  {\n    {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      printWarning('error', format, args);\n    }\n  }\n}\n\nfunction printWarning(level, format, args) {\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n    var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n    if (stack !== '') {\n      format += '%s';\n      args = args.concat([stack]);\n    } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n    var argsWithFormat = args.map(function (item) {\n      return String(item);\n    }); // Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n  }\n}\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n  {\n    var _constructor = publicInstance.constructor;\n    var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n    var warningKey = componentName + \".\" + callerName;\n\n    if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n      return;\n    }\n\n    error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n\n    didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n  }\n}\n/**\n * This is the abstract API for an update queue.\n */\n\n\nvar ReactNoopUpdateQueue = {\n  /**\n   * Checks whether or not this composite component is mounted.\n   * @param {ReactClass} publicInstance The instance we want to test.\n   * @return {boolean} True if mounted, false otherwise.\n   * @protected\n   * @final\n   */\n  isMounted: function (publicInstance) {\n    return false;\n  },\n\n  /**\n   * Forces an update. This should only be invoked when it is known with\n   * certainty that we are **not** in a DOM transaction.\n   *\n   * You may want to call this when you know that some deeper aspect of the\n   * component's state has changed but `setState` was not called.\n   *\n   * This will not invoke `shouldComponentUpdate`, but it will invoke\n   * `componentWillUpdate` and `componentDidUpdate`.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {?function} callback Called after component is updated.\n   * @param {?string} callerName name of the calling function in the public API.\n   * @internal\n   */\n  enqueueForceUpdate: function (publicInstance, callback, callerName) {\n    warnNoop(publicInstance, 'forceUpdate');\n  },\n\n  /**\n   * Replaces all of the state. Always use this or `setState` to mutate state.\n   * You should treat `this.state` as immutable.\n   *\n   * There is no guarantee that `this.state` will be immediately updated, so\n   * accessing `this.state` after calling this method may return the old value.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} completeState Next state.\n   * @param {?function} callback Called after component is updated.\n   * @param {?string} callerName name of the calling function in the public API.\n   * @internal\n   */\n  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n    warnNoop(publicInstance, 'replaceState');\n  },\n\n  /**\n   * Sets a subset of the state. This only exists because _pendingState is\n   * internal. This provides a merging strategy that is not available to deep\n   * properties which is confusing. TODO: Expose pendingState or don't use it\n   * during the merge.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} partialState Next partial state to be merged with state.\n   * @param {?function} callback Called after component is updated.\n   * @param {?string} Name of the calling function in the public API.\n   * @internal\n   */\n  enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n    warnNoop(publicInstance, 'setState');\n  }\n};\n\nvar assign = Object.assign;\n\nvar emptyObject = {};\n\n{\n  Object.freeze(emptyObject);\n}\n/**\n * Base class helpers for the updating state of a component.\n */\n\n\nfunction Component(props, context, updater) {\n  this.props = props;\n  this.context = context; // If a component has string refs, we will assign a different object later.\n\n  this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n  // renderer.\n\n  this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together.  You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n *        produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\nComponent.prototype.setState = function (partialState, callback) {\n  if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {\n    throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');\n  }\n\n  this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n\nComponent.prototype.forceUpdate = function (callback) {\n  this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n\n{\n  var deprecatedAPIs = {\n    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n  };\n\n  var defineDeprecationWarning = function (methodName, info) {\n    Object.defineProperty(Component.prototype, methodName, {\n      get: function () {\n        warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n\n        return undefined;\n      }\n    });\n  };\n\n  for (var fnName in deprecatedAPIs) {\n    if (deprecatedAPIs.hasOwnProperty(fnName)) {\n      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n    }\n  }\n}\n\nfunction ComponentDummy() {}\n\nComponentDummy.prototype = Component.prototype;\n/**\n * Convenience component with default shallow equality check for sCU.\n */\n\nfunction PureComponent(props, context, updater) {\n  this.props = props;\n  this.context = context; // If a component has string refs, we will assign a different object later.\n\n  this.refs = emptyObject;\n  this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n  var refObject = {\n    current: null\n  };\n\n  {\n    Object.seal(refObject);\n  }\n\n  return refObject;\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n  return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n  {\n    // toStringTag is needed for namespaced types like Temporal.Instant\n    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n    return type;\n  }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n  {\n    try {\n      testStringCoercion(value);\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n}\n\nfunction testStringCoercion(value) {\n  // If you ended up here by following an exception call stack, here's what's\n  // happened: you supplied an object or symbol value to React (as a prop, key,\n  // DOM attribute, CSS property, string ref, etc.) and when React tried to\n  // coerce it to a string using `'' + value`, an exception was thrown.\n  //\n  // The most common types that will cause this exception are `Symbol` instances\n  // and Temporal objects like `Temporal.Instant`. But any object that has a\n  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n  // exception. (Library authors do this to prevent users from using built-in\n  // numeric operators like `+` or comparison operators like `>=` because custom\n  // methods are needed to perform accurate arithmetic or comparison.)\n  //\n  // To fix the problem, coerce this object or symbol value to a string before\n  // passing it to React. The most reliable way is usually `String(value)`.\n  //\n  // To find which value is throwing, check the browser or debugger console.\n  // Before this exception was thrown, there should be `console.error` output\n  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n  // problem and how that type was used: key, atrribute, input value prop, etc.\n  // In most cases, this console output also shows the component and its\n  // ancestor components where the exception happened.\n  //\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  var displayName = outerType.displayName;\n\n  if (displayName) {\n    return displayName;\n  }\n\n  var functionName = innerType.displayName || innerType.name || '';\n  return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n  return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n  if (type == null) {\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if (typeof type.tag === 'number') {\n      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if (typeof type === 'function') {\n    return type.displayName || type.name || null;\n  }\n\n  if (typeof type === 'string') {\n    return type;\n  }\n\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return 'Profiler';\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_CONTEXT_TYPE:\n        var context = type;\n        return getContextName(context) + '.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        var provider = type;\n        return getContextName(provider._context) + '.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        var outerName = type.displayName || null;\n\n        if (outerName !== null) {\n          return outerName;\n        }\n\n        return getComponentNameFromType(type.type) || 'Memo';\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            return getComponentNameFromType(init(payload));\n          } catch (x) {\n            return null;\n          }\n        }\n\n      // eslint-disable-next-line no-fallthrough\n    }\n  }\n\n  return null;\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar RESERVED_PROPS = {\n  key: true,\n  ref: true,\n  __self: true,\n  __source: true\n};\nvar specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n\n{\n  didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n  {\n    if (hasOwnProperty.call(config, 'ref')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n  {\n    if (hasOwnProperty.call(config, 'key')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n  var warnAboutAccessingKey = function () {\n    {\n      if (!specialPropKeyWarningShown) {\n        specialPropKeyWarningShown = true;\n\n        error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n      }\n    }\n  };\n\n  warnAboutAccessingKey.isReactWarning = true;\n  Object.defineProperty(props, 'key', {\n    get: warnAboutAccessingKey,\n    configurable: true\n  });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n  var warnAboutAccessingRef = function () {\n    {\n      if (!specialPropRefWarningShown) {\n        specialPropRefWarningShown = true;\n\n        error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n      }\n    }\n  };\n\n  warnAboutAccessingRef.isReactWarning = true;\n  Object.defineProperty(props, 'ref', {\n    get: warnAboutAccessingRef,\n    configurable: true\n  });\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config) {\n  {\n    if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n      var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n      if (!didWarnAboutStringRefs[componentName]) {\n        error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n\n        didWarnAboutStringRefs[componentName] = true;\n      }\n    }\n  }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n  var element = {\n    // This tag allows us to uniquely identify this as a React Element\n    $$typeof: REACT_ELEMENT_TYPE,\n    // Built-in properties that belong on the element\n    type: type,\n    key: key,\n    ref: ref,\n    props: props,\n    // Record the component responsible for creating this element.\n    _owner: owner\n  };\n\n  {\n    // The validation flag is currently mutative. We put it on\n    // an external backing store so that we can freeze the whole object.\n    // This can be replaced with a WeakMap once they are implemented in\n    // commonly used development environments.\n    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n    // the validation flag non-enumerable (where possible, which should\n    // include every environment we run tests in), so the test framework\n    // ignores it.\n\n    Object.defineProperty(element._store, 'validated', {\n      configurable: false,\n      enumerable: false,\n      writable: true,\n      value: false\n    }); // self and source are DEV only properties.\n\n    Object.defineProperty(element, '_self', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: self\n    }); // Two elements created in two different places should be considered\n    // equal for testing purposes and therefore we hide it from enumeration.\n\n    Object.defineProperty(element, '_source', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: source\n    });\n\n    if (Object.freeze) {\n      Object.freeze(element.props);\n      Object.freeze(element);\n    }\n  }\n\n  return element;\n};\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\nfunction createElement(type, config, children) {\n  var propName; // Reserved names are extracted\n\n  var props = {};\n  var key = null;\n  var ref = null;\n  var self = null;\n  var source = null;\n\n  if (config != null) {\n    if (hasValidRef(config)) {\n      ref = config.ref;\n\n      {\n        warnIfStringRefCannotBeAutoConverted(config);\n      }\n    }\n\n    if (hasValidKey(config)) {\n      {\n        checkKeyStringCoercion(config.key);\n      }\n\n      key = '' + config.key;\n    }\n\n    self = config.__self === undefined ? null : config.__self;\n    source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        props[propName] = config[propName];\n      }\n    }\n  } // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n\n\n  var childrenLength = arguments.length - 2;\n\n  if (childrenLength === 1) {\n    props.children = children;\n  } else if (childrenLength > 1) {\n    var childArray = Array(childrenLength);\n\n    for (var i = 0; i < childrenLength; i++) {\n      childArray[i] = arguments[i + 2];\n    }\n\n    {\n      if (Object.freeze) {\n        Object.freeze(childArray);\n      }\n    }\n\n    props.children = childArray;\n  } // Resolve default props\n\n\n  if (type && type.defaultProps) {\n    var defaultProps = type.defaultProps;\n\n    for (propName in defaultProps) {\n      if (props[propName] === undefined) {\n        props[propName] = defaultProps[propName];\n      }\n    }\n  }\n\n  {\n    if (key || ref) {\n      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n      if (key) {\n        defineKeyPropWarningGetter(props, displayName);\n      }\n\n      if (ref) {\n        defineRefPropWarningGetter(props, displayName);\n      }\n    }\n  }\n\n  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n  return newElement;\n}\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\nfunction cloneElement(element, config, children) {\n  if (element === null || element === undefined) {\n    throw new Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n  }\n\n  var propName; // Original props are copied\n\n  var props = assign({}, element.props); // Reserved names are extracted\n\n  var key = element.key;\n  var ref = element.ref; // Self is preserved since the owner is preserved.\n\n  var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n  // transpiler, and the original source is probably a better indicator of the\n  // true owner.\n\n  var source = element._source; // Owner will be preserved, unless ref is overridden\n\n  var owner = element._owner;\n\n  if (config != null) {\n    if (hasValidRef(config)) {\n      // Silently steal the ref from the parent.\n      ref = config.ref;\n      owner = ReactCurrentOwner.current;\n    }\n\n    if (hasValidKey(config)) {\n      {\n        checkKeyStringCoercion(config.key);\n      }\n\n      key = '' + config.key;\n    } // Remaining properties override existing props\n\n\n    var defaultProps;\n\n    if (element.type && element.type.defaultProps) {\n      defaultProps = element.type.defaultProps;\n    }\n\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        if (config[propName] === undefined && defaultProps !== undefined) {\n          // Resolve default props\n          props[propName] = defaultProps[propName];\n        } else {\n          props[propName] = config[propName];\n        }\n      }\n    }\n  } // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n\n\n  var childrenLength = arguments.length - 2;\n\n  if (childrenLength === 1) {\n    props.children = children;\n  } else if (childrenLength > 1) {\n    var childArray = Array(childrenLength);\n\n    for (var i = 0; i < childrenLength; i++) {\n      childArray[i] = arguments[i + 2];\n    }\n\n    props.children = childArray;\n  }\n\n  return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\nfunction isValidElement(object) {\n  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n  var escapeRegex = /[=:]/g;\n  var escaperLookup = {\n    '=': '=0',\n    ':': '=2'\n  };\n  var escapedString = key.replace(escapeRegex, function (match) {\n    return escaperLookup[match];\n  });\n  return '$' + escapedString;\n}\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n\nvar didWarnAboutMaps = false;\nvar userProvidedKeyEscapeRegex = /\\/+/g;\n\nfunction escapeUserProvidedKey(text) {\n  return text.replace(userProvidedKeyEscapeRegex, '$&/');\n}\n/**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n\nfunction getElementKey(element, index) {\n  // Do some typechecking here since we call this blindly. We want to ensure\n  // that we don't block potential future ES APIs.\n  if (typeof element === 'object' && element !== null && element.key != null) {\n    // Explicit key\n    {\n      checkKeyStringCoercion(element.key);\n    }\n\n    return escape('' + element.key);\n  } // Implicit key determined by the index in the set\n\n\n  return index.toString(36);\n}\n\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n  var type = typeof children;\n\n  if (type === 'undefined' || type === 'boolean') {\n    // All of the above are perceived as null.\n    children = null;\n  }\n\n  var invokeCallback = false;\n\n  if (children === null) {\n    invokeCallback = true;\n  } else {\n    switch (type) {\n      case 'string':\n      case 'number':\n        invokeCallback = true;\n        break;\n\n      case 'object':\n        switch (children.$$typeof) {\n          case REACT_ELEMENT_TYPE:\n          case REACT_PORTAL_TYPE:\n            invokeCallback = true;\n        }\n\n    }\n  }\n\n  if (invokeCallback) {\n    var _child = children;\n    var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n    // so that it's consistent if the number of children grows:\n\n    var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n\n    if (isArray(mappedChild)) {\n      var escapedChildKey = '';\n\n      if (childKey != null) {\n        escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n      }\n\n      mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n        return c;\n      });\n    } else if (mappedChild != null) {\n      if (isValidElement(mappedChild)) {\n        {\n          // The `if` statement here prevents auto-disabling of the safe\n          // coercion ESLint rule, so we must manually disable it below.\n          // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n          if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {\n            checkKeyStringCoercion(mappedChild.key);\n          }\n        }\n\n        mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as\n        // traverseAllChildren used to do for objects as children\n        escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n        mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n        // eslint-disable-next-line react-internal/safe-string-coercion\n        escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n      }\n\n      array.push(mappedChild);\n    }\n\n    return 1;\n  }\n\n  var child;\n  var nextName;\n  var subtreeCount = 0; // Count of children found in the current subtree.\n\n  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n  if (isArray(children)) {\n    for (var i = 0; i < children.length; i++) {\n      child = children[i];\n      nextName = nextNamePrefix + getElementKey(child, i);\n      subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n    }\n  } else {\n    var iteratorFn = getIteratorFn(children);\n\n    if (typeof iteratorFn === 'function') {\n      var iterableChildren = children;\n\n      {\n        // Warn about using Maps as children\n        if (iteratorFn === iterableChildren.entries) {\n          if (!didWarnAboutMaps) {\n            warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n          }\n\n          didWarnAboutMaps = true;\n        }\n      }\n\n      var iterator = iteratorFn.call(iterableChildren);\n      var step;\n      var ii = 0;\n\n      while (!(step = iterator.next()).done) {\n        child = step.value;\n        nextName = nextNamePrefix + getElementKey(child, ii++);\n        subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n      }\n    } else if (type === 'object') {\n      // eslint-disable-next-line react-internal/safe-string-coercion\n      var childrenString = String(children);\n      throw new Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). \" + 'If you meant to render a collection of children, use an array ' + 'instead.');\n    }\n  }\n\n  return subtreeCount;\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n  if (children == null) {\n    return children;\n  }\n\n  var result = [];\n  var count = 0;\n  mapIntoArray(children, result, '', '', function (child) {\n    return func.call(context, child, count++);\n  });\n  return result;\n}\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n\nfunction countChildren(children) {\n  var n = 0;\n  mapChildren(children, function () {\n    n++; // Don't return anything\n  });\n  return n;\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n  mapChildren(children, function () {\n    forEachFunc.apply(this, arguments); // Don't return anything.\n  }, forEachContext);\n}\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n\nfunction toArray(children) {\n  return mapChildren(children, function (child) {\n    return child;\n  }) || [];\n}\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n\nfunction onlyChild(children) {\n  if (!isValidElement(children)) {\n    throw new Error('React.Children.only expected to receive a single React element child.');\n  }\n\n  return children;\n}\n\nfunction createContext(defaultValue) {\n  // TODO: Second argument used to be an optional `calculateChangedBits`\n  // function. Warn to reserve for future use?\n  var context = {\n    $$typeof: REACT_CONTEXT_TYPE,\n    // As a workaround to support multiple concurrent renderers, we categorize\n    // some renderers as primary and others as secondary. We only expect\n    // there to be two concurrent renderers at most: React Native (primary) and\n    // Fabric (secondary); React DOM (primary) and React ART (secondary).\n    // Secondary renderers store their context values on separate fields.\n    _currentValue: defaultValue,\n    _currentValue2: defaultValue,\n    // Used to track how many concurrent renderers this context currently\n    // supports within in a single renderer. Such as parallel server rendering.\n    _threadCount: 0,\n    // These are circular\n    Provider: null,\n    Consumer: null,\n    // Add these to use same hidden class in VM as ServerContext\n    _defaultValue: null,\n    _globalName: null\n  };\n  context.Provider = {\n    $$typeof: REACT_PROVIDER_TYPE,\n    _context: context\n  };\n  var hasWarnedAboutUsingNestedContextConsumers = false;\n  var hasWarnedAboutUsingConsumerProvider = false;\n  var hasWarnedAboutDisplayNameOnConsumer = false;\n\n  {\n    // A separate object, but proxies back to the original context object for\n    // backwards compatibility. It has a different $$typeof, so we can properly\n    // warn for the incorrect usage of Context as a Consumer.\n    var Consumer = {\n      $$typeof: REACT_CONTEXT_TYPE,\n      _context: context\n    }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n    Object.defineProperties(Consumer, {\n      Provider: {\n        get: function () {\n          if (!hasWarnedAboutUsingConsumerProvider) {\n            hasWarnedAboutUsingConsumerProvider = true;\n\n            error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');\n          }\n\n          return context.Provider;\n        },\n        set: function (_Provider) {\n          context.Provider = _Provider;\n        }\n      },\n      _currentValue: {\n        get: function () {\n          return context._currentValue;\n        },\n        set: function (_currentValue) {\n          context._currentValue = _currentValue;\n        }\n      },\n      _currentValue2: {\n        get: function () {\n          return context._currentValue2;\n        },\n        set: function (_currentValue2) {\n          context._currentValue2 = _currentValue2;\n        }\n      },\n      _threadCount: {\n        get: function () {\n          return context._threadCount;\n        },\n        set: function (_threadCount) {\n          context._threadCount = _threadCount;\n        }\n      },\n      Consumer: {\n        get: function () {\n          if (!hasWarnedAboutUsingNestedContextConsumers) {\n            hasWarnedAboutUsingNestedContextConsumers = true;\n\n            error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n          }\n\n          return context.Consumer;\n        }\n      },\n      displayName: {\n        get: function () {\n          return context.displayName;\n        },\n        set: function (displayName) {\n          if (!hasWarnedAboutDisplayNameOnConsumer) {\n            warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n\n            hasWarnedAboutDisplayNameOnConsumer = true;\n          }\n        }\n      }\n    }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n    context.Consumer = Consumer;\n  }\n\n  {\n    context._currentRenderer = null;\n    context._currentRenderer2 = null;\n  }\n\n  return context;\n}\n\nvar Uninitialized = -1;\nvar Pending = 0;\nvar Resolved = 1;\nvar Rejected = 2;\n\nfunction lazyInitializer(payload) {\n  if (payload._status === Uninitialized) {\n    var ctor = payload._result;\n    var thenable = ctor(); // Transition to the next state.\n    // This might throw either because it's missing or throws. If so, we treat it\n    // as still uninitialized and try again next time. Which is the same as what\n    // happens if the ctor or any wrappers processing the ctor throws. This might\n    // end up fixing it if the resolution was a concurrency bug.\n\n    thenable.then(function (moduleObject) {\n      if (payload._status === Pending || payload._status === Uninitialized) {\n        // Transition to the next state.\n        var resolved = payload;\n        resolved._status = Resolved;\n        resolved._result = moduleObject;\n      }\n    }, function (error) {\n      if (payload._status === Pending || payload._status === Uninitialized) {\n        // Transition to the next state.\n        var rejected = payload;\n        rejected._status = Rejected;\n        rejected._result = error;\n      }\n    });\n\n    if (payload._status === Uninitialized) {\n      // In case, we're still uninitialized, then we're waiting for the thenable\n      // to resolve. Set it as pending in the meantime.\n      var pending = payload;\n      pending._status = Pending;\n      pending._result = thenable;\n    }\n  }\n\n  if (payload._status === Resolved) {\n    var moduleObject = payload._result;\n\n    {\n      if (moduleObject === undefined) {\n        error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n  ' + // Break up imports to avoid accidentally parsing them as dependencies.\n        'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\\n\\n\" + 'Did you accidentally put curly braces around the import?', moduleObject);\n      }\n    }\n\n    {\n      if (!('default' in moduleObject)) {\n        error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n  ' + // Break up imports to avoid accidentally parsing them as dependencies.\n        'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n      }\n    }\n\n    return moduleObject.default;\n  } else {\n    throw payload._result;\n  }\n}\n\nfunction lazy(ctor) {\n  var payload = {\n    // We use these fields to store the result.\n    _status: Uninitialized,\n    _result: ctor\n  };\n  var lazyType = {\n    $$typeof: REACT_LAZY_TYPE,\n    _payload: payload,\n    _init: lazyInitializer\n  };\n\n  {\n    // In production, this would just set it on the object.\n    var defaultProps;\n    var propTypes; // $FlowFixMe\n\n    Object.defineProperties(lazyType, {\n      defaultProps: {\n        configurable: true,\n        get: function () {\n          return defaultProps;\n        },\n        set: function (newDefaultProps) {\n          error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n          defaultProps = newDefaultProps; // Match production behavior more closely:\n          // $FlowFixMe\n\n          Object.defineProperty(lazyType, 'defaultProps', {\n            enumerable: true\n          });\n        }\n      },\n      propTypes: {\n        configurable: true,\n        get: function () {\n          return propTypes;\n        },\n        set: function (newPropTypes) {\n          error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n          propTypes = newPropTypes; // Match production behavior more closely:\n          // $FlowFixMe\n\n          Object.defineProperty(lazyType, 'propTypes', {\n            enumerable: true\n          });\n        }\n      }\n    });\n  }\n\n  return lazyType;\n}\n\nfunction forwardRef(render) {\n  {\n    if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n      error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n    } else if (typeof render !== 'function') {\n      error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n    } else {\n      if (render.length !== 0 && render.length !== 2) {\n        error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n      }\n    }\n\n    if (render != null) {\n      if (render.defaultProps != null || render.propTypes != null) {\n        error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n      }\n    }\n  }\n\n  var elementType = {\n    $$typeof: REACT_FORWARD_REF_TYPE,\n    render: render\n  };\n\n  {\n    var ownName;\n    Object.defineProperty(elementType, 'displayName', {\n      enumerable: false,\n      configurable: true,\n      get: function () {\n        return ownName;\n      },\n      set: function (name) {\n        ownName = name; // The inner component shouldn't inherit this display name in most cases,\n        // because the component may be used elsewhere.\n        // But it's nice for anonymous functions to inherit the name,\n        // so that our component-stack generation logic will display their frames.\n        // An anonymous function generally suggests a pattern like:\n        //   React.forwardRef((props, ref) => {...});\n        // This kind of inner function is not used elsewhere so the side effect is okay.\n\n        if (!render.name && !render.displayName) {\n          render.displayName = name;\n        }\n      }\n    });\n  }\n\n  return elementType;\n}\n\nvar REACT_MODULE_REFERENCE;\n\n{\n  REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n  if (typeof type === 'string' || typeof type === 'function') {\n    return true;\n  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing  || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden  || type === REACT_OFFSCREEN_TYPE || enableScopeAPI  || enableCacheElement  || enableTransitionTracing ) {\n    return true;\n  }\n\n  if (typeof type === 'object' && type !== null) {\n    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n    // types supported by any Flight configuration anywhere since\n    // we don't know which Flight build this will end up being used\n    // with.\n    type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction memo(type, compare) {\n  {\n    if (!isValidElementType(type)) {\n      error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n    }\n  }\n\n  var elementType = {\n    $$typeof: REACT_MEMO_TYPE,\n    type: type,\n    compare: compare === undefined ? null : compare\n  };\n\n  {\n    var ownName;\n    Object.defineProperty(elementType, 'displayName', {\n      enumerable: false,\n      configurable: true,\n      get: function () {\n        return ownName;\n      },\n      set: function (name) {\n        ownName = name; // The inner component shouldn't inherit this display name in most cases,\n        // because the component may be used elsewhere.\n        // But it's nice for anonymous functions to inherit the name,\n        // so that our component-stack generation logic will display their frames.\n        // An anonymous function generally suggests a pattern like:\n        //   React.memo((props) => {...});\n        // This kind of inner function is not used elsewhere so the side effect is okay.\n\n        if (!type.name && !type.displayName) {\n          type.displayName = name;\n        }\n      }\n    });\n  }\n\n  return elementType;\n}\n\nfunction resolveDispatcher() {\n  var dispatcher = ReactCurrentDispatcher.current;\n\n  {\n    if (dispatcher === null) {\n      error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\\n' + '2. You might be breaking the Rules of Hooks\\n' + '3. You might have more than one copy of React in the same app\\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');\n    }\n  } // Will result in a null access error if accessed outside render phase. We\n  // intentionally don't throw our own error because this is in a hot path.\n  // Also helps ensure this is inlined.\n\n\n  return dispatcher;\n}\nfunction useContext(Context) {\n  var dispatcher = resolveDispatcher();\n\n  {\n    // TODO: add a more generic warning for invalid values.\n    if (Context._context !== undefined) {\n      var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n      // and nobody should be using this in existing code.\n\n      if (realContext.Consumer === Context) {\n        error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n      } else if (realContext.Provider === Context) {\n        error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n      }\n    }\n  }\n\n  return dispatcher.useContext(Context);\n}\nfunction useState(initialState) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useState(initialState);\n}\nfunction useReducer(reducer, initialArg, init) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useReducer(reducer, initialArg, init);\n}\nfunction useRef(initialValue) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useRef(initialValue);\n}\nfunction useEffect(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useEffect(create, deps);\n}\nfunction useInsertionEffect(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useInsertionEffect(create, deps);\n}\nfunction useLayoutEffect(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useLayoutEffect(create, deps);\n}\nfunction useCallback(callback, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useCallback(callback, deps);\n}\nfunction useMemo(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useMemo(create, deps);\n}\nfunction useImperativeHandle(ref, create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useImperativeHandle(ref, create, deps);\n}\nfunction useDebugValue(value, formatterFn) {\n  {\n    var dispatcher = resolveDispatcher();\n    return dispatcher.useDebugValue(value, formatterFn);\n  }\n}\nfunction useTransition() {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useTransition();\n}\nfunction useDeferredValue(value) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useDeferredValue(value);\n}\nfunction useId() {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useId();\n}\nfunction useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n  {\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      prevLog = console.log;\n      prevInfo = console.info;\n      prevWarn = console.warn;\n      prevError = console.error;\n      prevGroup = console.group;\n      prevGroupCollapsed = console.groupCollapsed;\n      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n      var props = {\n        configurable: true,\n        enumerable: true,\n        value: disabledLog,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        info: props,\n        log: props,\n        warn: props,\n        error: props,\n        group: props,\n        groupCollapsed: props,\n        groupEnd: props\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    disabledDepth++;\n  }\n}\nfunction reenableLogs() {\n  {\n    disabledDepth--;\n\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      var props = {\n        configurable: true,\n        enumerable: true,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        log: assign({}, props, {\n          value: prevLog\n        }),\n        info: assign({}, props, {\n          value: prevInfo\n        }),\n        warn: assign({}, props, {\n          value: prevWarn\n        }),\n        error: assign({}, props, {\n          value: prevError\n        }),\n        group: assign({}, props, {\n          value: prevGroup\n        }),\n        groupCollapsed: assign({}, props, {\n          value: prevGroupCollapsed\n        }),\n        groupEnd: assign({}, props, {\n          value: prevGroupEnd\n        })\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    if (disabledDepth < 0) {\n      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n    }\n  }\n}\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n  {\n    if (prefix === undefined) {\n      // Extract the VM specific prefix used by each line.\n      try {\n        throw Error();\n      } catch (x) {\n        var match = x.stack.trim().match(/\\n( *(at )?)/);\n        prefix = match && match[1] || '';\n      }\n    } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n    return '\\n' + prefix + name;\n  }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n  componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n  // If something asked for a stack inside a fake render, it should get ignored.\n  if ( !fn || reentry) {\n    return '';\n  }\n\n  {\n    var frame = componentFrameCache.get(fn);\n\n    if (frame !== undefined) {\n      return frame;\n    }\n  }\n\n  var control;\n  reentry = true;\n  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n  Error.prepareStackTrace = undefined;\n  var previousDispatcher;\n\n  {\n    previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n    // for warnings.\n\n    ReactCurrentDispatcher$1.current = null;\n    disableLogs();\n  }\n\n  try {\n    // This should throw.\n    if (construct) {\n      // Something should be setting the props in the constructor.\n      var Fake = function () {\n        throw Error();\n      }; // $FlowFixMe\n\n\n      Object.defineProperty(Fake.prototype, 'props', {\n        set: function () {\n          // We use a throwing setter instead of frozen or non-writable props\n          // because that won't throw in a non-strict mode function.\n          throw Error();\n        }\n      });\n\n      if (typeof Reflect === 'object' && Reflect.construct) {\n        // We construct a different control for this case to include any extra\n        // frames added by the construct call.\n        try {\n          Reflect.construct(Fake, []);\n        } catch (x) {\n          control = x;\n        }\n\n        Reflect.construct(fn, [], Fake);\n      } else {\n        try {\n          Fake.call();\n        } catch (x) {\n          control = x;\n        }\n\n        fn.call(Fake.prototype);\n      }\n    } else {\n      try {\n        throw Error();\n      } catch (x) {\n        control = x;\n      }\n\n      fn();\n    }\n  } catch (sample) {\n    // This is inlined manually because closure doesn't do it for us.\n    if (sample && control && typeof sample.stack === 'string') {\n      // This extracts the first frame from the sample that isn't also in the control.\n      // Skipping one frame that we assume is the frame that calls the two.\n      var sampleLines = sample.stack.split('\\n');\n      var controlLines = control.stack.split('\\n');\n      var s = sampleLines.length - 1;\n      var c = controlLines.length - 1;\n\n      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n        // We expect at least one stack frame to be shared.\n        // Typically this will be the root most one. However, stack frames may be\n        // cut off due to maximum stack limits. In this case, one maybe cut off\n        // earlier than the other. We assume that the sample is longer or the same\n        // and there for cut off earlier. So we should find the root most frame in\n        // the sample somewhere in the control.\n        c--;\n      }\n\n      for (; s >= 1 && c >= 0; s--, c--) {\n        // Next we find the first one that isn't the same which should be the\n        // frame that called our sample function and the control.\n        if (sampleLines[s] !== controlLines[c]) {\n          // In V8, the first line is describing the message but other VMs don't.\n          // If we're about to return the first line, and the control is also on the same\n          // line, that's a pretty good indicator that our sample threw at same line as\n          // the control. I.e. before we entered the sample frame. So we ignore this result.\n          // This can happen if you passed a class to function component, or non-function.\n          if (s !== 1 || c !== 1) {\n            do {\n              s--;\n              c--; // We may still have similar intermediate frames from the construct call.\n              // The next one that isn't the same should be our match though.\n\n              if (c < 0 || sampleLines[s] !== controlLines[c]) {\n                // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n                var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n                // but we have a user-provided \"displayName\"\n                // splice it in to make the stack more readable.\n\n\n                if (fn.displayName && _frame.includes('<anonymous>')) {\n                  _frame = _frame.replace('<anonymous>', fn.displayName);\n                }\n\n                {\n                  if (typeof fn === 'function') {\n                    componentFrameCache.set(fn, _frame);\n                  }\n                } // Return the line we found.\n\n\n                return _frame;\n              }\n            } while (s >= 1 && c >= 0);\n          }\n\n          break;\n        }\n      }\n    }\n  } finally {\n    reentry = false;\n\n    {\n      ReactCurrentDispatcher$1.current = previousDispatcher;\n      reenableLogs();\n    }\n\n    Error.prepareStackTrace = previousPrepareStackTrace;\n  } // Fallback to just using the name if we couldn't make it throw.\n\n\n  var name = fn ? fn.displayName || fn.name : '';\n  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n  {\n    if (typeof fn === 'function') {\n      componentFrameCache.set(fn, syntheticFrame);\n    }\n  }\n\n  return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(fn, false);\n  }\n}\n\nfunction shouldConstruct(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n  if (type == null) {\n    return '';\n  }\n\n  if (typeof type === 'function') {\n    {\n      return describeNativeComponentFrame(type, shouldConstruct(type));\n    }\n  }\n\n  if (typeof type === 'string') {\n    return describeBuiltInComponentFrame(type);\n  }\n\n  switch (type) {\n    case REACT_SUSPENSE_TYPE:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return describeBuiltInComponentFrame('SuspenseList');\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        return describeFunctionComponentFrame(type.render);\n\n      case REACT_MEMO_TYPE:\n        // Memo may contain any component type so we recursively resolve it.\n        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            // Lazy may contain any component type so we recursively resolve it.\n            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n          } catch (x) {}\n        }\n    }\n  }\n\n  return '';\n}\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n    }\n  }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n  {\n    // $FlowFixMe This is okay but Flow doesn't know it.\n    var has = Function.call.bind(hasOwnProperty);\n\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            // eslint-disable-next-line react-internal/prod-error-codes\n            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n\n          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n        } catch (ex) {\n          error$1 = ex;\n        }\n\n        if (error$1 && !(error$1 instanceof Error)) {\n          setCurrentlyValidatingElement(element);\n\n          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n          setCurrentlyValidatingElement(null);\n        }\n\n        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error$1.message] = true;\n          setCurrentlyValidatingElement(element);\n\n          error('Failed %s type: %s', location, error$1.message);\n\n          setCurrentlyValidatingElement(null);\n        }\n      }\n    }\n  }\n}\n\nfunction setCurrentlyValidatingElement$1(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      setExtraStackFrame(stack);\n    } else {\n      setExtraStackFrame(null);\n    }\n  }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n  propTypesMisspellWarningShown = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n  if (ReactCurrentOwner.current) {\n    var name = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n    if (name) {\n      return '\\n\\nCheck the render method of `' + name + '`.';\n    }\n  }\n\n  return '';\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n  if (source !== undefined) {\n    var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n    var lineNumber = source.lineNumber;\n    return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n  }\n\n  return '';\n}\n\nfunction getSourceInfoErrorAddendumForProps(elementProps) {\n  if (elementProps !== null && elementProps !== undefined) {\n    return getSourceInfoErrorAddendum(elementProps.__source);\n  }\n\n  return '';\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n  var info = getDeclarationErrorAddendum();\n\n  if (!info) {\n    var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n    if (parentName) {\n      info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n    }\n  }\n\n  return info;\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n  if (!element._store || element._store.validated || element.key != null) {\n    return;\n  }\n\n  element._store.validated = true;\n  var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n  if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n    return;\n  }\n\n  ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n  // property, it may be the creator of the child that's responsible for\n  // assigning it a key.\n\n  var childOwner = '';\n\n  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n    // Give the component that originally created this child.\n    childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n  }\n\n  {\n    setCurrentlyValidatingElement$1(element);\n\n    error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n    setCurrentlyValidatingElement$1(null);\n  }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n  if (typeof node !== 'object') {\n    return;\n  }\n\n  if (isArray(node)) {\n    for (var i = 0; i < node.length; i++) {\n      var child = node[i];\n\n      if (isValidElement(child)) {\n        validateExplicitKey(child, parentType);\n      }\n    }\n  } else if (isValidElement(node)) {\n    // This element was passed in a valid location.\n    if (node._store) {\n      node._store.validated = true;\n    }\n  } else if (node) {\n    var iteratorFn = getIteratorFn(node);\n\n    if (typeof iteratorFn === 'function') {\n      // Entry iterators used to provide implicit keys,\n      // but now we print a separate warning for them later.\n      if (iteratorFn !== node.entries) {\n        var iterator = iteratorFn.call(node);\n        var step;\n\n        while (!(step = iterator.next()).done) {\n          if (isValidElement(step.value)) {\n            validateExplicitKey(step.value, parentType);\n          }\n        }\n      }\n    }\n  }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n  {\n    var type = element.type;\n\n    if (type === null || type === undefined || typeof type === 'string') {\n      return;\n    }\n\n    var propTypes;\n\n    if (typeof type === 'function') {\n      propTypes = type.propTypes;\n    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n    // Inner props are checked in the reconciler.\n    type.$$typeof === REACT_MEMO_TYPE)) {\n      propTypes = type.propTypes;\n    } else {\n      return;\n    }\n\n    if (propTypes) {\n      // Intentionally inside to avoid triggering lazy initializers:\n      var name = getComponentNameFromType(type);\n      checkPropTypes(propTypes, element.props, 'prop', name, element);\n    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n      var _name = getComponentNameFromType(type);\n\n      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n    }\n\n    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n    }\n  }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n  {\n    var keys = Object.keys(fragment.props);\n\n    for (var i = 0; i < keys.length; i++) {\n      var key = keys[i];\n\n      if (key !== 'children' && key !== 'key') {\n        setCurrentlyValidatingElement$1(fragment);\n\n        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n        setCurrentlyValidatingElement$1(null);\n        break;\n      }\n    }\n\n    if (fragment.ref !== null) {\n      setCurrentlyValidatingElement$1(fragment);\n\n      error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n      setCurrentlyValidatingElement$1(null);\n    }\n  }\n}\nfunction createElementWithValidation(type, props, children) {\n  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n  // succeed and there will likely be errors in render.\n\n  if (!validType) {\n    var info = '';\n\n    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n      info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n    }\n\n    var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n\n    if (sourceInfo) {\n      info += sourceInfo;\n    } else {\n      info += getDeclarationErrorAddendum();\n    }\n\n    var typeString;\n\n    if (type === null) {\n      typeString = 'null';\n    } else if (isArray(type)) {\n      typeString = 'array';\n    } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n      typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n      info = ' Did you accidentally export a JSX literal instead of a component?';\n    } else {\n      typeString = typeof type;\n    }\n\n    {\n      error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n    }\n  }\n\n  var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n  // TODO: Drop this when these are no longer allowed as the type argument.\n\n  if (element == null) {\n    return element;\n  } // Skip key warning if the type isn't valid since our key validation logic\n  // doesn't expect a non-string/function type and can throw confusing errors.\n  // We don't want exception behavior to differ between dev and prod.\n  // (Rendering will throw with a helpful message and as soon as the type is\n  // fixed, the key warnings will appear.)\n\n\n  if (validType) {\n    for (var i = 2; i < arguments.length; i++) {\n      validateChildKeys(arguments[i], type);\n    }\n  }\n\n  if (type === REACT_FRAGMENT_TYPE) {\n    validateFragmentProps(element);\n  } else {\n    validatePropTypes(element);\n  }\n\n  return element;\n}\nvar didWarnAboutDeprecatedCreateFactory = false;\nfunction createFactoryWithValidation(type) {\n  var validatedFactory = createElementWithValidation.bind(null, type);\n  validatedFactory.type = type;\n\n  {\n    if (!didWarnAboutDeprecatedCreateFactory) {\n      didWarnAboutDeprecatedCreateFactory = true;\n\n      warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n    } // Legacy hook: remove it\n\n\n    Object.defineProperty(validatedFactory, 'type', {\n      enumerable: false,\n      get: function () {\n        warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n\n        Object.defineProperty(this, 'type', {\n          value: type\n        });\n        return type;\n      }\n    });\n  }\n\n  return validatedFactory;\n}\nfunction cloneElementWithValidation(element, props, children) {\n  var newElement = cloneElement.apply(this, arguments);\n\n  for (var i = 2; i < arguments.length; i++) {\n    validateChildKeys(arguments[i], newElement.type);\n  }\n\n  validatePropTypes(newElement);\n  return newElement;\n}\n\nfunction startTransition(scope, options) {\n  var prevTransition = ReactCurrentBatchConfig.transition;\n  ReactCurrentBatchConfig.transition = {};\n  var currentTransition = ReactCurrentBatchConfig.transition;\n\n  {\n    ReactCurrentBatchConfig.transition._updatedFibers = new Set();\n  }\n\n  try {\n    scope();\n  } finally {\n    ReactCurrentBatchConfig.transition = prevTransition;\n\n    {\n      if (prevTransition === null && currentTransition._updatedFibers) {\n        var updatedFibersCount = currentTransition._updatedFibers.size;\n\n        if (updatedFibersCount > 10) {\n          warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');\n        }\n\n        currentTransition._updatedFibers.clear();\n      }\n    }\n  }\n}\n\nvar didWarnAboutMessageChannel = false;\nvar enqueueTaskImpl = null;\nfunction enqueueTask(task) {\n  if (enqueueTaskImpl === null) {\n    try {\n      // read require off the module object to get around the bundlers.\n      // we don't want them to detect a require and bundle a Node polyfill.\n      var requireString = ('require' + Math.random()).slice(0, 7);\n      var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's\n      // version of setImmediate, bypassing fake timers if any.\n\n      enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;\n    } catch (_err) {\n      // we're in a browser\n      // we can't use regular timers because they may still be faked\n      // so we try MessageChannel+postMessage instead\n      enqueueTaskImpl = function (callback) {\n        {\n          if (didWarnAboutMessageChannel === false) {\n            didWarnAboutMessageChannel = true;\n\n            if (typeof MessageChannel === 'undefined') {\n              error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.');\n            }\n          }\n        }\n\n        var channel = new MessageChannel();\n        channel.port1.onmessage = callback;\n        channel.port2.postMessage(undefined);\n      };\n    }\n  }\n\n  return enqueueTaskImpl(task);\n}\n\nvar actScopeDepth = 0;\nvar didWarnNoAwaitAct = false;\nfunction act(callback) {\n  {\n    // `act` calls can be nested, so we track the depth. This represents the\n    // number of `act` scopes on the stack.\n    var prevActScopeDepth = actScopeDepth;\n    actScopeDepth++;\n\n    if (ReactCurrentActQueue.current === null) {\n      // This is the outermost `act` scope. Initialize the queue. The reconciler\n      // will detect the queue and use it instead of Scheduler.\n      ReactCurrentActQueue.current = [];\n    }\n\n    var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;\n    var result;\n\n    try {\n      // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only\n      // set to `true` while the given callback is executed, not for updates\n      // triggered during an async event, because this is how the legacy\n      // implementation of `act` behaved.\n      ReactCurrentActQueue.isBatchingLegacy = true;\n      result = callback(); // Replicate behavior of original `act` implementation in legacy mode,\n      // which flushed updates immediately after the scope function exits, even\n      // if it's an async function.\n\n      if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {\n        var queue = ReactCurrentActQueue.current;\n\n        if (queue !== null) {\n          ReactCurrentActQueue.didScheduleLegacyUpdate = false;\n          flushActQueue(queue);\n        }\n      }\n    } catch (error) {\n      popActScope(prevActScopeDepth);\n      throw error;\n    } finally {\n      ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;\n    }\n\n    if (result !== null && typeof result === 'object' && typeof result.then === 'function') {\n      var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait\n      // for it to resolve before exiting the current scope.\n\n      var wasAwaited = false;\n      var thenable = {\n        then: function (resolve, reject) {\n          wasAwaited = true;\n          thenableResult.then(function (returnValue) {\n            popActScope(prevActScopeDepth);\n\n            if (actScopeDepth === 0) {\n              // We've exited the outermost act scope. Recursively flush the\n              // queue until there's no remaining work.\n              recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n            } else {\n              resolve(returnValue);\n            }\n          }, function (error) {\n            // The callback threw an error.\n            popActScope(prevActScopeDepth);\n            reject(error);\n          });\n        }\n      };\n\n      {\n        if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {\n          // eslint-disable-next-line no-undef\n          Promise.resolve().then(function () {}).then(function () {\n            if (!wasAwaited) {\n              didWarnNoAwaitAct = true;\n\n              error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);');\n            }\n          });\n        }\n      }\n\n      return thenable;\n    } else {\n      var returnValue = result; // The callback is not an async function. Exit the current scope\n      // immediately, without awaiting.\n\n      popActScope(prevActScopeDepth);\n\n      if (actScopeDepth === 0) {\n        // Exiting the outermost act scope. Flush the queue.\n        var _queue = ReactCurrentActQueue.current;\n\n        if (_queue !== null) {\n          flushActQueue(_queue);\n          ReactCurrentActQueue.current = null;\n        } // Return a thenable. If the user awaits it, we'll flush again in\n        // case additional work was scheduled by a microtask.\n\n\n        var _thenable = {\n          then: function (resolve, reject) {\n            // Confirm we haven't re-entered another `act` scope, in case\n            // the user does something weird like await the thenable\n            // multiple times.\n            if (ReactCurrentActQueue.current === null) {\n              // Recursively flush the queue until there's no remaining work.\n              ReactCurrentActQueue.current = [];\n              recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n            } else {\n              resolve(returnValue);\n            }\n          }\n        };\n        return _thenable;\n      } else {\n        // Since we're inside a nested `act` scope, the returned thenable\n        // immediately resolves. The outer scope will flush the queue.\n        var _thenable2 = {\n          then: function (resolve, reject) {\n            resolve(returnValue);\n          }\n        };\n        return _thenable2;\n      }\n    }\n  }\n}\n\nfunction popActScope(prevActScopeDepth) {\n  {\n    if (prevActScopeDepth !== actScopeDepth - 1) {\n      error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');\n    }\n\n    actScopeDepth = prevActScopeDepth;\n  }\n}\n\nfunction recursivelyFlushAsyncActWork(returnValue, resolve, reject) {\n  {\n    var queue = ReactCurrentActQueue.current;\n\n    if (queue !== null) {\n      try {\n        flushActQueue(queue);\n        enqueueTask(function () {\n          if (queue.length === 0) {\n            // No additional work was scheduled. Finish.\n            ReactCurrentActQueue.current = null;\n            resolve(returnValue);\n          } else {\n            // Keep flushing work until there's none left.\n            recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n          }\n        });\n      } catch (error) {\n        reject(error);\n      }\n    } else {\n      resolve(returnValue);\n    }\n  }\n}\n\nvar isFlushing = false;\n\nfunction flushActQueue(queue) {\n  {\n    if (!isFlushing) {\n      // Prevent re-entrance.\n      isFlushing = true;\n      var i = 0;\n\n      try {\n        for (; i < queue.length; i++) {\n          var callback = queue[i];\n\n          do {\n            callback = callback(true);\n          } while (callback !== null);\n        }\n\n        queue.length = 0;\n      } catch (error) {\n        // If something throws, leave the remaining callbacks on the queue.\n        queue = queue.slice(i + 1);\n        throw error;\n      } finally {\n        isFlushing = false;\n      }\n    }\n  }\n}\n\nvar createElement$1 =  createElementWithValidation ;\nvar cloneElement$1 =  cloneElementWithValidation ;\nvar createFactory =  createFactoryWithValidation ;\nvar Children = {\n  map: mapChildren,\n  forEach: forEachChildren,\n  count: countChildren,\n  toArray: toArray,\n  only: onlyChild\n};\n\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\nexports.act = act;\nexports.cloneElement = cloneElement$1;\nexports.createContext = createContext;\nexports.createElement = createElement$1;\nexports.createFactory = createFactory;\nexports.createRef = createRef;\nexports.forwardRef = forwardRef;\nexports.isValidElement = isValidElement;\nexports.lazy = lazy;\nexports.memo = memo;\nexports.startTransition = startTransition;\nexports.unstable_act = act;\nexports.useCallback = useCallback;\nexports.useContext = useContext;\nexports.useDebugValue = useDebugValue;\nexports.useDeferredValue = useDeferredValue;\nexports.useEffect = useEffect;\nexports.useId = useId;\nexports.useImperativeHandle = useImperativeHandle;\nexports.useInsertionEffect = useInsertionEffect;\nexports.useLayoutEffect = useLayoutEffect;\nexports.useMemo = useMemo;\nexports.useReducer = useReducer;\nexports.useRef = useRef;\nexports.useState = useState;\nexports.useSyncExternalStore = useSyncExternalStore;\nexports.useTransition = useTransition;\nexports.version = ReactVersion;\n          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n        \n  })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react.production.min.js');\n} else {\n  module.exports = require('./cjs/react.development.js');\n}\n","/**\n * React Query hooks for common API operations\n */\n\nimport {\n  useQuery,\n  useMutation,\n  useInfiniteQuery,\n  useQueryClient,\n  type UseQueryOptions,\n  type UseMutationOptions,\n  type UseInfiniteQueryOptions,\n} from '@tanstack/react-query'\nimport { useCallback } from 'react'\nimport type { ApiClient } from '../client/api-client'\nimport type { RequestConfig, ApiResponse, PaginatedResponse } from '../types'\nimport { queryKeys, queryOptions, mutationOptions } from './query-client'\n\n/**\n * Hook to get the API client instance\n * This should be provided via context in a real application\n */\nlet globalApiClient: ApiClient | null = null\n\nexport function setGlobalApiClient(client: ApiClient) {\n  globalApiClient = client\n}\n\nfunction useApiClient(): ApiClient {\n  if (!globalApiClient) {\n    throw new Error('API client not configured. Call setGlobalApiClient() first.')\n  }\n  return globalApiClient\n}\n\n/**\n * Generic fetch hook\n */\nexport function useApiFetch<TData = any>(\n  key: readonly unknown[],\n  url: string,\n  config?: RequestConfig,\n  options?: Omit<UseQueryOptions<TData>, 'queryKey' | 'queryFn'>\n) {\n  const apiClient = useApiClient()\n\n  return useQuery({\n    ...queryOptions.standard(key, () =>\n      apiClient.get<TData>(url, config).then(response => response.data)\n    ),\n    ...options,\n  })\n}\n\n/**\n * Generic mutation hook\n */\nexport function useApiMutation<TData = any, TVariables = any>(\n  mutationFn: (variables: TVariables) => Promise<ApiResponse<TData>>,\n  options?: UseMutationOptions<ApiResponse<TData>, Error, TVariables>\n) {\n  return useMutation({\n    ...mutationOptions.standard(mutationFn),\n    ...options,\n  })\n}\n\n/**\n * GET request hook\n */\nexport function useGet<TData = any>(\n  key: readonly unknown[],\n  url: string,\n  config?: RequestConfig,\n  options?: Omit<UseQueryOptions<TData>, 'queryKey' | 'queryFn'>\n) {\n  return useApiFetch<TData>(key, url, config, options)\n}\n\n/**\n * POST request hook\n */\nexport function usePost<TData = any, TVariables = any>(\n  url: string,\n  options?: UseMutationOptions<ApiResponse<TData>, Error, TVariables>\n) {\n  const apiClient = useApiClient()\n\n  return useApiMutation<TData, TVariables>(\n    variables => apiClient.post<TData>(url, variables),\n    options\n  )\n}\n\n/**\n * PUT request hook\n */\nexport function usePut<TData = any, TVariables = any>(\n  url: string,\n  options?: UseMutationOptions<ApiResponse<TData>, Error, TVariables>\n) {\n  const apiClient = useApiClient()\n\n  return useApiMutation<TData, TVariables>(\n    variables => apiClient.put<TData>(url, variables),\n    options\n  )\n}\n\n/**\n * PATCH request hook\n */\nexport function usePatch<TData = any, TVariables = any>(\n  url: string,\n  options?: UseMutationOptions<ApiResponse<TData>, Error, TVariables>\n) {\n  const apiClient = useApiClient()\n\n  return useApiMutation<TData, TVariables>(\n    variables => apiClient.patch<TData>(url, variables),\n    options\n  )\n}\n\n/**\n * DELETE request hook\n */\nexport function useDelete<TData = any>(\n  url: string,\n  options?: UseMutationOptions<ApiResponse<TData>, Error, void>\n) {\n  const apiClient = useApiClient()\n\n  return useApiMutation<TData, void>(() => apiClient.delete<TData>(url), options)\n}\n\n/**\n * Paginated query hook\n */\nexport function usePaginatedQuery<TData = any>(\n  key: readonly unknown[],\n  url: string,\n  page = 1,\n  limit = 10,\n  config?: RequestConfig,\n  options?: Omit<UseQueryOptions<PaginatedResponse<TData>>, 'queryKey' | 'queryFn'>\n) {\n  const apiClient = useApiClient()\n\n  return useQuery({\n    ...queryOptions.standard([...key, 'paginated', { page, limit }], () =>\n      apiClient\n        .get<PaginatedResponse<TData>>(url, {\n          ...config,\n          params: { ...config?.params, page, limit },\n        })\n        .then(response => response.data)\n    ),\n    ...options,\n  })\n}\n\n/**\n * Infinite query hook for pagination\n */\nexport function useInfiniteApiQuery<TData = any>(\n  key: readonly unknown[],\n  url: string,\n  config?: RequestConfig,\n  options?: Omit<\n    UseInfiniteQueryOptions<PaginatedResponse<TData>>,\n    'queryKey' | 'queryFn' | 'getNextPageParam'\n  >\n) {\n  const apiClient = useApiClient()\n\n  return useInfiniteQuery({\n    queryKey: [...key, 'infinite'],\n    queryFn: ({ pageParam = 1 }) =>\n      apiClient\n        .get<PaginatedResponse<TData>>(url, {\n          ...config,\n          params: { ...config?.params, page: pageParam },\n        })\n        .then(response => response.data),\n    getNextPageParam: lastPage => {\n      if (lastPage.pagination.hasNext) {\n        return lastPage.pagination.page + 1\n      }\n      return undefined\n    },\n    initialPageParam: 1,\n    ...options,\n  })\n}\n\n/**\n * Search query hook with debouncing\n */\nexport function useSearchQuery<TData = any>(\n  query: string,\n  url: string,\n  config?: RequestConfig,\n  options?: Omit<UseQueryOptions<TData[]>, 'queryKey' | 'queryFn'>\n) {\n  const apiClient = useApiClient()\n\n  return useQuery({\n    queryKey: queryKeys.search(query),\n    queryFn: () =>\n      apiClient\n        .get<TData[]>(url, {\n          ...config,\n          params: { ...config?.params, q: query },\n        })\n        .then(response => response.data),\n    enabled: query.length > 0,\n    staleTime: 30 * 1000, // 30 seconds\n    ...options,\n  })\n}\n\n/**\n * Cache management hooks\n */\nexport function useCacheUtils() {\n  const queryClient = useQueryClient()\n\n  const invalidateQueries = useCallback(\n    (key: readonly unknown[]) => {\n      return queryClient.invalidateQueries({ queryKey: key })\n    },\n    [queryClient]\n  )\n\n  const refetchQueries = useCallback(\n    (key: readonly unknown[]) => {\n      return queryClient.refetchQueries({ queryKey: key })\n    },\n    [queryClient]\n  )\n\n  const removeQueries = useCallback(\n    (key: readonly unknown[]) => {\n      return queryClient.removeQueries({ queryKey: key })\n    },\n    [queryClient]\n  )\n\n  const setQueryData = useCallback(\n    <TData>(key: readonly unknown[], data: TData) => {\n      return queryClient.setQueryData(key, data)\n    },\n    [queryClient]\n  )\n\n  const getQueryData = useCallback(\n    <TData>(key: readonly unknown[]) => {\n      return queryClient.getQueryData<TData>(key)\n    },\n    [queryClient]\n  )\n\n  const prefetchQuery = useCallback(\n    <TData>(key: readonly unknown[], fetcher: () => Promise<TData>, staleTime?: number) => {\n      return queryClient.prefetchQuery({\n        queryKey: key,\n        queryFn: fetcher,\n        ...(staleTime !== undefined && { staleTime }),\n      })\n    },\n    [queryClient]\n  )\n\n  return {\n    invalidateQueries,\n    refetchQueries,\n    removeQueries,\n    setQueryData,\n    getQueryData,\n    prefetchQuery,\n  }\n}\n\n/**\n * Optimistic update hook\n */\nexport function useOptimisticMutation<TData, TVariables>(\n  mutationFn: (variables: TVariables) => Promise<ApiResponse<TData>>,\n  queryKey: readonly unknown[],\n  optimisticUpdate: (oldData: TData | undefined, variables: TVariables) => TData,\n  options?: UseMutationOptions<\n    ApiResponse<TData>,\n    Error,\n    TVariables,\n    { previousData: TData | undefined }\n  >\n) {\n  const queryClient = useQueryClient()\n\n  return useMutation({\n    mutationFn,\n    onMutate: async (variables): Promise<{ previousData: TData | undefined }> => {\n      // Cancel outgoing refetches\n      await queryClient.cancelQueries({ queryKey })\n\n      // Snapshot previous value\n      const previousData = queryClient.getQueryData<TData>(queryKey)\n\n      // Optimistically update\n      queryClient.setQueryData<TData>(queryKey, old => optimisticUpdate(old, variables))\n\n      // Return context with previous data\n      return { previousData }\n    },\n    onError: (error, variables, context) => {\n      // Rollback on error\n      if (context?.previousData) {\n        queryClient.setQueryData(queryKey, context.previousData)\n      }\n      options?.onError?.(error, variables, context)\n    },\n    onSettled: () => {\n      // Refetch after mutation\n      queryClient.invalidateQueries({ queryKey })\n    },\n    ...options,\n  })\n}\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n  if (maybeIterable === null || typeof maybeIterable !== 'object') {\n    return null;\n  }\n\n  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if (typeof maybeIterator === 'function') {\n    return maybeIterator;\n  }\n\n  return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n  {\n    {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      printWarning('error', format, args);\n    }\n  }\n}\n\nfunction printWarning(level, format, args) {\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n    var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n    if (stack !== '') {\n      format += '%s';\n      args = args.concat([stack]);\n    } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n    var argsWithFormat = args.map(function (item) {\n      return String(item);\n    }); // Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n  }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n  REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n  if (typeof type === 'string' || typeof type === 'function') {\n    return true;\n  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing  || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden  || type === REACT_OFFSCREEN_TYPE || enableScopeAPI  || enableCacheElement  || enableTransitionTracing ) {\n    return true;\n  }\n\n  if (typeof type === 'object' && type !== null) {\n    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n    // types supported by any Flight configuration anywhere since\n    // we don't know which Flight build this will end up being used\n    // with.\n    type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  var displayName = outerType.displayName;\n\n  if (displayName) {\n    return displayName;\n  }\n\n  var functionName = innerType.displayName || innerType.name || '';\n  return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n  return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n  if (type == null) {\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if (typeof type.tag === 'number') {\n      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if (typeof type === 'function') {\n    return type.displayName || type.name || null;\n  }\n\n  if (typeof type === 'string') {\n    return type;\n  }\n\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return 'Profiler';\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_CONTEXT_TYPE:\n        var context = type;\n        return getContextName(context) + '.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        var provider = type;\n        return getContextName(provider._context) + '.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        var outerName = type.displayName || null;\n\n        if (outerName !== null) {\n          return outerName;\n        }\n\n        return getComponentNameFromType(type.type) || 'Memo';\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            return getComponentNameFromType(init(payload));\n          } catch (x) {\n            return null;\n          }\n        }\n\n      // eslint-disable-next-line no-fallthrough\n    }\n  }\n\n  return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n  {\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      prevLog = console.log;\n      prevInfo = console.info;\n      prevWarn = console.warn;\n      prevError = console.error;\n      prevGroup = console.group;\n      prevGroupCollapsed = console.groupCollapsed;\n      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n      var props = {\n        configurable: true,\n        enumerable: true,\n        value: disabledLog,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        info: props,\n        log: props,\n        warn: props,\n        error: props,\n        group: props,\n        groupCollapsed: props,\n        groupEnd: props\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    disabledDepth++;\n  }\n}\nfunction reenableLogs() {\n  {\n    disabledDepth--;\n\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      var props = {\n        configurable: true,\n        enumerable: true,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        log: assign({}, props, {\n          value: prevLog\n        }),\n        info: assign({}, props, {\n          value: prevInfo\n        }),\n        warn: assign({}, props, {\n          value: prevWarn\n        }),\n        error: assign({}, props, {\n          value: prevError\n        }),\n        group: assign({}, props, {\n          value: prevGroup\n        }),\n        groupCollapsed: assign({}, props, {\n          value: prevGroupCollapsed\n        }),\n        groupEnd: assign({}, props, {\n          value: prevGroupEnd\n        })\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    if (disabledDepth < 0) {\n      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n    }\n  }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n  {\n    if (prefix === undefined) {\n      // Extract the VM specific prefix used by each line.\n      try {\n        throw Error();\n      } catch (x) {\n        var match = x.stack.trim().match(/\\n( *(at )?)/);\n        prefix = match && match[1] || '';\n      }\n    } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n    return '\\n' + prefix + name;\n  }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n  componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n  // If something asked for a stack inside a fake render, it should get ignored.\n  if ( !fn || reentry) {\n    return '';\n  }\n\n  {\n    var frame = componentFrameCache.get(fn);\n\n    if (frame !== undefined) {\n      return frame;\n    }\n  }\n\n  var control;\n  reentry = true;\n  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n  Error.prepareStackTrace = undefined;\n  var previousDispatcher;\n\n  {\n    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n    // for warnings.\n\n    ReactCurrentDispatcher.current = null;\n    disableLogs();\n  }\n\n  try {\n    // This should throw.\n    if (construct) {\n      // Something should be setting the props in the constructor.\n      var Fake = function () {\n        throw Error();\n      }; // $FlowFixMe\n\n\n      Object.defineProperty(Fake.prototype, 'props', {\n        set: function () {\n          // We use a throwing setter instead of frozen or non-writable props\n          // because that won't throw in a non-strict mode function.\n          throw Error();\n        }\n      });\n\n      if (typeof Reflect === 'object' && Reflect.construct) {\n        // We construct a different control for this case to include any extra\n        // frames added by the construct call.\n        try {\n          Reflect.construct(Fake, []);\n        } catch (x) {\n          control = x;\n        }\n\n        Reflect.construct(fn, [], Fake);\n      } else {\n        try {\n          Fake.call();\n        } catch (x) {\n          control = x;\n        }\n\n        fn.call(Fake.prototype);\n      }\n    } else {\n      try {\n        throw Error();\n      } catch (x) {\n        control = x;\n      }\n\n      fn();\n    }\n  } catch (sample) {\n    // This is inlined manually because closure doesn't do it for us.\n    if (sample && control && typeof sample.stack === 'string') {\n      // This extracts the first frame from the sample that isn't also in the control.\n      // Skipping one frame that we assume is the frame that calls the two.\n      var sampleLines = sample.stack.split('\\n');\n      var controlLines = control.stack.split('\\n');\n      var s = sampleLines.length - 1;\n      var c = controlLines.length - 1;\n\n      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n        // We expect at least one stack frame to be shared.\n        // Typically this will be the root most one. However, stack frames may be\n        // cut off due to maximum stack limits. In this case, one maybe cut off\n        // earlier than the other. We assume that the sample is longer or the same\n        // and there for cut off earlier. So we should find the root most frame in\n        // the sample somewhere in the control.\n        c--;\n      }\n\n      for (; s >= 1 && c >= 0; s--, c--) {\n        // Next we find the first one that isn't the same which should be the\n        // frame that called our sample function and the control.\n        if (sampleLines[s] !== controlLines[c]) {\n          // In V8, the first line is describing the message but other VMs don't.\n          // If we're about to return the first line, and the control is also on the same\n          // line, that's a pretty good indicator that our sample threw at same line as\n          // the control. I.e. before we entered the sample frame. So we ignore this result.\n          // This can happen if you passed a class to function component, or non-function.\n          if (s !== 1 || c !== 1) {\n            do {\n              s--;\n              c--; // We may still have similar intermediate frames from the construct call.\n              // The next one that isn't the same should be our match though.\n\n              if (c < 0 || sampleLines[s] !== controlLines[c]) {\n                // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n                var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n                // but we have a user-provided \"displayName\"\n                // splice it in to make the stack more readable.\n\n\n                if (fn.displayName && _frame.includes('<anonymous>')) {\n                  _frame = _frame.replace('<anonymous>', fn.displayName);\n                }\n\n                {\n                  if (typeof fn === 'function') {\n                    componentFrameCache.set(fn, _frame);\n                  }\n                } // Return the line we found.\n\n\n                return _frame;\n              }\n            } while (s >= 1 && c >= 0);\n          }\n\n          break;\n        }\n      }\n    }\n  } finally {\n    reentry = false;\n\n    {\n      ReactCurrentDispatcher.current = previousDispatcher;\n      reenableLogs();\n    }\n\n    Error.prepareStackTrace = previousPrepareStackTrace;\n  } // Fallback to just using the name if we couldn't make it throw.\n\n\n  var name = fn ? fn.displayName || fn.name : '';\n  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n  {\n    if (typeof fn === 'function') {\n      componentFrameCache.set(fn, syntheticFrame);\n    }\n  }\n\n  return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(fn, false);\n  }\n}\n\nfunction shouldConstruct(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n  if (type == null) {\n    return '';\n  }\n\n  if (typeof type === 'function') {\n    {\n      return describeNativeComponentFrame(type, shouldConstruct(type));\n    }\n  }\n\n  if (typeof type === 'string') {\n    return describeBuiltInComponentFrame(type);\n  }\n\n  switch (type) {\n    case REACT_SUSPENSE_TYPE:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return describeBuiltInComponentFrame('SuspenseList');\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        return describeFunctionComponentFrame(type.render);\n\n      case REACT_MEMO_TYPE:\n        // Memo may contain any component type so we recursively resolve it.\n        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            // Lazy may contain any component type so we recursively resolve it.\n            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n          } catch (x) {}\n        }\n    }\n  }\n\n  return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame.setExtraStackFrame(null);\n    }\n  }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n  {\n    // $FlowFixMe This is okay but Flow doesn't know it.\n    var has = Function.call.bind(hasOwnProperty);\n\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            // eslint-disable-next-line react-internal/prod-error-codes\n            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n\n          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n        } catch (ex) {\n          error$1 = ex;\n        }\n\n        if (error$1 && !(error$1 instanceof Error)) {\n          setCurrentlyValidatingElement(element);\n\n          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n          setCurrentlyValidatingElement(null);\n        }\n\n        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error$1.message] = true;\n          setCurrentlyValidatingElement(element);\n\n          error('Failed %s type: %s', location, error$1.message);\n\n          setCurrentlyValidatingElement(null);\n        }\n      }\n    }\n  }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n  return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n  {\n    // toStringTag is needed for namespaced types like Temporal.Instant\n    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n    return type;\n  }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n  {\n    try {\n      testStringCoercion(value);\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n}\n\nfunction testStringCoercion(value) {\n  // If you ended up here by following an exception call stack, here's what's\n  // happened: you supplied an object or symbol value to React (as a prop, key,\n  // DOM attribute, CSS property, string ref, etc.) and when React tried to\n  // coerce it to a string using `'' + value`, an exception was thrown.\n  //\n  // The most common types that will cause this exception are `Symbol` instances\n  // and Temporal objects like `Temporal.Instant`. But any object that has a\n  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n  // exception. (Library authors do this to prevent users from using built-in\n  // numeric operators like `+` or comparison operators like `>=` because custom\n  // methods are needed to perform accurate arithmetic or comparison.)\n  //\n  // To fix the problem, coerce this object or symbol value to a string before\n  // passing it to React. The most reliable way is usually `String(value)`.\n  //\n  // To find which value is throwing, check the browser or debugger console.\n  // Before this exception was thrown, there should be `console.error` output\n  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n  // problem and how that type was used: key, atrribute, input value prop, etc.\n  // In most cases, this console output also shows the component and its\n  // ancestor components where the exception happened.\n  //\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n  key: true,\n  ref: true,\n  __self: true,\n  __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n  didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n  {\n    if (hasOwnProperty.call(config, 'ref')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n  {\n    if (hasOwnProperty.call(config, 'key')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n  {\n    if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n      var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n      if (!didWarnAboutStringRefs[componentName]) {\n        error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n        didWarnAboutStringRefs[componentName] = true;\n      }\n    }\n  }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n  {\n    var warnAboutAccessingKey = function () {\n      if (!specialPropKeyWarningShown) {\n        specialPropKeyWarningShown = true;\n\n        error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n      }\n    };\n\n    warnAboutAccessingKey.isReactWarning = true;\n    Object.defineProperty(props, 'key', {\n      get: warnAboutAccessingKey,\n      configurable: true\n    });\n  }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n  {\n    var warnAboutAccessingRef = function () {\n      if (!specialPropRefWarningShown) {\n        specialPropRefWarningShown = true;\n\n        error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n      }\n    };\n\n    warnAboutAccessingRef.isReactWarning = true;\n    Object.defineProperty(props, 'ref', {\n      get: warnAboutAccessingRef,\n      configurable: true\n    });\n  }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n  var element = {\n    // This tag allows us to uniquely identify this as a React Element\n    $$typeof: REACT_ELEMENT_TYPE,\n    // Built-in properties that belong on the element\n    type: type,\n    key: key,\n    ref: ref,\n    props: props,\n    // Record the component responsible for creating this element.\n    _owner: owner\n  };\n\n  {\n    // The validation flag is currently mutative. We put it on\n    // an external backing store so that we can freeze the whole object.\n    // This can be replaced with a WeakMap once they are implemented in\n    // commonly used development environments.\n    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n    // the validation flag non-enumerable (where possible, which should\n    // include every environment we run tests in), so the test framework\n    // ignores it.\n\n    Object.defineProperty(element._store, 'validated', {\n      configurable: false,\n      enumerable: false,\n      writable: true,\n      value: false\n    }); // self and source are DEV only properties.\n\n    Object.defineProperty(element, '_self', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: self\n    }); // Two elements created in two different places should be considered\n    // equal for testing purposes and therefore we hide it from enumeration.\n\n    Object.defineProperty(element, '_source', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: source\n    });\n\n    if (Object.freeze) {\n      Object.freeze(element.props);\n      Object.freeze(element);\n    }\n  }\n\n  return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n  {\n    var propName; // Reserved names are extracted\n\n    var props = {};\n    var key = null;\n    var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n    // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n    // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n    // but as an intermediary step, we will use jsxDEV for everything except\n    // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n    // key is explicitly declared to be undefined or not.\n\n    if (maybeKey !== undefined) {\n      {\n        checkKeyStringCoercion(maybeKey);\n      }\n\n      key = '' + maybeKey;\n    }\n\n    if (hasValidKey(config)) {\n      {\n        checkKeyStringCoercion(config.key);\n      }\n\n      key = '' + config.key;\n    }\n\n    if (hasValidRef(config)) {\n      ref = config.ref;\n      warnIfStringRefCannotBeAutoConverted(config, self);\n    } // Remaining properties are added to a new props object\n\n\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        props[propName] = config[propName];\n      }\n    } // Resolve default props\n\n\n    if (type && type.defaultProps) {\n      var defaultProps = type.defaultProps;\n\n      for (propName in defaultProps) {\n        if (props[propName] === undefined) {\n          props[propName] = defaultProps[propName];\n        }\n      }\n    }\n\n    if (key || ref) {\n      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n      if (key) {\n        defineKeyPropWarningGetter(props, displayName);\n      }\n\n      if (ref) {\n        defineRefPropWarningGetter(props, displayName);\n      }\n    }\n\n    return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n  }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n    }\n  }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n  propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n  {\n    return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n  }\n}\n\nfunction getDeclarationErrorAddendum() {\n  {\n    if (ReactCurrentOwner$1.current) {\n      var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n      if (name) {\n        return '\\n\\nCheck the render method of `' + name + '`.';\n      }\n    }\n\n    return '';\n  }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n  {\n    if (source !== undefined) {\n      var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n      var lineNumber = source.lineNumber;\n      return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n    }\n\n    return '';\n  }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n  {\n    var info = getDeclarationErrorAddendum();\n\n    if (!info) {\n      var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n      if (parentName) {\n        info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n      }\n    }\n\n    return info;\n  }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n  {\n    if (!element._store || element._store.validated || element.key != null) {\n      return;\n    }\n\n    element._store.validated = true;\n    var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n    if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n      return;\n    }\n\n    ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n    // property, it may be the creator of the child that's responsible for\n    // assigning it a key.\n\n    var childOwner = '';\n\n    if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n      // Give the component that originally created this child.\n      childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n    }\n\n    setCurrentlyValidatingElement$1(element);\n\n    error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n    setCurrentlyValidatingElement$1(null);\n  }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n  {\n    if (typeof node !== 'object') {\n      return;\n    }\n\n    if (isArray(node)) {\n      for (var i = 0; i < node.length; i++) {\n        var child = node[i];\n\n        if (isValidElement(child)) {\n          validateExplicitKey(child, parentType);\n        }\n      }\n    } else if (isValidElement(node)) {\n      // This element was passed in a valid location.\n      if (node._store) {\n        node._store.validated = true;\n      }\n    } else if (node) {\n      var iteratorFn = getIteratorFn(node);\n\n      if (typeof iteratorFn === 'function') {\n        // Entry iterators used to provide implicit keys,\n        // but now we print a separate warning for them later.\n        if (iteratorFn !== node.entries) {\n          var iterator = iteratorFn.call(node);\n          var step;\n\n          while (!(step = iterator.next()).done) {\n            if (isValidElement(step.value)) {\n              validateExplicitKey(step.value, parentType);\n            }\n          }\n        }\n      }\n    }\n  }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n  {\n    var type = element.type;\n\n    if (type === null || type === undefined || typeof type === 'string') {\n      return;\n    }\n\n    var propTypes;\n\n    if (typeof type === 'function') {\n      propTypes = type.propTypes;\n    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n    // Inner props are checked in the reconciler.\n    type.$$typeof === REACT_MEMO_TYPE)) {\n      propTypes = type.propTypes;\n    } else {\n      return;\n    }\n\n    if (propTypes) {\n      // Intentionally inside to avoid triggering lazy initializers:\n      var name = getComponentNameFromType(type);\n      checkPropTypes(propTypes, element.props, 'prop', name, element);\n    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n      var _name = getComponentNameFromType(type);\n\n      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n    }\n\n    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n    }\n  }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n  {\n    var keys = Object.keys(fragment.props);\n\n    for (var i = 0; i < keys.length; i++) {\n      var key = keys[i];\n\n      if (key !== 'children' && key !== 'key') {\n        setCurrentlyValidatingElement$1(fragment);\n\n        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n        setCurrentlyValidatingElement$1(null);\n        break;\n      }\n    }\n\n    if (fragment.ref !== null) {\n      setCurrentlyValidatingElement$1(fragment);\n\n      error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n      setCurrentlyValidatingElement$1(null);\n    }\n  }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n  {\n    var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n    // succeed and there will likely be errors in render.\n\n    if (!validType) {\n      var info = '';\n\n      if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n        info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n      }\n\n      var sourceInfo = getSourceInfoErrorAddendum(source);\n\n      if (sourceInfo) {\n        info += sourceInfo;\n      } else {\n        info += getDeclarationErrorAddendum();\n      }\n\n      var typeString;\n\n      if (type === null) {\n        typeString = 'null';\n      } else if (isArray(type)) {\n        typeString = 'array';\n      } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n        typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n        info = ' Did you accidentally export a JSX literal instead of a component?';\n      } else {\n        typeString = typeof type;\n      }\n\n      error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n    }\n\n    var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n    // TODO: Drop this when these are no longer allowed as the type argument.\n\n    if (element == null) {\n      return element;\n    } // Skip key warning if the type isn't valid since our key validation logic\n    // doesn't expect a non-string/function type and can throw confusing errors.\n    // We don't want exception behavior to differ between dev and prod.\n    // (Rendering will throw with a helpful message and as soon as the type is\n    // fixed, the key warnings will appear.)\n\n\n    if (validType) {\n      var children = props.children;\n\n      if (children !== undefined) {\n        if (isStaticChildren) {\n          if (isArray(children)) {\n            for (var i = 0; i < children.length; i++) {\n              validateChildKeys(children[i], type);\n            }\n\n            if (Object.freeze) {\n              Object.freeze(children);\n            }\n          } else {\n            error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n          }\n        } else {\n          validateChildKeys(children, type);\n        }\n      }\n    }\n\n    {\n      if (hasOwnProperty.call(props, 'key')) {\n        var componentName = getComponentNameFromType(type);\n        var keys = Object.keys(props).filter(function (k) {\n          return k !== 'key';\n        });\n        var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n        if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n          var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n          error('A props object containing a \"key\" prop is being spread into JSX:\\n' + '  let props = %s;\\n' + '  <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + '  let props = %s;\\n' + '  <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n          didWarnAboutKeySpread[componentName + beforeExample] = true;\n        }\n      }\n    }\n\n    if (type === REACT_FRAGMENT_TYPE) {\n      validateFragmentProps(element);\n    } else {\n      validatePropTypes(element);\n    }\n\n    return element;\n  }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n  {\n    return jsxWithValidation(type, props, key, true);\n  }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n  {\n    return jsxWithValidation(type, props, key, false);\n  }\n}\n\nvar jsx =  jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs =  jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n  })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n  module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * TanStack Query provider component\n */\n\n\nimport { type QueryClient, QueryClientProvider } from '@tanstack/react-query'\nimport type { ApiClient } from '../client/api-client'\nimport { createQueryClient } from './query-client'\nimport { setGlobalApiClient } from './hooks'\nimport type { ReactNode } from 'react'\n\n/**\n * Query provider props\n */\nexport interface QueryProviderProps {\n  children: ReactNode,\n  apiClient?: ApiClient\n  queryClient?: QueryClient\n}\n\n/**\n * Query provider component that sets up TanStack Query\n */\nexport function QueryProvider({ children, apiClient, queryClient }: QueryProviderProps) {\n  // Create query client if not provided\n  const client = queryClient || createQueryClient(apiClient)\n\n  // Set global API client for hooks\n  if (apiClient) {\n    setGlobalApiClient(apiClient)\n  }\n\n  return (\n    <QueryClientProvider client={client}>\n      {children as React.JSX.Element}\n      {/* DevTools would be added here in development */}\n    </QueryClientProvider>\n  )\n}\n\n/**\n * Hook to access the query client\n */\nexport { useQueryClient } from '@tanstack/react-query'\n","/**\n * Query utilities and helpers\n */\n\nimport type { QueryClient } from '@tanstack/react-query'\nimport type { ApiError } from '../types'\n\nconst { VITE_NODE_ENV: NODE_ENV } = import.meta.env;\n\n/**\n * Error handling utilities\n */\nexport const queryErrorUtils = {\n  /**\n   * Check if error is a network error\n   */\n  isNetworkError: (error: unknown): boolean => {\n    return error instanceof Error && error.message.includes('fetch')\n  },\n\n  /**\n   * Check if error is an API error with status\n   */\n  isApiError: (error: unknown): error is ApiError => {\n    return (\n      typeof error === 'object' &&\n      error !== null &&\n      'status' in error &&\n      typeof (error as any).status === 'number'\n    )\n  },\n\n  /**\n   * Check if error is a client error (4xx)\n   */\n  isClientError: (error: unknown): boolean => {\n    if (!queryErrorUtils.isApiError(error)) return false\n    const status = error.response?.status\n    return typeof status === 'number' && status >= 400 && status < 500\n  },\n\n  /**\n   * Check if error is a server error (5xx)\n   */\n  isServerError: (error: unknown): boolean => {\n    if (!queryErrorUtils.isApiError(error)) return false\n    const status = error.response?.status\n    return typeof status === 'number' && status >= 500\n  },\n\n  /**\n   * Check if error is unauthorized (401)\n   */\n  isUnauthorized: (error: unknown): boolean => {\n    if (!queryErrorUtils.isApiError(error)) return false\n    return error.response?.status === 401\n  },\n\n  /**\n   * Check if error is forbidden (403)\n   */\n  isForbidden: (error: unknown): boolean => {\n    if (!queryErrorUtils.isApiError(error)) return false\n    return error.response?.status === 403\n  },\n\n  /**\n   * Check if error is not found (404)\n   */\n  isNotFound: (error: unknown): boolean => {\n    if (!queryErrorUtils.isApiError(error)) return false\n    return error.response?.status === 404\n  },\n\n  /**\n   * Get error message from various error types\n   */\n  getErrorMessage: (error: unknown): string => {\n    if (queryErrorUtils.isApiError(error)) {\n      const status = error.response?.status\n      return error.message || `API Error: ${status || 'Unknown'}`\n    }\n\n    if (error instanceof Error) {\n      return error.message\n    }\n\n    if (typeof error === 'string') {\n      return error\n    }\n\n    return 'An unknown error occurred'\n  },\n}\n\n/**\n * Cache management utilities\n */\nexport const cacheUtils = {\n  /**\n   * Invalidate all queries matching a pattern\n   */\n  invalidateByPattern: (queryClient: QueryClient, pattern: readonly unknown[]) => {\n    return queryClient.invalidateQueries({\n      queryKey: pattern,\n      exact: false,\n    })\n  },\n\n  /**\n   * Remove all queries matching a pattern\n   */\n  removeByPattern: (queryClient: QueryClient, pattern: readonly unknown[]) => {\n    return queryClient.removeQueries({\n      queryKey: pattern,\n      exact: false,\n    })\n  },\n\n  /**\n   * Prefetch multiple queries\n   */\n  prefetchMultiple: async (\n    queryClient: QueryClient,\n    queries: Array<{\n      queryKey: readonly unknown[]\n      queryFn: () => Promise<any>\n      staleTime?: number\n    }>\n  ) => {\n    const promises = queries.map(({ queryKey, queryFn, staleTime }) =>\n      queryClient.prefetchQuery({\n        queryKey,\n        queryFn,\n        ...(staleTime !== undefined && { staleTime }),\n      })\n    )\n\n    return Promise.allSettled(promises)\n  },\n\n  /**\n   * Get cache statistics\n   */\n  getCacheStats: (queryClient: QueryClient) => {\n    const cache = queryClient.getQueryCache()\n    const queries = cache.getAll()\n\n    const stats = {\n      totalQueries: queries.length,\n      activeQueries: queries.filter(q => q.getObserversCount() > 0).length,\n      staleQueries: queries.filter(q => q.isStale()).length,\n      errorQueries: queries.filter(q => q.state.status === 'error').length,\n      loadingQueries: queries.filter(q => q.state.status === 'pending').length,\n      successQueries: queries.filter(q => q.state.status === 'success').length,\n    }\n\n    return stats\n  },\n\n  /**\n   * Clear all cache data\n   */\n  clearAll: (queryClient: QueryClient) => {\n    queryClient.clear()\n  },\n\n  /**\n   * Reset all queries to initial state\n   */\n  resetAll: (queryClient: QueryClient) => {\n    return queryClient.resetQueries()\n  },\n}\n\n/**\n * Query key utilities\n */\nexport const keyUtils = {\n  /**\n   * Create a hierarchical query key\n   */\n  createHierarchical: (...segments: (string | number | object)[]): readonly unknown[] => {\n    return segments.filter(segment => segment !== undefined && segment !== null)\n  },\n\n  /**\n   * Match query keys by pattern\n   */\n  matchesPattern: (queryKey: readonly unknown[], pattern: readonly unknown[]): boolean => {\n    if (pattern.length > queryKey.length) return false\n\n    return pattern.every((segment, index) => {\n      const keySegment = queryKey[index]\n\n      // Exact match\n      if (segment === keySegment) return true\n\n      // Object match (partial)\n      if (\n        typeof segment === 'object' &&\n        typeof keySegment === 'object' &&\n        segment !== null &&\n        keySegment !== null\n      ) {\n        return Object.entries(segment).every(([key, value]) => {\n          return (keySegment as any)[key] === value\n        })\n      }\n\n      return false\n    })\n  },\n\n  /**\n   * Extract parameters from query key\n   */\n  extractParams: <T = Record<string, any>>(\n    queryKey: readonly unknown[],\n    paramIndex: number\n  ): T | null => {\n    const param = queryKey[paramIndex]\n\n    if (typeof param === 'object' && param !== null) {\n      return param as T\n    }\n\n    return null\n  },\n}\n\n/**\n * Retry utilities\n */\nexport const retryUtils = {\n  /**\n   * Exponential backoff with jitter\n   */\n  exponentialBackoff: (attemptIndex: number, baseDelay = 1000): number => {\n    const delay = baseDelay * Math.pow(2, attemptIndex)\n    const jitter = Math.random() * 0.1 * delay\n    return Math.min(delay + jitter, 30000) // Max 30 seconds\n  },\n\n  /**\n   * Linear backoff\n   */\n  linearBackoff: (attemptIndex: number, baseDelay = 1000): number => {\n    return Math.min(baseDelay * (attemptIndex + 1), 10000) // Max 10 seconds\n  },\n\n  /**\n   * Fixed delay\n   */\n  fixedDelay: (delay = 1000): number => {\n    return delay\n  },\n\n  /**\n   * Should retry based on error type\n   */\n  shouldRetry: (failureCount: number, error: unknown, maxRetries = 3): boolean => {\n    // Don't retry if max attempts reached\n    if (failureCount >= maxRetries) return false\n\n    // Don't retry client errors (4xx)\n    if (queryErrorUtils.isClientError(error)) return false\n\n    // Don't retry unauthorized/forbidden\n    if (queryErrorUtils.isUnauthorized(error) || queryErrorUtils.isForbidden(error)) {\n      return false\n    }\n\n    // Retry server errors and network errors\n    return queryErrorUtils.isServerError(error) || queryErrorUtils.isNetworkError(error)\n  },\n}\n\n/**\n * Performance utilities\n */\nexport const performanceUtils = {\n  /**\n   * Measure query performance\n   */\n  measureQuery: <T>(\n    queryFn: () => Promise<T>,\n    queryKey: readonly unknown[]\n  ): Promise<{ data: T; duration: number }> => {\n    const startTime = performance.now()\n\n    return queryFn().then(data => {\n      const endTime = performance.now()\n      const duration = endTime - startTime\n\n      // Log slow queries in development\n      if (NODE_ENV === 'development' && duration > 1000) {\n        console.warn(`Slow query detected (${duration.toFixed(2)}ms):`, queryKey)\n      }\n\n      return { data, duration }\n    })\n  },\n\n  /**\n   * Create a debounced query function\n   */\n  debounce: <T extends (...args: any[]) => any>(fn: T, delay: number): T => {\n    let timeoutId: NodeJS.Timeout\n\n    return ((...args: Parameters<T>) => {\n      clearTimeout(timeoutId)\n      return new Promise(resolve => {\n        timeoutId = setTimeout(() => {\n          resolve(fn(...args))\n        }, delay)\n      })\n    }) as T\n  },\n\n  /**\n   * Create a throttled query function\n   */\n  throttle: <T extends (...args: any[]) => any>(fn: T, delay: number): T => {\n    let lastCall = 0\n\n    return ((...args: Parameters<T>) => {\n      const now = Date.now()\n\n      if (now - lastCall >= delay) {\n        lastCall = now\n        return fn(...args)\n      }\n\n      return Promise.resolve()\n    }) as T\n  },\n}\n"],"names":["bind","fn","thisArg","toString","getPrototypeOf","iterator","toStringTag","kindOf","cache","thing","str","kindOfTest","type","typeOfTest","isArray","isUndefined","isBuffer","val","isFunction","isArrayBuffer","isArrayBufferView","result","isString","isNumber","isObject","isBoolean","isPlainObject","prototype","isEmptyObject","isDate","isFile","isBlob","isFileList","isStream","isFormData","kind","isURLSearchParams","isReadableStream","isRequest","isResponse","isHeaders","trim","forEach","obj","allOwnKeys","i","l","keys","len","key","findKey","_key","_global","isContextDefined","context","merge","caseless","assignValue","targetKey","extend","a","b","stripBOM","content","inherits","constructor","superConstructor","props","descriptors","toFlatObject","sourceObj","destObj","filter","propFilter","prop","merged","endsWith","searchString","position","lastIndex","toArray","arr","isTypedArray","TypedArray","forEachEntry","_iterator","pair","matchAll","regExp","matches","isHTMLForm","toCamelCase","m","p1","p2","hasOwnProperty","isRegExp","reduceDescriptors","reducer","reducedDescriptors","descriptor","name","ret","freezeMethods","value","toObjectSet","arrayOrString","delimiter","define","noop","toFiniteNumber","defaultValue","isSpecCompliantForm","toJSONObject","stack","visit","source","target","reducedValue","isAsyncFn","isThenable","_setImmediate","setImmediateSupported","postMessageSupported","token","callbacks","data","cb","asap","isIterable","utils$1","AxiosError","message","code","config","request","response","utils","error","customProps","axiosError","httpAdapter","isVisitable","removeBrackets","renderKey","path","dots","isFlatArray","predicates","toFormData","formData","options","option","metaTokens","visitor","defaultVisitor","indexes","useBlob","convertValue","el","index","exposedHelpers","build","encode","charMap","match","AxiosURLSearchParams","params","encoder","_encode","buildURL","url","serializeFn","serializedParams","hashmarkIndex","InterceptorManager$1","fulfilled","rejected","id","h","transitionalDefaults","URLSearchParams$1","FormData$1","Blob$1","platform$1","URLSearchParams","FormData","Blob","hasBrowserEnv","_navigator","hasStandardBrowserEnv","hasStandardBrowserWebWorkerEnv","origin","platform","toURLEncodedForm","helpers","parsePropPath","arrayToObject","formDataToJSON","buildPath","isNumericKey","isLast","stringifySafely","rawValue","parser","e","defaults","headers","contentType","hasJSONContentType","isObjectPayload","_FormData","transitional","forcedJSONParsing","JSONRequested","strictJSONParsing","status","method","ignoreDuplicateOf","parseHeaders","rawHeaders","parsed","line","$internals","normalizeHeader","header","normalizeValue","parseTokens","tokens","tokensRE","isValidHeaderName","matchHeaderValue","isHeaderNameFilter","formatHeader","w","char","buildAccessors","accessorName","methodName","arg1","arg2","arg3","AxiosHeaders$1","valueOrRewrite","rewrite","self","setHeader","_value","_header","_rewrite","lHeader","setHeaders","dest","entry","matcher","deleted","deleteHeader","format","normalized","targets","asStrings","first","computed","accessors","defineAccessor","AxiosHeaders","mapped","headerValue","transformData","fns","isCancel","CanceledError","settle","resolve","reject","validateStatus","parseProtocol","speedometer","samplesCount","min","bytes","timestamps","head","tail","firstSampleTS","chunkLength","now","startedAt","bytesCount","passed","throttle","freq","timestamp","threshold","lastArgs","timer","invoke","args","progressEventReducer","listener","isDownloadStream","bytesNotified","_speedometer","loaded","total","progressBytes","rate","inRange","progressEventDecorator","throttled","lengthComputable","asyncDecorator","isURLSameOrigin","isMSIE","cookies","expires","domain","secure","cookie","isAbsoluteURL","combineURLs","baseURL","relativeURL","buildFullPath","requestedURL","allowAbsoluteUrls","isRelativeUrl","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","configValue","resolveConfig","newConfig","withXSRFToken","xsrfHeaderName","xsrfCookieName","auth","xsrfValue","isXHRAdapterSupported","xhrAdapter","_config","requestData","requestHeaders","responseType","onUploadProgress","onDownloadProgress","onCanceled","uploadThrottled","downloadThrottled","flushUpload","flushDownload","done","onloadend","responseHeaders","err","timeoutErrorMessage","cancel","protocol","composeSignals","signals","timeout","length","controller","aborted","onabort","reason","unsubscribe","signal","streamChunk","chunk","chunkSize","pos","end","readBytes","iterable","readStream","stream","reader","trackStream","onProgress","onFinish","_onFinish","loadedBytes","isFetchSupported","isReadableStreamSupported","encodeText","test","supportsRequestStream","duplexAccessed","hasContentType","DEFAULT_CHUNK_SIZE","supportsResponseStream","resolvers","res","_","getBodyLength","body","resolveBodyLength","fetchAdapter","cancelToken","withCredentials","fetchOptions","composedSignal","requestContentLength","_request","contentTypeHeader","flush","isCredentialsSupported","isStreamResponse","responseContentLength","responseData","knownAdapters","renderReason","isResolvedHandle","adapter","adapters","nameOrAdapter","rejectedReasons","reasons","state","s","throwIfCancellationRequested","dispatchRequest","VERSION","validators","deprecatedWarnings","validator","version","formatMessage","opt","desc","opts","correctSpelling","assertOptions","schema","allowUnknown","Axios$1","instanceConfig","InterceptorManager","configOrUrl","dummy","paramsSerializer","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","responseInterceptorChain","promise","chain","onFulfilled","onRejected","fullPath","Axios","generateHTTPMethod","isForm","CancelToken$1","CancelToken","executor","resolvePromise","onfulfilled","_resolve","abort","c","spread","callback","isAxiosError","payload","HttpStatusCode","createInstance","defaultConfig","instance","axios","promises","all","Cancel","formToJSON","getAdapter","HttpClient","__publicField","axiosConfig","apiError","interceptorId","MemoryCache","memoryUsage","size","item","cleaned","count","evicted","sortedEntries","maxSize","toEvict","exported","snapshot","StorageCache","storageType","testKey","serialized","entries","used","available","storageInfo","CacheManager","pattern","regex","entriesToRemove","defaultRetryCondition","defaultRetryDelay","retryCount","RetryManager","operation","lastError","delay","ms","retries","baseDelay","maxDelay","retryCondition","retryDelay","retryAfter","seconds","jitterFactor","exponentialDelay","jitter","RateLimiter","waitTime","elapsed","tokensToAdd","tokensNeeded","timePerToken","requestsPerSecond","requestsPerMinute","requestsPerHour","maxBurst","sustainedRate","perMilliseconds","ApiClient","requestInterceptorId","responseInterceptorId","apiResponse","cached","executeRequest","createAuthInterceptor","getToken","createBaseUrlInterceptor","isAbsoluteUrl","createRequestIdInterceptor","generateRequestId","createContentTypeInterceptor","createUserAgentInterceptor","userAgent","createApiVersionInterceptor","headerName","createRequestLoggingInterceptor","logger","createResponseLoggingInterceptor","createResponseTransformInterceptor","transformer","createErrorHandlingInterceptor","errorHandler","createTimeoutInterceptor","createCacheControlInterceptor","cacheControl","createCsrfInterceptor","createRateLimitInterceptor","onRateLimit","createResponseValidationInterceptor","errorMessage","createDeduplicationInterceptor","pendingRequests","generateKey","createPerformanceInterceptor","onMetrics","startTime","createApiClient","createAuthenticatedApiClient","client","input","onFulfilledExecutor","onRejectedExecutor","cloned","other","predicate","filtered","mapper","active","exponentialBackoff","multiplier","linearBackoff","increment","fixedDelay","jitteredExponentialBackoff","networkErrorsOnly","serverErrorsOnly","statusCodesOnly","codes","timeoutErrorsOnly","respectRetryAfter","productionRetryCondition","conservativeRetryCondition","aggressiveRetryCondition","createRetryAfterStrategy","createRateLimitStrategy","createUnreliableNetworkStrategy","createCriticalOperationStrategy","createBackgroundOperationStrategy","combineUrls","baseUrl","relativeUrl","base","relative","buildUrlWithParams","searchParams","separator","parseUrlParams","urlObj","normalizeUrl","extractDomain","isSameOrigin","url1","url2","origin1","origin2","toAbsoluteUrl","serializeRequestData","createFormData","mergeConfigs","requestConfig","validateRequestConfig","createAbortController","timeoutId","getContentType","shouldHaveBody","sanitizeHeaders","sanitized","createRequestSignature","isCacheableRequest","estimateRequestSize","createRequestMetadata","isSuccessResponse","isClientError","isServerError","isRedirect","extractErrorMessage","errorFields","field","createErrorFromResponse","parseResponseHeaders","getResponseContentType","isJsonResponse","isHtmlResponse","isXmlResponse","getResponseSize","contentLength","isCompressedResponse","encoding","getCacheControl","directives","parts","part","isCacheableResponse","getResponseTTL","expiresDate","validateResponseData","transformResponseData","createResponseMetadata","extractPaginationInfo","page","limit","totalPages","isRateLimited","getRetryAfter","NODE_ENV","__vite_import_meta_env__","defaultQueryConfig","failureCount","attemptIndex","createQueryClient","apiClient","mergedConfig","queryClient","QueryClient","variables","queryKeys","query","resource","filters","queryOptions","fetcher","mutationOptions","mutationFn","optimisticUpdate","n","p","q","r","t","u","v","x","z","A","B","D","E","F","G","H","I","J","K","L","M","d","k","g","f","N","O","escape","P","Q","R","S","T","U","V","W","X","react_production_min","ReactVersion","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactCurrentDispatcher","ReactCurrentBatchConfig","ReactCurrentActQueue","ReactCurrentOwner","ReactDebugCurrentFrame","currentExtraStackFrame","setExtraStackFrame","impl","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","ReactSharedInternals","warn","_len","printWarning","_len2","_key2","level","argsWithFormat","didWarnStateUpdateForUnmountedComponent","warnNoop","publicInstance","callerName","_constructor","componentName","warningKey","ReactNoopUpdateQueue","completeState","partialState","assign","emptyObject","Component","updater","deprecatedAPIs","defineDeprecationWarning","info","fnName","ComponentDummy","PureComponent","pureComponentPrototype","createRef","refObject","isArrayImpl","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","provider","outerName","lazyComponent","init","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","getter","hasValidKey","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","warnIfStringRefCannotBeAutoConverted","ReactElement","ref","owner","element","createElement","children","propName","childrenLength","childArray","defaultProps","cloneAndReplaceKey","oldElement","newKey","newElement","cloneElement","isValidElement","object","SEPARATOR","SUBSEPARATOR","escapeRegex","escaperLookup","escapedString","didWarnAboutMaps","userProvidedKeyEscapeRegex","escapeUserProvidedKey","text","getElementKey","mapIntoArray","array","escapedPrefix","nameSoFar","invokeCallback","_child","mappedChild","childKey","escapedChildKey","child","nextName","subtreeCount","nextNamePrefix","iteratorFn","iterableChildren","step","ii","childrenString","mapChildren","func","countChildren","forEachChildren","forEachFunc","forEachContext","onlyChild","createContext","hasWarnedAboutUsingNestedContextConsumers","hasWarnedAboutUsingConsumerProvider","hasWarnedAboutDisplayNameOnConsumer","Consumer","_Provider","_currentValue","_currentValue2","_threadCount","Uninitialized","Pending","Resolved","Rejected","lazyInitializer","ctor","thenable","moduleObject","resolved","pending","lazy","lazyType","propTypes","newDefaultProps","newPropTypes","forwardRef","render","elementType","ownName","REACT_MODULE_REFERENCE","isValidElementType","memo","compare","resolveDispatcher","dispatcher","useContext","Context","realContext","useState","initialState","useReducer","initialArg","useRef","initialValue","useEffect","create","deps","useInsertionEffect","useLayoutEffect","useCallback","useMemo","useImperativeHandle","useDebugValue","formatterFn","useTransition","useDeferredValue","useId","useSyncExternalStore","subscribe","getSnapshot","getServerSnapshot","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","reenableLogs","ReactCurrentDispatcher$1","prefix","describeBuiltInComponentFrame","ownerFn","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","describeUnknownElementTypeFrameInDEV","loggedTypeFailures","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement","checkPropTypes","typeSpecs","values","location","has","typeSpecName","error$1","ex","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","getSourceInfoErrorAddendumForProps","elementProps","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","validatePropTypes","_name","validateFragmentProps","fragment","createElementWithValidation","validType","sourceInfo","typeString","didWarnAboutDeprecatedCreateFactory","createFactoryWithValidation","validatedFactory","cloneElementWithValidation","startTransition","scope","prevTransition","currentTransition","updatedFibersCount","didWarnAboutMessageChannel","enqueueTaskImpl","enqueueTask","task","requireString","nodeRequire","module","channel","actScopeDepth","didWarnNoAwaitAct","act","prevActScopeDepth","prevIsBatchingLegacy","queue","flushActQueue","popActScope","thenableResult","wasAwaited","returnValue","recursivelyFlushAsyncActWork","_queue","_thenable","_thenable2","isFlushing","createElement$1","cloneElement$1","createFactory","Children","exports","reactModule","require$$0","require$$1","globalApiClient","setGlobalApiClient","useApiClient","useApiFetch","useQuery","useApiMutation","useMutation","useGet","usePost","usePut","usePatch","useDelete","usePaginatedQuery","useInfiniteApiQuery","useInfiniteQuery","pageParam","lastPage","useSearchQuery","useCacheUtils","useQueryClient","invalidateQueries","refetchQueries","removeQueries","setQueryData","getQueryData","prefetchQuery","staleTime","useOptimisticMutation","queryKey","previousData","old","reactJsxRuntime_production_min","React","jsxDEV","maybeKey","ReactCurrentOwner$1","didWarnAboutKeySpread","jsxWithValidation","isStaticChildren","beforeExample","afterExample","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","QueryProvider","QueryClientProvider","queryErrorUtils","cacheUtils","queries","queryFn","keyUtils","segments","segment","keySegment","paramIndex","param","retryUtils","maxRetries","performanceUtils","duration","lastCall"],"mappings":"mSAEe,SAASA,GAAKC,EAAIC,EAAS,CACxC,OAAO,UAAgB,CACrB,OAAOD,EAAG,MAAMC,EAAS,SAAS,CACpC,CACF,CCAA,KAAM,CAAC,SAAAC,EAAQ,EAAI,OAAO,UACpB,CAAC,eAAAC,EAAc,EAAI,OACnB,CAAC,SAAAC,GAAU,YAAAC,EAAW,EAAI,OAE1BC,IAAUC,GAASC,GAAS,CAC9B,MAAMC,EAAMP,GAAS,KAAKM,CAAK,EAC/B,OAAOD,EAAME,CAAG,IAAMF,EAAME,CAAG,EAAIA,EAAI,MAAM,EAAG,EAAE,EAAE,YAAW,EACnE,GAAG,OAAO,OAAO,IAAI,CAAC,EAEhBC,GAAcC,IAClBA,EAAOA,EAAK,YAAW,EACfH,GAAUF,GAAOE,CAAK,IAAMG,GAGhCC,GAAaD,GAAQH,GAAS,OAAOA,IAAUG,EAS/C,CAAC,QAAAE,EAAO,EAAI,MASZC,GAAcF,GAAW,WAAW,EAS1C,SAASG,GAASC,EA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