Ë
    !täiÙ-  ã                   ó¦   — d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZmZ g d¢Z G d„ de«      Z G d„ d	e«      Z G d
„ de«      Zy)zá
    pygments.lexers.actionscript
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for ActionScript and MXML.

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚbygroupsÚusingÚthisÚwordsÚdefault)	ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚ
Whitespace)ÚActionScriptLexerÚActionScript3LexerÚ	MxmlLexerc                   ó  — e Zd ZdZdZddgZdgZg d¢ZdZdZ	e
j                  Zd	d
efdej                  fdej                   fdej$                  fdefdef edd¬«      ef edd¬«      ej.                  fdej0                  f edd¬«      ej4                  f edd¬«      ej6                  fdej8                  fdej<                  fdej>                  fdej@                  fdejB                  fdej                  fgiZ"d„ Z#y)r   z'
    For ActionScript source code.
    ÚActionScriptÚactionscriptÚasú*.as)zapplication/x-actionscriptztext/x-actionscriptztext/actionscriptz*https://en.wikipedia.org/wiki/ActionScriptz0.9Úrootú\s+ú//.*?\nú	/\*.*?\*/z /(\\\\|\\[^\\]|[^/\\\n])*/[gim]*z[~^*!%&<>|+=:;,/?\\-]+z[{}\[\]();.]+)Úcaser   ÚforÚeachÚinÚwhileÚdoÚbreakÚreturnÚcontinueÚifÚelseÚthrowÚtryÚcatchÚvarÚwithÚnewÚtypeofÚ	argumentsÚ
