local S=require("\064\115\114\099\047\099\108\105\101\110\116\047\112\114\111\099\101\115\115")local H=require("\064\115\114\099\047\115\101\114\118\101\114\047\105\100\101\110\116\105\102\105\101\114\115")local a=require("\064\115\114\099\047\100\097\116\097\077\111\100\101\108\084\114\101\101")local R=(require("\064\115\114\099\047\108\111\103\103\101\114")).new("\099\108\105\101\110\116")local f=require("\064\115\114\099\047\108\111\103\083\116\114\105\110\103\115")return function()local g=a()if not g.success then R:warn(string.format(f.errors.TREE_FAILURE,g.err))print(g.trace)return R:fatal("\101\120\105\116\105\110\103 \098\114\105\100\103\101\110\101\116\050")end S.init(g.value)H.init(g.value)R:log(f.logs.SERIAL_LOADED)end
local process = require("@src/client/process")
local identifiers = require("@src/server/identifiers")
local dataModelTree = require("@src/dataModelTree")
local logger = require("@src/logger").new("client")
local logStrings = require("@src/logStrings")

return function()
	local treeRes = dataModelTree()
	if not treeRes.success then
		logger:warn(string.format(logStrings.errors.TREE_FAILURE, treeRes.err))
		print(treeRes.trace)
		return logger:fatal("exiting bridgenet2")
	end

	process.init(treeRes.value)
	identifiers.init(treeRes.value)

	logger:log(logStrings.logs.SERIAL_LOADED)
end
