{"version":3,"sources":["node_modules/@arcgis/core/layers/support/infoFor3D.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nconst t = [[\"binary\", \"application/octet-stream\", \"bin\", \"\"]];\nfunction n(t, n) {\n return null != C(n.name, t?.supportedFormats ?? []);\n}\nfunction r(t, n) {\n if (!t) return !1;\n const r = c(n, t.supportedFormats ?? []);\n return null != r && t.editFormats.includes(r);\n}\nfunction o(t) {\n return F(t?.supportedFormats ?? []).flatMap(j).map(t => `.${t}`);\n}\nfunction e(t) {\n const n = {};\n for (const r of F(t?.supportedFormats ?? [])) {\n const [t, o] = g(r).split(\";\"),\n e = t.trim().toLowerCase(),\n u = j(r).map(t => `.${t}`);\n n[e] ??= [], n[e].push(...u);\n }\n return {\n description: \"3D Models\",\n accept: n\n };\n}\nfunction u(t, n) {\n return L(b(t, n));\n}\nfunction i(t, n) {\n return L(C(t, n));\n}\nfunction s(t, n) {\n return g(w(t, n));\n}\nfunction c(t, n) {\n return i(t.name, n) ?? u(t.type, n);\n}\nfunction p(t, n, r) {\n return u(t, r) ?? i(n, r);\n}\nfunction a({\n supportedFormats: t\n}) {\n return p(\"model/gltf-binary\", \"glb\", t);\n}\nfunction f(t) {\n const n = a(t);\n return null != n && t.editFormats.includes(n);\n}\nfunction d({\n supportedFormats: t\n}) {\n return p(\"model/gltf+json\", \"gltf\", t);\n}\nfunction l({\n supportedFormats: t\n}) {\n return p(\"application/esri3do-SR_world\", \"wld\", t);\n}\nfunction m({\n supportedFormats: t\n}) {\n return p(\"application/esri3do-SR_prj\", \"prj\", t);\n}\nfunction F(n) {\n return [...t, ...n];\n}\nfunction w(t, n) {\n return F(n).find(n => L(n) === t);\n}\nfunction b(t, n) {\n const r = t.toLowerCase();\n return F(n).find(t => g(t) === r);\n}\nfunction C(t, n) {\n const r = t.toLowerCase();\n return F(n).find(t => j(t).some(t => r.endsWith(t)));\n}\nfunction L(t) {\n return t?.[0];\n}\nfunction g(t) {\n return t?.[1].toLowerCase();\n}\nfunction j(t) {\n return t?.[2].split(\",\").map(t => t.toLowerCase()) ?? [];\n}\nfunction y(t) {\n return t?.[3];\n}\nfunction M(t) {\n return t.tables?.find(t => \"assetMaps\" === t.role);\n}\nexport { M as getAssetMapTable, c as getFileFormatId, e as getFilePickerAcceptType, i as getFilenameFormatId, y as getFormatDescription, j as getFormatExtensions, L as getFormatId, s as getFormatIdMimeType, g as getFormatMimeType, a as getGlbFormatId, d as getGltfFormatId, u as getMimeTypeFormatId, p as getMimeTypeOrFilenameFormatId, m as getPrjFormatId, o as getSupportedExtensions, l as getWorldFileFormatId, r as isFileEditFormat, n as isFileSupported, f as isGlbSupportedEditFormat };"],"mappings":"AAIA,IAAMA,EAAI,CAAC,CAAC,SAAU,2BAA4B,MAAO,EAAE,CAAC,EAC5D,SAASC,EAAE,EAAGA,EAAG,CACf,OAAeC,EAAED,EAAE,KAAM,GAAG,kBAAoB,CAAC,CAAC,GAA3C,IACT,CACA,SAASE,EAAE,EAAGF,EAAG,CACf,GAAI,CAAC,EAAG,MAAO,GACf,IAAME,EAAIC,EAAEH,EAAG,EAAE,kBAAoB,CAAC,CAAC,EACvC,OAAeE,GAAR,MAAa,EAAE,YAAY,SAASA,CAAC,CAC9C,CAiBA,SAASE,EAAE,EAAGC,EAAG,CACf,OAAOC,EAAEC,EAAE,EAAGF,CAAC,CAAC,CAClB,CACA,SAASG,EAAE,EAAGH,EAAG,CACf,OAAOC,EAAEG,EAAE,EAAGJ,CAAC,CAAC,CAClB,CACA,SAASK,EAAE,EAAGL,EAAG,CACf,OAAOM,EAAEC,EAAE,EAAGP,CAAC,CAAC,CAClB,CACA,SAASQ,EAAE,EAAGR,EAAG,CACf,OAAOG,EAAE,EAAE,KAAMH,CAAC,GAAKD,EAAE,EAAE,KAAMC,CAAC,CACpC,CACA,SAASS,EAAE,EAAGT,EAAGU,EAAG,CAClB,OAAOX,EAAE,EAAGW,C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K,CAAC,CACzD,CAIA,SAASE,EAAE,EAAG,CACZ,OAAO,EAAE,QAAQ,KAAKC,GAAqBA,EAAE,OAAlB,WAAsB,CACnD","names":["t","n","C","r","c","u","n","L","b","i","C","s","g","w","c","p","r","a","f","d","l","m","F","t","j","M","t"],"x_google_ignoreList":[0]}