{"version":3,"sources":["jsdelivr-header.js","/npm/react-json-tree@0.19.0/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCFO,OAAS,YAAe,eACtB,gBAAmB,8BACrB,aAAc,uBACd,2BAA4B,8BACnC,MAAM,SAAY,GAAU,EACtB,eAAiB,CAAC,EAAS,EAAM,IAAoB,IAAV,EAC3C,kBAAoB,CAAC,EAAM,EAAM,EAAU,IAAgB,MAAM,cAAc,OAAQ,KACzF,EACA,IACA,GACE,qBAAuB,EAAE,KAAW,MAAM,cAAc,OAAQ,KAClE,EACA,KACE,aAAe,KAAM,SACpB,SAAS,UAAW,KAAM,EAAK,MAAE,EAAO,YAAa,EAAiB,QAAE,EAAU,CAAC,QAAO,cAAE,EAAgB,qBAAoB,cAAE,EAAgB,SAAQ,0BAAE,EAA4B,eAAc,SAAE,GAAW,EAAK,cAAE,EAAgB,kBAAiB,iBAAE,EAAmB,SAAQ,aAAE,EAAe,aAAY,gBAAE,EAAkB,GAAE,eAAE,GAAiB,IACjW,MAAM,EAAU,SAAQ,IAAM,uBAAuB,EAAoB,YAAY,GAAS,IAAQ,CAAC,EAAO,IAC9G,OAAQ,MAAM,cAAc,KAAM,IAAK,EAAQ,SAC3C,MAAM,cAAc,SAAU,CAAE,QAAS,EAAW,GAAK,EAAS,MAAO,EAAiB,GAAQ,aAAc,EAAc,QAAS,EAAS,cAAe,EAAe,cAAe,EAAe,0BAA2B,EAA2B,SAAU,EAAU,cAAe,EAAe,iBAAkB,EAAkB,gBAAiB,EAAiB,eAAgB,IAClZ","file":"/npm/react-json-tree@0.19.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-json-tree@0.19.0/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// ES6 + inline style port of JSONViewer https://bitbucket.org/davevedder/react-json-viewer/\n// all credits and original code to the author\n// Dave Vedder <veddermatic@gmail.com> http://www.eskimospy.com/\n// port by Daniele Zannotti http://www.github.com/dzannotti <dzannotti@me.com>\nimport React, { useMemo } from 'react';\nimport { invertTheme } from 'react-base16-styling';\nimport JSONNode from './JSONNode.js';\nimport createStylingFromTheme from './createStylingFromTheme.js';\nconst identity = (value) => value;\nconst expandRootNode = (keyPath, data, level) => level === 0;\nconst defaultItemString = (type, data, itemType, itemString) => (React.createElement(\"span\", null,\n    itemType,\n    \" \",\n    itemString));\nconst defaultLabelRenderer = ([label]) => React.createElement(\"span\", null,\n    label,\n    \":\");\nconst noCustomNode = () => false;\nexport function JSONTree({ data: value, theme, invertTheme: shouldInvertTheme, keyPath = ['root'], labelRenderer = defaultLabelRenderer, valueRenderer = identity, shouldExpandNodeInitially = expandRootNode, hideRoot = false, getItemString = defaultItemString, postprocessValue = identity, isCustomNode = noCustomNode, collectionLimit = 50, sortObjectKeys = false, }) {\n    const styling = useMemo(() => createStylingFromTheme(shouldInvertTheme ? invertTheme(theme) : theme), [theme, shouldInvertTheme]);\n    return (React.createElement(\"ul\", { ...styling('tree') },\n        React.createElement(JSONNode, { keyPath: hideRoot ? [] : keyPath, value: postprocessValue(value), isCustomNode: isCustomNode, styling: styling, labelRenderer: labelRenderer, valueRenderer: valueRenderer, shouldExpandNodeInitially: shouldExpandNodeInitially, hideRoot: hideRoot, getItemString: getItemString, postprocessValue: postprocessValue, collectionLimit: collectionLimit, sortObjectKeys: sortObjectKeys })));\n}\n"]}