def __getattr__(self, name):
key = name[<NUM_LIT:1>:].lstrip('<STR_LIT:_>')  <EOL>result = None<EOL>if _index_finder.match(name):       <EOL><INDENT>result = self._get_extended_palette_entry(name, key)<EOL><DEDENT>elif _nearest_finder.match(name):   <EOL><INDENT>result = self._get_extended_palette_entry(name, key, is_hex=True)<EOL><DEDENT>elif _true_finder.match(name):      <EOL><INDENT>result = self._get_true_palette_entry(name, key)<EOL><DEDENT>elif _x11_finder.match(name):       <EOL><INDENT>result = self._get_X11_palette_entry(key)<EOL><DEDENT>elif _web_finder.match(name):       <EOL><INDENT>result = self._get_web_palette_entry(key)<EOL><DEDENT>else:  <EOL><INDENT>try:<EOL><INDENT>result = self._get_web_palette_entry(name)<EOL>if result:<EOL><INDENT>return result<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>pass  <EOL><DEDENT>try:  <EOL><INDENT>result = self._get_X11_palette_entry(name)<EOL>if result:<EOL><INDENT>return result<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>pass  <EOL><DEDENT>raise AttributeError(f'<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>return result<EOL>
Traffic cop - called only when an attribute is missing,
            i.e. once per palette entry attribute.

            The "basic" palette will never get here, as it is already defined.
            Data flow:

            Input/lookup:                           Examples:

                - t_ hex-string:                    'bb00bb'
                - x_ name to tuple of dec-int str:  ('1', '2', '3')
                - w_ name to tuple of int8:         (1, 2, 3)

            On downgrade, find nearest:

                 - Prefer tuple of int8:            (1, 2, 3)
                 - Also handles 3 digit hex-string: 'b0b'

                - returns: integer index
                    * 0-15 or
                    * 0-255

            Output:

                - String index from int index:      '30'
                - tuple of dec-int strings:         ('1', '2', '3')
                    - joined with ';' to string:        Prefix + '1;2;3'

            Final Output:
                - wrap in _PaletteEntry(output)