{"version":3,"file":"index.cjs","names":["isFunction","prototype","descriptors","hasOwnProperty","utils","prototype","utils","AxiosError","encode","toFormData","toString","utils","AxiosURLSearchParams","AxiosURLSearchParams","utils","platform","toFormData","platform","utils","utils","utils","transitionalDefaults","formDataToJSON","isFileList","toFormData","AxiosError","platform","utils","utils","self","parseHeaders","prototype","defaults","AxiosHeaders","AxiosError","utils","AxiosError","speedometer","throttle","utils","platform","origin","platform","AxiosHeaders","utils","merge","AxiosHeaders","utils","platform","isURLSameOrigin","cookies","resolveConfig","AxiosHeaders","AxiosError","transitionalDefaults","utils","CanceledError","platform","AxiosError","CanceledError","signal","utils","iterator","done","utils","ReadableStream","platform","AxiosError","resolveConfig","composeSignals","AxiosHeaders","fetch","xhrAdapter","fetchAdapter.getFetch","utils","adapter","AxiosError","CanceledError","AxiosHeaders","adapters","defaults","validators","AxiosError","validator","InterceptorManager","utils","AxiosHeaders","CanceledError","utils","Axios","defaults","CanceledError","CancelToken","toFormData","AxiosError","AxiosHeaders","formDataToJSON","utils","adapters","HttpStatusCode","status?: JobStatus","cause?: unknown"],"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","../src/mutator/custom-axios-instance.ts","../src/generated/image-generation-async-v3-client/image-generation-async-v3-client.ts","../src/generated/image-generation-async-v3-client/image-generation-async-v3-client.schemas.ts","../src/generated/image-generation-async-v3-client/index.ts","../src/generated/generate-similar-async-v3-client/generate-similar-async-v3-client.ts","../src/generated/generate-similar-async-v3-client/generate-similar-async-v3-client.schemas.ts","../src/generated/generate-similar-async-v3-client/index.ts","../src/generated/generate-object-composite-async-v3-client/generate-object-composite-async-v3-client.ts","../src/generated/generate-object-composite-async-v3-client/generate-object-composite-async-v3-client.schemas.ts","../src/generated/generate-object-composite-async-v3-client/index.ts","../src/generated/generative-expand-async-v3-client/generative-expand-async-v3-client.ts","../src/generated/generative-expand-async-v3-client/generative-expand-async-v3-client.schemas.ts","../src/generated/generative-expand-async-v3-client/index.ts","../src/generated/generative-fill-async-v3-client/generative-fill-async-v3-client.ts","../src/generated/generative-fill-async-v3-client/generative-fill-async-v3-client.schemas.ts","../src/generated/generative-fill-async-v3-client/index.ts","../src/generated/generate-video-api-client/generate-video-api-client.ts","../src/generated/generate-video-api-client/generate-video-api-client.schemas.ts","../src/generated/generate-video-api-client/index.ts","../src/generated/upload-image-client/upload-image-client.ts","../src/generated/upload-image-client/upload-image-client.schemas.ts","../src/generated/upload-image-client/index.ts","../src/generated/custom-models-listing-client/custom-models-listing-client.ts","../src/generated/custom-models-listing-client/custom-models-listing-client.schemas.ts","../src/generated/custom-models-listing-client/index.ts","../src/extension/job-polling-extension.ts","../src/ims/default-ims-client.ts","../src/ims/token-ims-clielt.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, skipUndefined} = 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 if (!skipUndefined || !isUndefined(val)) {\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\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  const msg = error && error.message ? error.message : 'Error';\n\n  // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)\n  const errCode = code == null && error ? error.code : code;\n  AxiosError.call(axiosError, msg, errCode, config, request, response);\n\n  // Chain the original error on the standard field; non-enumerable to avoid JSON noise\n  if (error && axiosError.cause == null) {\n    Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });\n  }\n\n  axiosError.name = (error && error.name) || 'Error';\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}\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, this.parseReviver);\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  if (utils.isFormData(data)) {\n    if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n      headers.setContentType(undefined); // browser handles it\n    } else if (utils.isFunction(data.getHeaders)) {\n      // Node.js FormData (like form-data package)\n      const formHeaders = data.getHeaders();\n      // Only set safe headers to avoid overwriting security headers\n      const allowedHeaders = ['content-type', 'content-length'];\n      Object.entries(formHeaders).forEach(([key, val]) => {\n        if (allowedHeaders.includes(key.toLowerCase())) {\n          headers.set(key, val);\n        }\n      });\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(event) {\n       // Browsers deliver a ProgressEvent in XHR onerror\n       // (message may be empty; when present, surface it)\n       // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event\n       const msg = event && event.message ? event.message : 'Network Error';\n       const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);\n       // attach the underlying event for consumers who want details\n       err.event = event || null;\n       reject(err);\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 DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst {isFunction} = utils;\n\nconst globalFetchAPI = (({Request, Response}) => ({\n  Request, Response\n}))(utils.global);\n\nconst {\n  ReadableStream, TextEncoder\n} = utils.global;\n\n\nconst test = (fn, ...args) => {\n  try {\n    return !!fn(...args);\n  } catch (e) {\n    return false\n  }\n}\n\nconst factory = (env) => {\n  env = utils.merge.call({\n    skipUndefined: true\n  }, globalFetchAPI, env);\n\n  const {fetch: envFetch, Request, Response} = env;\n  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';\n  const isRequestSupported = isFunction(Request);\n  const isResponseSupported = isFunction(Response);\n\n  if (!isFetchSupported) {\n    return false;\n  }\n\n  const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);\n\n  const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n      ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n      async (str) => new Uint8Array(await new Request(str).arrayBuffer())\n  );\n\n  const supportsRequestStream = isRequestSupported && 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\n  const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&\n    test(() => utils.isReadableStream(new Response('').body));\n\n  const resolvers = {\n    stream: supportsResponseStream && ((res) => res.body)\n  };\n\n  isFetchSupported && ((() => {\n    ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n      !resolvers[type] && (resolvers[type] = (res, config) => {\n        let method = res && res[type];\n\n        if (method) {\n          return method.call(res);\n        }\n\n        throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n      })\n    });\n  })());\n\n  const 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\n  const resolveBodyLength = async (headers, body) => {\n    const length = utils.toFiniteNumber(headers.getContentLength());\n\n    return length == null ? getBodyLength(body) : length;\n  }\n\n  return 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    let _fetch = envFetch || fetch;\n\n    responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n    let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n    let request = null;\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 = isRequestSupported && \"credentials\" in Request.prototype;\n\n      const resolvedOptions = {\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      request = isRequestSupported && new Request(url, resolvedOptions);\n\n      let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));\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\nconst seedCache = new Map();\n\nexport const getFetch = (config) => {\n  let env = config ? config.env : {};\n  const {fetch, Request, Response} = env;\n  const seeds = [\n    Request, Response, fetch\n  ];\n\n  let len = seeds.length, i = len,\n    seed, target, map = seedCache;\n\n  while (i--) {\n    seed = seeds[i];\n    target = map.get(seed);\n\n    target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))\n\n    map = target;\n  }\n\n  return target;\n};\n\nconst adapter = getFetch();\n\nexport default adapter;\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport * as fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n  http: httpAdapter,\n  xhr: xhrAdapter,\n  fetch: {\n    get: fetchAdapter.getFetch,\n  }\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, config) => {\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 && (utils.isFunction(adapter) || (adapter = adapter.get(config)))) {\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, config);\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.12.2\";","'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    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, { type AxiosRequestConfig } from 'axios';\n\nexport const AXIOS_INSTANCE = Axios.create();\nAXIOS_INSTANCE.defaults.baseURL = 'https://firefly-api.adobe.io';\n\n// add a second `options` argument here if you want to pass extra options to each generated query\nexport const customAxiosInstance = <T>(\n  config: AxiosRequestConfig,\n  options?: AxiosRequestConfig\n): Promise<T> => {\n  const source = Axios.CancelToken.source();\n\n  // For some strange reason the video generation API requires the x-model-version header to be set to video1_standard\n  // even though the docs dont explicitly mention it is required.\n  if (config.url?.includes('/videos/')) {\n    if (options) {\n      options.headers = {\n        ...options.headers,\n        'x-model-version': 'video1_standard',\n      };\n    }\n  }\n\n  const promise = AXIOS_INSTANCE({\n    ...config,\n    ...options,\n    cancelToken: source.token,\n  }).then(({ data }) => data);\n\n  return promise;\n};\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly, for enterprise usage.\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyGenerateImagesV3Async,\n  CancelJobV3PathParameters,\n  GenerateImagesRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './image-generation-async-v3-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Generate images based on a text prompt. You may also include a reference image and Firefly will try to mimic the characteristics, such as color scheme, lighting, layout of objects in the image, etc.\n\nThis task is performed asynchronously, which means that a successful response returns a <code>jobID</code>. Use this ID with the Get Result endpoint to check the status of the job and get the processed image result or with the Cancel Job endpoint to cancel the job.\n * @summary Generate Images Async\n */\nexport const generateImagesV3Async = (\n  generateImagesV3AsyncBody: GenerateImagesRequestV3 | BodyGenerateImagesV3Async,\n  options?: SecondParameter<typeof customAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customAxiosInstance<AsyncAcceptResponseV3>(\n    { url: `/v3/images/generate-async`, method: 'POST', data: generateImagesV3AsyncBody },\n    options\n  );\n};\n\n/**\n * Get the result of the job.\n * @summary Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<JobResultV3200>>\n) => {\n  return customAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * Cancel the asynchronous job.\n * @summary Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<unknown>>\n) => {\n  return customAxiosInstance<unknown>({ url: `/v3/cancel/${jobId}`, method: 'PUT' }, options);\n};\n\nexport type GenerateImagesV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof generateImagesV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly, for enterprise usage.\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\n/**\n * Only supported with the model version `image4_custom`. The `default` setting upscales generated images to 2k. The `low_creativity` setting refines the image generation by removing distortions, smoothing textures, and sometimes adding details (like freckles to faces in close-up). This setting is recommended for generating images with human subjects.\n */\nexport type GenerateImagesRequestV3UpsamplerType =\n  (typeof GenerateImagesRequestV3UpsamplerType)[keyof typeof GenerateImagesRequestV3UpsamplerType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GenerateImagesRequestV3UpsamplerType = {\n  default: 'default',\n  low_creativity: 'low_creativity',\n} as const;\n\nexport interface GenerateImagesRequestV3 {\n  /** Directs the style of a generated image to be photographic or like fine art. */\n  contentClass?: ContentClassV3;\n  /** Include the specific custom model ID when a custom model type is designated in the `x-model-version` header parameter. */\n  customModelId?: string;\n  /**\n   * A negative prompt of things Firefly will try to avoid generating in the image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * The number of variations to generate. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify `seeds`.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * A text prompt to support the generation of an image. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region (like en-US). When a locale is set, the prompt will be biased to generate more relevant content for that region. If not specified, the locale will be auto-detected based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * An array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, use the same seed to generate a similar image in different styles. If specified along with <code>numVariations</code>, the number of seeds provided must equal <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image, in pixels. Supported sizes for the output images with `image3` are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li>  <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>Widescreen (16:9) - width 2688px, height 1512px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(7:4)  - width 1344px, height 756px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> Supported sizes for the output images with `image4` are: <ul> <li>(1:1) - width 2048px, height 2048px</li> <li>(4:3) - width 2304px, height 1792px</li> <li>(3:4) - width 1792px, height 2304px</li> <li>(16:9) - width 2688px, height 1536px</li> <li>(9:16) - width 1440px, height 2560px</li> </ul>  */\n  size?: Size;\n  /** An object with the reference image details for structure. */\n  structure?: StructureReferenceV3;\n  /** An object with the reference image details for style. */\n  style?: StylesV3;\n  /** Only supported with the model version `image4_custom`. The `default` setting upscales generated images to 2k. The `low_creativity` setting refines the image generation by removing distortions, smoothing textures, and sometimes adding details (like freckles to faces in close-up). This setting is recommended for generating images with human subjects. */\n  upsamplerType?: GenerateImagesRequestV3UpsamplerType;\n  /**\n   * Adjust the overall intensity of your photo's characteristics, such as contrast, shadow, and hue. This is not supported with the model version `image4_custom`.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls.\n\nIf specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify `seeds`.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** The `uploadId` from the storage API response. */\n  uploadId?: string;\n  /**\n   * The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** The style presets. Specify an ID for a style of image to generate. */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide. 0 means no adherence. 100 means full adherence.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './image-generation-async-v3-client';\nexport * from './image-generation-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyGenerateSimilarImagesV3Async,\n  CancelJobV3PathParameters,\n  GenerateSimilarImagesRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generate-similar-async-v3-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Generate similar images based on a reference image that you provide as a parameter.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Generate Similar Images Async\n */\nexport const generateSimilarImagesV3Async = (\n  generateSimilarImagesV3AsyncBody:\n    | GenerateSimilarImagesRequestV3\n    | BodyGenerateSimilarImagesV3Async,\n  options?: SecondParameter<typeof customAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customAxiosInstance<AsyncAcceptResponseV3>(\n    {\n      url: `/v3/images/generate-similar-async`,\n      method: 'POST',\n      data: generateSimilarImagesV3AsyncBody,\n    },\n    options\n  );\n};\n\n/**\n * Get the result of a job that you submitted to the Generate Similar Images Async endpoint.\n * @summary Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<JobResultV3200>>\n) => {\n  return customAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * Cancel a job that you submitted to the Generate Similar Images Async endpoint.\n * @summary Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<unknown>>\n) => {\n  return customAxiosInstance<unknown>({ url: `/v3/cancel/${jobId}`, method: 'PUT' }, options);\n};\n\nexport type GenerateSimilarImagesV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof generateSimilarImagesV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * The number of variations to generate. `numVariations` defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, use the same seed to generate a similar image in different styles. If specified along with `numVariations`, the number of seeds provided must equal `numVariations`.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image, in pixels. Supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>Widescreen (16:9) - width 1344px, height 756px </li> <li>Widescreen (16:9) - width 2688px, height 1512px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Pre-signed URL of an uploaded file. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generate-similar-async-v3-client';\nexport * from './generate-similar-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyGenerateObjectCompositeV3Async,\n  CancelJobV3PathParameters,\n  GenerateObjectCompositeRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generate-object-composite-async-v3-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Combines your image and images generated by Firefly to create an image composite, or scene. The images that Firefly generates are based on a text prompt that you provide. You can upload an image with or without an image mask, such as a product photo.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Generate Object Composite Async - Model 3\n */\nexport const generateObjectCompositeV3Async = (\n  generateObjectCompositeV3AsyncBody:\n    | GenerateObjectCompositeRequestV3\n    | BodyGenerateObjectCompositeV3Async,\n  options?: SecondParameter<typeof customAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customAxiosInstance<AsyncAcceptResponseV3>(\n    {\n      url: `/v3/images/generate-object-composite-async`,\n      method: 'POST',\n      data: generateObjectCompositeV3AsyncBody,\n    },\n    options\n  );\n};\n\n/**\n * @summary Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<JobResultV3200>>\n) => {\n  return customAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * @summary  Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<unknown>>\n) => {\n  return customAxiosInstance<unknown>({ url: `/v3/cancel/${jobId}`, method: 'PUT' }, options);\n};\n\nexport type GenerateObjectCompositeV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof generateObjectCompositeV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Pre-signed URL of an uploaded file. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generate-object-composite-async-v3-client';\nexport * from './generate-object-composite-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyExpandImagesV3Async,\n  CancelJobV3PathParameters,\n  ExpandImageRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generative-expand-async-v3-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Change the aspect ratio or size of an image and expand it. You can optionally provide a text prompt and Firefly generates additional filler image based on the prompt. For example, you can add a prompt to as Firefly to generate pine trees and a forest landscape which fills empty parts of the newly expanded image.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Expand Image Async - Model 3\n */\nexport const expandImagesV3Async = (\n  expandImagesV3AsyncBody: ExpandImageRequestV3 | BodyExpandImagesV3Async,\n  options?: SecondParameter<typeof customAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customAxiosInstance<AsyncAcceptResponseV3>(\n    { url: `/v3/images/expand-async`, method: 'POST', data: expandImagesV3AsyncBody },\n    options\n  );\n};\n\n/**\n * @summary  Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<JobResultV3200>>\n) => {\n  return customAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * @summary  Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<unknown>>\n) => {\n  return customAxiosInstance<unknown>({ url: `/v3/cancel/${jobId}`, method: 'PUT' }, options);\n};\n\nexport type ExpandImagesV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof expandImagesV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Pre-signed URL of an uploaded file. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generative-expand-async-v3-client';\nexport * from './generative-expand-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyFillImagesV3Async,\n  CancelJobV3PathParameters,\n  FillImageRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generative-fill-async-v3-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Fills an area of an image based on images that Firefly generates based on your prompt. We call this part of an image an image, and this mask defines the area which should be filled. For example you can have an circular mask defined on an image and Firefly can generate the image of a planet in that area.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Fill Image Async - Model 3\n */\nexport const fillImagesV3Async = (\n  fillImagesV3AsyncBody: FillImageRequestV3 | BodyFillImagesV3Async,\n  options?: SecondParameter<typeof customAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customAxiosInstance<AsyncAcceptResponseV3>(\n    { url: `/v3/images/fill-async`, method: 'POST', data: fillImagesV3AsyncBody },\n    options\n  );\n};\n\n/**\n * @summary  Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<JobResultV3200>>\n) => {\n  return customAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * @summary  Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<unknown>>\n) => {\n  return customAxiosInstance<unknown>({ url: `/v3/cancel/${jobId}`, method: 'PUT' }, options);\n};\n\nexport type FillImagesV3AsyncResult = NonNullable<Awaited<ReturnType<typeof fillImagesV3Async>>>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. You can either use a url or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains as input URL in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. You can either use a url or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains as input URL in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Presigned URL of an uploaded file. You can either use a url or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains as input URL in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generative-fill-async-v3-client';\nexport * from './generative-fill-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Generate Video API\n * Firefly Services Generate Video API allows you to use Firefly AI to generate videos from text.\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n  AsyncResponseV3,\n  CancelJobV3PathParameters,\n  GenerateVideoRequestV3,\n  GenerateVideoV3202,\n  JobResultV3PathParameters,\n} from './generate-video-api-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Generate a five second video using a text prompt.\n * @summary Generate video from text\n */\nexport const generateVideoV3 = (\n  generateVideoRequestV3: GenerateVideoRequestV3,\n  options?: SecondParameter<typeof customAxiosInstance<GenerateVideoV3202>>\n) => {\n  return customAxiosInstance<GenerateVideoV3202>(\n    {\n      url: `/v3/videos/generate`,\n      method: 'POST',\n      headers: { 'Content-Type': 'application/json' },\n      data: generateVideoRequestV3,\n    },\n    options\n  );\n};\n\n/**\n * After initiating an asyncronous job, use this endpoint to poll the status using the job URN or ID and retrieve the result when the job is complete.\n * @summary Get job status and result\n */\nexport const jobResultV3 = (\n  { jobUrnOrId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<AsyncResponseV3>>\n) => {\n  return customAxiosInstance<AsyncResponseV3>(\n    { url: `/v3/status/${jobUrnOrId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * After initiating an asyncronous job, use this endpoint to cancel the job using the job URN or ID.\n * @summary Cancel a running job\n */\nexport const cancelJobV3 = (\n  { jobUrnOrId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customAxiosInstance<unknown>>\n) => {\n  return customAxiosInstance<unknown>({ url: `/v3/cancel/${jobUrnOrId}`, method: 'PUT' }, options);\n};\n\nexport type GenerateVideoV3Result = NonNullable<Awaited<ReturnType<typeof generateVideoV3>>>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Generate Video API\n * Firefly Services Generate Video API allows you to use Firefly AI to generate videos from text.\n * OpenAPI spec version: 1.0.0\n */\nexport interface AnchorPromptsKey {\n  anchor_prompt: string[];\n}\n\n/**\n * The error details within the error response.\n */\nexport interface ApiError {\n  /** Indicates the type of error that occurred. */\n  error_code: string;\n  /** A human-readable error message. */\n  message?: string;\n  /** Stack trace of the error for debugging purposes. */\n  stack_trace?: string[];\n  /** Detailed validation error messages. */\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AssetUploadResponse {\n  /** @minItems 1 */\n  assets: PublicBinaryOutput[];\n}\n\nexport interface AsyncTaskLink {\n  href: string;\n}\n\nexport type AsyncTaskLinkType = (typeof AsyncTaskLinkType)[keyof typeof AsyncTaskLinkType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskLinkType = {\n  cancel: 'cancel',\n  result: 'result',\n} as const;\n\nexport type AsyncTaskResponseLinks = { [key: string]: AsyncTaskLink };\n\nexport type AsyncTaskResponseProgress = number | null;\n\n/**\n * Response type for async requests\n */\nexport interface AsyncTaskResponse {\n  links: AsyncTaskResponseLinks;\n  progress?: AsyncTaskResponseProgress;\n}\n\nexport interface BodyGenExtendVideoV2 {\n  /** Files to be processed */\n  files: Blob[];\n  request: ExtendVideoRequest;\n}\n\nexport interface BodyGenExtendVideoV3 {\n  /** Files to be processed */\n  files: Blob[];\n  request: ExtendVideoRequestV3;\n}\n\nexport interface BodyGenerateVideoV2 {\n  /** Files to be processed */\n  files: Blob[];\n  request: GenerateVideoRequest;\n}\n\nexport interface BodyGenerateVideoV3 {\n  /** Files to be processed */\n  files: Blob[];\n  request: GenerateVideoRequestV3;\n}\n\nexport interface BodyPromptForgeFilixV2 {\n  /** Files to be processed */\n  files: Blob[];\n  request: PromptForgeRequest;\n}\n\nexport type CameraMotion = (typeof CameraMotion)[keyof typeof CameraMotion];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CameraMotion = {\n  camera_pan_left: 'camera pan left',\n  camera_pan_right: 'camera pan right',\n  camera_zoom_in: 'camera zoom in',\n  camera_zoom_out: 'camera zoom out',\n  camera_tilt_up: 'camera tilt up',\n  camera_tilt_down: 'camera tilt down',\n  camera_locked_down: 'camera locked down',\n  camera_handheld: 'camera handheld',\n} as const;\n\nexport interface ClinetoSize {\n  /**\n   * The height of the output image.\n   * @minimum 1\n   * @maximum 8192\n   */\n  height: number;\n  /**\n   * The width of the output image.\n   * @minimum 1\n   * @maximum 8192\n   */\n  width: number;\n}\n\nexport interface ClipRange {\n  /** The time stamp of a clip end position, in seconds */\n  end?: number;\n  /** The time stamp of a clip start position, in seconds */\n  start?: number;\n}\n\nexport interface ControlData {\n  structureData?: StructureReference;\n}\n\nexport interface CreateSessionResponse {\n  endpoint: string;\n  sessionId: string;\n  ttlSeconds: number;\n}\n\nexport interface DebiasedPrompt {\n  debiased_prompt: string;\n  seed: number;\n}\n\nexport interface DeleteSessionResponse {\n  sessionId: string;\n}\n\n/**\n * the place of reference range and the target range\n */\nexport type ExtendVideoRequestPlacement = Placement | null;\n\n/**\n * If specified alongside with n, the number of seeds must be the equal to n\n */\nexport type ExtendVideoRequestSeeds = number[] | null;\n\n/**\n * The size of the requested generations\n */\nexport type ExtendVideoRequestSizes = ClinetoSize[] | null;\n\nexport interface ExtendVideoRequest {\n  /** the constant rate factor for encoding video */\n  bitRateFactor?: unknown;\n  /** Model version to generate with. 'video1_8_standard' for the default model. */\n  modelVersion?: VideoModelVersion;\n  /** the place of reference range and the target range */\n  placement?: ExtendVideoRequestPlacement;\n  /** If specified alongside with n, the number of seeds must be the equal to n */\n  seeds?: ExtendVideoRequestSeeds;\n  /** The size of the requested generations */\n  sizes?: ExtendVideoRequestSizes;\n  video: InputVideo;\n}\n\nexport interface ExtendVideoRequestV3 {\n  /**\n   * The constant rate factor for encoding video. Can be omitted/empty.\n   * @minimum -1\n   * @maximum 64\n   */\n  bitRateFactor?: number;\n  /** The place of reference range and the target range. Can be omitted/empty. */\n  placement?: Placement;\n  /**\n   * If specified alongside with n, the number of seeds must be the equal to n. Can be omitted/empty.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The size of the requested generations. Can be omitted/empty. */\n  sizes?: ClinetoSize[];\n  video: InputVideoV3;\n}\n\n/**\n * the constant rate factor for encoding video\n */\nexport type GenerateVideoRequestBitRateFactor = number | null;\n\n/**\n * The controls for the video\n */\nexport type GenerateVideoRequestControlData = ControlData | null;\n\n/**\n * The image conditions for the video\n */\nexport type GenerateVideoRequestImage = InputImage | null;\n\n/**\n * The locale will be used to generate content that is more relevant for user's country and language\n */\nexport type GenerateVideoRequestLocale = string | null;\n\n/**\n * Inference will try to generate against this prompt\n */\nexport type GenerateVideoRequestNegativePrompt = string | null;\n\n/**\n * The prompt used to generate the image. The longer the prompt - the better\n */\nexport type GenerateVideoRequestPrompt = string | null;\n\n/**\n * If specified alongside with n, the number of seeds must be the equal to n\n */\nexport type GenerateVideoRequestSeeds = number[] | null;\n\n/**\n * The size of the requested generations\n */\nexport type GenerateVideoRequestSizes = ClinetoSize[] | null;\n\nexport type GenerateVideoRequestVideoSettings = VideoSettings | null;\n\nexport interface GenerateVideoRequest {\n  /** the constant rate factor for encoding video */\n  bitRateFactor?: GenerateVideoRequestBitRateFactor;\n  /** The controls for the video */\n  controlData?: GenerateVideoRequestControlData;\n  /** The image conditions for the video */\n  image?: GenerateVideoRequestImage;\n  /** The locale will be used to generate content that is more relevant for user's country and language */\n  locale?: GenerateVideoRequestLocale;\n  /** Model version to generate with. 'video1_8_standard' for the default model. */\n  modelVersion?: VideoModelVersion;\n  /** Inference will try to generate against this prompt */\n  negativePrompt?: GenerateVideoRequestNegativePrompt;\n  /** Output spec for the generated videos */\n  output?: VideoOutputSpec;\n  /** The prompt used to generate the image. The longer the prompt - the better */\n  prompt?: GenerateVideoRequestPrompt;\n  /** If specified alongside with n, the number of seeds must be the equal to n */\n  seeds?: GenerateVideoRequestSeeds;\n  /** The size of the requested generations */\n  sizes?: GenerateVideoRequestSizes;\n  videoSettings?: GenerateVideoRequestVideoSettings;\n}\n\nexport interface GenerateVideoRequestV3 {\n  /**\n   * The constant rate factor for encoding video. 0 indicates a lossless generation, with the highest quality and largest file size. 63 indicates the worst quality generation with the smallest file size. The suggested value range is 17-23.\n   * @minimum 0\n   * @maximum 63\n   */\n  bitRateFactor?: number;\n  /** The details of the image used as a keyframe for the generated video. Provided images are used as a first frame or final frame to guide the video generation. */\n  image?: InputImageV3;\n  /** The prompt used to generate the image. The longer the prompt, the better. */\n  prompt?: string;\n  /**\n   * The seed reference value. Currently only 1 seed is supported.\n   * @minItems 1\n   * @maxItems 1\n   */\n  seeds?: number[];\n  /** The dimensions of the generated video. Review the usage notes for [supported aspect ratios](/firefly-services/docs/firefly-api/guides/help/usage_notes/) and the sizes associated with them. */\n  sizes?: ClinetoSize[];\n  /** The camera and shot control settings. */\n  videoSettings?: VideoSettingsV3;\n}\n\nexport interface ImageCondition {\n  /** The placement of the condition image */\n  placement: PlacementStart;\n  /** The image of the condition */\n  source: PublicBinaryInput;\n}\n\nexport interface ImageConditionV3 {\n  /** Details about the timeline placement of the image. */\n  placement: PlacementStart;\n  /** The source details of the image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputImage {\n  /** The image conditions for the video */\n  conditions?: ImageCondition[];\n}\n\nexport interface InputImageV3 {\n  /** The details about the keyframe images used for the video generation. */\n  conditions?: ImageConditionV3[];\n}\n\nexport interface InputVideo {\n  source: PublicBinaryInput;\n}\n\nexport interface InputVideoV3 {\n  source: PublicBinaryInputV3;\n}\n\n/**\n * the position of generated clip\n */\nexport type PlacementInset = ClipRange | null;\n\n/**\n * the clip used as condition\n */\nexport type PlacementReference = ClipRange | null;\n\nexport interface Placement {\n  /** the position of generated clip */\n  inset?: PlacementInset;\n  /** the clip used as condition */\n  reference?: PlacementReference;\n}\n\nexport interface PlacementStart {\n  /**\n   * The position of the image on the timeline for the generated video, 0 being the first frame and 1 being the last frame.\n   * @minimum 0\n   * @maximum 1\n   */\n  position: number;\n}\n\nexport interface PromptForgeErrors {\n  is_blocked_class_artist?: boolean;\n  is_blocked_class_nsfw?: boolean;\n  is_denied?: boolean;\n  is_empty_prompt?: boolean;\n  is_not_supported_language?: boolean;\n  is_silent?: boolean;\n}\n\nexport interface PromptForgeOutput {\n  debiased_prompt: string;\n  debiased_prompts?: DebiasedPrompt[];\n  expanded_prompts?: string[];\n  output_prompt: string;\n}\n\nexport type PromptForgePipeline = (typeof PromptForgePipeline)[keyof typeof PromptForgePipeline];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const PromptForgePipeline = {\n  CME: 'CME',\n  CLIO: 'CLIO',\n  CLIO_NO_NSFW: 'CLIO_NO_NSFW',\n  DEV: 'DEV',\n  PEOPLE_BANLIST: 'PEOPLE_BANLIST',\n  NO_PEOPLE_BANLIST: 'NO_PEOPLE_BANLIST',\n  AUTOCOMPLETE: 'AUTOCOMPLETE',\n  NSFW_CLASSIFIER: 'NSFW_CLASSIFIER',\n  NSFW_PG13_CLASSIFIER: 'NSFW_PG13_CLASSIFIER',\n  T2V_PROMPT_REWRITE: 'T2V_PROMPT_REWRITE',\n} as const;\n\nexport type PromptForgeRequestInputExpanded = string[] | null;\n\nexport interface PromptForgeRequest {\n  age_debias_enbaled?: boolean;\n  check_language?: boolean;\n  debias_enabled?: boolean;\n  debug_enabled?: boolean;\n  expansion_enabled?: boolean;\n  input_expanded?: PromptForgeRequestInputExpanded;\n  input_tag_people?: boolean;\n  lang: string;\n  pipeline: PromptForgePipeline;\n  prompt: string;\n  seeds: number[];\n}\n\nexport type PromptForgeResponseContainRenderingText = boolean[] | null;\n\nexport type PromptForgeResponseDebugOutput = string[] | null;\n\nexport type PromptForgeResponseReforgedPrompts = string[] | null;\n\nexport interface PromptForgeResponse {\n  anchor_prompts: AnchorPromptsKey[];\n  atoms_ran: string[][];\n  contain_people: boolean[];\n  contain_rendering_text?: PromptForgeResponseContainRenderingText;\n  debug_output?: PromptForgeResponseDebugOutput;\n  errors: PromptForgeErrors[];\n  expandedOutput?: string[];\n  language_detected: string[];\n  output: PromptForgeOutput[];\n  pipeline: PromptForgePipeline[];\n  reforged_prompts?: PromptForgeResponseReforgedPrompts;\n}\n\n/**\n * Optional ID of the file in ACP. This has to be an ACP file assetID.\n */\nexport type PublicBinaryInputCreativeCloudFileId = string | null;\n\n/**\n * This is coming from other outputs\n */\nexport type PublicBinaryInputId = string | null;\n\nexport type PublicBinaryInputName = string | null;\n\n/**\n * This URL will expire in one hour\n */\nexport type PublicBinaryInputPresignedUrl = string | null;\n\n/**\n * In public HTTP APIs by convention we use this object to represent binary data (image, mesh, ...);\neven though for internal rquests we have different types.\n\nInputs (at least one should be provided):\n\n- id: If this object represents a file in our s3 temp storage system, the ID for that. This is usually\n  used when caller wants to send the image back to us.\n- presigned_url: If the object is stored as pre-signed URL.\n- creative_cloud_file_id: if the object is stored as as ACP file; id of the file.\n- name: This is used if the object is included in the request or response payload as form. This field will\n  be the name of the multi-part file. When accepting this file in the adapter, you don't need to use this field\n  directly, instead the _source (binary) and _mime_type (string) will be set for you.\n  When returning this type, tou don't need to set this field directly, instead set the bytes,\n  and the mime type, and inference platform takes care of converting to multi-part.\n    ```\n    binary = PublicBinary(); binary._source = ...;  binary._mime_type = ...\n    ```\n\nIt is also possible to set multiple fields; in case you want to return a file stored in various places\nto the user.\n */\nexport interface PublicBinaryInput {\n  /** Optional ID of the file in ACP. This has to be an ACP file assetID. */\n  creativeCloudFileId?: PublicBinaryInputCreativeCloudFileId;\n  /** This is coming from other outputs */\n  id?: PublicBinaryInputId;\n  name?: PublicBinaryInputName;\n  /** This URL will expire in one hour */\n  presignedUrl?: PublicBinaryInputPresignedUrl;\n}\n\n/**\n * Optional ID of the file in ACP. This has to be an ACP file assetID.\n */\nexport type PublicBinaryOutputCreativeCloudFileId = string | null;\n\n/**\n * This is coming from other outputs\n */\nexport type PublicBinaryOutputId = string | null;\n\nexport type PublicBinaryOutputName = string | null;\n\n/**\n * This URL will expire in one hour\n */\nexport type PublicBinaryOutputPresignedUrl = string | null;\n\n/**\n * In public HTTP APIS by convention we use this object to represent binary data (image, mesh, ...);\neven though for internal rquests we have different types.\n\nInputs (at least one should be provided):\n\n- id: If this object represents a file in our s3 temp storage system, the ID for that. This is usually\n  used when caller wants to send the image back to us.\n- presigned_url: If the object is stored as pre-signed URL.\n- creative_cloud_file_id: if the object is stored as as ACP file; id of the file.\n- name: This is used if the object is included in the request or response payload as form. This field will\n  be the name of the multi-part file. When accepting this file in the adapter, you don't need to use this field\n  directly, instead the _source (binary) and _mime_type (string) will be set for you.\n  When returning this type, tou don't need to set this field directly, instead set the bytes,\n  and the mime type, and inference platform takes care of converting to multi-part.\n    ```\n    binary = PublicBinary(); binary._source = ...;  binary._mime_type = ...\n    ```\n\nIt is also possible to set multiple fields; in case you want to return a file stored in various places\nto the user.\n */\nexport interface PublicBinaryOutput {\n  /** Optional ID of the file in ACP. This has to be an ACP file assetID. */\n  creativeCloudFileId?: PublicBinaryOutputCreativeCloudFileId;\n  /** This is coming from other outputs */\n  id?: PublicBinaryOutputId;\n  name?: PublicBinaryOutputName;\n  /** This URL will expire in one hour */\n  presignedUrl?: PublicBinaryOutputPresignedUrl;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** The ID of the file in Adobe Creative Cloud. Has to be a Creative Cloud file asset ID. */\n  creativeCloudFileId?: string;\n  /** The internal ID for a storage item that is coming from other outputs. */\n  uploadId?: string;\n  /**\n   * The pre-signed URL for the input file.\n   * @minLength 1\n   * @maxLength 4096\n   */\n  url?: string;\n}\n\nexport type ShotAngle = (typeof ShotAngle)[keyof typeof ShotAngle];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ShotAngle = {\n  aerial_shot: 'aerial shot',\n  eye_level_shot: 'eye_level shot',\n  high_angle_shot: 'high angle shot',\n  low_angle_shot: 'low angle shot',\n  'top-down_shot': 'top-down shot',\n} as const;\n\nexport type ShotSize = (typeof ShotSize)[keyof typeof ShotSize];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ShotSize = {\n  'close-up_shot': 'close-up shot',\n  'extreme_close-up': 'extreme close-up',\n  medium_shot: 'medium shot',\n  long_shot: 'long shot',\n  extreme_long_shot: 'extreme long shot',\n} as const;\n\nexport interface StructureReference {\n  depthStrength?: number;\n  edgeStrength?: number;\n  referenceVideo: InputVideo;\n}\n\n/**\n * Additional context for the validation error.\n */\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  /** Additional context for the validation error. */\n  ctx?: ValidationErrorMessageCtx;\n  /** Location of the validation error in the request. */\n  loc: ValidationErrorMessageLocItem[];\n  /** Validation error message. */\n  msg: string;\n  /** Type of validation error. */\n  type: string;\n}\n\nexport type VideoModelVersion = (typeof VideoModelVersion)[keyof typeof VideoModelVersion];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const VideoModelVersion = {\n  video15: 'video1.5',\n  video1_8_standard: 'video1_8_standard',\n} as const;\n\nexport interface VideoOutputSpec {\n  /** If `true`, Firefly and ACPC will store the output as a DCX composite which contains the input recipe information along with output content. If `false`, it will store it as plain content. */\n  storeInputs?: boolean;\n}\n\nexport type VideoPromptStyle = (typeof VideoPromptStyle)[keyof typeof VideoPromptStyle];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const VideoPromptStyle = {\n  anime: 'anime',\n  '3d': '3d',\n  fantasy: 'fantasy',\n  cinematic: 'cinematic',\n  claymation: 'claymation',\n  line_art: 'line art',\n  stop_motion: 'stop motion',\n  '2d': '2d',\n  vector_art: 'vector art',\n  black_and_white: 'black and white',\n} as const;\n\nexport interface VideoSettings {\n  /** The camera motion control */\n  cameraMotion?: CameraMotion;\n  /** The style of the generated video */\n  promptStyle?: VideoPromptStyle;\n  /** The shot angle control */\n  shotAngle?: ShotAngle;\n  /** The shot size control */\n  shotSize?: ShotSize;\n}\n\nexport interface VideoSettingsV3 {\n  /** The camera motion control. */\n  cameraMotion?: CameraMotion;\n  /** The style of the generated video. */\n  promptStyle?: VideoPromptStyle;\n  /** The shot angle control. */\n  shotAngle?: ShotAngle;\n  /** The shot size control. */\n  shotSize?: ShotSize;\n}\n\nexport interface VideoResult {\n  /** The pre-signed URL for the generated video file. */\n  url: string;\n}\n\nexport interface VideoOutput {\n  /** The seed value used for generating this video output. */\n  seed: number;\n  video: VideoResult;\n}\n\nexport interface AsyncResult {\n  size: ClinetoSize;\n  /** Array of generated video outputs. */\n  outputs: VideoOutput[];\n}\n\nexport interface AsyncResponseV3 {\n  /** A URL to cancel the job. */\n  cancelUrl?: unknown;\n  /** The ID for the asyncronous job. */\n  jobId: unknown;\n  /** The progress of the running job. The value is the percentage of the job that has been completed. */\n  progress?: number;\n  /** The result of the completed job. */\n  result?: AsyncResult;\n  /** The status of the job. */\n  status?: unknown;\n  /** A URL to show the status of the current job. */\n  statusUrl?: unknown;\n}\n\n/**\n * The headers of the message\n */\nexport type MessageResponseSchemaHeaders = { [key: string]: string };\n\n/**\n * This is a schema for the final message response that is sent to the client after async job completed.\nIt is used in OpenAPI schema docs.\nThe actual response is of type starlette.types.Message\n */\nexport interface MessageResponseSchema {\n  /** The body of the message */\n  body: unknown;\n  /** The headers of the message */\n  headers: MessageResponseSchemaHeaders;\n  /** The status code of the message */\n  status: number;\n  /** The status text of the message */\n  status_text: string;\n  /** The type of the message */\n  type: string;\n  /** The url of the message */\n  url: string;\n}\n\nexport type GenerateVideoV3202 = {\n  jobId: string;\n  statusUrl: string;\n  cancelUrl: string;\n};\n\nexport type JobResultV3PathParameters = {\n  jobUrnOrId: string;\n};\nexport type CancelJobV3PathParameters = {\n  jobUrnOrId: string;\n};\n","export * from './generate-video-api-client';\nexport * from './generate-video-api-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V2\n */\nimport type { StorageImageResponse } from './upload-image-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Upload source image or mask for image-to-image operations, such as fill, expand. This API returns an identifier that is used to refer to uploaded content. The uploaded assets will be valid for 7 days from the date you upload them.\n * @summary Upload\n */\nexport const storageImageV2 = (\n  storageImageV2Body: Blob,\n  options?: SecondParameter<typeof customAxiosInstance<StorageImageResponse>>\n) => {\n  return customAxiosInstance<StorageImageResponse>(\n    {\n      url: `/v2/storage/image`,\n      method: 'POST',\n      headers: { 'Content-Type': 'image/jpeg' },\n      data: storageImageV2Body,\n    },\n    options\n  );\n};\n\nexport type StorageImageV2Result = NonNullable<Awaited<ReturnType<typeof storageImageV2>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V2\n */\nexport interface ImageGenerateRequest {\n  /**\n   * Text prompt for image generation.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * The model will avoid these words in the generated content.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  contentClass?: ContentClass;\n  /**\n   * The number of variations to generate. If seeds array is specified, \"n\" does not have to be specified.\n   * @minimum 1\n   * @maximum 4\n   */\n  n?: number;\n  /**\n   * Array of seed(s) that will provide generation stability across multiple API calls. E.g. You can use the same seed to generate a similar image with different styles. If \"n\" is specified, the number of elements in the array must be equal to \"n\".\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  size?: ImageGenerateSize;\n  photoSettings?: PhotoSettings;\n  styles?: Styles;\n  /**\n   * Adjusts the overall intensity of your photo's existing visual characteristics\n   * @minItems 2\n   * @maxItems 10\n   */\n  visualIntensity?: number;\n  /** A hyphen separated string, combining the ISO 639-1 language code and the ISO 3166-1 region, such as \"en-US\". When a locale is set, the prompt will be debiased to generated more relevant content to that region. If not specified, the locale will be auto detected, based on user's profile and Accept-Language header. */\n  locale?: string;\n}\n\n/**\n * Successful operation\n */\nexport interface ImageGenerateRespons {\n  /** Unique identifier indicating the model and pipeline version with which the images were generated. */\n  version?: string;\n  size?: ImageGenerateSize;\n  outputs?: ImageOutput[];\n}\n\n/**\n * Dimensions of the generated image\n  | Dimensions | Description | \n  | -----------| ----- |\n  | { \"width\": 2048, \"height\": 2048} | Square (1:1) |\n  | { \"width\": 2304, \"height\": 1792 } | Landscape (4:3) |\n  | { \"width\": 1792, \"height\": 2304 } | Portrait (3:4) | \n  | { \"width\": 2688, \"height\": 1536 } | Widescreen (16:9) |\n\n */\nexport interface ImageGenerateSize {\n  width?: number;\n  height?: number;\n}\n\n/**\n * Advanced settings that will be applied if the specified or detected contentClass is photo\n */\nexport interface PhotoSettings {\n  /**\n   * Aperture\n   * @minimum 1.2\n   * @maximum 22\n   */\n  aperture?: number;\n  /**\n   * Shutter speed (seconds)\n   * @minimum 0.0005\n   * @maximum 10\n   */\n  shutterSpeed?: number;\n  /**\n   * Field of view (millimeters)\n   * @minimum 14\n   * @maximum 300\n   */\n  fieldOfView?: number;\n}\n\n/**\n * The content class guides the overall image theme and styles can be applied on top of each content type. If no content type is specified, it is auto-detected. \n  | Value  |  Description\n  |:---------- |:------\n  | photo      | Photorealistic style\n  | art    | Artistic style\n\n */\nexport type ContentClass = (typeof ContentClass)[keyof typeof ContentClass];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClass = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\n/**\n * Additional styles and reference image to be applied when generating variations.\n */\nexport interface Styles {\n  /** List of style presets (See \"Image Model Styles\" under \"Getting Started\" guides) that are applied to generated content */\n  presets?: unknown[];\n  referenceImage?: StorageImage;\n  /**\n   * Sets the intensity at which to apply the styles\n   * @minimum 1\n   * @maximum 100\n   */\n  strength?: number;\n}\n\n/**\n * A valid Storage Item containing both an internal ID and a pre-signed URL\n */\nexport type ImageOutputImage = {\n  /** Signed URL of the generated image.<br><strong>Note:</strong> This URL is valid for one hour. */\n  presignedUrl?: string;\n  /** Unique ID associated with the generated image.<br><strong>Note:</strong> The ID of the generated image will remain valid for 24 hours. */\n  id?: string;\n};\n\n/**\n * Array of objects with details on output images\n */\nexport interface ImageOutput {\n  /** A valid Storage Item containing both an internal ID and a pre-signed URL */\n  image?: ImageOutputImage;\n  /** seed used to generate the image */\n  seed?: number;\n}\n\n/**\n * storage response\n */\nexport interface StorageImageResponse {\n  /** Array of objects containing asset ID. */\n  images?: StorageImage[];\n}\n\n/**\n * Source image\n */\nexport interface StorageImage {\n  /** ID associated with the asset. The id will be valid for 7 days from the date of creation. Pre-signed URLs will be supported in the future. */\n  id: string;\n}\n\nexport interface ImageExpandRequest {\n  /**\n   * If provided, the expanded image will be rendered with content generated from prompt. If not provided, the expanded image will be rendered with content matching the existing style of the image.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * The number of variations to generate. If seeds array is specified, \"n\" does not have to be specified.\n   * @minimum 1\n   * @maximum 4\n   */\n  n?: number;\n  /**\n   * Array of seed(s) that will provide generation stability across multiple API calls. E.g. You can use the same seed to generate a similar image with different styles. If \"n\" is specified, the number of elements in the array must be equal to \"n\".\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  image?: StorageImage;\n  size?: ImageSize;\n}\n\n/**\n * gen-expand response\n */\nexport interface ImageGenerativeResponse {\n  /** Unique identifier indicating the model and pipeline version with which the images were generated. */\n  pipelineVersion?: string;\n  /** If provided, the masked area will be rendered with content generated from prompt. If not provided, the masked area will be rendered with content matching the existing style of the source image. */\n  prompt?: string;\n  /** Flag to indicate if denied words were detected in the prompt. */\n  promptHasDeniedWords?: boolean;\n  /** Flag to indicate if artist names were detected in the prompt. */\n  promptHasBlockedArtist?: boolean;\n  size?: ImageSize;\n  images?: ImageOutput[];\n}\n\n/**\n * Supported dimensions for the generated image.\n  | Dimensions | Description | \n  | -----------| ----- |\n  | { \"width\": 1024, \"height\": 1024} | Square (1:1) |\n  | { \"width\": 1408, \"height\": 1024 } | Landscape (4:3) |\n  | { \"width\": 1024, \"height\": 1408 } | Portrait (3:4) | \n  | { \"width\": 1792, \"height\": 1024 } | Widescreen (16:9) |\n\n */\nexport interface ImageSize {\n  /**\n   * @minimum 1024\n   * @maximum 1792\n   */\n  width: number;\n  /**\n   * @minimum 1024\n   * @maximum 1408\n   */\n  height: number;\n}\n\nexport interface ImageFillRequest {\n  /**\n   * If provided, the masked area will be rendered with content generated from prompt. If not provided, the masked area will be rendered with content matching the existing style of the source image.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * The number of variations to generate. If seeds array is specified, \"n\" does not have to be specified.\n   * @minimum 1\n   * @maximum 4\n   */\n  n?: number;\n  /**\n   * Array of seed(s) that will provide generation stability across multiple API calls. E.g. You can use the same seed to generate a similar image with different styles. If \"n\" is specified, the number of elements in the array must be equal to \"n\".\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  size: ImageSize;\n  image: StorageImage;\n  mask: ImageFillMask;\n}\n\n/**\n * Custom mask that will be filled with generated content\n */\nexport interface ImageFillMask {\n  /** ID associated with the asset (generate this ID using the upload API). Pre-signed URLs will be supported in the future. */\n  id: string;\n}\n\nexport interface ErrorBody {\n  /** Error message */\n  message?: string;\n  /** Associated error code */\n  error_code?: string;\n}\n\nexport type AcceptTypes = (typeof AcceptTypes)[keyof typeof AcceptTypes];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AcceptTypes = {\n  'application/json': 'application/json',\n  'multipart/mixed': 'multipart/mixed',\n} as const;\n\nexport type AcceptMimeTypes = (typeof AcceptMimeTypes)[keyof typeof AcceptMimeTypes];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AcceptMimeTypes = {\n  'image/jpeg': 'image/jpeg',\n  'image/webp': 'image/webp',\n  'image/png': 'image/png',\n} as const;\n\nexport type XAcceptMimetypeParameter =\n  (typeof XAcceptMimetypeParameter)[keyof typeof XAcceptMimetypeParameter];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const XAcceptMimetypeParameter = {\n  'image/jpeg': 'image/jpeg',\n  'image/webp': 'image/webp',\n  'image/png': 'image/png',\n} as const;\n\nexport type XApiVariantParameter = (typeof XApiVariantParameter)[keyof typeof XApiVariantParameter];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const XApiVariantParameter = {\n  v1: 'v1',\n  v2: 'v2',\n} as const;\n\n/**\n * Optional unique identifier that can be attached to an API request.\n */\nexport type XRequestIdParameter = string;\n\nexport type XGwImsScopeParameter = string;\n\n/**\n * Optional identifier that can be provided to represent an unique browser session for an user.\n */\nexport type XSessionIdParameter = string;\n","export * from './upload-image-client';\nexport * from './upload-image-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise use.\n * OpenAPI spec version: V3\n */\nimport type {\n  CustomModelsFF3pInfo,\n  GetCustomModelsParams,\n} from './custom-models-listing-client.schemas';\n\nimport { customAxiosInstance } from '../../mutator/custom-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve the custom models for a user.\n * @summary Retrieve custom models\n */\nexport const getCustomModels = (\n  params?: GetCustomModelsParams,\n  options?: SecondParameter<typeof customAxiosInstance<CustomModelsFF3pInfo>>\n) => {\n  return customAxiosInstance<CustomModelsFF3pInfo>(\n    { url: `/v3/custom-models`, method: 'GET', params },\n    options\n  );\n};\n\nexport type GetCustomModelsResult = NonNullable<Awaited<ReturnType<typeof getCustomModels>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise use.\n * OpenAPI spec version: V3\n */\nexport interface ErrorResponse {\n  /** The type of error that occurred. */\n  reason?: string;\n  /** A message describing the error. */\n  message?: string;\n}\n\nexport interface CustomModelsFF3pInfo {\n  /** Custom Models List */\n  custom_models?: CustomModelFF3pInfo[];\n  _links?: Links;\n  /** Total results for query */\n  total_count?: number;\n}\n\n/**\n * The [training mode of the model](../firefly-api-reference/custom-models.md#training-mode). When this is 'subject', the 'conceptId' must be mentioned in the prompt.\n */\nexport type CustomModelFF3pInfoTrainingMode =\n  (typeof CustomModelFF3pInfoTrainingMode)[keyof typeof CustomModelFF3pInfoTrainingMode];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CustomModelFF3pInfoTrainingMode = {\n  subject: 'subject',\n  style: 'style',\n} as const;\n\n/**\n * Status for the asset. The 'unpublished' value applies when an asset is published and then subsequently revoked.\n */\nexport type CustomModelFF3pInfoPublishedState =\n  (typeof CustomModelFF3pInfoPublishedState)[keyof typeof CustomModelFF3pInfoPublishedState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CustomModelFF3pInfoPublishedState = {\n  never: 'never',\n  published: 'published',\n  unpublished: 'unpublished',\n} as const;\n\n/**\n * Custom Model info\n */\nexport interface CustomModelFF3pInfo {\n  /** Custom Model version. */\n  version?: string;\n  /** Custom Model name. */\n  assetName?: string;\n  /** The storage amount used. */\n  size?: number;\n  /** An identifier for the specific version of the asset. */\n  etag?: string;\n  /** The [training mode of the model](../firefly-api-reference/custom-models.md#training-mode). When this is 'subject', the 'conceptId' must be mentioned in the prompt. */\n  trainingMode?: CustomModelFF3pInfoTrainingMode;\n  /** A unique identifier for the asset. */\n  assetId?: string;\n  /** The media type specific to the asset. */\n  mediaType?: string;\n  createdDate?: string;\n  modifiedDate?: string;\n  /** Status for the asset. The 'unpublished' value applies when an asset is published and then subsequently revoked. */\n  publishedState?: CustomModelFF3pInfoPublishedState;\n  /** The underlying GenAI model used to train the Custom Model. */\n  baseModel?: BaseModel;\n  /** Example string provided by the custom model's trainer */\n  samplePrompt?: string;\n  /** The asset name provided by the user, mapped from the name of the training set library. */\n  displayName?: string;\n  /** When 'trainingMode' is 'subject', this string specifies the subject for the prompt. */\n  conceptId?: string;\n}\n\nexport interface BaseModel {\n  name?: string;\n  version?: string;\n}\n\n/**\n * Collection of hypermedia links for pagination, navigation, etc.\n */\nexport interface Links {\n  page?: Link;\n  next?: Link;\n}\n\n/**\n * Standard representation of a hypermedia link.\n */\nexport interface Link {\n  /** Fully qualified URI or relative path for the link. */\n  href?: string;\n  /** Describes the relationship or function of the link (e.g. `next`, `page`, `self`). */\n  rel?: string;\n  /** Indicates whether or not the `href` supports URI template parameters. */\n  templated?: boolean;\n}\n\n/**\n * List Page\n */\nexport interface PageSpec {\n  /** List orderby */\n  orderBy?: string;\n  /** List start position */\n  start?: string;\n  /** List next position */\n  next?: string;\n  /** List page size */\n  count?: number;\n  /** List page type */\n  type?: string;\n  /** List page property */\n  property?: string;\n}\n\nexport type GetCustomModelsParams = {\n  /**\n   * A sorting option for the response list. For a reverse sort, use `-` (e.g., `-modifiedDate`). Multi-vector sorting is not currently supported.\n   */\n  sortBy?: GetCustomModelsSortBy;\n  /**\n   * The first result to include in a paginated response. Required if a `limit` is specified.\n   */\n  start?: string;\n  /**\n   * The number of custom models to return in a paginated response.\n   * @minimum 1\n   * @maximum 50\n   */\n  limit?: string;\n  /**\n   * This filters custom models by published state.\n   */\n  publishedState?: GetCustomModelsPublishedState;\n};\n\nexport type GetCustomModelsSortBy =\n  (typeof GetCustomModelsSortBy)[keyof typeof GetCustomModelsSortBy];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCustomModelsSortBy = {\n  assetName: 'assetName',\n  createdDate: 'createdDate',\n  modifiedDate: 'modifiedDate',\n} as const;\n\nexport type GetCustomModelsPublishedState =\n  (typeof GetCustomModelsPublishedState)[keyof typeof GetCustomModelsPublishedState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCustomModelsPublishedState = {\n  all: 'all',\n  ready: 'ready',\n  published: 'published',\n  unpublished: 'unpublished',\n  queued: 'queued',\n  training: 'training',\n  failed: 'failed',\n  cancelled: 'cancelled',\n} as const;\n","export * from './custom-models-listing-client';\nexport * from './custom-models-listing-client.schemas';\n","import { AXIOS_INSTANCE } from '../mutator/custom-axios-instance';\nimport type { AxiosRequestConfig } from 'axios';\n\n/**\n * Polling utilities for async Firefly jobs\n */\n\nexport interface PollOptions<TResult = unknown> {\n  /**\n   * Authentication and other fetch options\n   */\n  axiosRequestConfig?: AxiosRequestConfig;\n  /**\n   * Interval between polling attempts in milliseconds\n   * @default 2000\n   */\n  intervalMs?: number;\n  /**\n   * Maximum number of polling attempts\n   * @default 60\n   */\n  maxAttempts?: number;\n  /**\n   * Callback for progress updates\n   */\n  onProgress?: (status: JobStatus<TResult>) => void;\n  /**\n   * Custom timeout in milliseconds (overrides maxAttempts)\n   */\n  timeoutMs?: number;\n}\n\nexport interface JobStatus<TResult = unknown> {\n  jobId: string;\n  status: 'pending' | 'running' | 'succeeded' | 'failed' | 'canceled';\n  progress?: number;\n  result?: TResult;\n}\n\nexport class PollingError extends Error {\n  constructor(\n    message: string,\n    public readonly status?: JobStatus,\n    public readonly cause?: unknown\n  ) {\n    super(message);\n    this.name = 'PollingError';\n  }\n}\n\nexport class PollingTimeoutError extends PollingError {\n  constructor(message: string, status?: JobStatus) {\n    super(message, status);\n    this.name = 'PollingTimeoutError';\n  }\n}\n\n/**\n * Polls a Firefly async job until completion\n *\n * @param jobResult - The job result containing a statusUrl from the initial async response\n * @param options - Polling configuration options\n * @returns The final job result when succeeded, with type automatically inferred from the job response\n * @throws {PollingTimeoutError} If max attempts or timeout is reached\n * @throws {PollingError} If the job fails or is canceled\n *\n * @example\n * ```typescript\n * // Type is automatically inferred as GenerateImagesResponseV3\n * const result = await pollJob(imageJob, { fetchOptions: { headers } });\n *\n * // Type is automatically inferred as video result type\n * const videoResult = await pollJob(videoJob, { fetchOptions: { headers } });\n * ```\n */\nexport async function pollJob<TResult>(\n  jobResult: { statusUrl: string },\n  options: PollOptions<TResult> = {}\n): Promise<TResult> {\n  const { statusUrl } = jobResult;\n  const {\n    axiosRequestConfig = {},\n    intervalMs = 2000,\n    maxAttempts = 60,\n    onProgress,\n    timeoutMs,\n  } = options;\n\n  const startTime = Date.now();\n  const effectiveTimeout = timeoutMs ?? maxAttempts * intervalMs;\n  let attempts = 0;\n\n  while (true) {\n    attempts++;\n\n    // Check timeout\n    const elapsed = Date.now() - startTime;\n    if (elapsed >= effectiveTimeout) {\n      throw new PollingTimeoutError(`Polling timeout after ${elapsed}ms (${attempts} attempts)`);\n    }\n\n    try {\n      const response = await AXIOS_INSTANCE.get<JobStatus<TResult>>(statusUrl, axiosRequestConfig);\n\n      const status = response.data;\n\n      // Call progress callback if provided\n      if (onProgress) {\n        onProgress(status);\n      }\n\n      // Check terminal states\n      if (status.status === 'succeeded') {\n        return status.result as TResult;\n      }\n\n      if (status.status === 'failed') {\n        throw new PollingError(`Job failed: ${JSON.stringify(status)}`, status);\n      }\n\n      if (status.status === 'canceled') {\n        throw new PollingError(`Job was canceled`, status);\n      }\n\n      // Job still running, wait before next poll\n      await sleep(intervalMs);\n    } catch (error) {\n      // Re-throw our custom errors\n      if (error instanceof PollingError) {\n        throw error;\n      }\n\n      // Wrap other errors\n      throw new PollingError(\n        `Failed to poll job status: ${error instanceof Error ? error.message : String(error)}`,\n        undefined,\n        error\n      );\n    }\n  }\n}\n\n/**\n * Utility function to sleep for a given duration\n */\nfunction sleep(ms: number): Promise<void> {\n  return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","/**\n * IMS (Adobe Identity Management System) Client for OAuth 2.0 Client Credentials Flow\n * See: https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/ims#fetching-access-tokens\n */\n\nimport type { IIMSClient, IMSClientOptions } from './ims-client.interface';\n\ntype IMSTokenResponse = {\n  access_token: string;\n  token_type: string;\n  expires_in: number;\n};\n\nexport class IMSClient implements IIMSClient {\n  private clientId: string;\n  private clientSecret: string;\n  private scopes: string[];\n  private tokenEndpoint: string;\n  private cachedToken: string | null = null;\n  private tokenExpiresAt: number = 0;\n\n  constructor(options: IMSClientOptions) {\n    this.clientId = options.clientId;\n    this.clientSecret = options.clientSecret;\n    this.scopes = options.scopes;\n    this.tokenEndpoint = 'https://ims-na1.adobelogin.com/ims/token/v3';\n  }\n\n  /**\n   * Get a valid access token, using cache if not expired.\n   */\n  async getAccessToken(): Promise<string> {\n    const now = Date.now();\n    // Add a buffer (e.g., 60s) to avoid using an about-to-expire token\n    if (this.cachedToken && now < this.tokenExpiresAt - 60000) {\n      return this.cachedToken;\n    }\n    const tokenData = await this.fetchAccessToken();\n    this.cachedToken = tokenData.access_token;\n    this.tokenExpiresAt = now + tokenData.expires_in * 1000;\n    return this.cachedToken;\n  }\n\n  getClientId(): string {\n    return this.clientId;\n  }\n\n  /**\n   * Fetch a new access token from IMS.\n   */\n  private async fetchAccessToken(): Promise<IMSTokenResponse> {\n    const params = new URLSearchParams();\n    params.append('client_id', this.clientId);\n    params.append('client_secret', this.clientSecret);\n    params.append('grant_type', 'client_credentials');\n    params.append('scope', this.scopes.join(','));\n\n    const response = await fetch(this.tokenEndpoint, {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/x-www-form-urlencoded',\n      },\n      body: params.toString(),\n    });\n\n    if (!response.ok) {\n      const errorText = await response.text();\n      throw new Error(\n        `IMS token request failed: ${response.status} ${response.statusText} - ${errorText}`\n      );\n    }\n\n    const data = (await response.json()) as IMSTokenResponse;\n    if (!data.access_token) {\n      throw new Error('IMS token response missing access_token');\n    }\n    return data;\n  }\n\n  /**\n   * Get headers for authenticated Firefly API requests.\n   */\n  async getAuthHeaders(): Promise<Record<string, string>> {\n    const accessToken = await this.getAccessToken();\n    return {\n      Authorization: `Bearer ${accessToken}`,\n      'x-api-key': this.clientId,\n    };\n  }\n}\n","/**\n * IMS (Adobe Identity Management System) Client for OAuth 2.0 Client Credentials Flow\n * See: https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/ims#fetching-access-tokens\n */\n\nimport type { IIMSClient } from './ims-client.interface';\n\nexport class TokenIMSClient implements IIMSClient {\n  private accessToken: string;\n  private clientId: string;\n\n  constructor({ accessToken, clientId }: { accessToken: string; clientId: string }) {\n    this.accessToken = accessToken;\n    this.clientId = clientId;\n  }\n  getAccessToken(): Promise<string> {\n    return new Promise((resolve) => resolve(this.accessToken));\n  }\n  getClientId(): string {\n    return this.clientId;\n  }\n  /**\n   * Get headers for authenticated Firefly API requests.\n   */\n  async getAuthHeaders(): Promise<Record<string, string>> {\n    return {\n      Authorization: `Bearer ${this.accessToken}`,\n      'x-api-key': this.clientId,\n    };\n  }\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"mappings":";;;;;;;;;AAEA,SAAwB,KAAK,IAAI,SAAS;AACxC,QAAO,SAAS,OAAO;AACrB,SAAO,GAAG,MAAM,SAAS,UAAU;;;ACEvC,IAAM,EAAC,aAAY,OAAO;AAC1B,IAAM,EAAC,mBAAkB;AACzB,IAAM,EAAC,UAAU,gBAAe;AAEhC,IAAM,WAAU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