Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
§ Ìß]jk/ãóž—dZddlZddlZddlZddlZddlZddlZddlmZddlm Z ddlm Z ddl m Z ddl m Z dd l mZdd l mZdd l mZdd lmZd Zdejed¦«zejejddzejdzd¦«zZGd„de¦«ZGd„de¦«ZGd„de¦«ZGd„de¦«ZdS)a The optional bytecode cache system. This is useful if you have very complex template situations and the compilation of all those templates slows down your application too much. Situations where this is useful are often forking web applications that are initialized on the first request. éN)Úsha1)Úlistdir)Úpathé)ÚBytesIO)Ú marshal_dump)Ú marshal_load)Úpickle)Ú text_type)Úopen_if_existsésj2éécó6—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z dS) ÚBucketauBuckets are used to store the bytecode for one template. It's created and initialized by the bytecode cache and passed to the loading functions. The buckets get an internal checksum from the cache assigned and use this to automatically reject outdated cache material. Individual bytecode cache subclasses don't have to care about cache invalidation. cóX—||_||_||_| ¦«dS©N)Ú environmentÚkeyÚchecksumÚreset)Úselfrrrs úE/opt/imunify360/venv/lib64/python3.11/site-packages/jinja2/bccache.pyÚ__init__zBucket.__init__.s)€Ø&ˆÔ؈ŒØ ˆŒ Ø � Š ‰ Œ ˆ ˆ ˆ ócó—d|_dS)z)Resets the bucket (unloads the bytecode).N)Úcode©rs rrz Bucket.reset4s €àˆŒ ˆ ˆ rcóŽ—| tt¦«¦«}|tkr| ¦«dSt j|¦«}|j|kr| ¦«dS t|¦«|_dS#tttf$r| ¦«YdSwxYw)z/Loads bytecode from a file or file like object.N) ÚreadÚlenÚbc_magicrr Úloadrr rÚEOFErrorÚ ValueErrorÚ TypeError)rÚfÚmagicrs rÚ load_bytecodezBucket.load_bytecode8s°€ð—’•s�8‘}”}Ñ%Ô%ˆØ •HÒ Ð Ø �JŠJ‰LŒLˆLØ ˆFå”;˜q‘>”>ˆØ Œ=˜HÒ $Ð $Ø �JŠJ‰LŒLˆLØ ˆFð Ý$ Q™œˆDŒIˆIˆIøÝ�*¥iÐ0ð ð ð Ø �JŠJ‰LŒLˆLØ ˆFˆFð øøøsÁ?BÂ+CÃCcóÆ—|j€td¦«‚| t¦«t j|j|d¦«t|j|¦«dS)z;Dump the bytecode into the file or file like object passed.Nzcan't write empty bucketr)rr&Úwriter"r Údumprr)rr's rÚwrite_bytecodezBucket.write_bytecodeKsY€à Œ9Ð ÝÐ6Ñ7Ô7Ð 7Ø �Š•ÑÔÐÝŒ �D”M 1 aÑ(Ô(Ð(Ý�T”Y Ñ"Ô"Ð"Ð"Ð"rcóJ—| t|¦«¦«dS)zLoad bytecode from a string.N)r)r)rÚstrings rÚbytecode_from_stringzBucket.bytecode_from_stringSs"€à ×Ò�7 6™?œ?Ñ+Ô+Ð+Ð+Ð+rcóp—t¦«}| |¦«| ¦«S)zReturn the bytecode as string.)rr-Úgetvalue)rÚouts rÚbytecode_to_stringzBucket.bytecode_to_stringWs-€å‰iŒiˆØ ×Ò˜CÑ Ô Ð Ø�|Š|‰~Œ~ÐrN) Ú__name__Ú __module__Ú __qualname__Ú__doc__rrr)r-r0r4©rrrr%sx€€€€€ðððððð ðððððð&#ð#ð#ð,ð,ð,ðððððrrcó>—eZdZdZd„Zd„Zd„Zd d„Zd„Zd„Z d „Z dS) Ú BytecodeCacheaÞTo implement your own bytecode cache you have to subclass this class and override :meth:`load_bytecode` and :meth:`dump_bytecode`. Both of these methods are passed a :class:`~jinja2.bccache.Bucket`. A very basic bytecode cache that saves the bytecode on the file system:: from os import path class MyCache(BytecodeCache): def __init__(self, directory): self.directory = directory def load_bytecode(self, bucket): filename = path.join(self.directory, bucket.key) if path.exists(filename): with open(filename, 'rb') as f: bucket.load_bytecode(f) def dump_bytecode(self, bucket): filename = path.join(self.directory, bucket.key) with open(filename, 'wb') as f: bucket.write_bytecode(f) A more advanced version of a filesystem based bytecode cache is part of Jinja. có—t¦«‚)z¹Subclasses have to override this method to load bytecode into a bucket. If they are not able to find code in the cache for the bucket, it must not do anything. ©ÚNotImplementedError©rÚbuckets rr)zBytecodeCache.load_bytecode{ó€õ "Ñ#Ô#Ð#rcó—t¦«‚)zÀSubclasses have to override this method to write the bytecode from a bucket back to the cache. If it unable to do so it must not fail silently but raise an exception. r=r?s rÚ dump_bytecodezBytecodeCache.dump_bytecode‚rArcó—dS)zºClears the cache. This method is not used by Jinja but should be implemented to allow applications to clear the bytecode cache used by a particular environment. Nr9rs rÚclearzBytecodeCache.clear‰s€€€rNcóú—t| d¦«¦«}|�Dd|z}t|t¦«r| d¦«}| |¦«| ¦«S)z3Returns the unique hash key for this template name.úutf-8Nú|)rÚencodeÚ isinstancer ÚupdateÚ hexdigest)rÚnameÚfilenameÚhashs rÚ get_cache_keyzBytecodeCache.get_cache_key�so€å�D—K’K Ñ(Ô(Ñ)Ô)ˆØ РؘX‘~ˆHݘ(¥IÑ.Ô.ð 4Ø#Ÿ?š?¨7Ñ3Ô3�Ø �KŠK˜Ñ !Ô !Ð !Ø�~Š~ÑÔÐrcój—t| d¦«¦« ¦«S)z"Returns a checksum for the source.rG)rrIrL)rÚsources rÚget_source_checksumz!BytecodeCache.get_source_checksum™s(€å�F—M’M 'Ñ*Ô*Ñ+Ô+×5Ò5Ñ7Ô7Ð7rcó¨—| ||¦«}| |¦«}t|||¦«}| |¦«|S)zwReturn a cache bucket for the given template. All arguments are mandatory but filename may be `None`. )rPrSrr))rrrMrNrRrrr@s rÚ get_bucketzBytecodeCache.get_bucket�sV€ð× Ò   xÑ0Ô0ˆØ×+Ò+¨FÑ3Ô3ˆÝ˜  S¨(Ñ3Ô3ˆØ ×Ò˜6Ñ"Ô"Ð"؈ rcó0—| |¦«dS)zPut the bucket into the cache.N)rCr?s rÚ set_bucketzBytecodeCache.set_bucket§s€à ×Ò˜6Ñ"Ô"Ð"Ð"Ð"rr) r5r6r7r8r)rCrErPrSrUrWr9rrr;r;^sŒ€€€€€ððð8$ð$ð$ð$ð$ð$ð ð ð ð  ð ð ð ð8ð8ð8ðððð#ð#ð#ð#ð#rr;có8—eZdZdZd d„Zd„Zd„Zd„Zd„Zd „Z dS) ÚFileSystemBytecodeCacheaïA bytecode cache that stores bytecode on the filesystem. It accepts two arguments: The directory where the cache items are stored and a pattern string that is used to build the filename. If no directory is specified a default cache directory is selected. On Windows the user's temp directory is used, on UNIX systems a directory is created for the user in the system temp directory. The pattern can be used to have multiple separate caches operate on the same directory. The default pattern is ``'__jinja2_%s.cache'``. ``%s`` is replaced with the cache key. >>> bcc = FileSystemBytecodeCache('/tmp/jinja_cache', '%s.cache') This bytecode cache supports clearing of the cache using the clear method. Nú__jinja2_%s.cachecóN—|€| ¦«}||_||_dSr)Ú_get_default_cache_dirÚ directoryÚpattern)rr]r^s rrz FileSystemBytecodeCache.__init__¾s+€Ø Ð Ø×3Ò3Ñ5Ô5ˆIØ"ˆŒØˆŒ ˆ ˆ rcó —d„}tj¦«}tjdkr|St td¦«s |¦«dtj¦«z}tj ||¦«} tj|tj ¦«n-#t$r }|j tj kr‚Yd}~nd}~wwxYw tj|tj ¦«tj|¦«}|jtj¦«ks@tj|j¦«r'tj|j¦«tj kr |¦«n-#t$r }|j tj kr‚Yd}~nd}~wwxYwtj|¦«}|jtj¦«ks@tj|j¦«r'tj|j¦«tj kr |¦«|S)Ncó —td¦«‚)NzJCannot determine safe temp directory. You need to explicitly provide one.)Ú RuntimeErrorr9rrÚ _unsafe_dirzCFileSystemBytecodeCache._get_default_cache_dir.._unsafe_dirÅs€Ýð2ñôð rÚntÚgetuidz_jinja2-cache-%d)ÚtempfileÚ gettempdirÚosrMÚhasattrrdrÚjoinÚmkdirÚstatÚS_IRWXUÚOSErrorÚerrnoÚEEXISTÚchmodÚlstatÚst_uidÚS_ISDIRÚst_modeÚS_IMODE)rrbÚtmpdirÚdirnameÚ actual_dirÚeÚactual_dir_stats rr\z.FileSystemBytecodeCache._get_default_cache_dirÄsñ€ð ð ð õ Ô$Ñ&Ô&ˆõ Œ7�dŠ?ˆ?؈MÝ•r˜8Ñ$Ô$ð Ø ˆK‰MŒMˆMà$¥r¤y¡{¤{Ñ2ˆÝ”W—\’\ &¨'Ñ2Ô2ˆ ð Ý ŒH�Z¥¤Ñ .Ô .Ð .Ð .øÝð ð ð ØŒw�%œ,Ò&Ð&Øð'Ð&Ð&Ð&Ð&øøøøð øøøð Ý ŒH�Z¥¤Ñ .Ô .Ð .Ý œh zÑ2Ô2ˆOàÔ&­"¬)©+¬+Ò5Ð5Ý”| OÔ$;Ñ<Ô<ð6å”< Ô 7Ñ8Ô8½D¼LÒHÐHà� ‘ ” � øøÝð ð ð ØŒw�%œ,Ò&Ð&Øð'Ð&Ð&Ð&Ð&øøøøð øøøõœ( :Ñ.Ô.ˆà Ô "¥b¤i¡k¤kÒ 1Ð 1Ý”< Ô 7Ñ8Ô8ð 2åŒ|˜OÔ3Ñ4Ô4½¼ ÒDÐDà ˆK‰MŒMˆMàÐs1Á?B C Â)CÃC à BE'Å' FÅ1F Æ FcóP—tj|j|j|jz¦«Sr)rrir]r^rr?s rÚ_get_cache_filenamez+FileSystemBytecodeCache._get_cache_filenameós€ÝŒy˜œ¨¬¸¼ Ñ)BÑCÔCÐCrcóÚ—t| |¦«d¦«}|�E | |¦«| ¦«dS#| ¦«wxYwdS)NÚrb)r r|r)Úclose©rr@r's rr)z%FileSystemBytecodeCache.load_bytecodeösg€Ý ˜4×3Ò3°FÑ;Ô;¸TÑ BÔ BˆØ ˆ=ð Ø×$Ò$ QÑ'Ô'Ð'à—’‘ ” � � � ø�—’‘ ” � � øøøð ˆ=s §AÁA(cóÒ—t| |¦«d¦«} | |¦«| ¦«dS#| ¦«wxYw)NÚwb)Úopenr|r-rr€s rrCz%FileSystemBytecodeCache.dump_bytecodeþs[€Ý �×)Ò)¨&Ñ1Ô1°4Ñ 8Ô 8ˆð Ø × !Ò ! !Ñ $Ô $Ð $à �GŠG‰IŒIˆIˆIˆIøˆA�GŠG‰IŒIˆIˆIøøøs ¥AÁA&cóâ—ddlm}tjt |j¦«|jdz¦«}|D]6} |tj|j|¦«¦«Œ'#t$rYŒ3wxYwdS)Nr)ÚremoveÚ*) rgr…ÚfnmatchÚfilterrr]r^rrirm)rr…ÚfilesrNs rrEzFileSystemBytecodeCache.clears—€ð ÐÐÐÐÐå”�w t¤~Ñ6Ô6¸¼ ÀsÑ8JÑKÔKˆØð ð ˆHð Ø�•t”y ¤°Ñ:Ô:Ñ;Ô;Ð;Ð;øÝð ð ð Ø�ð øøøð ð s»#AÁ A,Á+A,)NrZ) r5r6r7r8rr\r|r)rCrEr9rrrYrY¬s�€€€€€ððð"ðððð -ð-ð-ð^DðDðDððððððð ð ð ð ð rrYcó,—eZdZdZ dd„Zd„Zd„ZdS) ÚMemcachedBytecodeCachea+This class implements a bytecode cache that uses a memcache cache for storing the information. It does not enforce a specific memcache library (tummy's memcache or cmemcache) but will accept any class that provides the minimal interface required. Libraries compatible with this class: - `cachelib `_ - `python-memcached `_ (Unfortunately the django cache interface is not compatible because it does not support storing binary data, only unicode. You can however pass the underlying cache client to the bytecode cache which is available as `django.core.cache.cache._client`.) The minimal interface for the client passed to the constructor is this: .. class:: MinimalClientInterface .. method:: set(key, value[, timeout]) Stores the bytecode in the cache. `value` is a string and `timeout` the timeout of the key. If timeout is not provided a default timeout or no timeout should be assumed, if it's provided it's an integer with the number of seconds the cache item should exist. .. method:: get(key) Returns the value for the cache key. If the item does not exist in the cache the return value must be `None`. The other arguments to the constructor are the prefix for all keys that is added before the actual cache key and the timeout for the bytecode in the cache system. We recommend a high (or no) timeout. This bytecode cache does not support clearing of used items in the cache. The clear method is a no-operation function. .. versionadded:: 2.7 Added support for ignoring memcache errors through the `ignore_memcache_errors` parameter. újinja2/bytecode/NTcó>—||_||_||_||_dSr)ÚclientÚprefixÚtimeoutÚignore_memcache_errors)rrŽr�r�r‘s rrzMemcachedBytecodeCache.__init__@s'€ðˆŒ ؈Œ ؈Œ Ø&<ˆÔ#Ð#Ð#rcó¾— |j |j|jz¦«}n#t$r |js‚d}YnwxYw|�| |¦«dSdSr)rŽÚgetr�rÚ Exceptionr‘r0)rr@rs rr)z$MemcachedBytecodeCache.load_bytecodeLs�€ð Ø”;—?’? 4¤;°´Ñ#;Ñ<Ô<ˆDˆDøÝð ð ð ØÔ.ð ØØˆDˆDˆDð øøøð Ð Ø × 'Ò '¨Ñ -Ô -Ð -Ð -Ð -ð Ð s‚'*ªAÁAcó—|j|jz| ¦«f}|j� ||jfz } |jj|ŽdS#t $r |js‚YdSwxYwr)r�rr4r�rŽÚsetr”r‘)rr@Úargss rrCz$MemcachedBytecodeCache.dump_bytecodeVs‹€Ø” ˜fœjÑ(¨&×*CÒ*CÑ*EÔ*EÐFˆØ Œ<Ð #Ø �T”\�OÑ #ˆDð Ø ˆDŒKŒO˜TÐ "Ð "Ð "Ð "øÝð ð ð ØÔ.ð Øð ð ð ð øøøs·AÁAÁA)rŒNT)r5r6r7r8rr)rCr9rrr‹r‹s\€€€€€ð*ð*ð^"ØØ#ð =ð =ð =ð =ð.ð.ð.ðððððrr‹)r8rnr‡rgrkÚsysreÚhashlibrrrÚ_compatrrr r r Úutilsr Ú bc_versionÚdumpsÚ version_infor"Úobjectrr;rYr‹r9rrúr sðððð € € € Ø€€€Ø € € € Ø € € € Ø € € € Ø€€€ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐàÐÐÐÐÐØ!Ð!Ð!Ð!Ð!Ð!Ø!Ð!Ð!Ð!Ð!Ð!ØÐÐÐÐÐØÐÐÐÐÐØ!Ð!Ð!Ð!Ð!Ð!à € ð  Ø€f„l�:˜qÑ!Ô!ñ"à€f„l�CÔ$ QÔ'¨2Ñ-°Ô1AÀ!Ô1DÑDÀaÑHÔHñIð ð6ð6ð6ð6ð6ˆVñ6ô6ð6ðrK#ðK#ðK#ðK#ðK#�FñK#ôK#ðK#ð\dðdðdðdðd˜mñdôdðdðNKðKðKðKðK˜]ñKôKðKðKðKr