@tryghost/kg-unsplash-selector 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UnsplashSearchModal.d.ts +2 -2
- package/dist/UnsplashSearchModal.d.ts.map +1 -1
- package/dist/UnsplashTypes.d.ts +10 -0
- package/dist/UnsplashTypes.d.ts.map +1 -1
- package/dist/api/IUnsplashProvider.d.ts +1 -1
- package/dist/api/IUnsplashProvider.d.ts.map +1 -1
- package/dist/api/InMemoryUnsplashProvider.d.ts +1 -1
- package/dist/api/InMemoryUnsplashProvider.d.ts.map +1 -1
- package/dist/api/PhotoUseCase.d.ts +1 -1
- package/dist/api/PhotoUseCase.d.ts.map +1 -1
- package/dist/api/UnsplashProvider.d.ts +1 -1
- package/dist/api/UnsplashProvider.d.ts.map +1 -1
- package/dist/api/UnsplashService.d.ts +2 -2
- package/dist/api/UnsplashService.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +509 -1114
- package/dist/index.es.js.map +1 -1
- package/dist/kg-unsplash-selector.css +2 -1
- package/dist/ui/UnsplashGallery.d.ts +3 -3
- package/dist/ui/UnsplashGallery.d.ts.map +1 -1
- package/dist/ui/UnsplashImage.d.ts +4 -11
- package/dist/ui/UnsplashImage.d.ts.map +1 -1
- package/dist/ui/UnsplashZoomed.d.ts +2 -2
- package/dist/ui/UnsplashZoomed.d.ts.map +1 -1
- package/package.json +9 -6
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/api/MasonryService.ts","../src/assets/kg-download.svg?react","../src/assets/kg-unsplash-heart.svg?react","../src/ui/UnsplashButton.tsx","../src/ui/UnsplashImage.tsx","../src/ui/UnsplashZoomed.tsx","../src/ui/UnsplashGallery.tsx","../src/assets/kg-close.svg?react","../src/assets/kg-search.svg?react","../src/assets/kg-card-type-unsplash.svg?react","../src/ui/UnsplashSelector.tsx","../src/api/unsplashFixtures.ts","../src/api/InMemoryUnsplashProvider.ts","../src/api/PhotoUseCase.ts","../src/api/UnsplashProvider.ts","../src/api/UnsplashService.ts","../src/UnsplashSearchModal.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import {Photo} from '../UnsplashTypes';\n\nexport default class MasonryService {\n public columnCount: number;\n public columns: Photo[][] | [] = [];\n public columnHeights: number[] | null;\n \n constructor(columnCount: number = 3) {\n this.columnCount = columnCount;\n this.columns = [[]];\n this.columnHeights = null;\n }\n \n reset(): void {\n let columns: Photo[][] = [];\n let columnHeights: number[] = [];\n\n for (let i = 0; i < this.columnCount; i += 1) {\n columns[i] = [];\n columnHeights[i] = 0;\n }\n \n this.columns = columns;\n this.columnHeights = columnHeights;\n }\n \n addColumns(): void {\n for (let i = 0; i < this.columnCount; i++) {\n (this.columns as Photo[][]).push([]);\n this.columnHeights!.push(0);\n }\n }\n \n addPhotoToColumns(photo: Photo): void {\n if (!this.columns) {\n this.reset();\n }\n let min = Math.min(...this.columnHeights!);\n let columnIndex = this.columnHeights!.indexOf(min);\n\n this.columnHeights![columnIndex] += 300 * photo.ratio;\n this.columns![columnIndex].push(photo);\n }\n \n getColumns(): Photo[][] | null {\n return this.columns;\n }\n\n changeColumnCount(newColumnCount: number): void {\n if (newColumnCount !== this.columnCount) {\n this.columnCount = newColumnCount;\n this.reset();\n }\n }\n}\n","import * as React from \"react\";\nconst SvgKgDownload = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M20 5.5l-8 8-8-8m-3.5 13h23\", stroke: \"currentColor\", strokeLinecap: \"round\", strokeLinejoin: \"round\", strokeMiterlimit: 10, fill: \"none\" }));\nexport default SvgKgDownload;\n","import * as React from \"react\";\nconst SvgKgUnsplashHeart = (props) => /* @__PURE__ */ React.createElement(\"svg\", { viewBox: \"0 0 32 32\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M17.4 29c-.8.8-2 .8-2.8 0L2.3 16.2C-.8 13.1-.8 8 2.3 4.8c3.1-3.1 8.2-3.1 11.3 0L16 7.6l2.3-2.8c3.1-3.1 8.2-3.1 11.3 0 3.1 3.1 3.1 8.2 0 11.4L17.4 29z\" }));\nexport default SvgKgUnsplashHeart;\n","import DownloadIcon from '../assets/kg-download.svg?react';\nimport React, {HTMLProps} from 'react';\nimport UnsplashHeartIcon from '../assets/kg-unsplash-heart.svg?react';\n\n// Define the available icon types\ntype ButtonIconType = 'heart' | 'download';\n\n// Define the props type\ninterface UnsplashButtonProps extends HTMLProps<HTMLAnchorElement> {\n icon?: ButtonIconType;\n label?: string;\n}\n\nconst BUTTON_ICONS: Record<ButtonIconType, React.ComponentType<Partial<React.SVGProps<SVGSVGElement>>>> = {\n heart: UnsplashHeartIcon,\n download: DownloadIcon\n};\n\nconst UnsplashButton: React.FC<UnsplashButtonProps> = ({icon, label, ...props}) => {\n let Icon = null;\n if (icon) {\n Icon = BUTTON_ICONS[icon];\n }\n\n return (\n <a\n className=\"text-grey-700 flex h-8 shrink-0 cursor-pointer items-center rounded-md bg-white px-3 py-2 font-sans text-sm font-medium leading-6 opacity-90 transition-all ease-in-out hover:opacity-100\"\n onClick={e => e.stopPropagation()}\n {...props}\n >\n {icon && Icon && <Icon className={`size-4 ${icon === 'heart' ? 'fill-red' : ''} stroke-[3px] ${label && 'mr-1'}`} />}\n {label && <span>{label}</span>}\n </a>\n );\n};\n\nexport default UnsplashButton;\n","import UnsplashButton from './UnsplashButton';\nimport {FC, MouseEvent} from 'react';\nimport {Links, Photo, User} from '../UnsplashTypes';\n\nexport interface UnsplashImageProps {\n payload: Photo;\n srcUrl: string;\n links: Links;\n likes: number;\n user: User;\n alt: string;\n urls: { regular: string };\n height: number;\n width: number;\n zoomed: Photo | null;\n insertImage: (options: {\n src: string,\n caption: string,\n height: number,\n width: number,\n alt: string,\n links: Links\n }) => void;\n selectImg: (payload: Photo | null) => void;\n}\n\nconst UnsplashImage: FC<UnsplashImageProps> = ({payload, srcUrl, links, likes, user, alt, urls, height, width, zoomed, insertImage, selectImg}) => {\n const handleClick = (e: MouseEvent<HTMLDivElement>) => {\n e.stopPropagation();\n selectImg(zoomed ? null : payload);\n };\n\n return (\n <div\n className={`relative mb-6 block ${zoomed ? 'h-full w-[max-content] cursor-zoom-out' : 'w-full cursor-zoom-in'}`}\n style={{backgroundColor: payload.color || 'transparent'}}\n data-kg-unsplash-gallery-item\n onClick={handleClick}>\n <img\n alt={alt}\n className={`${zoomed ? 'h-full w-auto object-contain' : 'block h-auto'}`}\n height={height}\n loading='lazy'\n src={srcUrl}\n width={width}\n data-kg-unsplash-gallery-img\n />\n <div className=\"absolute inset-0 flex flex-col justify-between bg-gradient-to-b from-black/5 via-black/5 to-black/30 p-5 opacity-0 transition-all ease-in-out hover:opacity-100\">\n <div className=\"flex items-center justify-end gap-3\">\n <UnsplashButton\n data-kg-button=\"unsplash-like\"\n href={`${links.html}/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit`}\n icon=\"heart\"\n label={likes.toString()}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n />\n <UnsplashButton\n data-kg-button=\"unsplash-download\"\n href={`${links.download}/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit&force=true`}\n icon=\"download\"\n />\n </div>\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center\">\n <img alt=\"author\" className=\"mr-2 size-8 rounded-full\" src={user.profile_image.medium} />\n <div className=\"mr-2 truncate font-sans text-sm font-medium text-white\">{user.name}</div>\n </div>\n <UnsplashButton label=\"Insert image\" data-kg-unsplash-insert-button onClick={(e) => {\n e.stopPropagation();\n insertImage({\n src: urls.regular.replace(/&w=1080/, '&w=2000'),\n caption: `<span>Photo by <a href=\"${user.links.html}\">${user.name}</a> / <a href=\"https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit\">Unsplash</a></span>`,\n height: height,\n width: width,\n alt: alt,\n links: links\n });\n }} />\n </div>\n </div>\n </div>\n );\n};\n\nexport default UnsplashImage;\n","import UnsplashImage, {UnsplashImageProps} from './UnsplashImage';\nimport {FC} from 'react';\nimport {Photo} from '../UnsplashTypes';\n\ninterface UnsplashZoomedProps extends Omit<UnsplashImageProps, 'zoomed'> {\n zoomed: Photo | null;\n selectImg: (photo: Photo | null) => void;\n}\n\nconst UnsplashZoomed: FC<UnsplashZoomedProps> = ({payload, insertImage, selectImg, zoomed}) => {\n return (\n <div className=\"flex h-full grow basis-0 justify-center\" data-kg-unsplash-zoomed onClick={() => selectImg(null)}>\n <UnsplashImage \n alt={payload.alt_description}\n height={payload.height}\n insertImage={insertImage}\n likes={payload.likes}\n links={payload.links}\n payload={payload}\n selectImg={selectImg}\n srcUrl={payload.urls.regular}\n urls={payload.urls}\n user={payload.user}\n width={payload.width}\n zoomed={zoomed}\n />\n </div>\n );\n};\n\nexport default UnsplashZoomed;\n","import React, {ReactNode, RefObject} from 'react';\nimport UnsplashImage from './UnsplashImage';\nimport UnsplashZoomed from './UnsplashZoomed';\nimport {Photo} from '../UnsplashTypes';\n\ninterface MasonryColumnProps {\n children: ReactNode;\n}\n\ninterface UnsplashGalleryColumnsProps {\n columns?: Photo[][] | [];\n insertImage?: any;\n selectImg?: any;\n zoomed?: Photo | null;\n}\n\ninterface GalleryLayoutProps {\n children?: ReactNode;\n galleryRef: RefObject<HTMLDivElement>;\n isLoading?: boolean;\n zoomed?: Photo | null;\n}\n\ninterface UnsplashGalleryProps extends GalleryLayoutProps {\n error?: string | null;\n dataset?: Photo[][] | [];\n selectImg?: any;\n insertImage?: any;\n}\n\nconst UnsplashGalleryLoading: React.FC = () => {\n return (\n <div className=\"absolute inset-y-0 left-0 flex w-full items-center justify-center overflow-hidden pb-[8vh]\" data-kg-loader>\n <div className=\"animate-spin before:bg-grey-800 relative inline-block size-[50px] rounded-full border border-black/10 before:z-10 before:mt-[7px] before:block before:size-[7px] before:rounded-full\"></div>\n </div>\n );\n};\n\nexport const MasonryColumn: React.FC<MasonryColumnProps> = (props) => {\n return (\n <div className=\"mr-6 flex grow basis-0 flex-col justify-start last-of-type:mr-0\">\n {props.children}\n </div>\n );\n};\n\nconst UnsplashGalleryColumns: React.FC<UnsplashGalleryColumnsProps> = (props) => {\n if (!props?.columns) {\n return null;\n }\n\n return (\n props?.columns.map((array, index) => (\n // eslint-disable-next-line react/no-array-index-key\n <MasonryColumn key={index}>\n {\n array.map((payload: Photo) => (\n <UnsplashImage\n key={payload.id}\n alt={payload.alt_description}\n height={payload.height}\n insertImage={props?.insertImage}\n likes={payload.likes}\n links={payload.links}\n payload={payload}\n selectImg={props?.selectImg}\n srcUrl={payload.urls.regular}\n urls={payload.urls}\n user={payload.user}\n width={payload.width}\n zoomed={props?.zoomed || null}\n />\n ))\n }\n </MasonryColumn>\n ))\n );\n};\n\nconst GalleryLayout: React.FC<GalleryLayoutProps> = (props) => {\n return (\n <div className=\"relative h-full overflow-hidden\" data-kg-unsplash-gallery>\n <div ref={props.galleryRef} className={`flex size-full justify-center overflow-auto px-20 ${props?.zoomed ? 'pb-10' : ''}`} data-kg-unsplash-gallery-scrollref>\n {props.children}\n {props?.isLoading && <UnsplashGalleryLoading />}\n </div>\n </div>\n );\n};\n\nconst UnsplashGallery: React.FC<UnsplashGalleryProps> = ({zoomed,\n error,\n galleryRef,\n isLoading,\n dataset,\n selectImg,\n insertImage}) => {\n if (zoomed) {\n return (\n <GalleryLayout\n galleryRef={galleryRef}\n zoomed={zoomed}>\n <UnsplashZoomed\n alt={zoomed.alt_description}\n height={zoomed.height}\n insertImage={insertImage}\n likes={zoomed.likes}\n links={zoomed.links}\n payload={zoomed}\n selectImg={selectImg}\n srcUrl={zoomed.urls.regular}\n urls={zoomed.urls}\n user={zoomed.user}\n width={zoomed.width}\n zoomed={zoomed}\n />\n </GalleryLayout>\n );\n }\n\n if (error) {\n return (\n <GalleryLayout\n galleryRef={galleryRef}\n zoomed={zoomed}>\n <div className=\"flex h-full flex-col items-center justify-center\">\n <h1 className=\"mb-4 text-2xl font-bold\">Error</h1>\n <p className=\"text-lg font-medium\">{error}</p>\n </div>\n </GalleryLayout>\n );\n }\n\n return (\n <GalleryLayout\n galleryRef={galleryRef}\n isLoading={isLoading}\n zoomed={zoomed}>\n <UnsplashGalleryColumns\n columns={dataset}\n insertImage={insertImage}\n selectImg={selectImg}\n zoomed={zoomed}\n />\n </GalleryLayout>\n );\n};\n\nexport default UnsplashGallery;\n","import * as React from \"react\";\nconst SvgKgClose = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", strokeWidth: 1.5, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"none\", stroke: \"currentColor\", strokeLinecap: \"round\", strokeLinejoin: \"round\", d: \"M.75 23.249l22.5-22.5M23.25 23.249L.75.749\" }));\nexport default SvgKgClose;\n","import * as React from \"react\";\nconst SvgKgSearch = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", strokeWidth: 1.5, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"none\", stroke: \"currentColor\", strokeLinecap: \"round\", strokeLinejoin: \"round\", d: \"M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09Zm14.749 2.863 7.029 7.03\" }));\nexport default SvgKgSearch;\n","import * as React from \"react\";\nconst SvgKgCardTypeUnsplash = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 122.43 122.41\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z\" }));\nexport default SvgKgCardTypeUnsplash;\n","import CloseIcon from '../assets/kg-close.svg?react';\nimport SearchIcon from '../assets/kg-search.svg?react';\nimport UnsplashIcon from '../assets/kg-card-type-unsplash.svg?react';\nimport {ChangeEvent, FunctionComponent, ReactNode} from 'react';\n\ninterface UnsplashSelectorProps {\n closeModal: () => void;\n handleSearch: (e: ChangeEvent<HTMLInputElement>) => void;\n children: ReactNode;\n}\n\nconst UnsplashSelector: FunctionComponent<UnsplashSelectorProps> = ({closeModal, handleSearch, children}) => {\n return (\n <>\n <div className=\"fixed inset-0 z-40 h-[100vh] bg-black opacity-60\"></div>\n <div className=\"not-kg-prose fixed inset-8 z-50 overflow-hidden rounded bg-white shadow-xl\" data-kg-modal=\"unsplash\">\n <button className=\"absolute right-6 top-6 cursor-pointer\" type=\"button\">\n <CloseIcon\n className=\"text-grey-400 size-4 stroke-2\"\n data-kg-modal-close-button\n onClick={() => closeModal()}\n />\n </button>\n <div className=\"flex h-full flex-col\">\n <header className=\"flex shrink-0 items-center justify-between px-20 py-10\">\n <h1 className=\"flex items-center gap-2 font-sans text-3xl font-bold text-black\">\n <UnsplashIcon className=\"mb-1\" />\n Unsplash\n </h1>\n <div className=\"relative w-full max-w-sm\">\n <SearchIcon className=\"text-grey-700 absolute left-4 top-1/2 size-4 -translate-y-2\" />\n <input className=\"border-grey-300 focus:border-grey-400 h-10 w-full rounded-full border border-solid pl-10 pr-8 font-sans text-md font-normal text-black focus-visible:outline-none\" placeholder=\"Search free high-resolution photos\" autoFocus data-kg-unsplash-search onChange={handleSearch} />\n </div>\n </header>\n {children}\n </div>\n </div>\n </>\n );\n};\n\nexport default UnsplashSelector;\n","// purely for testing purposes\nimport fixturePhotosDataset from './dataFixtures.json';\n\nimport {Photo} from '../UnsplashTypes';\n\nexport const fixturePhotos: Photo[] = fixturePhotosDataset as unknown as Photo[];\n","// Mock provider for testing purposes\nimport {IUnsplashProvider} from './IUnsplashProvider';\nimport {Photo} from '../UnsplashTypes';\nimport {fixturePhotos} from './unsplashFixtures';\n\nexport class InMemoryUnsplashProvider implements IUnsplashProvider {\n photos: Photo[] = fixturePhotos;\n PAGINATION: { [key: string]: string } = {};\n REQUEST_IS_RUNNING: boolean = false;\n SEARCH_IS_RUNNING: boolean = false;\n LAST_REQUEST_URL: string = '';\n ERROR: string | null = null;\n IS_LOADING: boolean = false;\n currentPage: number = 1;\n\n public async fetchPhotos(): Promise<Photo[]> {\n this.IS_LOADING = true;\n\n const start = (this.currentPage - 1) * 30;\n const end = this.currentPage * 30;\n this.currentPage += 1;\n\n this.IS_LOADING = false;\n\n return this.photos.slice(start, end);\n }\n\n public async fetchNextPage(): Promise<Photo[] | null> {\n if (this.REQUEST_IS_RUNNING || this.SEARCH_IS_RUNNING) {\n return null;\n }\n\n const photos = await this.fetchPhotos();\n return photos.length > 0 ? photos : null;\n }\n\n public async searchPhotos(term: string): Promise<Photo[]> {\n this.SEARCH_IS_RUNNING = true;\n const filteredPhotos = this.photos.filter(photo => (photo.description && photo.description.toLowerCase().includes(term.toLowerCase())) || \n (photo.alt_description && photo.alt_description.toLowerCase().includes(term.toLowerCase()))\n );\n this.SEARCH_IS_RUNNING = false;\n return filteredPhotos;\n }\n\n searchIsRunning(): boolean {\n return this.SEARCH_IS_RUNNING;\n }\n\n triggerDownload(photo: Photo): void {\n () => {\n photo;\n };\n }\n}\n","import {IUnsplashProvider} from './IUnsplashProvider';\nimport {Photo} from '../UnsplashTypes';\n\nexport class PhotoUseCases {\n private _provider: IUnsplashProvider;\n\n constructor(provider: IUnsplashProvider) {\n this._provider = provider;\n }\n\n async fetchPhotos(): Promise<Photo[]> {\n return await this._provider.fetchPhotos();\n }\n\n async searchPhotos(term: string): Promise<Photo[]> {\n return await this._provider.searchPhotos(term);\n }\n\n async triggerDownload(photo: Photo): Promise<void> {\n this._provider.triggerDownload(photo);\n }\n\n async fetchNextPage(): Promise<Photo[] | null> {\n let request = await this._provider.fetchNextPage();\n\n if (request) {\n return request;\n }\n\n return null;\n }\n\n searchIsRunning(): boolean {\n return this._provider.searchIsRunning();\n }\n}\n","import {DefaultHeaderTypes, Photo} from '../UnsplashTypes';\nimport {IUnsplashProvider} from './IUnsplashProvider';\n\nexport class UnsplashProvider implements IUnsplashProvider {\n API_URL: string = 'https://api.unsplash.com';\n HEADERS: DefaultHeaderTypes;\n ERROR: string | null = null;\n PAGINATION: { [key: string]: string } = {};\n REQUEST_IS_RUNNING: boolean = false;\n SEARCH_IS_RUNNING: boolean = false;\n LAST_REQUEST_URL: string = '';\n IS_LOADING: boolean = false;\n\n constructor(HEADERS: DefaultHeaderTypes) {\n this.HEADERS = HEADERS;\n }\n\n private async makeRequest(url: string): Promise<Photo[] | {results: Photo[]} | null> {\n if (this.REQUEST_IS_RUNNING) {\n return null;\n }\n \n this.LAST_REQUEST_URL = url;\n const options = {\n method: 'GET',\n headers: this.HEADERS as unknown as HeadersInit\n };\n \n try {\n this.REQUEST_IS_RUNNING = true;\n this.IS_LOADING = true;\n \n const response = await fetch(url, options);\n const checkedResponse = await this.checkStatus(response);\n this.extractPagination(checkedResponse);\n \n const jsonResponse = await checkedResponse.json();\n \n if ('results' in jsonResponse) {\n return jsonResponse.results;\n } else {\n return jsonResponse;\n }\n } catch (error) {\n this.ERROR = error as string;\n return null;\n } finally {\n this.REQUEST_IS_RUNNING = false;\n this.IS_LOADING = false;\n }\n }\n\n private extractPagination(response: Response): Response {\n let linkRegex = new RegExp('<(.*)>; rel=\"(.*)\"');\n\n let links = [];\n\n let pagination : { [key: string]: string } = {};\n\n for (let entry of response.headers.entries()) {\n if (entry[0] === 'link') {\n links.push(entry[1]);\n }\n }\n\n if (links) {\n links.toString().split(',').forEach((link) => {\n if (link){\n let linkParts = linkRegex.exec(link);\n if (linkParts) {\n pagination[linkParts[2]] = linkParts[1];\n }\n }\n });\n }\n\n this.PAGINATION = pagination;\n\n return response;\n }\n\n public async fetchPhotos(): Promise<Photo[]> {\n const url = `${this.API_URL}/photos?per_page=30`;\n const request = await this.makeRequest(url);\n return request as Photo[];\n }\n\n public async fetchNextPage(): Promise<Photo[] | null> {\n if (this.REQUEST_IS_RUNNING) {\n return null;\n }\n\n if (this.SEARCH_IS_RUNNING) {\n return null;\n }\n\n if (this.PAGINATION.next) {\n const url = `${this.PAGINATION.next}`;\n const response = await this.makeRequest(url);\n if (response) {\n return response as Photo[];\n }\n }\n\n return null;\n }\n\n public async searchPhotos(term: string): Promise<Photo[]> {\n const url = `${this.API_URL}/search/photos?query=${term}&per_page=30`;\n\n const request = await this.makeRequest(url);\n if (request) {\n return request as Photo[];\n }\n\n return [];\n }\n\n public async triggerDownload(photo: Photo): Promise<void> {\n if (photo.links.download_location) {\n await this.makeRequest(photo.links.download_location);\n }\n }\n\n private async checkStatus(response: Response): Promise<Response> {\n if (response.status >= 200 && response.status < 300) {\n return response;\n }\n \n let errorText = '';\n let responseTextPromise: Promise<string>; // or Promise<string> if you know the type\n \n const contentType = response.headers.get('content-type');\n if (contentType === 'application/json') {\n responseTextPromise = response.json().then(json => (json).errors[0]); // or cast to a specific type if you know it\n } else if (contentType === 'text/xml') {\n responseTextPromise = response.text();\n } else {\n throw new Error('Unsupported content type');\n }\n \n return responseTextPromise.then((responseText: string) => { // you can type responseText based on what you expect\n if (response.status === 403 && response.headers.get('x-ratelimit-remaining') === '0') {\n // we've hit the rate limit on the API\n errorText = 'Unsplash API rate limit reached, please try again later.';\n }\n \n errorText = errorText || responseText || `Error ${response.status}: Uh-oh! Trouble reaching the Unsplash API`;\n \n // set error text for display in UI\n this.ERROR = errorText;\n \n // throw error to prevent further processing\n let error = new Error(errorText) as Error; // or create a custom Error class\n throw error;\n });\n }\n\n searchIsRunning(): boolean {\n return this.SEARCH_IS_RUNNING;\n }\n}\n","import MasonryService from './MasonryService';\nimport {Photo} from '../UnsplashTypes';\nimport {PhotoUseCases} from './PhotoUseCase';\n\nexport interface IUnsplashService {\n loadNew(): Promise<void>;\n layoutPhotos(): void;\n getColumns(): Photo[][] | [] | null;\n updateSearch(term: string): Promise<void>;\n loadNextPage(): Promise<void>;\n clearPhotos(): void;\n triggerDownload(photo: Photo): void;\n photos: Photo[];\n searchIsRunning(): boolean;\n}\n\nexport class UnsplashService implements IUnsplashService {\n private photoUseCases: PhotoUseCases;\n private masonryService: MasonryService;\n public photos: Photo[] = [];\n\n constructor(photoUseCases: PhotoUseCases, masonryService: MasonryService) {\n this.photoUseCases = photoUseCases;\n this.masonryService = masonryService;\n }\n\n async loadNew() {\n let images = await this.photoUseCases.fetchPhotos();\n this.photos = images;\n await this.layoutPhotos();\n }\n\n async layoutPhotos() {\n this.masonryService.reset();\n\n if (this.photos) {\n this.photos.forEach((photo) => {\n photo.ratio = photo.height / photo.width;\n this.masonryService.addPhotoToColumns(photo);\n });\n }\n }\n\n getColumns() {\n return this.masonryService.getColumns();\n }\n\n async updateSearch(term: string) {\n let results = await this.photoUseCases.searchPhotos(term);\n this.photos = results;\n this.layoutPhotos();\n }\n\n async loadNextPage() {\n const newPhotos = await this.photoUseCases.fetchNextPage() || [];\n this.photos = [...this.photos, ...newPhotos];\n this.layoutPhotos();\n }\n\n clearPhotos() {\n this.photos = [];\n }\n\n triggerDownload(photo: Photo) {\n this.photoUseCases.triggerDownload(photo);\n }\n\n searchIsRunning() {\n return this.photoUseCases.searchIsRunning();\n }\n}\n","import MasonryService from './api/MasonryService';\nimport React, {useMemo, useRef, useState} from 'react';\nimport UnsplashGallery from './ui/UnsplashGallery';\nimport UnsplashSelector from './ui/UnsplashSelector';\nimport {DefaultHeaderTypes} from './UnsplashTypes';\nimport {InMemoryUnsplashProvider} from './api/InMemoryUnsplashProvider';\nimport {Photo} from './UnsplashTypes';\nimport {PhotoUseCases} from './api/PhotoUseCase';\nimport {UnsplashProvider} from './api/UnsplashProvider';\nimport {UnsplashService} from './api/UnsplashService';\n\ninterface UnsplashModalProps {\n onClose: () => void;\n onImageInsert: (image: Photo) => void;\n unsplashProviderConfig: DefaultHeaderTypes | null;\n }\n\nexport const UnsplashSearchModal : React.FC<UnsplashModalProps> = ({onClose, onImageInsert, unsplashProviderConfig}) => {\n const unsplashProvider = useMemo(() => {\n if (!unsplashProviderConfig) {\n return new InMemoryUnsplashProvider();\n }\n return new UnsplashProvider(unsplashProviderConfig);\n },[unsplashProviderConfig]);\n\n const photoUseCase = useMemo(() => new PhotoUseCases(unsplashProvider), [unsplashProvider]);\n const masonryService = useMemo(() => new MasonryService(3), []);\n const UnsplashLib = useMemo(() => new UnsplashService(photoUseCase, masonryService), [photoUseCase, masonryService]);\n const galleryRef = useRef<HTMLDivElement | null>(null);\n const [scrollPos, setScrollPos] = useState<number>(0);\n const [lastScrollPos, setLastScrollPos] = useState<number>(0);\n const [isLoading, setIsLoading] = useState<boolean>(UnsplashLib.searchIsRunning() || true);\n const initLoadRef = useRef<boolean>(false);\n const [searchTerm, setSearchTerm] = useState<string>('');\n const [zoomedImg, setZoomedImg] = useState<Photo | null>(null);\n const [dataset, setDataset] = useState<Photo[][] | []>([]);\n\n React.useEffect(() => {\n if (galleryRef.current && zoomedImg === null && lastScrollPos !== 0) {\n galleryRef.current.scrollTop = lastScrollPos;\n setLastScrollPos(0);\n }\n }, [zoomedImg, scrollPos, lastScrollPos]);\n\n React.useEffect(() => {\n const handleKeyDown = (e:KeyboardEvent) => {\n if (e.key === 'Escape') {\n onClose();\n }\n };\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [onClose]);\n\n React.useEffect(() => {\n const ref = galleryRef.current;\n if (!zoomedImg) {\n if (ref) {\n ref.addEventListener('scroll', () => {\n setScrollPos(ref.scrollTop);\n });\n }\n // unmount\n return () => {\n if (ref) {\n ref.removeEventListener('scroll', () => {\n setScrollPos(ref.scrollTop);\n });\n }\n };\n }\n }, [galleryRef, zoomedImg]);\n\n const loadInitPhotos = React.useCallback(async () => {\n if (initLoadRef.current === false || searchTerm.length === 0) {\n setDataset([]);\n UnsplashLib.clearPhotos();\n await UnsplashLib.loadNew();\n const columns = UnsplashLib.getColumns();\n setDataset(columns || []);\n if (galleryRef.current && galleryRef.current.scrollTop !== 0) {\n galleryRef.current.scrollTop = 0;\n }\n setIsLoading(false);\n }\n }, [UnsplashLib, searchTerm]);\n\n const handleSearch = async (e: React.ChangeEvent<HTMLInputElement>) => {\n const query = e.target.value;\n if (query.length > 2) {\n setZoomedImg(null);\n setSearchTerm(query);\n }\n if (query.length === 0) {\n setSearchTerm('');\n initLoadRef.current = false;\n await loadInitPhotos();\n }\n };\n\n const search = React.useCallback(async () => {\n if (searchTerm) {\n setIsLoading(true);\n setDataset([]);\n UnsplashLib.clearPhotos();\n await UnsplashLib.updateSearch(searchTerm);\n const columns = UnsplashLib.getColumns();\n if (columns) {\n setDataset(columns);\n }\n if (galleryRef.current && galleryRef.current.scrollTop !== 0) {\n galleryRef.current.scrollTop = 0;\n }\n setIsLoading(false);\n }\n }, [searchTerm, UnsplashLib]);\n\n React.useEffect(() => {\n const timeoutId = setTimeout(async () => {\n if (searchTerm.length > 2) {\n await search();\n } else {\n await loadInitPhotos();\n }\n }, 300);\n return () => {\n initLoadRef.current = true;\n clearTimeout(timeoutId);\n };\n }, [searchTerm, search, loadInitPhotos]);\n\n const loadMorePhotos = React.useCallback(async () => {\n setIsLoading(true);\n await UnsplashLib.loadNextPage();\n const columns = UnsplashLib.getColumns();\n setDataset(columns || []);\n setIsLoading(false);\n }, [UnsplashLib]);\n\n React.useEffect(() => {\n const ref = galleryRef.current;\n if (ref) {\n const handleScroll = async () => {\n if (zoomedImg === null && ref.scrollTop + ref.clientHeight >= ref.scrollHeight - 1000) {\n await loadMorePhotos();\n }\n };\n ref.addEventListener('scroll', handleScroll);\n return () => {\n ref.removeEventListener('scroll', handleScroll);\n };\n }\n }, [galleryRef, loadMorePhotos, zoomedImg]);\n\n const selectImg = (payload:Photo) => {\n if (payload) {\n setZoomedImg(payload);\n setLastScrollPos(scrollPos);\n }\n\n if (payload === null) {\n setZoomedImg(null);\n if (galleryRef.current) {\n galleryRef.current.scrollTop = lastScrollPos;\n }\n }\n };\n\n async function insertImage(image:Photo) {\n if (image.src) {\n UnsplashLib.triggerDownload(image);\n onImageInsert(image);\n }\n }\n return (\n <UnsplashSelector\n closeModal={onClose}\n handleSearch={handleSearch}\n >\n <UnsplashGallery\n dataset={dataset}\n error={null}\n galleryRef={galleryRef}\n insertImage={insertImage}\n isLoading={isLoading}\n selectImg={selectImg}\n zoomed={zoomedImg}\n />\n </UnsplashSelector>\n );\n};\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","i","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","didWarnAboutKeySpread","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","beforeExample","afterExample","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","MasonryService","columnCount","columns","columnHeights","photo","min","columnIndex","newColumnCount","SvgKgDownload","SvgKgUnsplashHeart","BUTTON_ICONS","UnsplashHeartIcon","DownloadIcon","UnsplashButton","icon","label","Icon","UnsplashImage","srcUrl","links","likes","user","alt","urls","height","width","zoomed","insertImage","selectImg","handleClick","UnsplashZoomed","UnsplashGalleryLoading","MasonryColumn","UnsplashGalleryColumns","array","index","GalleryLayout","UnsplashGallery","galleryRef","isLoading","dataset","SvgKgClose","SvgKgSearch","SvgKgCardTypeUnsplash","UnsplashSelector","closeModal","handleSearch","Fragment","CloseIcon","UnsplashIcon","SearchIcon","fixturePhotos","fixturePhotosDataset","InMemoryUnsplashProvider","start","end","photos","term","filteredPhotos","PhotoUseCases","request","UnsplashProvider","HEADERS","url","options","response","checkedResponse","jsonResponse","linkRegex","pagination","entry","link","linkParts","errorText","responseTextPromise","contentType","json","responseText","UnsplashService","photoUseCases","masonryService","images","results","newPhotos","UnsplashSearchModal","onClose","onImageInsert","unsplashProviderConfig","unsplashProvider","useMemo","photoUseCase","UnsplashLib","useRef","scrollPos","setScrollPos","useState","lastScrollPos","setLastScrollPos","setIsLoading","initLoadRef","searchTerm","setSearchTerm","zoomedImg","setZoomedImg","setDataset","handleKeyDown","loadInitPhotos","query","search","timeoutId","loadMorePhotos","handleScroll","image"],"mappings":"ucASa,IAAIA,EAAEC,EAAiBC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,UAAU,eAAeC,EAAEL,EAAE,mDAAmD,kBAAkBM,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EAClP,SAASC,EAAEC,EAAEC,EAAEC,EAAE,CAAC,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,EAAI,aAAe,KAC7E,MAAMgK,EAAA,CAEd,EACA,OAAAhK,EAAI,iBAAiB,SAAUiK,CAAY,EACpC,IAAM,CACTjK,EAAI,oBAAoB,SAAUiK,CAAY,CAClD,CACJ,CACJ,EAAG,CAACzE,EAAYwE,EAAgBR,CAAS,CAAC,EAE1C,MAAM1E,EAAalK,GAAkB,CAC7BA,IACA6O,EAAa7O,CAAO,EACpBuO,EAAiBJ,CAAS,GAG1BnO,IAAY,OACZ6O,EAAa,IAAI,EACbjE,EAAW,UACXA,EAAW,QAAQ,UAAY0D,GAG3C,EAEA,eAAerE,GAAYqF,EAAa,CAChCA,EAAM,MACNrB,EAAY,gBAAgBqB,CAAK,EACjC1B,EAAc0B,CAAK,EAE3B,CACA,OACIrH,EAAAA,IAACiD,GAAA,CACG,WAAYyC,EACZ,aAAAvC,GAEA,SAAAnD,EAAAA,IAAC0C,GAAA,CACG,QAAAG,GACA,MAAO,KACP,WAAAF,EACA,YAAAX,GACA,UAAAY,EACA,UAAAX,EACA,OAAQ0E,CAAA,CAAA,CACZ,CAAA,CAGZ","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":[],"sources":["../src/api/MasonryService.ts","../src/assets/kg-download.svg?react","../src/assets/kg-unsplash-heart.svg?react","../src/ui/UnsplashButton.tsx","../src/ui/UnsplashImage.tsx","../src/ui/UnsplashZoomed.tsx","../src/ui/UnsplashGallery.tsx","../src/assets/kg-close.svg?react","../src/assets/kg-search.svg?react","../src/assets/kg-card-type-unsplash.svg?react","../src/ui/UnsplashSelector.tsx","../src/api/dataFixtures.json","../src/api/unsplashFixtures.ts","../src/api/InMemoryUnsplashProvider.ts","../src/api/PhotoUseCase.ts","../src/api/UnsplashProvider.ts","../src/api/UnsplashService.ts","../src/UnsplashSearchModal.tsx"],"sourcesContent":["import {Photo} from '../UnsplashTypes';\n\nexport default class MasonryService {\n public columnCount: number;\n public columns: Photo[][] | [] = [];\n public columnHeights: number[] | null;\n \n constructor(columnCount: number = 3) {\n this.columnCount = columnCount;\n this.columns = [[]];\n this.columnHeights = null;\n }\n \n reset(): void {\n let columns: Photo[][] = [];\n let columnHeights: number[] = [];\n\n for (let i = 0; i < this.columnCount; i += 1) {\n columns[i] = [];\n columnHeights[i] = 0;\n }\n \n this.columns = columns;\n this.columnHeights = columnHeights;\n }\n \n addColumns(): void {\n for (let i = 0; i < this.columnCount; i++) {\n (this.columns as Photo[][]).push([]);\n this.columnHeights!.push(0);\n }\n }\n \n addPhotoToColumns(photo: Photo): void {\n if (!this.columns) {\n this.reset();\n }\n let min = Math.min(...this.columnHeights!);\n let columnIndex = this.columnHeights!.indexOf(min);\n\n this.columnHeights![columnIndex] += 300 * photo.ratio;\n this.columns![columnIndex].push(photo);\n }\n \n getColumns(): Photo[][] | null {\n return this.columns;\n }\n\n changeColumnCount(newColumnCount: number): void {\n if (newColumnCount !== this.columnCount) {\n this.columnCount = newColumnCount;\n this.reset();\n }\n }\n}\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgKgDownload = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\tviewBox: \"0 0 24 24\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M20 5.5l-8 8-8-8m-3.5 13h23\",\n\t\tstroke: \"currentColor\",\n\t\tstrokeLinecap: \"round\",\n\t\tstrokeLinejoin: \"round\",\n\t\tstrokeMiterlimit: 10,\n\t\tfill: \"none\"\n\t})\n});\nexport default SvgKgDownload;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgKgUnsplashHeart = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\tviewBox: \"0 0 32 32\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", { d: \"M17.4 29c-.8.8-2 .8-2.8 0L2.3 16.2C-.8 13.1-.8 8 2.3 4.8c3.1-3.1 8.2-3.1 11.3 0L16 7.6l2.3-2.8c3.1-3.1 8.2-3.1 11.3 0 3.1 3.1 3.1 8.2 0 11.4L17.4 29z\" })\n});\nexport default SvgKgUnsplashHeart;\n","import DownloadIcon from '../assets/kg-download.svg?react';\nimport React, {HTMLProps} from 'react';\nimport UnsplashHeartIcon from '../assets/kg-unsplash-heart.svg?react';\n\n// Define the available icon types\ntype ButtonIconType = 'heart' | 'download';\n\n// Define the props type\ninterface UnsplashButtonProps extends HTMLProps<HTMLAnchorElement> {\n icon?: ButtonIconType;\n label?: string;\n}\n\nconst BUTTON_ICONS: Record<ButtonIconType, React.ComponentType<Partial<React.SVGProps<SVGSVGElement>>>> = {\n heart: UnsplashHeartIcon,\n download: DownloadIcon\n};\n\nconst UnsplashButton: React.FC<UnsplashButtonProps> = ({icon, label, ...props}) => {\n let Icon = null;\n if (icon) {\n Icon = BUTTON_ICONS[icon];\n }\n\n return (\n <a\n className=\"text-grey-700 flex h-8 shrink-0 cursor-pointer items-center rounded-md bg-white px-3 py-2 font-sans text-sm font-medium leading-6 opacity-90 transition-all ease-in-out hover:opacity-100\"\n onClick={e => e.stopPropagation()}\n {...props}\n >\n {icon && Icon && <Icon className={`size-4 ${icon === 'heart' ? 'fill-red' : ''} stroke-[3px] ${label && 'mr-1'}`} />}\n {label && <span>{label}</span>}\n </a>\n );\n};\n\nexport default UnsplashButton;\n","import UnsplashButton from './UnsplashButton';\nimport {FC, MouseEvent} from 'react';\nimport {InsertImageFn, Photo, SelectImgFn, User} from '../UnsplashTypes';\n\nexport interface UnsplashImageProps {\n payload: Photo;\n srcUrl: string;\n links: Photo['links'];\n likes: number;\n user: User;\n alt: string;\n urls: { regular: string };\n height: number;\n width: number;\n zoomed: Photo | null;\n insertImage: InsertImageFn;\n selectImg: SelectImgFn;\n}\n\nconst UnsplashImage: FC<UnsplashImageProps> = ({payload, srcUrl, links, likes, user, alt, urls, height, width, zoomed, insertImage, selectImg}) => {\n const handleClick = (e: MouseEvent<HTMLDivElement>) => {\n e.stopPropagation();\n selectImg(zoomed ? null : payload);\n };\n\n return (\n <div\n className={`relative mb-6 block ${zoomed ? 'h-full w-[max-content] cursor-zoom-out' : 'w-full cursor-zoom-in'}`}\n style={{backgroundColor: payload.color || 'transparent'}}\n data-kg-unsplash-gallery-item\n onClick={handleClick}>\n <img\n alt={alt}\n className={`${zoomed ? 'h-full w-auto object-contain' : 'block h-auto'}`}\n height={height}\n loading='lazy'\n src={srcUrl}\n width={width}\n data-kg-unsplash-gallery-img\n />\n <div className=\"absolute inset-0 flex flex-col justify-between bg-gradient-to-b from-black/5 via-black/5 to-black/30 p-5 opacity-0 transition-all ease-in-out hover:opacity-100\">\n <div className=\"flex items-center justify-end gap-3\">\n <UnsplashButton\n data-kg-button=\"unsplash-like\"\n href={`${links.html}/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit`}\n icon=\"heart\"\n label={likes.toString()}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n />\n <UnsplashButton\n data-kg-button=\"unsplash-download\"\n href={`${links.download}/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit&force=true`}\n icon=\"download\"\n />\n </div>\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center\">\n <img alt=\"author\" className=\"mr-2 size-8 rounded-full\" src={user.profile_image.medium} />\n <div className=\"mr-2 truncate font-sans text-sm font-medium text-white\">{user.name}</div>\n </div>\n <UnsplashButton label=\"Insert image\" data-kg-unsplash-insert-button onClick={(e) => {\n e.stopPropagation();\n insertImage({\n src: urls.regular.replace(/&w=1080/, '&w=2000'),\n caption: `<span>Photo by <a href=\"${user.links.html}\">${user.name}</a> / <a href=\"https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit\">Unsplash</a></span>`,\n height: height,\n width: width,\n alt: alt,\n links: links\n });\n }} />\n </div>\n </div>\n </div>\n );\n};\n\nexport default UnsplashImage;\n","import UnsplashImage, {UnsplashImageProps} from './UnsplashImage';\nimport {FC} from 'react';\nimport {Photo, SelectImgFn} from '../UnsplashTypes';\n\ninterface UnsplashZoomedProps extends Omit<UnsplashImageProps, 'zoomed'> {\n zoomed: Photo | null;\n selectImg: SelectImgFn;\n}\n\nconst UnsplashZoomed: FC<UnsplashZoomedProps> = ({payload, insertImage, selectImg, zoomed}) => {\n return (\n <div className=\"flex h-full grow basis-0 justify-center\" data-kg-unsplash-zoomed onClick={() => selectImg(null)}>\n <UnsplashImage \n alt={payload.alt_description}\n height={payload.height}\n insertImage={insertImage}\n likes={payload.likes}\n links={payload.links}\n payload={payload}\n selectImg={selectImg}\n srcUrl={payload.urls.regular}\n urls={payload.urls}\n user={payload.user}\n width={payload.width}\n zoomed={zoomed}\n />\n </div>\n );\n};\n\nexport default UnsplashZoomed;\n","import React, {ReactNode, RefObject} from 'react';\nimport UnsplashImage from './UnsplashImage';\nimport UnsplashZoomed from './UnsplashZoomed';\nimport {InsertImageFn, Photo, SelectImgFn} from '../UnsplashTypes';\n\ninterface MasonryColumnProps {\n children: ReactNode;\n}\n\ninterface UnsplashGalleryColumnsProps {\n columns?: Photo[][] | [];\n insertImage: InsertImageFn;\n selectImg: SelectImgFn;\n zoomed?: Photo | null;\n}\n\ninterface GalleryLayoutProps {\n children?: ReactNode;\n galleryRef: RefObject<HTMLDivElement>;\n isLoading?: boolean;\n zoomed?: Photo | null;\n}\n\ninterface UnsplashGalleryProps extends GalleryLayoutProps {\n error?: string | null;\n dataset?: Photo[][] | [];\n selectImg: SelectImgFn;\n insertImage: InsertImageFn;\n}\n\nconst UnsplashGalleryLoading: React.FC = () => {\n return (\n <div className=\"absolute inset-y-0 left-0 flex w-full items-center justify-center overflow-hidden pb-[8vh]\" data-kg-loader>\n <div className=\"animate-spin before:bg-grey-800 relative inline-block size-[50px] rounded-full border border-black/10 before:z-10 before:mt-[7px] before:block before:size-[7px] before:rounded-full\"></div>\n </div>\n );\n};\n\nexport const MasonryColumn: React.FC<MasonryColumnProps> = (props) => {\n return (\n <div className=\"mr-6 flex grow basis-0 flex-col justify-start last-of-type:mr-0\">\n {props.children}\n </div>\n );\n};\n\nconst UnsplashGalleryColumns: React.FC<UnsplashGalleryColumnsProps> = (props) => {\n if (!props?.columns) {\n return null;\n }\n\n return (\n props?.columns.map((array, index) => (\n <MasonryColumn key={array[0]?.id ?? `empty-${index}`}>\n {\n array.map((payload: Photo) => (\n <UnsplashImage\n key={payload.id}\n alt={payload.alt_description}\n height={payload.height}\n insertImage={props?.insertImage}\n likes={payload.likes}\n links={payload.links}\n payload={payload}\n selectImg={props?.selectImg}\n srcUrl={payload.urls.regular}\n urls={payload.urls}\n user={payload.user}\n width={payload.width}\n zoomed={props?.zoomed || null}\n />\n ))\n }\n </MasonryColumn>\n ))\n );\n};\n\nconst GalleryLayout: React.FC<GalleryLayoutProps> = (props) => {\n return (\n <div className=\"relative h-full overflow-hidden\" data-kg-unsplash-gallery>\n <div ref={props.galleryRef} className={`flex size-full justify-center overflow-auto px-20 ${props?.zoomed ? 'pb-10' : ''}`} data-kg-unsplash-gallery-scrollref>\n {props.children}\n {props?.isLoading && <UnsplashGalleryLoading />}\n </div>\n </div>\n );\n};\n\nconst UnsplashGallery: React.FC<UnsplashGalleryProps> = ({zoomed,\n error,\n galleryRef,\n isLoading,\n dataset,\n selectImg,\n insertImage}) => {\n if (zoomed) {\n return (\n <GalleryLayout\n galleryRef={galleryRef}\n zoomed={zoomed}>\n <UnsplashZoomed\n alt={zoomed.alt_description}\n height={zoomed.height}\n insertImage={insertImage}\n likes={zoomed.likes}\n links={zoomed.links}\n payload={zoomed}\n selectImg={selectImg}\n srcUrl={zoomed.urls.regular}\n urls={zoomed.urls}\n user={zoomed.user}\n width={zoomed.width}\n zoomed={zoomed}\n />\n </GalleryLayout>\n );\n }\n\n if (error) {\n return (\n <GalleryLayout\n galleryRef={galleryRef}\n zoomed={zoomed}>\n <div className=\"flex h-full flex-col items-center justify-center\">\n <h1 className=\"mb-4 text-2xl font-bold\">Error</h1>\n <p className=\"text-lg font-medium\">{error}</p>\n </div>\n </GalleryLayout>\n );\n }\n\n return (\n <GalleryLayout\n galleryRef={galleryRef}\n isLoading={isLoading}\n zoomed={zoomed}>\n <UnsplashGalleryColumns\n columns={dataset}\n insertImage={insertImage}\n selectImg={selectImg}\n zoomed={zoomed}\n />\n </GalleryLayout>\n );\n};\n\nexport default UnsplashGallery;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgKgClose = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\tstrokeWidth: 1.5,\n\tviewBox: \"0 0 24 24\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\tfill: \"none\",\n\t\tstroke: \"currentColor\",\n\t\tstrokeLinecap: \"round\",\n\t\tstrokeLinejoin: \"round\",\n\t\td: \"M.75 23.249l22.5-22.5M23.25 23.249L.75.749\"\n\t})\n});\nexport default SvgKgClose;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgKgSearch = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\tstrokeWidth: 1.5,\n\tviewBox: \"0 0 24 24\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\tfill: \"none\",\n\t\tstroke: \"currentColor\",\n\t\tstrokeLinecap: \"round\",\n\t\tstrokeLinejoin: \"round\",\n\t\td: \"M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09Zm14.749 2.863 7.029 7.03\"\n\t})\n});\nexport default SvgKgSearch;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgKgCardTypeUnsplash = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\tviewBox: \"0 0 122.43 122.41\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", { d: \"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z\" })\n});\nexport default SvgKgCardTypeUnsplash;\n","import CloseIcon from '../assets/kg-close.svg?react';\nimport SearchIcon from '../assets/kg-search.svg?react';\nimport UnsplashIcon from '../assets/kg-card-type-unsplash.svg?react';\nimport {ChangeEvent, FunctionComponent, ReactNode} from 'react';\n\ninterface UnsplashSelectorProps {\n closeModal: () => void;\n handleSearch: (e: ChangeEvent<HTMLInputElement>) => void;\n children: ReactNode;\n}\n\nconst UnsplashSelector: FunctionComponent<UnsplashSelectorProps> = ({closeModal, handleSearch, children}) => {\n return (\n <>\n <div className=\"fixed inset-0 z-40 h-[100vh] bg-black opacity-60\"></div>\n <div className=\"not-kg-prose fixed inset-8 z-50 overflow-hidden rounded bg-white shadow-xl\" data-kg-modal=\"unsplash\">\n <button className=\"absolute right-6 top-6 cursor-pointer\" type=\"button\">\n <CloseIcon\n className=\"text-grey-400 size-4 stroke-2\"\n data-kg-modal-close-button\n onClick={() => closeModal()}\n />\n </button>\n <div className=\"flex h-full flex-col\">\n <header className=\"flex shrink-0 items-center justify-between px-20 py-10\">\n <h1 className=\"flex items-center gap-2 font-sans text-3xl font-bold text-black\">\n <UnsplashIcon className=\"mb-1\" />\n Unsplash\n </h1>\n <div className=\"relative w-full max-w-sm\">\n <SearchIcon className=\"text-grey-700 absolute left-4 top-1/2 size-4 -translate-y-2\" />\n <input className=\"border-grey-300 focus:border-grey-400 h-10 w-full rounded-full border border-solid pl-10 pr-8 font-sans text-md font-normal text-black focus-visible:outline-none\" placeholder=\"Search free high-resolution photos\" autoFocus data-kg-unsplash-search onChange={handleSearch} />\n </div>\n </header>\n {children}\n </div>\n </div>\n </>\n );\n};\n\nexport default UnsplashSelector;\n","[\n {\n \"id\": \"TA5hw14Coh4\",\n \"slug\": \"a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4\",\n \"alternative_slugs\": {\n \"en\": \"a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4\"\n },\n \"created_at\": \"2024-02-07T22:39:36Z\",\n \"updated_at\": \"2024-03-07T23:46:14Z\",\n \"promoted_at\": null,\n \"width\": 8640,\n \"height\": 5760,\n \"color\": \"#8c5940\",\n \"blur_hash\": \"LKD]brE2IUr?Lgwci_NaDjR*ofoe\",\n \"description\": \"NEOM will be home to one of the world’s largest nature reserves: a 25,000 sq km stretch of wilderness, encompassing two deserts divided by a mountain range. | NEOM, Saudi Arabia\",\n \"alt_description\": \"a person standing on a sand dune in the desert\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1707345512638-997d31a10eaa\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4\",\n \"html\": \"https://unsplash.com/photos/a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4\",\n \"download\": \"https://unsplash.com/photos/TA5hw14Coh4/download?ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/TA5hw14Coh4/download?ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 226,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": {\n \"impression_urls\": [],\n \"tagline\": \"Made to Change\",\n \"tagline_url\": \"https://www.neom.com/en-us?utm_source=unsplash\\u0026utm_medium=referral\",\n \"sponsor\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"UArA9A02Kvk\",\n \"slug\": \"a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk\",\n \"alternative_slugs\": {\n \"en\": \"a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk\"\n },\n \"created_at\": \"2024-03-05T15:48:31Z\",\n \"updated_at\": \"2024-03-11T06:59:25Z\",\n \"promoted_at\": \"2024-03-11T06:59:25Z\",\n \"width\": 2160,\n \"height\": 2700,\n \"color\": \"#262626\",\n \"blur_hash\": \"L78;S$~p00oLD%D%IVay9F9ZIUay\",\n \"description\": null,\n \"alt_description\": \"a black and white photo of a man with his head in his hands\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709653688483-fc2b356c1f36\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk\",\n \"html\": \"https://unsplash.com/photos/a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk\",\n \"download\": \"https://unsplash.com/photos/UArA9A02Kvk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/UArA9A02Kvk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 20,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"gwWL9kMcm2g\",\n \"updated_at\": \"2024-03-11T10:14:07Z\",\n \"username\": \"nickandreka\",\n \"name\": \"Nick Andréka\",\n \"first_name\": \"Nick\",\n \"last_name\": \"Andréka\",\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": null,\n \"location\": null,\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/nickandreka\",\n \"html\": \"https://unsplash.com/@nickandreka\",\n \"photos\": \"https://api.unsplash.com/users/nickandreka/photos\",\n \"likes\": \"https://api.unsplash.com/users/nickandreka/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/nickandreka/portfolio\",\n \"following\": \"https://api.unsplash.com/users/nickandreka/following\",\n \"followers\": \"https://api.unsplash.com/users/nickandreka/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1698854198608-989031a5ccdeimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1698854198608-989031a5ccdeimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1698854198608-989031a5ccdeimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"andreka.art\",\n \"total_collections\": 0,\n \"total_likes\": 8,\n \"total_photos\": 35,\n \"total_promoted_photos\": 19,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"andreka.art\",\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"QX_7m4Lh2qg\",\n \"slug\": \"a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg\",\n \"alternative_slugs\": {\n \"en\": \"a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg\"\n },\n \"created_at\": \"2024-03-10T16:46:33Z\",\n \"updated_at\": \"2024-03-11T06:59:11Z\",\n \"promoted_at\": \"2024-03-11T06:59:11Z\",\n \"width\": 4000,\n \"height\": 5751,\n \"color\": \"#f3f3f3\",\n \"blur_hash\": \"LAQJiu~X-;9G-:?cIURj~qD%00xt\",\n \"description\": null,\n \"alt_description\": \"a black and white photo of a lighthouse\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710088912041-34d1767d376a?ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710088912041-34d1767d376a\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg\",\n \"html\": \"https://unsplash.com/photos/a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg\",\n \"download\": \"https://unsplash.com/photos/QX_7m4Lh2qg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/QX_7m4Lh2qg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 21,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"ue6QWAAHoIQ\",\n \"updated_at\": \"2024-03-11T08:53:54Z\",\n \"username\": \"huzhewseh\",\n \"name\": \"Volodymyr M\",\n \"first_name\": \"Volodymyr\",\n \"last_name\": \"M\",\n \"twitter_username\": \"huzhewseh\",\n \"portfolio_url\": null,\n \"bio\": null,\n \"location\": null,\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/huzhewseh\",\n \"html\": \"https://unsplash.com/@huzhewseh\",\n \"photos\": \"https://api.unsplash.com/users/huzhewseh/photos\",\n \"likes\": \"https://api.unsplash.com/users/huzhewseh/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/huzhewseh/portfolio\",\n \"following\": \"https://api.unsplash.com/users/huzhewseh/following\",\n \"followers\": \"https://api.unsplash.com/users/huzhewseh/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1663221970918-58b1620c49c9image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1663221970918-58b1620c49c9image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1663221970918-58b1620c49c9image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"huzhewseh\",\n \"total_collections\": 0,\n \"total_likes\": 0,\n \"total_photos\": 18,\n \"total_promoted_photos\": 3,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"huzhewseh\",\n \"portfolio_url\": null,\n \"twitter_username\": \"huzhewseh\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"fMNP7XVcct0\",\n \"slug\": \"a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0\",\n \"alternative_slugs\": {\n \"en\": \"a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0\"\n },\n \"created_at\": \"2024-03-09T08:40:07Z\",\n \"updated_at\": \"2024-03-11T06:58:58Z\",\n \"promoted_at\": \"2024-03-11T06:58:58Z\",\n \"width\": 3264,\n \"height\": 4928,\n \"color\": \"#262626\",\n \"blur_hash\": \"L35hY|xu00D%-;xuIUD%00j[?bWB\",\n \"description\": null,\n \"alt_description\": \"a woman standing in a dark room with her eyes closed\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709973540503-77d699279634?ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709973540503-77d699279634\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0\",\n \"html\": \"https://unsplash.com/photos/a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0\",\n \"download\": \"https://unsplash.com/photos/fMNP7XVcct0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/fMNP7XVcct0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 7,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"lSlibqdw_c8\",\n \"updated_at\": \"2024-03-11T08:54:13Z\",\n \"username\": \"vitaliyshev89\",\n \"name\": \"Vitaliy Shevchenko\",\n \"first_name\": \"Vitaliy\",\n \"last_name\": \"Shevchenko\",\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": null,\n \"location\": \"Kharkiv, Ukraine\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/vitaliyshev89\",\n \"html\": \"https://unsplash.com/@vitaliyshev89\",\n \"photos\": \"https://api.unsplash.com/users/vitaliyshev89/photos\",\n \"likes\": \"https://api.unsplash.com/users/vitaliyshev89/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/vitaliyshev89/portfolio\",\n \"following\": \"https://api.unsplash.com/users/vitaliyshev89/following\",\n \"followers\": \"https://api.unsplash.com/users/vitaliyshev89/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1652271342920-31eebbc2c3d0image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1652271342920-31eebbc2c3d0image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1652271342920-31eebbc2c3d0image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": null,\n \"total_collections\": 0,\n \"total_likes\": 1,\n \"total_photos\": 205,\n \"total_promoted_photos\": 29,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": null,\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"b4kKyX0BQvc\",\n \"slug\": \"a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc\",\n \"alternative_slugs\": {\n \"en\": \"a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc\"\n },\n \"created_at\": \"2024-03-08T21:58:28Z\",\n \"updated_at\": \"2024-03-11T06:57:35Z\",\n \"promoted_at\": \"2024-03-11T06:57:27Z\",\n \"width\": 6000,\n \"height\": 4000,\n \"color\": \"#0c2626\",\n \"blur_hash\": \"LSDJS6kD9Zxu~qkDM|xaS%j]xaV@\",\n \"description\": \"Stunning metro train station \\\"Elbbrücken\\\" in Hamburg, Germany during sunset\",\n \"alt_description\": \"a train station with a train on the tracks\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709934645859-f1ed8d3a4954\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc\",\n \"html\": \"https://unsplash.com/photos/a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc\",\n \"download\": \"https://unsplash.com/photos/b4kKyX0BQvc/download?ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/b4kKyX0BQvc/download?ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 8,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"street-photography\": {\n \"status\": \"approved\",\n \"approved_on\": \"2024-03-11T06:57:35Z\"\n }\n },\n \"user\": {\n \"id\": \"TffftDPlBPk\",\n \"updated_at\": \"2024-03-11T06:59:04Z\",\n \"username\": \"christianlue\",\n \"name\": \"Christian Lue\",\n \"first_name\": \"Christian\",\n \"last_name\": \"Lue\",\n \"twitter_username\": \"chrrischii\",\n \"portfolio_url\": null,\n \"bio\": null,\n \"location\": \"Frankfurt / Berlin\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/christianlue\",\n \"html\": \"https://unsplash.com/@christianlue\",\n \"photos\": \"https://api.unsplash.com/users/christianlue/photos\",\n \"likes\": \"https://api.unsplash.com/users/christianlue/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/christianlue/portfolio\",\n \"following\": \"https://api.unsplash.com/users/christianlue/following\",\n \"followers\": \"https://api.unsplash.com/users/christianlue/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1581889127238-ea4aa40e8cb4image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1581889127238-ea4aa40e8cb4image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1581889127238-ea4aa40e8cb4image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": null,\n \"total_collections\": 7,\n \"total_likes\": 15,\n \"total_photos\": 571,\n \"total_promoted_photos\": 103,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": null,\n \"portfolio_url\": null,\n \"twitter_username\": \"chrrischii\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"9633dHhioC8\",\n \"slug\": \"a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8\",\n \"alternative_slugs\": {\n \"en\": \"a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8\"\n },\n \"created_at\": \"2023-04-28T15:30:26Z\",\n \"updated_at\": \"2024-03-10T10:46:58Z\",\n \"promoted_at\": \"2023-05-13T12:02:35Z\",\n \"width\": 8316,\n \"height\": 5544,\n \"color\": \"#734026\",\n \"blur_hash\": \"LVHdd89G57-o.9IBsSR-~pD*M{xt\",\n \"description\": \"Amongst expansive red sands and spectacular sandstone rock formations, Hisma Desert – NEOM, Saudi Arabia | The NEOM Nature Reserve region is being designed to deliver protection and restoration of biodiversity across 95% of NEOM.\",\n \"alt_description\": \"a person walking through a canyon in the desert\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1682695795255-b236b1f1267d\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8\",\n \"html\": \"https://unsplash.com/photos/a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8\",\n \"download\": \"https://unsplash.com/photos/9633dHhioC8/download?ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/9633dHhioC8/download?ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 631,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": {\n \"impression_urls\": [\n \"https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false\\u0026bannerID=11515595\\u0026rnd=[timestamp]\\u0026redir=https://secure.insightexpressai.com/adserver/1pixel.gif\",\n \"https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false\\u0026bannerID=11515798\\u0026rnd=[timestamp]\\u0026redir=https://secure.insightexpressai.com/adserver/1pixel.gif\"\n ],\n \"tagline\": \"Made to Change\",\n \"tagline_url\": \"https://www.neom.com/en-us?utm_source=unsplash\\u0026utm_medium=referral\",\n \"sponsor\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"4PmYYBFhwFM\",\n \"slug\": \"a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM\",\n \"alternative_slugs\": {\n \"en\": \"a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM\"\n },\n \"created_at\": \"2024-03-09T18:40:37Z\",\n \"updated_at\": \"2024-03-11T06:57:23Z\",\n \"promoted_at\": \"2024-03-11T06:57:23Z\",\n \"width\": 5248,\n \"height\": 7872,\n \"color\": \"#a6a6a6\",\n \"blur_hash\": \"LHDA40%MbGxu%L?bt7of_N%gIBRj\",\n \"description\": null,\n \"alt_description\": \"a close up of a car door with the word budder on it\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710009439657-c0dfdc051a28\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM\",\n \"html\": \"https://unsplash.com/photos/a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM\",\n \"download\": \"https://unsplash.com/photos/4PmYYBFhwFM/download?ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/4PmYYBFhwFM/download?ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 5,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"Xz7_QPPM2So\",\n \"updated_at\": \"2024-03-11T08:27:09Z\",\n \"username\": \"tiago_f_ferreira\",\n \"name\": \"Tiago Ferreira\",\n \"first_name\": \"Tiago\",\n \"last_name\": \"Ferreira\",\n \"twitter_username\": null,\n \"portfolio_url\": \"https://tiagoferreira765.wixsite.com/photographyandmusic\",\n \"bio\": \"Photography - a hobby, a passion.\\r\\nPlanet earth 🌎, a creative space to enjoy.\",\n \"location\": \"Lisboa, Portugal\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/tiago_f_ferreira\",\n \"html\": \"https://unsplash.com/@tiago_f_ferreira\",\n \"photos\": \"https://api.unsplash.com/users/tiago_f_ferreira/photos\",\n \"likes\": \"https://api.unsplash.com/users/tiago_f_ferreira/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/tiago_f_ferreira/portfolio\",\n \"following\": \"https://api.unsplash.com/users/tiago_f_ferreira/following\",\n \"followers\": \"https://api.unsplash.com/users/tiago_f_ferreira/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1595844391672-cdf854039843image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1595844391672-cdf854039843image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1595844391672-cdf854039843image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"tiago_f_ferreira\",\n \"total_collections\": 1,\n \"total_likes\": 144,\n \"total_photos\": 205,\n \"total_promoted_photos\": 8,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"tiago_f_ferreira\",\n \"portfolio_url\": \"https://tiagoferreira765.wixsite.com/photographyandmusic\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"BUhVFtY-890\",\n \"slug\": \"a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890\",\n \"alternative_slugs\": {\n \"en\": \"a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890\"\n },\n \"created_at\": \"2024-03-09T10:03:28Z\",\n \"updated_at\": \"2024-03-11T06:57:20Z\",\n \"promoted_at\": \"2024-03-11T06:57:20Z\",\n \"width\": 3511,\n \"height\": 2231,\n \"color\": \"#262626\",\n \"blur_hash\": \"L24epEWB0eMx$*t8OEV@RPj]baay\",\n \"description\": null,\n \"alt_description\": \"a close up of a bird with a red head\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709978601970-036e92662b46?ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709978601970-036e92662b46\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890\",\n \"html\": \"https://unsplash.com/photos/a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890\",\n \"download\": \"https://unsplash.com/photos/BUhVFtY-890/download?ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/BUhVFtY-890/download?ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 8,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"textures-patterns\": {\n \"status\": \"rejected\"\n },\n \"spring\": {\n \"status\": \"rejected\"\n },\n \"earth-hour\": {\n \"status\": \"approved\",\n \"approved_on\": \"2024-03-10T12:31:10Z\"\n },\n \"health\": {\n \"status\": \"unevaluated\"\n },\n \"animals\": {\n \"status\": \"unevaluated\"\n },\n \"film\": {\n \"status\": \"unevaluated\"\n },\n \"travel\": {\n \"status\": \"unevaluated\"\n },\n \"nature\": {\n \"status\": \"unevaluated\"\n },\n \"wallpapers\": {\n \"status\": \"unevaluated\"\n }\n },\n \"user\": {\n \"id\": \"3SCC0WcF-wA\",\n \"updated_at\": \"2024-03-11T09:44:02Z\",\n \"username\": \"refargotohp\",\n \"name\": \"refargotohp\",\n \"first_name\": \"refargotohp\",\n \"last_name\": null,\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": \"Hello 👋🏼 My name is Pavel, and I am a photographer. I enjoy the photo in any of its manifestations. Sequential shooting, street, studio, portraiture - it's all me. Waiting for you on my social networks - @refargotohp\",\n \"location\": null,\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/refargotohp\",\n \"html\": \"https://unsplash.com/@refargotohp\",\n \"photos\": \"https://api.unsplash.com/users/refargotohp/photos\",\n \"likes\": \"https://api.unsplash.com/users/refargotohp/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/refargotohp/portfolio\",\n \"following\": \"https://api.unsplash.com/users/refargotohp/following\",\n \"followers\": \"https://api.unsplash.com/users/refargotohp/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1653036388874-dab6bdb375bcimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1653036388874-dab6bdb375bcimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1653036388874-dab6bdb375bcimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"refargotohp\",\n \"total_collections\": 1,\n \"total_likes\": 86,\n \"total_photos\": 132,\n \"total_promoted_photos\": 61,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"refargotohp\",\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"99clkpyauJI\",\n \"slug\": \"there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI\",\n \"alternative_slugs\": {\n \"en\": \"there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI\"\n },\n \"created_at\": \"2024-03-10T00:15:28Z\",\n \"updated_at\": \"2024-03-11T06:56:32Z\",\n \"promoted_at\": \"2024-03-11T06:56:32Z\",\n \"width\": 4299,\n \"height\": 3448,\n \"color\": \"#f3f3f3\",\n \"blur_hash\": \"LjJuGn?bM{xu~qoKRPM{9FM{t6M_\",\n \"description\": null,\n \"alt_description\": \"there are bottles of beer on a shelf in front of a window\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710029721414-9e2125e155c3\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI\",\n \"html\": \"https://unsplash.com/photos/there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI\",\n \"download\": \"https://unsplash.com/photos/99clkpyauJI/download?ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA\",\n \"download_location\": \"https://api.unsplash.com/photos/99clkpyauJI/download?ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA\"\n },\n \"likes\": 2,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"film\": {\n \"status\": \"approved\",\n \"approved_on\": \"2024-03-10T16:39:06Z\"\n }\n },\n \"user\": {\n \"id\": \"TPCcwPbQzmY\",\n \"updated_at\": \"2024-03-11T06:59:01Z\",\n \"username\": \"suzm4film\",\n \"name\": \"szm 4\",\n \"first_name\": \"szm\",\n \"last_name\": \"4\",\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": null,\n \"location\": \"Japan\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/suzm4film\",\n \"html\": \"https://unsplash.com/@suzm4film\",\n \"photos\": \"https://api.unsplash.com/users/suzm4film/photos\",\n \"likes\": \"https://api.unsplash.com/users/suzm4film/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/suzm4film/portfolio\",\n \"following\": \"https://api.unsplash.com/users/suzm4film/following\",\n \"followers\": \"https://api.unsplash.com/users/suzm4film/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1632890829763-5c518f873dee?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1632890829763-5c518f873dee?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1632890829763-5c518f873dee?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": null,\n \"total_collections\": 0,\n \"total_likes\": 0,\n \"total_photos\": 189,\n \"total_promoted_photos\": 19,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": null,\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"Lbt-cZyOUM4\",\n \"slug\": \"an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4\",\n \"alternative_slugs\": {\n \"en\": \"an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4\"\n },\n \"created_at\": \"2024-03-09T16:58:57Z\",\n \"updated_at\": \"2024-03-11T06:57:06Z\",\n \"promoted_at\": \"2024-03-11T06:55:38Z\",\n \"width\": 5783,\n \"height\": 3848,\n \"color\": \"#0c2626\",\n \"blur_hash\": \"LkG[.y01Ri-:?bM{RjofM{xuRkWB\",\n \"description\": null,\n \"alt_description\": \"an old fashioned typewriter sitting on a table in front of a window\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710003364549-de37d4ed3413\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4\",\n \"html\": \"https://unsplash.com/photos/an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4\",\n \"download\": \"https://unsplash.com/photos/Lbt-cZyOUM4/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/Lbt-cZyOUM4/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 3,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"8D4VFtkiIuw\",\n \"updated_at\": \"2024-03-11T07:28:57Z\",\n \"username\": \"tama66\",\n \"name\": \"Peter Herrmann\",\n \"first_name\": \"Peter\",\n \"last_name\": \"Herrmann\",\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": \"Everything... but not boring! Instagram@Tiefstapler66\",\n \"location\": \"Leverkusen/Germany\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/tama66\",\n \"html\": \"https://unsplash.com/@tama66\",\n \"photos\": \"https://api.unsplash.com/users/tama66/photos\",\n \"likes\": \"https://api.unsplash.com/users/tama66/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/tama66/portfolio\",\n \"following\": \"https://api.unsplash.com/users/tama66/following\",\n \"followers\": \"https://api.unsplash.com/users/tama66/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1611475141936-383e23c6cc6dimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1611475141936-383e23c6cc6dimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1611475141936-383e23c6cc6dimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"tiefstapler66\",\n \"total_collections\": 1,\n \"total_likes\": 149,\n \"total_photos\": 363,\n \"total_promoted_photos\": 152,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"tiefstapler66\",\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"D1jr0Mevs-c\",\n \"slug\": \"an-aerial-view-of-a-body-of-water-D1jr0Mevs-c\",\n \"alternative_slugs\": {\n \"en\": \"an-aerial-view-of-a-body-of-water-D1jr0Mevs-c\"\n },\n \"created_at\": \"2024-02-07T22:34:15Z\",\n \"updated_at\": \"2024-03-10T10:54:36Z\",\n \"promoted_at\": null,\n \"width\": 5280,\n \"height\": 2970,\n \"color\": \"#0c2626\",\n \"blur_hash\": \"LH9[JL0i+HM{^}Ezw#R.b@n$nhbb\",\n \"description\": \"The Islands of NEOM are home to kaleidoscopic-coloured coral reefs and an abundance of diverse marine life | Islands of NEOM – NEOM, Saudi Arabia\",\n \"alt_description\": \"an aerial view of a body of water\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1707343843982-f8275f3994c5\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/an-aerial-view-of-a-body-of-water-D1jr0Mevs-c\",\n \"html\": \"https://unsplash.com/photos/an-aerial-view-of-a-body-of-water-D1jr0Mevs-c\",\n \"download\": \"https://unsplash.com/photos/D1jr0Mevs-c/download?ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/D1jr0Mevs-c/download?ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 308,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": {\n \"impression_urls\": [],\n \"tagline\": \"Made to Change\",\n \"tagline_url\": \"https://www.neom.com/en-us?utm_source=unsplash\\u0026utm_medium=referral\",\n \"sponsor\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"0RBEUjWQBBA\",\n \"slug\": \"a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA\",\n \"alternative_slugs\": {\n \"en\": \"a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA\"\n },\n \"created_at\": \"2024-03-10T10:15:48Z\",\n \"updated_at\": \"2024-03-11T06:55:22Z\",\n \"promoted_at\": \"2024-03-11T06:55:22Z\",\n \"width\": 4672,\n \"height\": 7008,\n \"color\": \"#262626\",\n \"blur_hash\": \"LOG8o{t7WBWB~DofR*j@D%NGR%WB\",\n \"description\": null,\n \"alt_description\": \"a woman standing under a cherry blossom tree\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710065574765-a685385c6d9a\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA\",\n \"html\": \"https://unsplash.com/photos/a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA\",\n \"download\": \"https://unsplash.com/photos/0RBEUjWQBBA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/0RBEUjWQBBA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 11,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"ePlndXHeIiM\",\n \"updated_at\": \"2024-03-11T09:04:03Z\",\n \"username\": \"lwdzl\",\n \"name\": \"Jack Dong\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Dong\",\n \"twitter_username\": null,\n \"portfolio_url\": \"https://www.xiaohongshu.com/user/profile/5f11b998000000000101d8d2?xhsshare=CopyLink\\u0026appuid=5f11b998000000000101d8d2\\u0026apptime=1696562673\",\n \"bio\": null,\n \"location\": null,\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/lwdzl\",\n \"html\": \"https://unsplash.com/@lwdzl\",\n \"photos\": \"https://api.unsplash.com/users/lwdzl/photos\",\n \"likes\": \"https://api.unsplash.com/users/lwdzl/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/lwdzl/portfolio\",\n \"following\": \"https://api.unsplash.com/users/lwdzl/following\",\n \"followers\": \"https://api.unsplash.com/users/lwdzl/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1696563144074-80a8da44bcd4?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1696563144074-80a8da44bcd4?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1696563144074-80a8da44bcd4?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": null,\n \"total_collections\": 0,\n \"total_likes\": 101,\n \"total_photos\": 640,\n \"total_promoted_photos\": 112,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": null,\n \"portfolio_url\": \"https://www.xiaohongshu.com/user/profile/5f11b998000000000101d8d2?xhsshare=CopyLink\\u0026appuid=5f11b998000000000101d8d2\\u0026apptime=1696562673\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"2IGDvJa2Bd0\",\n \"slug\": \"a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0\",\n \"alternative_slugs\": {\n \"en\": \"a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0\"\n },\n \"created_at\": \"2024-02-21T14:32:53Z\",\n \"updated_at\": \"2024-03-11T06:54:06Z\",\n \"promoted_at\": \"2024-03-11T06:54:06Z\",\n \"width\": 4672,\n \"height\": 5840,\n \"color\": \"#f3f3f3\",\n \"blur_hash\": \"L#Gv00ofD%ay~qoeM_ay%NafWVj[\",\n \"description\": null,\n \"alt_description\": \"a path in the middle of a foggy forest\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1708525736169-534ee3e24e99\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0\",\n \"html\": \"https://unsplash.com/photos/a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0\",\n \"download\": \"https://unsplash.com/photos/2IGDvJa2Bd0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/2IGDvJa2Bd0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 11,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"zL5HAN1fnJw\",\n \"updated_at\": \"2024-03-11T06:58:57Z\",\n \"username\": \"viklukphotography\",\n \"name\": \"Viktor Mischke\",\n \"first_name\": \"Viktor\",\n \"last_name\": \"Mischke\",\n \"twitter_username\": null,\n \"portfolio_url\": \"https://www.istockphoto.com/de/portfolio/snoviktor\",\n \"bio\": null,\n \"location\": \"Schloss Holte-Stukenbrock\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/viklukphotography\",\n \"html\": \"https://unsplash.com/@viklukphotography\",\n \"photos\": \"https://api.unsplash.com/users/viklukphotography/photos\",\n \"likes\": \"https://api.unsplash.com/users/viklukphotography/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/viklukphotography/portfolio\",\n \"following\": \"https://api.unsplash.com/users/viklukphotography/following\",\n \"followers\": \"https://api.unsplash.com/users/viklukphotography/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1646051425690-ed09fae6858fimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1646051425690-ed09fae6858fimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1646051425690-ed09fae6858fimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"viktormischke\",\n \"total_collections\": 0,\n \"total_likes\": 141,\n \"total_photos\": 38,\n \"total_promoted_photos\": 8,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"viktormischke\",\n \"portfolio_url\": \"https://www.istockphoto.com/de/portfolio/snoviktor\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"PZfeP0uwBpQ\",\n \"slug\": \"a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ\",\n \"alternative_slugs\": {\n \"en\": \"a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ\"\n },\n \"created_at\": \"2024-02-24T10:57:49Z\",\n \"updated_at\": \"2024-03-11T06:53:56Z\",\n \"promoted_at\": \"2024-03-11T06:53:56Z\",\n \"width\": 2720,\n \"height\": 4080,\n \"color\": \"#404026\",\n \"blur_hash\": \"LIB:Tx%K56NGORbYxas:0KRj-poe\",\n \"description\": \"A woman wearing a traditional coolie hat kneels in a field of green vegetables, carefully harvesting the crops.\",\n \"alt_description\": \"a person with a hat on their head in a field\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1708771641703-0df3d179cec3\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ\",\n \"html\": \"https://unsplash.com/photos/a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ\",\n \"download\": \"https://unsplash.com/photos/PZfeP0uwBpQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/PZfeP0uwBpQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 2,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"people\": {\n \"status\": \"rejected\"\n },\n \"experimental\": {\n \"status\": \"rejected\"\n }\n },\n \"user\": {\n \"id\": \"mWjiXj5vQuQ\",\n \"updated_at\": \"2024-03-11T06:58:57Z\",\n \"username\": \"chanwei_snap\",\n \"name\": \"Chanwei\",\n \"first_name\": \"Chanwei\",\n \"last_name\": null,\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": \"👋 Just a snap-happy amateur sharing my photos with you!\\r\\n📍Instagram: @chanwei.snap\\r\\n\",\n \"location\": \"Taipei, Taiwan\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/chanwei_snap\",\n \"html\": \"https://unsplash.com/@chanwei_snap\",\n \"photos\": \"https://api.unsplash.com/users/chanwei_snap/photos\",\n \"likes\": \"https://api.unsplash.com/users/chanwei_snap/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/chanwei_snap/portfolio\",\n \"following\": \"https://api.unsplash.com/users/chanwei_snap/following\",\n \"followers\": \"https://api.unsplash.com/users/chanwei_snap/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1705518610211-a929b876f4d5image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1705518610211-a929b876f4d5image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1705518610211-a929b876f4d5image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"chanwei.snap\",\n \"total_collections\": 15,\n \"total_likes\": 63,\n \"total_photos\": 150,\n \"total_promoted_photos\": 2,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"chanwei.snap\",\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"1JwHaWeSK9s\",\n \"slug\": \"a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s\",\n \"alternative_slugs\": {\n \"en\": \"a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s\"\n },\n \"created_at\": \"2024-03-10T11:33:51Z\",\n \"updated_at\": \"2024-03-11T06:57:09Z\",\n \"promoted_at\": \"2024-03-11T06:53:39Z\",\n \"width\": 3586,\n \"height\": 3917,\n \"color\": \"#f3f3d9\",\n \"blur_hash\": \"LIQ0T^j=_4%M%MxbM{M{_4jZITbH\",\n \"description\": \"Title: Christmas eve Artist: Callowhill, James Publisher: L. Prang \\u0026 Co. Name on Item: JC Date: [ca. 1861–1897] https://www.digitalcommonwealth.org/search/commonwealth:7w62f880r\",\n \"alt_description\": \"a picture of some white flowers on a white background\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710069455079-2059d3cefe91\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s\",\n \"html\": \"https://unsplash.com/photos/a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s\",\n \"download\": \"https://unsplash.com/photos/1JwHaWeSK9s/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/1JwHaWeSK9s/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 7,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"piFVWeoWxU8\",\n \"updated_at\": \"2024-03-11T07:28:12Z\",\n \"username\": \"bostonpubliclibrary\",\n \"name\": \"Boston Public Library\",\n \"first_name\": \"Boston\",\n \"last_name\": \"Public Library\",\n \"twitter_username\": null,\n \"portfolio_url\": \"https://www.bpl.org/\",\n \"bio\": \"Considered a pioneer of public library service in the United States, the Boston Public Library is among the three largest collections in the country and is committed to be ‘Free for All’.\",\n \"location\": \"Boston, USA\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/bostonpubliclibrary\",\n \"html\": \"https://unsplash.com/@bostonpubliclibrary\",\n \"photos\": \"https://api.unsplash.com/users/bostonpubliclibrary/photos\",\n \"likes\": \"https://api.unsplash.com/users/bostonpubliclibrary/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/bostonpubliclibrary/portfolio\",\n \"following\": \"https://api.unsplash.com/users/bostonpubliclibrary/following\",\n \"followers\": \"https://api.unsplash.com/users/bostonpubliclibrary/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1579171056760-0293bb679901image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1579171056760-0293bb679901image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1579171056760-0293bb679901image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": null,\n \"total_collections\": 6,\n \"total_likes\": 0,\n \"total_photos\": 510,\n \"total_promoted_photos\": 62,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": null,\n \"portfolio_url\": \"https://www.bpl.org/\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"efzvMAIpfWY\",\n \"slug\": \"a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY\",\n \"alternative_slugs\": {\n \"en\": \"a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY\"\n },\n \"created_at\": \"2023-04-28T12:46:16Z\",\n \"updated_at\": \"2024-03-11T09:48:19Z\",\n \"promoted_at\": null,\n \"width\": 9504,\n \"height\": 6336,\n \"color\": \"#c07359\",\n \"blur_hash\": \"LELo7xNHxa~Bz:s9S4nO~VbwoLS~\",\n \"description\": \"Amongst expansive red sands and spectacular sandstone rock formations, Hisma Desert – NEOM, Saudi Arabia | The NEOM Nature Reserve region is being designed to deliver protection and restoration of biodiversity across 95% of NEOM.\",\n \"alt_description\": \"a couple of people that are standing in the dirt\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1682685797742-42c9987a2c34\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY\",\n \"html\": \"https://unsplash.com/photos/a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY\",\n \"download\": \"https://unsplash.com/photos/efzvMAIpfWY/download?ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/efzvMAIpfWY/download?ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 211,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": {\n \"impression_urls\": [\n \"https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false\\u0026bannerID=11515544\\u0026rnd=[timestamp]\\u0026redir=https://secure.insightexpressai.com/adserver/1pixel.gif\",\n \"https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false\\u0026bannerID=11515747\\u0026rnd=[timestamp]\\u0026redir=https://secure.insightexpressai.com/adserver/1pixel.gif\"\n ],\n \"tagline\": \"Made to Change\",\n \"tagline_url\": \"https://www.neom.com/en-us?utm_source=unsplash\\u0026utm_medium=referral\",\n \"sponsor\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"j39-6Uto9QQ\",\n \"slug\": \"a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ\",\n \"alternative_slugs\": {\n \"en\": \"a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ\"\n },\n \"created_at\": \"2024-03-09T22:12:40Z\",\n \"updated_at\": \"2024-03-11T07:57:13Z\",\n \"promoted_at\": \"2024-03-11T06:51:56Z\",\n \"width\": 3759,\n \"height\": 5639,\n \"color\": \"#26260c\",\n \"blur_hash\": \"L79tDG?H4;IURu%MM{RP~oohIoIo\",\n \"description\": null,\n \"alt_description\": \"a forest filled with lots of tall trees\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710020339360-ce951881b835?ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710020339360-ce951881b835\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ\",\n \"html\": \"https://unsplash.com/photos/a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ\",\n \"download\": \"https://unsplash.com/photos/j39-6Uto9QQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/j39-6Uto9QQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 1,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"MarIhx6ztc0\",\n \"updated_at\": \"2024-03-11T06:51:56Z\",\n \"username\": \"brice_cooper18\",\n \"name\": \"Brice Cooper\",\n \"first_name\": \"Brice\",\n \"last_name\": \"Cooper\",\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": \"Always down for an adventure, capturing those adventures one photo at a time. Never stop exploring!\",\n \"location\": \"Florida\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/brice_cooper18\",\n \"html\": \"https://unsplash.com/@brice_cooper18\",\n \"photos\": \"https://api.unsplash.com/users/brice_cooper18/photos\",\n \"likes\": \"https://api.unsplash.com/users/brice_cooper18/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/brice_cooper18/portfolio\",\n \"following\": \"https://api.unsplash.com/users/brice_cooper18/following\",\n \"followers\": \"https://api.unsplash.com/users/brice_cooper18/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1673045276376-91bb892b6e94image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1673045276376-91bb892b6e94image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1673045276376-91bb892b6e94image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"brice_cooper18\",\n \"total_collections\": 14,\n \"total_likes\": 0,\n \"total_photos\": 1467,\n \"total_promoted_photos\": 51,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"brice_cooper18\",\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"oTE1p2Awp3I\",\n \"slug\": \"a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I\",\n \"alternative_slugs\": {\n \"en\": \"a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I\"\n },\n \"created_at\": \"2024-02-27T22:15:01Z\",\n \"updated_at\": \"2024-03-11T06:51:52Z\",\n \"promoted_at\": \"2024-03-11T06:51:52Z\",\n \"width\": 4000,\n \"height\": 5333,\n \"color\": \"#c0c0c0\",\n \"blur_hash\": \"LLE:C[u5IooJ_N%gE1ax~ps8Vsoe\",\n \"description\": null,\n \"alt_description\": \"a couple of people standing on top of a cliff next to the ocean\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709071784840-cf3ecc434749\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I\",\n \"html\": \"https://unsplash.com/photos/a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I\",\n \"download\": \"https://unsplash.com/photos/oTE1p2Awp3I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/oTE1p2Awp3I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 8,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"khtnjqjzcq0\",\n \"updated_at\": \"2024-03-11T06:51:53Z\",\n \"username\": \"mitchorr\",\n \"name\": \"Mitchell Orr\",\n \"first_name\": \"Mitchell\",\n \"last_name\": \"Orr\",\n \"twitter_username\": null,\n \"portfolio_url\": \"https://mitchorr.darkroom.tech/\",\n \"bio\": \"If you feel you would like to support my work, any donations no matter how small, would be extremely helpful. \\r\\nThanks for looking!\",\n \"location\": \"Wirral\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/mitchorr\",\n \"html\": \"https://unsplash.com/@mitchorr\",\n \"photos\": \"https://api.unsplash.com/users/mitchorr/photos\",\n \"likes\": \"https://api.unsplash.com/users/mitchorr/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/mitchorr/portfolio\",\n \"following\": \"https://api.unsplash.com/users/mitchorr/following\",\n \"followers\": \"https://api.unsplash.com/users/mitchorr/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1687891061126-8858e815018fimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1687891061126-8858e815018fimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1687891061126-8858e815018fimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"mitchorr1\",\n \"total_collections\": 0,\n \"total_likes\": 41,\n \"total_photos\": 358,\n \"total_promoted_photos\": 118,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"mitchorr1\",\n \"portfolio_url\": \"https://mitchorr.darkroom.tech/\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"ihmo0uRQ3jA\",\n \"slug\": \"a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA\",\n \"alternative_slugs\": {\n \"en\": \"a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA\"\n },\n \"created_at\": \"2024-02-24T20:00:04Z\",\n \"updated_at\": \"2024-03-11T06:51:48Z\",\n \"promoted_at\": \"2024-03-11T06:51:48Z\",\n \"width\": 4000,\n \"height\": 6000,\n \"color\": \"#260c0c\",\n \"blur_hash\": \"L78;b;?I4Xx?tcIUD+xt03oy-.M|\",\n \"description\": null,\n \"alt_description\": \"a bed sitting in a bedroom next to a window\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1708804309492-5ef3f3458c33\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA\",\n \"html\": \"https://unsplash.com/photos/a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA\",\n \"download\": \"https://unsplash.com/photos/ihmo0uRQ3jA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/ihmo0uRQ3jA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 20,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"Og5qBrDjufI\",\n \"updated_at\": \"2024-03-11T06:51:49Z\",\n \"username\": \"mariailves\",\n \"name\": \"Maria Ilves\",\n \"first_name\": \"Maria\",\n \"last_name\": \"Ilves\",\n \"twitter_username\": null,\n \"portfolio_url\": \"http://www.mariailves.com\",\n \"bio\": null,\n \"location\": \"Ambleside\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/mariailves\",\n \"html\": \"https://unsplash.com/@mariailves\",\n \"photos\": \"https://api.unsplash.com/users/mariailves/photos\",\n \"likes\": \"https://api.unsplash.com/users/mariailves/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/mariailves/portfolio\",\n \"following\": \"https://api.unsplash.com/users/mariailves/following\",\n \"followers\": \"https://api.unsplash.com/users/mariailves/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1708802611867-ab4ff1564c8cimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1708802611867-ab4ff1564c8cimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1708802611867-ab4ff1564c8cimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"mariailves_\",\n \"total_collections\": 0,\n \"total_likes\": 0,\n \"total_photos\": 38,\n \"total_promoted_photos\": 4,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"mariailves_\",\n \"portfolio_url\": \"http://www.mariailves.com\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"UvQtTVdFi9I\",\n \"slug\": \"UvQtTVdFi9I\",\n \"alternative_slugs\": {\n \"en\": \"UvQtTVdFi9I\"\n },\n \"created_at\": \"2016-08-12T16:12:25Z\",\n \"updated_at\": \"2024-03-11T06:50:27Z\",\n \"promoted_at\": \"2024-03-11T06:50:27Z\",\n \"width\": 3648,\n \"height\": 5472,\n \"color\": \"#8ca673\",\n \"blur_hash\": \"LGG9g4IAVax[.Zxus=kB9HtQ%LRj\",\n \"description\": null,\n \"alt_description\": null,\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1471018289981-5d9f06e2bf45\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/UvQtTVdFi9I\",\n \"html\": \"https://unsplash.com/photos/UvQtTVdFi9I\",\n \"download\": \"https://unsplash.com/photos/UvQtTVdFi9I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/UvQtTVdFi9I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 60,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"dhG1THiRwtA\",\n \"updated_at\": \"2024-03-11T06:50:28Z\",\n \"username\": \"clarissemeyer\",\n \"name\": \"Clarisse Meyer\",\n \"first_name\": \"Clarisse\",\n \"last_name\": \"Meyer\",\n \"twitter_username\": \"claireymeyer\",\n \"portfolio_url\": \"https://www.clarisserae.com\",\n \"bio\": \"Photo | Video | Design - Southern California \\u0026 Beyond\\r\\nInstagram: @clarisse.rae\",\n \"location\": \"Orange County, CA\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/clarissemeyer\",\n \"html\": \"https://unsplash.com/@clarissemeyer\",\n \"photos\": \"https://api.unsplash.com/users/clarissemeyer/photos\",\n \"likes\": \"https://api.unsplash.com/users/clarissemeyer/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/clarissemeyer/portfolio\",\n \"following\": \"https://api.unsplash.com/users/clarissemeyer/following\",\n \"followers\": \"https://api.unsplash.com/users/clarissemeyer/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1470948329031-558b487bdf37?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1470948329031-558b487bdf37?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1470948329031-558b487bdf37?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"clarisse.rae\",\n \"total_collections\": 2,\n \"total_likes\": 139,\n \"total_photos\": 99,\n \"total_promoted_photos\": 58,\n \"accepted_tos\": false,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"clarisse.rae\",\n \"portfolio_url\": \"https://www.clarisserae.com\",\n \"twitter_username\": \"claireymeyer\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"iswshBYbTBk\",\n \"slug\": \"a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk\",\n \"alternative_slugs\": {\n \"en\": \"a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk\"\n },\n \"created_at\": \"2024-02-27T19:26:10Z\",\n \"updated_at\": \"2024-03-11T06:48:50Z\",\n \"promoted_at\": \"2024-03-11T06:48:50Z\",\n \"width\": 3940,\n \"height\": 2634,\n \"color\": \"#73a673\",\n \"blur_hash\": \"LEDn~t%{y:WXDPVtH[jt8{o|VGk9\",\n \"description\": null,\n \"alt_description\": \"a woman riding an escalator down an escalator\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709061965707-9a89ffb23103\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk\",\n \"html\": \"https://unsplash.com/photos/a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk\",\n \"download\": \"https://unsplash.com/photos/iswshBYbTBk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/iswshBYbTBk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 4,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"people\": {\n \"status\": \"rejected\"\n }\n },\n \"user\": {\n \"id\": \"d-2o2yQwtxY\",\n \"updated_at\": \"2024-03-11T06:48:59Z\",\n \"username\": \"vitalymazur\",\n \"name\": \"Vitalii Mazur\",\n \"first_name\": \"Vitalii\",\n \"last_name\": \"Mazur\",\n \"twitter_username\": \"@madebyvitalii\",\n \"portfolio_url\": \"https://www.behance.net/vitaliimazur\",\n \"bio\": \"Life through photography 🌿 \\r\\nFeel free to support me via PayPal (vitaly.mazur@icloud.com) if you like to use my shots. Also I'm available for a photoshoot in Toronto 📸🇨🇦\",\n \"location\": \"Toronto, Canada\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/vitalymazur\",\n \"html\": \"https://unsplash.com/@vitalymazur\",\n \"photos\": \"https://api.unsplash.com/users/vitalymazur/photos\",\n \"likes\": \"https://api.unsplash.com/users/vitalymazur/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/vitalymazur/portfolio\",\n \"following\": \"https://api.unsplash.com/users/vitalymazur/following\",\n \"followers\": \"https://api.unsplash.com/users/vitalymazur/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1708119387274-fad12c7d293b?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1708119387274-fad12c7d293b?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1708119387274-fad12c7d293b?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"vitalymazur \",\n \"total_collections\": 14,\n \"total_likes\": 773,\n \"total_photos\": 263,\n \"total_promoted_photos\": 15,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"vitalymazur \",\n \"portfolio_url\": \"https://www.behance.net/vitaliimazur\",\n \"twitter_username\": \"@madebyvitalii\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"uSNuKKh7wpA\",\n \"slug\": \"a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA\",\n \"alternative_slugs\": {\n \"en\": \"a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA\"\n },\n \"created_at\": \"2024-03-01T10:58:28Z\",\n \"updated_at\": \"2024-03-11T06:48:07Z\",\n \"promoted_at\": \"2024-03-11T06:48:07Z\",\n \"width\": 9600,\n \"height\": 5400,\n \"color\": \"#d9d9d9\",\n \"blur_hash\": \"LJLq]_WI_3%eo$xa?cRi~qobITM|\",\n \"description\": \"Made in blender 4.0\",\n \"alt_description\": \"a picture of a green object with a white background\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709290649154-54c725bd4484?ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709290649154-54c725bd4484\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA\",\n \"html\": \"https://unsplash.com/photos/a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA\",\n \"download\": \"https://unsplash.com/photos/uSNuKKh7wpA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/uSNuKKh7wpA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 42,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"3d-renders\": {\n \"status\": \"approved\",\n \"approved_on\": \"2024-03-06T08:20:20Z\"\n },\n \"experimental\": {\n \"status\": \"approved\",\n \"approved_on\": \"2024-03-06T07:38:30Z\"\n }\n },\n \"user\": {\n \"id\": \"5TCQxdaW0wE\",\n \"updated_at\": \"2024-03-11T10:04:04Z\",\n \"username\": \"theshubhamdhage\",\n \"name\": \"Shubham Dhage\",\n \"first_name\": \"Shubham\",\n \"last_name\": \"Dhage\",\n \"twitter_username\": \"theshubhamdhage\",\n \"portfolio_url\": \"https://theshubhamdhage.com/\",\n \"bio\": \"Creating things is my passion.\",\n \"location\": \"Pune, India\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/theshubhamdhage\",\n \"html\": \"https://unsplash.com/@theshubhamdhage\",\n \"photos\": \"https://api.unsplash.com/users/theshubhamdhage/photos\",\n \"likes\": \"https://api.unsplash.com/users/theshubhamdhage/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/theshubhamdhage/portfolio\",\n \"following\": \"https://api.unsplash.com/users/theshubhamdhage/following\",\n \"followers\": \"https://api.unsplash.com/users/theshubhamdhage/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1702918491890-622aa47079a5image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1702918491890-622aa47079a5image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1702918491890-622aa47079a5image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"theshubhamdhage\",\n \"total_collections\": 2,\n \"total_likes\": 296,\n \"total_photos\": 734,\n \"total_promoted_photos\": 147,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"theshubhamdhage\",\n \"portfolio_url\": \"https://theshubhamdhage.com/\",\n \"twitter_username\": \"theshubhamdhage\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"7lN8MJPnlXs\",\n \"slug\": \"a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs\",\n \"alternative_slugs\": {\n \"en\": \"a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs\"\n },\n \"created_at\": \"2024-03-06T19:31:23Z\",\n \"updated_at\": \"2024-03-11T06:47:23Z\",\n \"promoted_at\": \"2024-03-11T06:47:23Z\",\n \"width\": 6720,\n \"height\": 4480,\n \"color\": \"#26260c\",\n \"blur_hash\": \"L05OKD},~lR7TJRj%d^$_0E49Is:\",\n \"description\": null,\n \"alt_description\": \"a close up of a pine tree with lots of needles\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709753422610-39ed7ddf9e08\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs\",\n \"html\": \"https://unsplash.com/photos/a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs\",\n \"download\": \"https://unsplash.com/photos/7lN8MJPnlXs/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/7lN8MJPnlXs/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 5,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"textures-patterns\": {\n \"status\": \"approved\",\n \"approved_on\": \"2024-03-11T06:47:18Z\"\n }\n },\n \"user\": {\n \"id\": \"gMFqynHNocY\",\n \"updated_at\": \"2024-03-11T06:48:57Z\",\n \"username\": \"blakecheekk\",\n \"name\": \"Blake Cheek\",\n \"first_name\": \"Blake\",\n \"last_name\": \"Cheek\",\n \"twitter_username\": \"blakecheekk\",\n \"portfolio_url\": \"http://blakecheek.com\",\n \"bio\": \"Photographer and Videographer. Lover of coffee and Jesus. \",\n \"location\": \"Atlanta, Ga\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/blakecheekk\",\n \"html\": \"https://unsplash.com/@blakecheekk\",\n \"photos\": \"https://api.unsplash.com/users/blakecheekk/photos\",\n \"likes\": \"https://api.unsplash.com/users/blakecheekk/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/blakecheekk/portfolio\",\n \"following\": \"https://api.unsplash.com/users/blakecheekk/following\",\n \"followers\": \"https://api.unsplash.com/users/blakecheekk/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1709746841716-156061dd4fe9image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1709746841716-156061dd4fe9image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1709746841716-156061dd4fe9image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"blakecheekk\",\n \"total_collections\": 4,\n \"total_likes\": 0,\n \"total_photos\": 423,\n \"total_promoted_photos\": 165,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"blakecheekk\",\n \"portfolio_url\": \"http://blakecheek.com\",\n \"twitter_username\": \"blakecheekk\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"Fw8vp9G6FtE\",\n \"slug\": \"the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE\",\n \"alternative_slugs\": {\n \"en\": \"the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE\"\n },\n \"created_at\": \"2024-03-10T00:43:31Z\",\n \"updated_at\": \"2024-03-11T06:46:50Z\",\n \"promoted_at\": \"2024-03-11T06:46:50Z\",\n \"width\": 6240,\n \"height\": 4160,\n \"color\": \"#262626\",\n \"blur_hash\": \"LIINNov{ae}=56I]eToaEmWC^iI;\",\n \"description\": null,\n \"alt_description\": \"the contents of a backpack laid out on a table\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710031407576-135a680d6e10?ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710031407576-135a680d6e10\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE\",\n \"html\": \"https://unsplash.com/photos/the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE\",\n \"download\": \"https://unsplash.com/photos/Fw8vp9G6FtE/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/Fw8vp9G6FtE/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 4,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"UmKpkFAcSDE\",\n \"updated_at\": \"2024-03-11T06:46:50Z\",\n \"username\": \"taylorheeryphoto\",\n \"name\": \"Taylor Heery\",\n \"first_name\": \"Taylor\",\n \"last_name\": \"Heery\",\n \"twitter_username\": \"tahegri\",\n \"portfolio_url\": \"http://www.taylorheery.com\",\n \"bio\": \"VENMO: @taylorheeryphoto\\r\\nFujifilm fanatic.\",\n \"location\": \"Hendersonville, NC\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/taylorheeryphoto\",\n \"html\": \"https://unsplash.com/@taylorheeryphoto\",\n \"photos\": \"https://api.unsplash.com/users/taylorheeryphoto/photos\",\n \"likes\": \"https://api.unsplash.com/users/taylorheeryphoto/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/taylorheeryphoto/portfolio\",\n \"following\": \"https://api.unsplash.com/users/taylorheeryphoto/following\",\n \"followers\": \"https://api.unsplash.com/users/taylorheeryphoto/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1710031596049-549d947d2a3a?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1710031596049-549d947d2a3a?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1710031596049-549d947d2a3a?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"taylorheeryphoto\",\n \"total_collections\": 0,\n \"total_likes\": 107,\n \"total_photos\": 520,\n \"total_promoted_photos\": 209,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"taylorheeryphoto\",\n \"portfolio_url\": \"http://www.taylorheery.com\",\n \"twitter_username\": \"tahegri\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"e75CfMG0Sgo\",\n \"slug\": \"a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo\",\n \"alternative_slugs\": {\n \"en\": \"a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo\"\n },\n \"created_at\": \"2023-04-28T12:46:16Z\",\n \"updated_at\": \"2024-03-10T11:50:20Z\",\n \"promoted_at\": null,\n \"width\": 5429,\n \"height\": 3619,\n \"color\": \"#a6c0d9\",\n \"blur_hash\": \"LnHLYm%0IAi_?wn$ngj[OtRjs:f6\",\n \"description\": \"Nature Reserve – NEOM, Saudi Arabia | The NEOM Nature Reserve region is being designed to deliver protection and restoration of biodiversity across 95% of NEOM.\",\n \"alt_description\": \"a person with a backpack looking at mountains\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1682685796002-e05458d61f07?ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1682685796002-e05458d61f07\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo\",\n \"html\": \"https://unsplash.com/photos/a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo\",\n \"download\": \"https://unsplash.com/photos/e75CfMG0Sgo/download?ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/e75CfMG0Sgo/download?ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 174,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": {\n \"impression_urls\": [\n \"https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false\\u0026bannerID=11515577\\u0026rnd=[timestamp]\\u0026redir=https://secure.insightexpressai.com/adserver/1pixel.gif\",\n \"https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false\\u0026bannerID=11515780\\u0026rnd=[timestamp]\\u0026redir=https://secure.insightexpressai.com/adserver/1pixel.gif\"\n ],\n \"tagline\": \"Made to Change\",\n \"tagline_url\": \"https://www.neom.com/en-us?utm_source=unsplash\\u0026utm_medium=referral\",\n \"sponsor\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"mYizSrdJkkU\",\n \"updated_at\": \"2024-03-11T08:54:08Z\",\n \"username\": \"neom\",\n \"name\": \"NEOM\",\n \"first_name\": \"NEOM\",\n \"last_name\": null,\n \"twitter_username\": \"neom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"bio\": \"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.\",\n \"location\": \"NEOM, Saudi Arabia\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/neom\",\n \"html\": \"https://unsplash.com/@neom\",\n \"photos\": \"https://api.unsplash.com/users/neom/photos\",\n \"likes\": \"https://api.unsplash.com/users/neom/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/neom/portfolio\",\n \"following\": \"https://api.unsplash.com/users/neom/following\",\n \"followers\": \"https://api.unsplash.com/users/neom/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"discoverneom\",\n \"total_collections\": 7,\n \"total_likes\": 1,\n \"total_photos\": 222,\n \"total_promoted_photos\": 72,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"discoverneom\",\n \"portfolio_url\": \"http://www.neom.com\",\n \"twitter_username\": \"neom\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"jSjHcyHFOdQ\",\n \"slug\": \"a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ\",\n \"alternative_slugs\": {\n \"en\": \"a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ\"\n },\n \"created_at\": \"2024-02-08T15:36:25Z\",\n \"updated_at\": \"2024-03-11T06:46:46Z\",\n \"promoted_at\": \"2024-03-11T06:46:46Z\",\n \"width\": 8400,\n \"height\": 5600,\n \"color\": \"#0c260c\",\n \"blur_hash\": \"L44CLsVuD7pF.Po2R7R*-.oyX5My\",\n \"description\": null,\n \"alt_description\": \"a picture of a green plant in a dark room\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1707406543260-ed14bbd0d086\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ\",\n \"html\": \"https://unsplash.com/photos/a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ\",\n \"download\": \"https://unsplash.com/photos/jSjHcyHFOdQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/jSjHcyHFOdQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 14,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"ogQykx6hk_c\",\n \"updated_at\": \"2024-03-11T06:46:46Z\",\n \"username\": \"pawel_czerwinski\",\n \"name\": \"Pawel Czerwinski\",\n \"first_name\": \"Pawel\",\n \"last_name\": \"Czerwinski\",\n \"twitter_username\": \"pm_cze\",\n \"portfolio_url\": \"http://paypal.me/pmcze\",\n \"bio\": \"Questions about how you can use the photos? help.unsplash.com/en/collections/1463188-unsplash-license 👍\",\n \"location\": \"Poland\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/pawel_czerwinski\",\n \"html\": \"https://unsplash.com/@pawel_czerwinski\",\n \"photos\": \"https://api.unsplash.com/users/pawel_czerwinski/photos\",\n \"likes\": \"https://api.unsplash.com/users/pawel_czerwinski/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/pawel_czerwinski/portfolio\",\n \"following\": \"https://api.unsplash.com/users/pawel_czerwinski/following\",\n \"followers\": \"https://api.unsplash.com/users/pawel_czerwinski/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1592328433409-d9ce8a5333eaimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1592328433409-d9ce8a5333eaimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1592328433409-d9ce8a5333eaimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"pmcze\",\n \"total_collections\": 7,\n \"total_likes\": 39154,\n \"total_photos\": 2137,\n \"total_promoted_photos\": 1760,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"pmcze\",\n \"portfolio_url\": \"http://paypal.me/pmcze\",\n \"twitter_username\": \"pm_cze\",\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"OfGHUYX0CCg\",\n \"slug\": \"a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg\",\n \"alternative_slugs\": {\n \"en\": \"a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg\"\n },\n \"created_at\": \"2024-03-06T14:06:51Z\",\n \"updated_at\": \"2024-03-11T08:56:52Z\",\n \"promoted_at\": \"2024-03-11T06:45:54Z\",\n \"width\": 8192,\n \"height\": 5460,\n \"color\": \"#260c0c\",\n \"blur_hash\": \"LUF{kg=cj@fQ}XxFS3azxFfjS2WW\",\n \"description\": null,\n \"alt_description\": \"a body of water that has some waves on it\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709733167477-25398ca709c0?ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709733167477-25398ca709c0\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg\",\n \"html\": \"https://unsplash.com/photos/a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg\",\n \"download\": \"https://unsplash.com/photos/OfGHUYX0CCg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/OfGHUYX0CCg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 16,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {\n \"earth-hour\": {\n \"status\": \"approved\",\n \"approved_on\": \"2024-03-07T09:43:45Z\"\n }\n },\n \"user\": {\n \"id\": \"uFFemR6e1vs\",\n \"updated_at\": \"2024-03-11T06:48:56Z\",\n \"username\": \"marcospradobr\",\n \"name\": \"Marcos Paulo Prado\",\n \"first_name\": \"Marcos Paulo\",\n \"last_name\": \"Prado\",\n \"twitter_username\": null,\n \"portfolio_url\": \"https://www.instagram.com/eusoumarcosprado\",\n \"bio\": \"People and commercial photographer based in Rio de Janeiro, Brasil\",\n \"location\": \"Rio de Janeiro, Brazil\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/marcospradobr\",\n \"html\": \"https://unsplash.com/@marcospradobr\",\n \"photos\": \"https://api.unsplash.com/users/marcospradobr/photos\",\n \"likes\": \"https://api.unsplash.com/users/marcospradobr/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/marcospradobr/portfolio\",\n \"following\": \"https://api.unsplash.com/users/marcospradobr/following\",\n \"followers\": \"https://api.unsplash.com/users/marcospradobr/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1572910425876-25d44d080554image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1572910425876-25d44d080554image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1572910425876-25d44d080554image?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"eusoumarcosprado\",\n \"total_collections\": 0,\n \"total_likes\": 306,\n \"total_photos\": 413,\n \"total_promoted_photos\": 139,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"eusoumarcosprado\",\n \"portfolio_url\": \"https://www.instagram.com/eusoumarcosprado\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"VKQpbzeWbrk\",\n \"slug\": \"a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk\",\n \"alternative_slugs\": {\n \"en\": \"a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk\"\n },\n \"created_at\": \"2024-03-09T21:24:04Z\",\n \"updated_at\": \"2024-03-11T06:45:51Z\",\n \"promoted_at\": \"2024-03-11T06:45:51Z\",\n \"width\": 2592,\n \"height\": 3872,\n \"color\": \"#8c2626\",\n \"blur_hash\": \"LFI2{Exr0gE}Dlo|=_W-5RE3O=xH\",\n \"description\": null,\n \"alt_description\": \"a bouquet of orange and white tulips on a red door\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1710018337941-58197591d55a?ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710018337941-58197591d55a\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk\",\n \"html\": \"https://unsplash.com/photos/a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk\",\n \"download\": \"https://unsplash.com/photos/VKQpbzeWbrk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/VKQpbzeWbrk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 3,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"H8-Yyg-eX4A\",\n \"updated_at\": \"2024-03-11T06:48:56Z\",\n \"username\": \"jaelphotos\",\n \"name\": \"Jael Coon\",\n \"first_name\": \"Jael\",\n \"last_name\": \"Coon\",\n \"twitter_username\": null,\n \"portfolio_url\": \"https://linktr.ee/jaelcoon\",\n \"bio\": \"Coffee drinker, photographer, artist and chef/baker\",\n \"location\": \"USA\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/jaelphotos\",\n \"html\": \"https://unsplash.com/@jaelphotos\",\n \"photos\": \"https://api.unsplash.com/users/jaelphotos/photos\",\n \"likes\": \"https://api.unsplash.com/users/jaelphotos/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/jaelphotos/portfolio\",\n \"following\": \"https://api.unsplash.com/users/jaelphotos/following\",\n \"followers\": \"https://api.unsplash.com/users/jaelphotos/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1693432710439-47b22b3f6a9eimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1693432710439-47b22b3f6a9eimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1693432710439-47b22b3f6a9eimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"jaelcoon\",\n \"total_collections\": 51,\n \"total_likes\": 0,\n \"total_photos\": 230,\n \"total_promoted_photos\": 3,\n \"accepted_tos\": true,\n \"for_hire\": false,\n \"social\": {\n \"instagram_username\": \"jaelcoon\",\n \"portfolio_url\": \"https://linktr.ee/jaelcoon\",\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n },\n {\n \"id\": \"W6AqsLH6HOg\",\n \"slug\": \"a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg\",\n \"alternative_slugs\": {\n \"en\": \"a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg\"\n },\n \"created_at\": \"2024-03-06T06:59:15Z\",\n \"updated_at\": \"2024-03-11T06:45:45Z\",\n \"promoted_at\": \"2024-03-11T06:45:45Z\",\n \"width\": 6000,\n \"height\": 4000,\n \"color\": \"#595959\",\n \"blur_hash\": \"LYE_]gO?}qOsW--Ux]$%RPoeX9oz\",\n \"description\": null,\n \"alt_description\": \"a license plate on the back of a car\",\n \"breadcrumbs\": [],\n \"urls\": {\n \"raw\": \"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\",\n \"full\": \"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy\\u0026cs=srgb\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=85\",\n \"regular\": \"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=1080\",\n \"small\": \"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=400\",\n \"thumb\": \"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy\\u0026cs=tinysrgb\\u0026fit=max\\u0026fm=jpg\\u0026ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\\u0026ixlib=rb-4.0.3\\u0026q=80\\u0026w=200\",\n \"small_s3\": \"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709708210553-490ba885fcf6\"\n },\n \"links\": {\n \"self\": \"https://api.unsplash.com/photos/a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg\",\n \"html\": \"https://unsplash.com/photos/a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg\",\n \"download\": \"https://unsplash.com/photos/W6AqsLH6HOg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\",\n \"download_location\": \"https://api.unsplash.com/photos/W6AqsLH6HOg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw\"\n },\n \"likes\": 3,\n \"liked_by_user\": false,\n \"current_user_collections\": [],\n \"sponsorship\": null,\n \"topic_submissions\": {},\n \"user\": {\n \"id\": \"VNV70zPYNto\",\n \"updated_at\": \"2024-03-11T06:48:56Z\",\n \"username\": \"venajeborec\",\n \"name\": \"Václav Pechar\",\n \"first_name\": \"Václav\",\n \"last_name\": \"Pechar\",\n \"twitter_username\": null,\n \"portfolio_url\": null,\n \"bio\": \"Photographer from South Bohemia ✌🏻\\r\\nBe free to contact me to book a shoot 🙏🏻\",\n \"location\": \"Czech Republic - Písek\",\n \"links\": {\n \"self\": \"https://api.unsplash.com/users/venajeborec\",\n \"html\": \"https://unsplash.com/@venajeborec\",\n \"photos\": \"https://api.unsplash.com/users/venajeborec/photos\",\n \"likes\": \"https://api.unsplash.com/users/venajeborec/likes\",\n \"portfolio\": \"https://api.unsplash.com/users/venajeborec/portfolio\",\n \"following\": \"https://api.unsplash.com/users/venajeborec/following\",\n \"followers\": \"https://api.unsplash.com/users/venajeborec/followers\"\n },\n \"profile_image\": {\n \"small\": \"https://images.unsplash.com/profile-1687031143105-2420498da92eimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=32\\u0026h=32\",\n \"medium\": \"https://images.unsplash.com/profile-1687031143105-2420498da92eimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=64\\u0026h=64\",\n \"large\": \"https://images.unsplash.com/profile-1687031143105-2420498da92eimage?ixlib=rb-4.0.3\\u0026crop=faces\\u0026fit=crop\\u0026w=128\\u0026h=128\"\n },\n \"instagram_username\": \"amazingvena\",\n \"total_collections\": 0,\n \"total_likes\": 7,\n \"total_photos\": 324,\n \"total_promoted_photos\": 30,\n \"accepted_tos\": true,\n \"for_hire\": true,\n \"social\": {\n \"instagram_username\": \"amazingvena\",\n \"portfolio_url\": null,\n \"twitter_username\": null,\n \"paypal_email\": null\n }\n }\n }\n]\n","// purely for testing purposes\nimport fixturePhotosDataset from './dataFixtures.json';\n\nimport {Photo} from '../UnsplashTypes';\n\nexport const fixturePhotos: Photo[] = fixturePhotosDataset as unknown as Photo[];\n","// Mock provider for testing purposes\nimport {IUnsplashProvider} from './IUnsplashProvider';\nimport {Photo} from '../UnsplashTypes';\nimport {fixturePhotos} from './unsplashFixtures';\n\nexport class InMemoryUnsplashProvider implements IUnsplashProvider {\n photos: Photo[] = fixturePhotos;\n PAGINATION: { [key: string]: string } = {};\n REQUEST_IS_RUNNING: boolean = false;\n SEARCH_IS_RUNNING: boolean = false;\n LAST_REQUEST_URL: string = '';\n ERROR: string | null = null;\n IS_LOADING: boolean = false;\n currentPage: number = 1;\n\n public async fetchPhotos(): Promise<Photo[]> {\n this.IS_LOADING = true;\n\n const start = (this.currentPage - 1) * 30;\n const end = this.currentPage * 30;\n this.currentPage += 1;\n\n this.IS_LOADING = false;\n\n return this.photos.slice(start, end);\n }\n\n public async fetchNextPage(): Promise<Photo[] | null> {\n if (this.REQUEST_IS_RUNNING || this.SEARCH_IS_RUNNING) {\n return null;\n }\n\n const photos = await this.fetchPhotos();\n return photos.length > 0 ? photos : null;\n }\n\n public async searchPhotos(term: string): Promise<Photo[]> {\n this.SEARCH_IS_RUNNING = true;\n const filteredPhotos = this.photos.filter(photo => (photo.description && photo.description.toLowerCase().includes(term.toLowerCase())) ||\n (photo.alt_description && photo.alt_description.toLowerCase().includes(term.toLowerCase()))\n );\n this.SEARCH_IS_RUNNING = false;\n return filteredPhotos;\n }\n\n searchIsRunning(): boolean {\n return this.SEARCH_IS_RUNNING;\n }\n\n triggerDownload(_photo: Pick<Photo, 'links'>): void {\n // no-op for in-memory provider\n }\n}\n","import {IUnsplashProvider} from './IUnsplashProvider';\nimport {Photo} from '../UnsplashTypes';\n\nexport class PhotoUseCases {\n private _provider: IUnsplashProvider;\n\n constructor(provider: IUnsplashProvider) {\n this._provider = provider;\n }\n\n async fetchPhotos(): Promise<Photo[]> {\n return await this._provider.fetchPhotos();\n }\n\n async searchPhotos(term: string): Promise<Photo[]> {\n return await this._provider.searchPhotos(term);\n }\n\n async triggerDownload(photo: Pick<Photo, 'links'>): Promise<void> {\n this._provider.triggerDownload(photo);\n }\n\n async fetchNextPage(): Promise<Photo[] | null> {\n let request = await this._provider.fetchNextPage();\n\n if (request) {\n return request;\n }\n\n return null;\n }\n\n searchIsRunning(): boolean {\n return this._provider.searchIsRunning();\n }\n}\n","import {DefaultHeaderTypes, Photo} from '../UnsplashTypes';\nimport {IUnsplashProvider} from './IUnsplashProvider';\n\nexport class UnsplashProvider implements IUnsplashProvider {\n API_URL: string = 'https://api.unsplash.com';\n HEADERS: DefaultHeaderTypes;\n ERROR: string | null = null;\n PAGINATION: { [key: string]: string } = {};\n REQUEST_IS_RUNNING: boolean = false;\n SEARCH_IS_RUNNING: boolean = false;\n LAST_REQUEST_URL: string = '';\n IS_LOADING: boolean = false;\n\n constructor(HEADERS: DefaultHeaderTypes) {\n this.HEADERS = HEADERS;\n }\n\n private async makeRequest(url: string): Promise<Photo[] | {results: Photo[]} | null> {\n if (this.REQUEST_IS_RUNNING) {\n return null;\n }\n \n this.LAST_REQUEST_URL = url;\n const options = {\n method: 'GET',\n headers: this.HEADERS as unknown as HeadersInit\n };\n \n try {\n this.REQUEST_IS_RUNNING = true;\n this.IS_LOADING = true;\n \n const response = await fetch(url, options);\n const checkedResponse = await this.checkStatus(response);\n this.extractPagination(checkedResponse);\n \n const jsonResponse = await checkedResponse.json();\n \n if ('results' in jsonResponse) {\n return jsonResponse.results;\n } else {\n return jsonResponse;\n }\n } catch (error) {\n this.ERROR = error as string;\n return null;\n } finally {\n this.REQUEST_IS_RUNNING = false;\n this.IS_LOADING = false;\n }\n }\n\n private extractPagination(response: Response): Response {\n let linkRegex = new RegExp('<(.*)>; rel=\"(.*)\"');\n\n let links = [];\n\n let pagination : { [key: string]: string } = {};\n\n for (let entry of response.headers.entries()) {\n if (entry[0] === 'link') {\n links.push(entry[1]);\n }\n }\n\n if (links) {\n links.toString().split(',').forEach((link) => {\n if (link){\n let linkParts = linkRegex.exec(link);\n if (linkParts) {\n pagination[linkParts[2]] = linkParts[1];\n }\n }\n });\n }\n\n this.PAGINATION = pagination;\n\n return response;\n }\n\n public async fetchPhotos(): Promise<Photo[]> {\n const url = `${this.API_URL}/photos?per_page=30`;\n const request = await this.makeRequest(url);\n return request as Photo[];\n }\n\n public async fetchNextPage(): Promise<Photo[] | null> {\n if (this.REQUEST_IS_RUNNING) {\n return null;\n }\n\n if (this.SEARCH_IS_RUNNING) {\n return null;\n }\n\n if (this.PAGINATION.next) {\n const url = `${this.PAGINATION.next}`;\n const response = await this.makeRequest(url);\n if (response) {\n return response as Photo[];\n }\n }\n\n return null;\n }\n\n public async searchPhotos(term: string): Promise<Photo[]> {\n const url = `${this.API_URL}/search/photos?query=${term}&per_page=30`;\n\n const request = await this.makeRequest(url);\n if (request) {\n return request as Photo[];\n }\n\n return [];\n }\n\n public async triggerDownload(photo: Pick<Photo, 'links'>): Promise<void> {\n if (photo.links.download_location) {\n await this.makeRequest(photo.links.download_location);\n }\n }\n\n private async checkStatus(response: Response): Promise<Response> {\n if (response.status >= 200 && response.status < 300) {\n return response;\n }\n \n let errorText = '';\n let responseTextPromise: Promise<string>; // or Promise<string> if you know the type\n \n const contentType = response.headers.get('content-type');\n if (contentType === 'application/json') {\n responseTextPromise = response.json().then(json => (json).errors[0]); // or cast to a specific type if you know it\n } else if (contentType === 'text/xml') {\n responseTextPromise = response.text();\n } else {\n throw new Error('Unsupported content type');\n }\n \n return responseTextPromise.then((responseText: string) => { // you can type responseText based on what you expect\n if (response.status === 403 && response.headers.get('x-ratelimit-remaining') === '0') {\n // we've hit the rate limit on the API\n errorText = 'Unsplash API rate limit reached, please try again later.';\n }\n \n errorText = errorText || responseText || `Error ${response.status}: Uh-oh! Trouble reaching the Unsplash API`;\n \n // set error text for display in UI\n this.ERROR = errorText;\n \n // throw error to prevent further processing\n let error = new Error(errorText) as Error; // or create a custom Error class\n throw error;\n });\n }\n\n searchIsRunning(): boolean {\n return this.SEARCH_IS_RUNNING;\n }\n}\n","import MasonryService from './MasonryService';\nimport {Photo} from '../UnsplashTypes';\nimport {PhotoUseCases} from './PhotoUseCase';\n\nexport interface IUnsplashService {\n loadNew(): Promise<void>;\n layoutPhotos(): void;\n getColumns(): Photo[][] | [] | null;\n updateSearch(term: string): Promise<void>;\n loadNextPage(): Promise<void>;\n clearPhotos(): void;\n triggerDownload(photo: Pick<Photo, 'links'>): void;\n photos: Photo[];\n searchIsRunning(): boolean;\n}\n\nexport class UnsplashService implements IUnsplashService {\n private photoUseCases: PhotoUseCases;\n private masonryService: MasonryService;\n public photos: Photo[] = [];\n\n constructor(photoUseCases: PhotoUseCases, masonryService: MasonryService) {\n this.photoUseCases = photoUseCases;\n this.masonryService = masonryService;\n }\n\n async loadNew() {\n let images = await this.photoUseCases.fetchPhotos();\n this.photos = images;\n await this.layoutPhotos();\n }\n\n async layoutPhotos() {\n this.masonryService.reset();\n\n if (this.photos) {\n this.photos.forEach((photo) => {\n photo.ratio = photo.height / photo.width;\n this.masonryService.addPhotoToColumns(photo);\n });\n }\n }\n\n getColumns() {\n return this.masonryService.getColumns();\n }\n\n async updateSearch(term: string) {\n let results = await this.photoUseCases.searchPhotos(term);\n this.photos = results;\n this.layoutPhotos();\n }\n\n async loadNextPage() {\n const newPhotos = await this.photoUseCases.fetchNextPage() || [];\n this.photos = [...this.photos, ...newPhotos];\n this.layoutPhotos();\n }\n\n clearPhotos() {\n this.photos = [];\n }\n\n triggerDownload(photo: Pick<Photo, 'links'>) {\n this.photoUseCases.triggerDownload(photo);\n }\n\n searchIsRunning() {\n return this.photoUseCases.searchIsRunning();\n }\n}\n","import MasonryService from './api/MasonryService';\nimport React, {useMemo, useRef, useState} from 'react';\nimport UnsplashGallery from './ui/UnsplashGallery';\nimport UnsplashSelector from './ui/UnsplashSelector';\nimport {DefaultHeaderTypes} from './UnsplashTypes';\nimport {InMemoryUnsplashProvider} from './api/InMemoryUnsplashProvider';\nimport {InsertImagePayload, Photo} from './UnsplashTypes';\nimport {PhotoUseCases} from './api/PhotoUseCase';\nimport {UnsplashProvider} from './api/UnsplashProvider';\nimport {UnsplashService} from './api/UnsplashService';\n\ninterface UnsplashModalProps {\n onClose: () => void;\n onImageInsert: (image: InsertImagePayload) => void;\n unsplashProviderConfig: DefaultHeaderTypes | null;\n }\n\nexport const UnsplashSearchModal : React.FC<UnsplashModalProps> = ({onClose, onImageInsert, unsplashProviderConfig}) => {\n const unsplashProvider = useMemo(() => {\n if (!unsplashProviderConfig) {\n return new InMemoryUnsplashProvider();\n }\n return new UnsplashProvider(unsplashProviderConfig);\n },[unsplashProviderConfig]);\n\n const photoUseCase = useMemo(() => new PhotoUseCases(unsplashProvider), [unsplashProvider]);\n const masonryService = useMemo(() => new MasonryService(3), []);\n const UnsplashLib = useMemo(() => new UnsplashService(photoUseCase, masonryService), [photoUseCase, masonryService]);\n const galleryRef = useRef<HTMLDivElement | null>(null);\n const [scrollPos, setScrollPos] = useState<number>(0);\n const [lastScrollPos, setLastScrollPos] = useState<number>(0);\n const [isLoading, setIsLoading] = useState<boolean>(UnsplashLib.searchIsRunning() || true);\n const initLoadRef = useRef<boolean>(false);\n const [searchTerm, setSearchTerm] = useState<string>('');\n const [zoomedImg, setZoomedImg] = useState<Photo | null>(null);\n const [dataset, setDataset] = useState<Photo[][] | []>([]);\n\n React.useEffect(() => {\n if (galleryRef.current && zoomedImg === null && lastScrollPos !== 0) {\n galleryRef.current.scrollTop = lastScrollPos;\n setLastScrollPos(0);\n }\n }, [zoomedImg, scrollPos, lastScrollPos]);\n\n React.useEffect(() => {\n const handleKeyDown = (e:KeyboardEvent) => {\n if (e.key === 'Escape') {\n onClose();\n }\n };\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [onClose]);\n\n React.useEffect(() => {\n const ref = galleryRef.current;\n if (!zoomedImg) {\n if (ref) {\n ref.addEventListener('scroll', () => {\n setScrollPos(ref.scrollTop);\n });\n }\n // unmount\n return () => {\n if (ref) {\n ref.removeEventListener('scroll', () => {\n setScrollPos(ref.scrollTop);\n });\n }\n };\n }\n }, [galleryRef, zoomedImg]);\n\n const loadInitPhotos = React.useCallback(async () => {\n if (initLoadRef.current === false || searchTerm.length === 0) {\n setDataset([]);\n UnsplashLib.clearPhotos();\n await UnsplashLib.loadNew();\n const columns = UnsplashLib.getColumns();\n setDataset(columns || []);\n if (galleryRef.current && galleryRef.current.scrollTop !== 0) {\n galleryRef.current.scrollTop = 0;\n }\n setIsLoading(false);\n }\n }, [UnsplashLib, searchTerm]);\n\n const handleSearch = async (e: React.ChangeEvent<HTMLInputElement>) => {\n const query = e.target.value;\n if (query.length > 2) {\n setZoomedImg(null);\n setSearchTerm(query);\n }\n if (query.length === 0) {\n setSearchTerm('');\n initLoadRef.current = false;\n await loadInitPhotos();\n }\n };\n\n const search = React.useCallback(async () => {\n if (searchTerm) {\n setIsLoading(true);\n setDataset([]);\n UnsplashLib.clearPhotos();\n await UnsplashLib.updateSearch(searchTerm);\n const columns = UnsplashLib.getColumns();\n if (columns) {\n setDataset(columns);\n }\n if (galleryRef.current && galleryRef.current.scrollTop !== 0) {\n galleryRef.current.scrollTop = 0;\n }\n setIsLoading(false);\n }\n }, [searchTerm, UnsplashLib]);\n\n React.useEffect(() => {\n const timeoutId = setTimeout(async () => {\n if (searchTerm.length > 2) {\n await search();\n } else {\n await loadInitPhotos();\n }\n }, 300);\n return () => {\n initLoadRef.current = true;\n clearTimeout(timeoutId);\n };\n }, [searchTerm, search, loadInitPhotos]);\n\n const loadMorePhotos = React.useCallback(async () => {\n setIsLoading(true);\n await UnsplashLib.loadNextPage();\n const columns = UnsplashLib.getColumns();\n setDataset(columns || []);\n setIsLoading(false);\n }, [UnsplashLib]);\n\n React.useEffect(() => {\n const ref = galleryRef.current;\n if (ref) {\n const handleScroll = async () => {\n if (zoomedImg === null && ref.scrollTop + ref.clientHeight >= ref.scrollHeight - 1000) {\n await loadMorePhotos();\n }\n };\n ref.addEventListener('scroll', handleScroll);\n return () => {\n ref.removeEventListener('scroll', handleScroll);\n };\n }\n }, [galleryRef, loadMorePhotos, zoomedImg]);\n\n const selectImg = (payload:Photo | null) => {\n if (payload) {\n setZoomedImg(payload);\n setLastScrollPos(scrollPos);\n }\n\n if (payload === null) {\n setZoomedImg(null);\n if (galleryRef.current) {\n galleryRef.current.scrollTop = lastScrollPos;\n }\n }\n };\n\n async function insertImage(image:InsertImagePayload) {\n if (image.src) {\n UnsplashLib.triggerDownload(image);\n onImageInsert(image);\n }\n }\n return (\n <UnsplashSelector\n closeModal={onClose}\n handleSearch={handleSearch}\n >\n <UnsplashGallery\n dataset={dataset}\n error={null}\n galleryRef={galleryRef}\n insertImage={insertImage}\n isLoading={isLoading}\n selectImg={selectImg}\n zoomed={zoomedImg}\n />\n </UnsplashSelector>\n );\n};\n"],"mappings":"kmBAEA,IAAqB,EAArB,KAAoC,CAChC,YACA,QAAiC,EAAE,CACnC,cAEA,YAAY,EAAsB,EAAG,CACjC,KAAK,YAAc,EACnB,KAAK,QAAU,CAAC,EAAE,CAAC,CACnB,KAAK,cAAgB,KAGzB,OAAc,CACV,IAAI,EAAqB,EAAE,CACvB,EAA0B,EAAE,CAEhC,IAAK,IAAI,EAAI,EAAG,EAAI,KAAK,YAAa,GAAK,EACvC,EAAQ,GAAK,EAAE,CACf,EAAc,GAAK,EAGvB,KAAK,QAAU,EACf,KAAK,cAAgB,EAGzB,YAAmB,CACf,IAAK,IAAI,EAAI,EAAG,EAAI,KAAK,YAAa,IACjC,KAAK,QAAsB,KAAK,EAAE,CAAC,CACpC,KAAK,cAAe,KAAK,EAAE,CAInC,kBAAkB,EAAoB,CAC7B,KAAK,SACN,KAAK,OAAO,CAEhB,IAAI,EAAM,KAAK,IAAI,GAAG,KAAK,cAAe,CACtC,EAAc,KAAK,cAAe,QAAQ,EAAI,CAEpD,KAAK,cAAe,IAAgB,IAAM,EAAM,MAChD,KAAK,QAAS,GAAa,KAAK,EAAM,CAGxC,YAA+B,CAC3B,OAAO,KAAK,QAGhB,kBAAkB,EAA8B,CACxC,IAAmB,KAAK,cAC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