//#region \0rolldown/runtime.js
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
	let r = {};
	for (var i in e) t(r, i, {
		get: e[i],
		enumerable: !0
	});
	return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
}, c = (e, i, o, s) => {
	if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
		get: ((e) => i[e]).bind(null, d),
		enumerable: !(s = n(i, d)) || s.enumerable
	});
	return e;
}, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
	value: n,
	enumerable: !0
}) : a, n)), u = {
	BYTE: 1,
	ASCII: 2,
	SHORT: 3,
	LONG: 4,
	RATIONAL: 5,
	SBYTE: 6,
	UNDEFINED: 7,
	SSHORT: 8,
	SLONG: 9,
	SRATIONAL: 10,
	FLOAT: 11,
	DOUBLE: 12,
	IFD: 13,
	LONG8: 16,
	SLONG8: 17,
	IFD8: 18
}, d = {
	[u.BYTE]: 1,
	[u.ASCII]: 1,
	[u.SBYTE]: 1,
	[u.UNDEFINED]: 1,
	[u.SHORT]: 2,
	[u.SSHORT]: 2,
	[u.LONG]: 4,
	[u.SLONG]: 4,
	[u.FLOAT]: 4,
	[u.IFD]: 4,
	[u.RATIONAL]: 8,
	[u.SRATIONAL]: 8,
	[u.DOUBLE]: 8,
	[u.LONG8]: 8,
	[u.SLONG8]: 8,
	[u.IFD8]: 8
};
function f(e) {
	let t = d[e];
	if (t === void 0) throw RangeError(`Invalid field type: ${e}`);
	return t;
}
var p = {
	NewSubfileType: {
		tag: 254,
		type: u.LONG,
		eager: !0
	},
	SubfileType: {
		tag: 255,
		type: u.SHORT,
		eager: !0
	},
	ImageWidth: {
		tag: 256,
		type: u.SHORT,
		eager: !0
	},
	ImageLength: {
		tag: 257,
		type: u.SHORT,
		eager: !0
	},
	BitsPerSample: {
		tag: 258,
		type: u.SHORT,
		isArray: !0,
		eager: !0
	},
	Compression: {
		tag: 259,
		type: u.SHORT,
		eager: !0
	},
	PhotometricInterpretation: {
		tag: 262,
		type: u.SHORT,
		eager: !0
	},
	Threshholding: {
		tag: 263,
		type: u.SHORT
	},
	CellWidth: {
		tag: 264,
		type: u.SHORT
	},
	CellLength: {
		tag: 265,
		type: u.SHORT
	},
	FillOrder: {
		tag: 266,
		type: u.SHORT
	},
	DocumentName: {
		tag: 269,
		type: u.ASCII
	},
	ImageDescription: {
		tag: 270,
		type: u.ASCII
	},
	Make: {
		tag: 271,
		type: u.ASCII
	},
	Model: {
		tag: 272,
		type: u.ASCII
	},
	StripOffsets: {
		tag: 273,
		type: u.SHORT,
		isArray: !0
	},
	Orientation: {
		tag: 274,
		type: u.SHORT
	},
	SamplesPerPixel: {
		tag: 277,
		type: u.SHORT,
		eager: !0
	},
	RowsPerStrip: {
		tag: 278,
		type: u.SHORT,
		eager: !0
	},
	StripByteCounts: {
		tag: 279,
		type: u.LONG,
		isArray: !0
	},
	MinSampleValue: {
		tag: 280,
		type: u.SHORT,
		isArray: !0
	},
	MaxSampleValue: {
		tag: 281,
		type: u.SHORT,
		isArray: !0
	},
	XResolution: {
		tag: 282,
		type: u.RATIONAL
	},
	YResolution: {
		tag: 283,
		type: u.RATIONAL
	},
	PlanarConfiguration: {
		tag: 284,
		type: u.SHORT,
		eager: !0
	},
	PageName: {
		tag: 285,
		type: u.ASCII
	},
	XPosition: {
		tag: 286,
		type: u.RATIONAL
	},
	YPosition: {
		tag: 287,
		type: u.RATIONAL
	},
	FreeOffsets: {
		tag: 288,
		type: u.LONG
	},
	FreeByteCounts: {
		tag: 289,
		type: u.LONG
	},
	GrayResponseUnit: {
		tag: 290,
		type: u.SHORT
	},
	GrayResponseCurve: {
		tag: 291,
		type: u.SHORT,
		isArray: !0
	},
	T4Options: {
		tag: 292,
		type: u.LONG
	},
	T6Options: {
		tag: 293,
		type: u.LONG
	},
	ResolutionUnit: {
		tag: 296,
		type: u.SHORT
	},
	PageNumber: {
		tag: 297,
		type: u.SHORT,
		isArray: !0
	},
	TransferFunction: {
		tag: 301,
		type: u.SHORT,
		isArray: !0
	},
	Software: {
		tag: 305,
		type: u.ASCII
	},
	DateTime: {
		tag: 306,
		type: u.ASCII
	},
	Artist: {
		tag: 315,
		type: u.ASCII
	},
	HostComputer: {
		tag: 316,
		type: u.ASCII
	},
	Predictor: {
		tag: 317,
		type: u.SHORT
	},
	WhitePoint: {
		tag: 318,
		type: u.RATIONAL,
		isArray: !0
	},
	PrimaryChromaticities: {
		tag: 319,
		type: u.RATIONAL,
		isArray: !0
	},
	ColorMap: {
		tag: 320,
		type: u.SHORT,
		isArray: !0
	},
	HalftoneHints: {
		tag: 321,
		type: u.SHORT,
		isArray: !0
	},
	TileWidth: {
		tag: 322,
		type: u.SHORT,
		eager: !0
	},
	TileLength: {
		tag: 323,
		type: u.SHORT,
		eager: !0
	},
	TileOffsets: {
		tag: 324,
		type: u.LONG,
		isArray: !0
	},
	TileByteCounts: {
		tag: 325,
		type: u.SHORT,
		isArray: !0
	},
	InkSet: {
		tag: 332,
		type: u.SHORT
	},
	InkNames: {
		tag: 333,
		type: u.ASCII
	},
	NumberOfInks: {
		tag: 334,
		type: u.SHORT
	},
	DotRange: {
		tag: 336,
		type: u.BYTE,
		isArray: !0
	},
	TargetPrinter: {
		tag: 337,
		type: u.ASCII
	},
	ExtraSamples: {
		tag: 338,
		type: u.BYTE,
		isArray: !0,
		eager: !0
	},
	SampleFormat: {
		tag: 339,
		type: u.SHORT,
		isArray: !0,
		eager: !0
	},
	SMinSampleValue: {
		tag: 340,
		isArray: !0
	},
	SMaxSampleValue: {
		tag: 341,
		isArray: !0
	},
	TransferRange: {
		tag: 342,
		type: u.SHORT,
		isArray: !0
	},
	JPEGProc: {
		tag: 512,
		type: u.SHORT
	},
	JPEGInterchangeFormat: {
		tag: 513,
		type: u.LONG
	},
	JPEGInterchangeFormatLngth: {
		tag: 514,
		type: u.LONG
	},
	JPEGRestartInterval: {
		tag: 515,
		type: u.SHORT
	},
	JPEGLosslessPredictors: {
		tag: 517,
		type: u.SHORT,
		isArray: !0
	},
	JPEGPointTransforms: {
		tag: 518,
		type: u.SHORT,
		isArray: !0
	},
	JPEGQTables: {
		tag: 519,
		type: u.LONG,
		isArray: !0
	},
	JPEGDCTables: {
		tag: 520,
		type: u.LONG,
		isArray: !0
	},
	JPEGACTables: {
		tag: 521,
		type: u.LONG,
		isArray: !0
	},
	YCbCrCoefficients: {
		tag: 529,
		type: u.RATIONAL,
		isArray: !0
	},
	YCbCrSubSampling: {
		tag: 530,
		type: u.SHORT,
		isArray: !0
	},
	YCbCrPositioning: {
		tag: 531,
		type: u.SHORT
	},
	ReferenceBlackWhite: {
		tag: 532,
		type: u.LONG,
		isArray: !0
	},
	Copyright: {
		tag: 33432,
		type: u.ASCII
	},
	BadFaxLines: { tag: 326 },
	CleanFaxData: { tag: 327 },
	ClipPath: { tag: 343 },
	ConsecutiveBadFaxLines: { tag: 328 },
	Decode: { tag: 433 },
	DefaultImageColor: { tag: 434 },
	Indexed: { tag: 346 },
	JPEGTables: {
		tag: 347,
		isArray: !0,
		eager: !0
	},
	StripRowCounts: {
		tag: 559,
		isArray: !0
	},
	SubIFDs: {
		tag: 330,
		isArray: !0
	},
	XClipPathUnits: { tag: 344 },
	YClipPathUnits: { tag: 345 },
	ApertureValue: { tag: 37378 },
	ColorSpace: { tag: 40961 },
	DateTimeDigitized: { tag: 36868 },
	DateTimeOriginal: { tag: 36867 },
	ExifIFD: {
		tag: 34665,
		name: "Exif IFD",
		type: u.LONG
	},
	ExifVersion: { tag: 36864 },
	ExposureTime: { tag: 33434 },
	FileSource: { tag: 41728 },
	Flash: { tag: 37385 },
	FlashpixVersion: { tag: 40960 },
	FNumber: { tag: 33437 },
	ImageUniqueID: { tag: 42016 },
	LightSource: { tag: 37384 },
	MakerNote: { tag: 37500 },
	ShutterSpeedValue: { tag: 37377 },
	UserComment: { tag: 37510 },
	IPTC: { tag: 33723 },
	CZ_LSMINFO: { tag: 34412 },
	ICCProfile: {
		tag: 34675,
		name: "ICC Profile"
	},
	XMP: { tag: 700 },
	GDAL_METADATA: { tag: 42112 },
	GDAL_NODATA: {
		tag: 42113,
		type: u.ASCII,
		eager: !0
	},
	Photoshop: { tag: 34377 },
	ModelPixelScale: {
		tag: 33550,
		type: u.DOUBLE,
		isArray: !0,
		eager: !0
	},
	ModelTiepoint: {
		tag: 33922,
		type: u.DOUBLE,
		isArray: !0,
		eager: !0
	},
	ModelTransformation: {
		tag: 34264,
		type: u.DOUBLE,
		isArray: !0,
		eager: !0
	},
	GeoKeyDirectory: {
		tag: 34735,
		type: u.SHORT,
		isArray: !0,
		eager: !0
	},
	GeoDoubleParams: {
		tag: 34736,
		type: u.DOUBLE,
		isArray: !0,
		eager: !0
	},
	GeoAsciiParams: {
		tag: 34737,
		type: u.ASCII,
		eager: !0
	},
	LercParameters: {
		tag: 50674,
		eager: !0
	}
}, m = {}, h = {};
function g(e, t, n, r = !1, i = !1) {
	m[t] = e, h[e] = {
		tag: e,
		name: t,
		type: typeof n == "string" ? u[n] : n,
		isArray: r,
		eager: i
	};
}
for (let [e, t] of Object.entries(p)) {
	let n = t;
	g(n.tag, n.name || e, n.type, n.isArray, n.eager);
}
function _(e) {
	return typeof e == "number" ? e : m[e];
}
var v = {
	WhiteIsZero: 0,
	BlackIsZero: 1,
	RGB: 2,
	Palette: 3,
	TransparencyMask: 4,
	CMYK: 5,
	YCbCr: 6,
	CIELab: 8,
	ICCLab: 9
}, y = {
	Unspecified: 0,
	Assocalpha: 1,
	Unassalpha: 2
}, b = {
	Version: 0,
	AddCompression: 1
}, x = {
	None: 0,
	Deflate: 1,
	Zstandard: 2
}, S = {
	1024: "GTModelTypeGeoKey",
	1025: "GTRasterTypeGeoKey",
	1026: "GTCitationGeoKey",
	2048: "GeographicTypeGeoKey",
	2049: "GeogCitationGeoKey",
	2050: "GeogGeodeticDatumGeoKey",
	2051: "GeogPrimeMeridianGeoKey",
	2052: "GeogLinearUnitsGeoKey",
	2053: "GeogLinearUnitSizeGeoKey",
	2054: "GeogAngularUnitsGeoKey",
	2055: "GeogAngularUnitSizeGeoKey",
	2056: "GeogEllipsoidGeoKey",
	2057: "GeogSemiMajorAxisGeoKey",
	2058: "GeogSemiMinorAxisGeoKey",
	2059: "GeogInvFlatteningGeoKey",
	2060: "GeogAzimuthUnitsGeoKey",
	2061: "GeogPrimeMeridianLongGeoKey",
	2062: "GeogTOWGS84GeoKey",
	3072: "ProjectedCSTypeGeoKey",
	3073: "PCSCitationGeoKey",
	3074: "ProjectionGeoKey",
	3075: "ProjCoordTransGeoKey",
	3076: "ProjLinearUnitsGeoKey",
	3077: "ProjLinearUnitSizeGeoKey",
	3078: "ProjStdParallel1GeoKey",
	3079: "ProjStdParallel2GeoKey",
	3080: "ProjNatOriginLongGeoKey",
	3081: "ProjNatOriginLatGeoKey",
	3082: "ProjFalseEastingGeoKey",
	3083: "ProjFalseNorthingGeoKey",
	3084: "ProjFalseOriginLongGeoKey",
	3085: "ProjFalseOriginLatGeoKey",
	3086: "ProjFalseOriginEastingGeoKey",
	3087: "ProjFalseOriginNorthingGeoKey",
	3088: "ProjCenterLongGeoKey",
	3089: "ProjCenterLatGeoKey",
	3090: "ProjCenterEastingGeoKey",
	3091: "ProjCenterNorthingGeoKey",
	3092: "ProjScaleAtNatOriginGeoKey",
	3093: "ProjScaleAtCenterGeoKey",
	3094: "ProjAzimuthAngleGeoKey",
	3095: "ProjStraightVertPoleLongGeoKey",
	3096: "ProjRectifiedGridAngleGeoKey",
	4096: "VerticalCSTypeGeoKey",
	4097: "VerticalCitationGeoKey",
	4098: "VerticalDatumGeoKey",
	4099: "VerticalUnitsGeoKey"
}, C = {};
for (let [e, t] of Object.entries(S)) C[t] = parseInt(e, 10);
//#endregion
export { S as a, _ as c, s as d, l as f, u as i, h as l, x as n, f as o, b as r, v as s, y as t, o as u };
