1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // node_modules/@arcgis/core/core/byteSizeEstimations.js
- function n(n2) {
- return 32 + n2.length;
- }
- function t() {
- return 16;
- }
- function r(r2) {
- if (!r2)
- return 0;
- let e2 = 32;
- for (const o2 in r2)
- if (r2.hasOwnProperty(o2)) {
- const c = r2[o2];
- switch (typeof c) {
- case "string":
- e2 += n(c);
- break;
- case "number":
- e2 += t();
- break;
- case "boolean":
- e2 += 4;
- }
- }
- return e2;
- }
- function e(n2, t2) {
- return 32 + n2.length * t2;
- }
- var o;
- !function(n2) {
- n2[n2.KILOBYTES = 1024] = "KILOBYTES", n2[n2.MEGABYTES = 1048576] = "MEGABYTES", n2[n2.GIGABYTES = 1073741824] = "GIGABYTES";
- }(o || (o = {}));
- export {
- r,
- e,
- o
- };
- //# sourceMappingURL=chunk-WR32EHFC.js.map
|