+
    toj                        ^ RI t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHtHtHtHtHtHtHtHtHtHtHtHtH t H!t!H"t"H#t#H$t$H%t%H&t&H't' ^ RI(H)t) ^ RI*H+t, ] PZ                  ! ])P\                  R7       ]R R l4       t/]! RR]/R7      t0]0Pc                  ]RR.R. R!ORR.R7       ]0Pe                  ]P                  RR7       ]0Pe                  ]'P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]$P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]%P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]"P                  RR7       ]0Pe                  ]#P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ]!P                  RR7       ]0Pe                  ]P                  RR7       ]0Pe                  ] P                  RR7       ]0Pe                  ]&P                  RR7       ]0Pe                  ]RR7       ]]0Pf                  n        ]0Pc                  ]
4       R R lt4]0Pk                  ]]44       ]0Pm                  R4      R R  l4       t7R# )"    N)asynccontextmanagerFastAPI)CORSMiddleware)RateLimitExceeded)SlowAPIMiddleware)router)limiter)JSONResponse)Request)adminalertsanalysisauth	companiescompetitors	contractsadmin_api_keys
alvara_apicourt_filings	dashboarddregraphinsolvenciesintelligencepeople	processessearchsettings_apiusers)settings)	scheduler)levelc                $    V ^8  d   QhR\         /# )   appr   )formats   "app/main.py__annotate__r)      s              c                   "   \         P                  ! 4       G R j  xL
  \         P                  ! 4        R 5x  \         P                  ! 4        R #  L55i)N)scheduler_modulereap_stale_running_on_startupstartshutdown)r&   s   &r(   lifespanr0      s9      
8
8
:::	 ;s   AA6AzSegunor Intel Gridz0.1.0)titleversionr0   zhttps://publicacoes.mj.ptzhttp://publicacoes.mj.ptFzContent-TypezX-Intel-Token)allow_originsallow_credentialsallow_methodsallow_headersz/api)prefixc                <    V ^8  d   QhR\         R\        R\        /# )r%   requestexcreturn)r   r   r   )r'   s   "r(   r)   r)   T   s"      w 5F < r*   c                 H   "   \        R RRVP                   2/RR/R7      # 5i)i  detailzrate limit exceeded: zRetry-After60)status_codecontentheaders)r   r=   )r9   r:   s   &&r(   _rate_limit_handlerrB   T   s1     23::,?@% s    "z/api/healthc                F    V ^8  d   QhR\         \        \        3,          /# )r%   r;   )dictstr)r'   s   "r(   r)   r)   `   s      d38n r*   c                     "   R R/# 5i)statusok rI   r*   r(   healthrJ   _   s     ds   )GETPOSTOPTIONS)8logging
contextlibr   fastapir   fastapi.middleware.corsr   slowapi.errorsr   slowapi.middlewarer   
app.api.v1r	   	v1_routerapp.rate_limitr
   starlette.responsesr   r   app.apir   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    
app.configr!   app.jobsr"   r,   basicConfig	LOG_LEVELr0   r&   add_middlewareinclude_routerstaterB   add_exception_handlergetrJ   rI   r*   r(   <module>rb      s    *  2 , 0 * " ,         2   (,, -     ('HM   #" ,!?3  	   4;;v  .   5<<  /   9##F  3   9##F  3   9##F  3   5<<  /   6==  0   3::f  -   6==  0   ;%%f  5   8??6  2   9##F  3   <&&v  6   6==  0   :$$V  4   >((  8   <&&v  6   =''  7   5<<  /   <&&v  6   9V  , 		    $ %   +-@ A  r*   