local k=import("\046\046\047\116\121\112\101\075\101\121")local function L(L)local r=type(L)if r=="\117\115\101\114\100\097\116\097"then local r=getmetatable(L)if r==nil then return"\117\115\101\114\100\097\116\097"end if r[k]~=nil then return r[k]end end return r end return L
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