f="/opt/wevads-arsenal/public/ethica-app-v3.html"
c=open(f).read()
# Add Send Engine nav before Consents
old='
'
new_nav='
⚡ Send EngineNEW
\n' + old
if "go('send')" not in c:
c = c.replace(old, new_nav)
print("NAV_ADDED")
else:
print("NAV_EXISTS")
# Add title mapping
if "Send Engine" not in c:
c = c.replace("exports:'\\u2193 Exports'", "exports:'\\u2193 Exports',send:'\\u26a1 Send Engine'")
print("TITLE_ADDED")
open(f,"w").write(c)
print(f"SIZE:{len(c)}B")