instanceofr   Úswitchz\b)Úsuffix)ÚclassÚpublicÚfinalÚinternalÚnativeÚoverrideÚprivateÚ	protectedÚstaticÚimportÚextendsÚ
implementsÚ	interfaceÚ	intrinsicr%   ÚsuperÚdynamicÚfunctionÚconstÚgetÚ	namespaceÚpackageÚsetz9(true|false|null|NaN|Infinity|-Infinity|undefined|Void)\b)ÆÚAccessibilityÚAccessibilityPropertiesÚActionScriptVersionÚActivityEventÚAntiAliasTypeÚApplicationDomainÚAsBroadcasterÚArrayÚAsyncErrorEventÚ	AVM1MovieÚBevelFilterÚBitmapÚ
BitmapDataÚBitmapDataChannelÚBitmapFilterÚBitmapFilterQualityÚBitmapFilterTypeÚ	BlendModeÚ
BlurFilterÚBooleanÚ	ByteArrayÚCameraÚCapabilitiesÚ	CapsStyleÚClassÚColorÚColorMatrixFilterÚColorTransformÚContextMenuÚContextMenuBuiltInItemsÚContextMenuEventÚContextMenuItemÚConvultionFilterÚCSMSettingsÚ	DataEventÚDateÚDefinitionErrorÚDeleteObjectSampleÚ
DictionaryÚDisplacmentMapFilterÚDisplayObjectÚDisplacmentMapFilterModeÚDisplayObjectContainerÚDropShadowFilterÚEndianÚEOFErrorÚErrorÚ
ErrorEventÚ	EvalErrorÚEventÚEventDispatcherÚ
EventPhaseÚExternalInterfaceÚ
FileFilterÚFileReferenceÚFileReferenceListÚFocusDirectionÚ
FocusEventÚFontÚ	FontStyleÚFontTypeÚ
FrameLabelÚFullScreenEventÚFunctionÚ
GlowFilterÚGradientBevelFilterÚGradientGlowFilterÚGradientTypeÚGraphicsÚGridFitTypeÚHTTPStatusEventÚIBitmapDrawableÚID3InfoÚ
IDataInputÚIDataOutputÚ,IDynamicPropertyOutputIDynamicPropertyWriterÚIEventDispatcherÚIExternalizableÚIllegalOperationErrorÚIMEÚIMEConversionModeÚIMEEventÚintÚInteractiveObjectÚInterpolationMethodÚInvalidSWFErrorÚInvokeEventÚIOErrorÚIOErrorEventÚ
JointStyleÚKeyÚKeyboardÚKeyboardEventÚKeyLocationÚLineScaleModeÚLoaderÚLoaderContextÚ
LoaderInfoÚLoadVarsÚLocalConnectionÚLocaleÚMathÚMatrixÚMemoryErrorÚ
MicrophoneÚ
MorphShapeÚMouseÚ
MouseEventÚ	MovieClipÚMovieClipLoaderÚ	NamespaceÚNetConnectionÚNetStatusEventÚ	NetStreamÚNewObjectSampler   ÚObjectÚObjectEncodingÚPixelSnappingÚPointÚPrintJobÚPrintJobOptionsÚPrintJobOrientationÚProgressEventÚProxyÚQNameÚ
RangeErrorÚ	RectangleÚReferenceErrorÚRegExpÚ	ResponderÚSampleÚSceneÚScriptTimeoutErrorÚSecurityÚSecurityDomainÚSecurityErrorÚSecurityErrorEventÚSecurityPanelÚ	SelectionÚShapeÚSharedObjectÚSharedObjectFlushStatusÚSimpleButtonÚSocketÚSoundÚSoundChannelÚSoundLoaderContextÚ
SoundMixerÚSoundTransformÚSpreadMethodÚSpriteÚ
StackFrameÚStackOverflowErrorÚStageÚ
StageAlignÚStageDisplayStateÚStageQualityÚStageScaleModeÚ
StaticTextÚStatusEventr   Ú
StyleSheetÚ
SWFVersionÚ	SyncEventÚSyntaxErrorÚSystemÚTextColorTypeÚ	TextFieldÚTextFieldAutoSizeÚTextFieldTypeÚ
TextFormatÚTextFormatAlignÚTextLineMetricsÚTextRendererÚTextSnapshotÚTimerÚ
TimerEventÚ	TransformÚ	TypeErrorÚuintÚURIErrorÚ	URLLoaderÚURLLoaderDataFormatÚ
URLRequestÚURLRequestHeaderÚURLRequestMethodÚ	URLStreamÚURLVariabelesÚVerifyErrorÚVideoÚXMLÚXMLDocumentÚXMLListÚXMLNodeÚXMLNodeTypeÚ	XMLSocketÚXMLUI)Ú	decodeURIÚdecodeURIComponentÚ	encodeURIÚescapeÚevalÚisFiniteÚisNaNÚ	isXMLNameÚclearIntervalÚ	fscommandÚgetTimerÚgetURLÚ
getVersionÚ
parseFloatÚparseIntÚsetIntervalÚtraceÚupdateAfterEventÚunescapeú[$a-zA-Z_]\w*ú%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?ú0x[0-9a-f]+ú[0-9]+ú"(\\\\|\\[^\\]|[^"\\])*"ú'(\\\\|\\[^\\]|[^'\\])*'c                  ó   — y)zÈThis is only used to disambiguate between ActionScript and
        ActionScript3. We return 0 here; the ActionScript3 lexer will match
        AS3 variable definitions and that will hopefully suffice.r   © ©Útexts    úk/Volumes/fast/ai/experiments/MLX_z-image/.venv/lib/python3.12/site-packages/pygments/lexers/actionscript.pyÚanalyse_textzActionScriptLexer.analyse_textp   s   € ð ó    N)$Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚurlÚversion_addedÚreÚDOTALLÚflagsr   r
   ÚSingleÚ	Multiliner   ÚRegexr   r   r   r   ÚDeclarationÚConstantr   ÚBuiltinr‰   ÚOtherr   ÚFloatÚHexÚIntegerÚDoubleÚtokensr,  r(  r-  r+  r   r      st  „ ñð €DØ˜tÐ$€GØ�€Iò&€Ià
6€CØ€Mà�I‰I€EàØ�ZÐ Ø˜Ÿ™Ð(Ø˜7×,Ñ,Ð-Ø0°&·,±,Ð?Ø&¨Ð1Ø˜{Ð+Ùð ð #(ô	)ð
 ðñ ð /ð 8=ô	>ð
 × Ñ ð"ð JØ×Ñðáð 'ðN "'ôO'(ðP �\‰\ðQ(ñR ð ð %*ô	+ð
 �]‰]ðð ˜tŸz™zÐ*Ø5°v·|±|ÐDØ˜VŸZ™ZÐ(Ø˜Ÿ™Ð'Ø(¨&¯-©-Ð8Ø(¨&¯-©-Ð8ðSJ
ðL€Fó\r-  r   c                   óø  — e Zd ZdZdZdZddgZdgZg d¢ZdZ	d	Z
e
d
z   Zej                  ej                  z  Zdefde
z   dz    eej&                  ej*                  ee«      dfde
z   dz   ez   dz    eej&                  eeeeeej2                  «      fde
z   dz    eeeej4                  e«      fdez   dz    eeeej2                  ee«      fdej8                  fdej:                  fdej>                  fde
z   dz    eeej@                  «      fdefdej&                  fdejB                  fdej*                  fe
efde"jF                  fde"jH                  fde"jJ                  fd ejL                  fd!ej8                  fd"efgdefd#e
z   dz   ez   d$z    eeeeeeeej2                  e«      d%fd&ed'fgd(ez   d)z    eeeeej2                  «      d*fded*f e'd*«      gd+ eee e(e)«      ee«      d,fd-ed,f e'd,«      gd.œZ*d/„ Z+y0)1r   z)
    For ActionScript 3 source code.
    zActionScript 3zNhttps://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.htmlÚactionscript3Úas3r   )zapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3z0.11r!  z(?:\.<\w+>)?r   z(function\s+)(z
)(\s*)(\()Ú
funcparamsz(var|const)(\s+)(z)(\s*)(:)(\s*)(Ú)z(import|package)(\s+)((?:z|\.)+)(\s*)z(new)(\s+)(r   r   z /(\\\\|\\[^\\]|[^\\\n])*/[gisx]*z(\.)(z™(case|default|for|each|in|while|do|break|return|continue|if|else|throw|try|catch|with|new|typeof|arguments|instanceof|this|switch|import|include|as|is)\bz´(class|public|final|internal|native|override|private|protected|static|import|extends|implements|interface|intrinsic|return|super|dynamic|function|const|get|namespace|package|set)\bz9(true|false|null|NaN|Infinity|-Infinity|undefined|void)\bzË(decodeURI|decodeURIComponent|encodeURI|escape|eval|isFinite|isNaN|isXMLName|clearInterval|fscommand|getTimer|getURL|getVersion|isFinite|parseFloat|parseInt|setInterval|trace|updateAfterEvent|unescape)\br"  r#  r$  r%  r&  z[~^*!%&<>|+=:;,/?\\{}\[\]().-]+z(\s*)(\.\.\.)?(z	|\*)(\s*)Údefvalz\)Útypez(\s*)(:)(\s*)(z|\*)z#pop:2z(=)(\s*)([^(),]+)(\s*)(,?)ú#popÚ,)r   rJ  rM  rL  c                 ó2   — t        j                  d| «      ryy)Nz\bimport\s+flash\.gš™™™™™É?r   )r8  Úsearchr)  s    r+  r,  zActionScript3Lexer.analyse_textÅ   s   € Ü�9‰9Ð*¨DÔ1ØØr-  N),r.  r/  r0  r1  r2  r6  r3  r4  r5  r7  Ú
identifierÚtypeidentifierr8  r9  Ú	MULTILINEr:  r   r   r   r>  r   r‰   r	   r   r   ÚTyper¸   r
   r;  r<  r   r=  Ú	Attributer?  r   rB  rC  rD  rE  r   r   r   rF  r,  r(  r-  r+  r   r   v   så  „ ñð €DØ
Z€CØ Ð&€GØ�€Iò'€Ià€Mà!€JØ /Ñ1€Nà�I‰I˜Ÿ™Ñ$€Eð �ZÐ Ø Ñ+¨mÑ;Ù�g×)Ñ)¨4¯=©=¸$ÀÓIØðð " JÑ.Ð1CÑCØñØ"ñ#á�g×)Ñ)¨:°t¸ZÈÐV`Ø—l‘ló$ð%ð *¨JÑ6¸ÑGÙ�g˜z¨4¯>©>¸:ÓFðHà˜nÑ,¨}Ñ<Ù�g˜z¨7¯<©<¸ÀXÓNðPà˜Ÿ™Ð(Ø˜7×,Ñ,Ð-Ø0°&·,±,Ð?Ø˜
Ñ" TÑ)©8°H¸d¿n¹nÓ+MÐNð/ð ððDð × Ñ ð"ð JØ×Ñððð "Ÿ]™]ð,ð ˜ÐØ5°v·|±|ÐDØ˜VŸZ™ZÐ(Ø˜Ÿ™Ð'Ø(¨&¯-©-Ð8Ø(¨&¯-©-Ð8Ø/°Ð:ðK&
ðP �ZÐ Ø *Ñ,Ð/AÑAØñØ*ñ+á�j +¨t°ZÀÈ:Ø—l‘l Jó0Ø19ð;ð �H˜fÐ%ð
ð  Ñ/°'Ñ9Ù�j (¨J¸¿¹ÓEÀxðQà�T˜8Ð$Ù�HÓð	
ð +Ù�h 
©E°$«K¸ÀXÓNÐPVðXà�8˜VÐ$Ù�F‹Oð	
ñm<€Fó|r-  r   c            	       óŒ  — e Zd ZdZej
                  ej                  z  ZdZdgZ	dgZ
dZdZdefdej                  fd	 ee ee«      e«      fd
edfdej*                  fdej*                  fdej,                  dfdej,                  fgdefdedfdefgdefdej0                  dfdej,                  dfgdefdedfdedfdedfgdœZy)r   zc
    For MXML markup.
    Nested AS3 in <script> tags is highlighted by the appropriate lexer.
    ÚMXMLÚmxmlz*.mxmlz"https://en.wikipedia.org/wiki/MXMLz1.1z[^<&]+z&\S*?;z(\<\!\[CDATA\[)(.*?)(\]\]\>)z<!--Úcommentz	<\?.*?\?>z<![^>]*>z<\s*[\w:.-]+Útagz<\s*/\s*[\w:.-]+\s*>z[^-]+z-->rN  Ú-r   z[\w.:-]+\s*=Úattrz/?\s*>z".*?"z'.*?'z[^\s>]+)r   rZ  r[  r]  N)r.  r/  r0  r1  r8  rT  r9  r:  r2  r3  r4  r6  r7  r	   r   ÚEntityr   r   r   r   r
   ÚPreprocÚTagr   rV  rF  r(  r-  r+  r   r   Ë   s)  „ ñð �L‰L˜2Ÿ9™9Ñ$€EØ€DØˆh€GØ�
€IØ
.€CØ€Mð �tÐØ˜Ÿ™Ð$Ø,Ù�f™eÐ$6Ó7¸Ó@ðBà�W˜iÐ(Ø˜7Ÿ?™?Ð+Ø˜Ÿ™Ð)Ø˜dŸh™h¨Ð.Ø$ d§h¡hÐ/ð

ð �gÐØ�G˜VÐ$Ø�'ˆNð
ð �ZÐ Ø˜dŸn™n¨fÐ5Ø˜Ÿ™ &Ð)ð
ð �ZÐ Ø�f˜fÐ%Ø�f˜fÐ%Ø˜ Ð(ð	
ñ-�Fr-  r   )r1  r8  Úpygments.lexerr   r   r   r   r   r   Úpygments.tokenr	   r
   r   r   r   r   r   r   r   Ú__all__r   r   r   r(  r-  r+  Ú<module>rd     sV   ðñó 
ç L× L÷$÷ $õ $ò C€ô`˜
ô `ôDR˜ô Rôj(�
õ (r-  