+
    Ki   c                   s    R t ^ RIt^ 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HtHtHt ^ R	IHt ]P,                  P/                  ]P0                  ! 4       R
4      t ! R R]4      tR# )zRun web based gamesN)gettext)urlparse)settings)get_game_by_field)GameConfigError)Runner)datapathlinux	resourcessystem)split_argumentszmedia/default_icon.pngc                   s  a a ] tR t^t o]! R4      t]! R4      t]! R4      .tRRRRR]! R4      R	]! R
4      /.tRRR]! R4      RRRRR	]! R4      /RRR]! R4      RRRRR	]! R4      /RRR]! R4      RRR. RJORRR	]! R4      /RRR]! R4      RRRRR	]! R4      /RRR]! R4      RRRRR	]! R4      /RR R]! R!4      RRRRR	]! R"4      /RR#R]! R$4      RRRRR	]! R%4      /RR&R]! R'4      RRRRR	]! R(4      /RR)R]! R*4      RRRRR	]! R+4      /RR,R]! R-4      RRRRR	]! R.4      /RR/R]! R04      RRRRR	]! R14      /RR2R]! R34      RRRR4R	]! R54      R6R7/RR8R]! R94      RRRRR	]! R:4      R6R7/RR;R]! R<4      RRRRR	]! R=4      /RR>R]! R?4      RR@R	]! RA4      /RRBR]! RC4      RRRRDR	]! RE4      /.t	RFt
RKV 3RG lltRH tRItVtV ;t# )LwebZWebzRuns web based gamesoption	main_fileZtypestringZlabelzFull URL or HTML file pathZhelpz?The full address of the game's web page or path to a HTML file.
fullscreenzOpen in fullscreenZboolZdefaultFzLaunch the game in fullscreen.maximize_windowzOpen window maximizedz&Maximizes the window when game starts.window_sizezWindow sizeZchoice_with_entryZchoices800x600z4The initial size of the game window when not opened.disable_resizingz:Disable window resizing (disables fullscreen and maximize)zYou can't resize this window.	framelesszBorderless windowz The window has no borders/frame.disable_menu_barz&Disable menu bar and default shortcutszWThis also disables default keyboard shortcuts, like copy/paste and fullscreen toggling.disable_scrollingz*Disable page scrolling and hide scrollbarszDisables scrolling on the page.hide_cursorzHide mouse cursorzFPrevents the mouse cursor from showing when hovering above the window.
open_linkszOpen links in game windowzEnable this option if you want clicked links to open inside the game window. By default all links open in your default web browser.remove_marginz&Remove default <body> margin & paddingzJSets margin and padding to zero on &lt;html&gt; and &lt;body&gt; elements.enable_flashzEnable Adobe Flash PlayerzEnable Adobe Flash Player.
user_agentzCustom User-Agent z;Overrides the default User-Agent header used by the runner.ZadvancedTdevtoolszDebug with Developer ToolszLet's you debug the page.external_browserz"Open in web browser (old behavior)z!Launch the game in a web browser.custom_browser_executablezCustom web browser executableZfilezuSelect the executable of a browser on your system.
If left blank, Lutris will launch your default browser (xdg-open).custom_browser_argszWeb browser arguments"$GAME"zCommand line arguments to pass to the executable.
$GAME or $URL inserts the game url.

