� G�g�-���dZddlZddlmZmZmZmZmZmZddl m Z m Z m Z m Z mZmZmZmZmZgd�ZGd�de��ZGd�d e��ZGd �d e��ZdS) z� pygments.lexers.actionscript ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for ActionScript and MXML. :copyright: Copyright 2006-2025 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��eZdZdZdZddgZdgZgd�ZdZdZ e j Z d d e fd ejfd ejfd ejfdefdefedd���efedd���ejfdejfedd���ejfedd���ejfdejfdejfdejfdej fdej!fdejfgiZ"d�Z#dS)rz' For ActionScript source code. � ActionScript� actionscript�as�*.as)zapplication/x-actionscriptztext/x-actionscriptztext/actionscriptz*https://en.wikipedia.org/wiki/ActionScriptz0.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��dS)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 �l/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/pygments/lexers/actionscript.py� analyse_textzActionScriptLexer.analyse_textps ���q�N)$�__name__� __module__� __qualname__�__doc__�name�aliases� filenames� mimetypes�url� version_added�re�DOTALL�flagsrr �Single� Multiliner�Regexr rrr � Declaration�Constantr �Builtinr��Otherr�Float�Hex�Integer�Double�tokensr,r(r-r+rrs��������� �D��t�$�G���I�&�&�&�I� 6�C��M� �I�E�� �Z� � ��� (� �7�,� -� 0�&�,� ?� &�� 1� �{� +� �U��#(� )�)�)� �  � �U�/�8=� >�>�>� � �  "� J� � � � �U�'�N"'�O'(�'(�'(�P�\�Q( �R�U��%*� +�+�+� �]�  � �t�z� *� 5�v�|� D� �V�Z� (� ��� '� (�&�-� 8� (�&�-� 8�SJ �L�F�\����r-rc�`�eZdZdZdZdZddgZdgZgd�ZdZ d Z e d zZ e j e jzZd efd e zd zeejejee��dfde zdze zdzeejeeeeeej��fde zdzeeeeje��fde zd zeeeejee��fdejfdejfdejfde zdzeeej ��fdefdejfdej!fdejfe efde"j#fde"j$fde"j%fd ej&fd!ejfd"efgd efd#e zdze zd$zeeeeeeeeje��d%fd&ed'fgd(e zd)zeeeeej��d*fd ed*fe'd*��gd+eeee(e)��ee��d,fd-ed,fe'd,��gd.�Z*d/�Z+d0S)1rz) For ActionScript 3 source code. zActionScript 3zNhttps://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html� actionscript3�as3r)zapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3z0.11r!z (?:\.<\w+>)?rz(function\s+)(z )(\s*)(\()� funcparamsz(var|const)(\s+)(z)(\s*)(:)(\s*)(�)z(import|package)(\s+)((?:z |\.)+)(\s*)z (new)(\s+)(rrz /(\\\\|\\[^\\]|[^\\\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�,)rrJrMrLc�4�tjd|��rdSdS)Nz \w+\s*:\s*\wg333333�?r)r8�matchr)s r+r,zActionScript3Lexer.analyse_text�s �� �8�O�T� *� *� ��3��qr-N),r.r/r0r1r2r6r3r4r5r7� identifier�typeidentifierr8r9� MULTILINEr:rrr r>r r�r r r�Typer�r r;r<rr=� Attributer?rrBrCrDrErrrrFr,r(r-r+rrvs�������� �D� Z�C���&�G���I�'�'�'�I��M�!�J��/�1�N� �I�� � $�E��Z� � �� +�m� ;� �X�g�)�4�=�$�� I� I� � �"�J� .�1C� C� ��"�#� �X�g�)�:�t�Z��V`��l�$�$� %�*�J� 6�� G� �X�g�z�4�>�:� F� F� H� �n� ,�}� <� �X�g�z�7�<��X� N� N� P� ��� (� �7�,� -� 0�&�,� ?� � � "�T� )�8�8�H�d�n�+M�+M� N�/�� �D�� � "�J� � � ��"�]� ,��� � 5�v�|� D� �V�Z� (� ��� '� (�&�-� 8� (�&�-� 8� /�� :�K& �P�Z� � �*� ,�/A� A� ��*�+� �X�j�+�t�Z��:��l�J�0�0�19� ;��H�f� %�  ��� /�'� 9� �X�j�(�J�� � E� E�x� Q� �T�8� $� �G�H� � �  �+� �X�h� �E�E�$�K�K��X� N� N�PV� X� �8�V� $� �G�F�O�O�  �m<�<�F�|����r-rc �@�eZdZdZejejzZdZdgZ dgZ dZ dZ de fdejfd eeee��e��fd ed fd ejfd ejfdejdfdejfgdefdedfdefgdefdejdfdejdfgdefdedfdedfdedfgd�ZdS)rzc For MXML markup. Nested AS3 in <script> tags is highlighted by the appropriate lexer. �MXML�mxmlz*.mxmlz"https://en.wikipedia.org/wiki/MXMLz1.1z[^<&]+z&\S*?;z(\<\!\[CDATA\[)(.*?)(\]\]\>)z<!--�commentz <\?.*?\?>z<![^>]*>z <\s*[\w:.-]+�tagz<\s*/\s*[\w:.-]+\s*>z[^-]+z-->rN�-rz [\w.:-]+\s*=�attrz/?\s*>z".*?"z'.*?'z[^\s>]+)rrZr[r]N)r.r/r0r1r8rTr9r:r2r3r4r6r7r r �Entityrrrrr �Preproc�TagrrVrFr(r-r+rr�s7�������� �L�2�9� $�E� �D��h�G�� �I� .�C��M��t� � �� � $� ,� �X�f�e�e�$6�7�7�� @� @� B� �W�i� (� �7�?� +� ��� )� �d�h�� .� $�d�h� /�  ��g� � �G�V� $� �'�N� � �Z� � �d�n�f� 5� ���&� )� � �Z� � �f�f� %� �f�f� %� ��� (�  �-��F�F�Fr-r)r1r8�pygments.lexerrrrrrr�pygments.tokenr r r r r rrrr�__all__rrrr(r-r+�<module>rds`���� � � � �L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$� C� B� B��`�`�`�`�`� �`�`�`�DR�R�R�R�R��R�R�R�j(�(�(�(�(� �(�(�(�(�(r-
Memory