local q=require(script.Parent.Parent.launch)local O=require(script.Parent.config.patterns)local e=require(script.Parent.Animations.index)q.init()local N=O.patterns local function g(q,O)for O,e in ipairs(string.split(O," "))do for O,N in ipairs(N)do local g={e:match(N.pattern)}if#g>0 then N.handler(q,table.unpack(g))break end end end end local function o(q,O)local e=string.split(O," ")for O,e in ipairs(e)do local g=false for O,N in ipairs(N)do local o={e:match(N.pattern)}if#o>0 then N.handler(q,table.unpack(o))g=true break end end if not g then if e==""then print("\067\097\110\110\111\116 \117\115\101 \083\112\097\099\101\115 \097\115 \067\108\097\115\115\101\115")else print("\078\111 \109\097\116\099\104\105\110\103 \112\097\116\116\101\114\110 \102\111\117\110\100 \102\111\114\058 "..e)end end end end return{applyStyles=o}
local init = require(script.Parent.Parent.launch)
local patternsModule = require(script.Parent.config.patterns)
local index = require(script.Parent.Animations.index)

init.init()

local registeredPatterns = patternsModule.patterns

local function applyStaticStyles(guiElement, className)
    for _, class in ipairs(string.split(className, " ")) do
        for _, entry in ipairs(registeredPatterns) do
            local matches = {class:match(entry.pattern)}
            if #matches > 0 then
                entry.handler(guiElement, table.unpack(matches))
                break
            end
        end
    end
end

local function applyStyles(guiElement, className)
    local classes = string.split(className, " ")

    for _, class in ipairs(classes) do
        local matched = false
        for _, entry in ipairs(registeredPatterns) do
            local matches = {class:match(entry.pattern)}
            if #matches > 0 then
                entry.handler(guiElement, table.unpack(matches))
                matched = true
                break
            end
        end
        
        if not matched then
            if class == "" then
                print("Cannot use Spaces as Classes")
            else
                print("No matching pattern found for: " .. class)
            end
        end
    end
end

return {
    applyStyles = applyStyles,
}