For Chrome/Chromium app mode use: --app="$GAME"zweb/electron/electronc                s|   < \         SV `  WR 7      pV P                  P                  R4      pV'       d   RMRVR&   V# ))disable_runtimer   Z1Z0ZENABLE_FLASH_PLAYER)Zsuperget_envrunner_configget)selfZos_envr"   envZenable_flash_player	__class__s   &&&  7/usr/lib/python3.14/site-packages/lutris/runners/web.pyr#   Zweb.get_env   s>    gofoF"0044^D,?SS!"
    c                s   V P                   P                  R 4      pV'       g   \        \        R4      4      h\	        V4      P
                  R8g  pV'       gA   \        P                  ! V4      '       g   \        \        R4      V,          4      hRV,           p\        V P                  P                  R4      pV P                  P                  R4      '       d   V P                  P                  R4      ;'       g    RpV P                  P                  R	4      pT;'       g    R
p\        P                  ! V4      P                  RVRV/4      pV.p\        V4       F  pVP!                  V4       K  	  RV/# \"        P$                  ! VP                  R4      4      p	\        P                  ! V	4      '       g   \&        p	V P)                  4       \*        P,                  P/                  \0        P2                  R4      VRVP                  R4      RV	.pR FY  p
V P                  P                  V
4      '       g   K&  V
P5                  RR4      pVP!                  RP7                  VR7      4       K[  	  V P                  P                  R4      '       d<   VP!                  R4       VP!                  V P                  P                  R4      4       V P                  P                  R4      '       d<   VP!                  R4       VP!                  V P                  P                  R4      4       \8        P:                  P=                  4       '       d   VP!                  R4       RVRV P?                  R4      /# )r   z;The web address is empty, 
verify the game's configuration.r   z=The file %s does not exist, 
verify the game's configuration.zfile://Z
configpathr   r   zxdg-openr    r!   ZGAMEZURLcommandZslugzweb/electron/resources/app.asarz--nameZnamez--icon_Z-z
--{option})r   r   z--window-sizer   z--user-agentz--no-sandboxr'   F)
r   r   r   r   r   r   r   r   r   r   ) Zgame_configr%   r   r,   r   Zschemer	   Zpath_existsr   ZconfigZgame_config_idr$   r   ZTemplateZsafe_substituter
   Zappendr   Zget_icon_pathDEFAULT_ICONZget_executableospathjoinr   Z
RUNNER_DIRZreplaceZformatr   ZLINUX_SYSTEMZ
is_flatpakr#   )r&   ZurlZis_urlZ	game_dataZbrowserZargsZ	argumentsr+   ZargZiconZkeyZconverted_opt_names   &           r)   playZweb.play   s   "";/!!$b"cdd #%%+%%c**%a(h&ilo&oppc/C%dkk&@&@,O	 !!"455((,,-HIWWZG%%))*?@D$$9D-==vsESV>WXIiG&y1s# 2 w''&&y}}V'<=!!$''D !GGLL,,.OPMM&!

C !!%%c**%([[c%:"|22:L2MN
  !!-00NN?+NN4--11-@A!!,//NN>*NN4--11,?@((**NN>*7E4<<+>??r*    )Z640x480r   Z1024x768Z1280x720Z	1280x1024Z	1920x1080)TF)Z__name__Z
__module__Z__qualname__Z__firstlineno__r,   Z
human_nameZdescriptionZ	platformsZgame_optionsZrunner_optionsZrunner_executabler#   r1   Z__static_attributes__Z__classdictcell__Z__classcell__)r(   Z__classdict__s   @@r)   r   r      s\    5J*+K5
I kHQ34AWX		
L lQ+,FuA67	
 'Q./FuA>?	
 mQ}%'  yALM	
  (QSTFuA56	
 kQ*+FuA89	
 (Q?@FuAop	
 )QCDFuA78	
 mQ*+FuA^_	
 lQ23FuAV		
 oQ?@FuAbc	
 nQ23FuA23	
 lQ*+HrAST	
 jQ34FuA12	
 (Q;<FuA9:	
 1Q67FAU		
 +Q./HyAB
	
sDNJ 0F@ F@r*   r   )Z__doc__r.   r   r    r,   Zurllib.parser   Zlutrisr   Zlutris.database.gamesr   Zlutris.exceptionsr   Zlutris.runners.runnerr   Zlutris.utilr   r   r   r	   Zlutris.util.stringsr
   r/   r0   r%   r-   r   r2   r*   r)   <module>r3      sT     	    !  3 - ( : : /ww||HLLN,DEa@& a@r*   