local c=import("\046\046\047\116\121\112\101\075\101\121")local function D(D)local d=type(D)if d=="\117\115\101\114\100\097\116\097"then local d=getmetatable(D)if d==nil then return"\117\115\101\114\100\097\116\097"end if d[c]~=nil then return d[c]end end return d end return D
local typeKey = import("../typeKey")

local function typeof(object)
	local realType = type(object)

	if realType == "userdata" then
		local metatable = getmetatable(object)

		if metatable == nil then
			return "userdata"
		end

		if metatable[typeKey] ~= nil then
			return metatable[typeKey]
		end
	end

	return realType
end

return typeof