6 months before the application, if someone discloses your patent secret without authorization, as long as you have evidence to prove it, then the patent you applied for will not lose its novelty and can be licensed.
If others apply first, it will be difficult.