efijddlmZddlmZ en#e$rdZYnwxYw ddlmZn#GddeZYnxYw ddl m Z n#e $rdZ YnwxYwGd d e Z d e _Gd d e Z eefZn #e$reZYnwxYwd ZeefZGddeZddZddZGdde ZdS))ref)BoundMethodWeakrefc"t|dS)N__call__)hasattr)objects r/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/blinker/_utilities.pycallabler svz***) defaultdictc@eZdZd dZdZdZdZdZdZdZ d Z dS) r Nc|t|dstdtj|g|Ri|||_dS)Nrzfirst argument must be callable)r TypeErrordict__init__default_factory)selfrakws r rzdefaultdict.__init__sW+OZ88, ABBB M$ ) ) ) )b ) ) )#2D r c t||S#t$r||cYSwxYwN)r __getitem__KeyError __missing__)rkeys r rzdefaultdict.__getitem__sR -''c222 - - -'',,,,, -s ??cd|jt||x||<}|Sr)rr)rrvalues r rzdefaultdict.__missing__s6#+smm# $ 4 4 6 6 6DILr c|jt}n|jf}t||dd|fSr)rtupletypeitems)rargss r __reduce__zdefaultdict.__reduce__%s@#+ww+,::tT4= =r c*|Sr)__copy__rs r copyzdefaultdict.copy,s==?? "r c>t||j|Sr)r rr&s r r%zdefaultdict.__copy__/s4::d2D99 9r cddl}t||j||S)Nr)r'r rdeepcopyr!)rmemor's r __deepcopy__zdefaultdict.__deepcopy__2sA KKK4::d2"mmDJJLL99;; ;r cNd|jdt|dS)Nz defaultdict(z, ))rr__repr__r&s r r/zdefaultdict.__repr__7s1,0,@,@,@,0MM$,?,?,?,?A Ar r) __name__ __module__ __qualname__rrrr#r'r%r,r/r r r r s 3 3 3 3 - - -      > > > # # # : : : ; ; ;  A A A A Ar r )contextmanagerc$d}|j|_|S)Nc td)Nz8Python 2.5 or above is required to use context managers.) RuntimeError)r"rs r oopszcontextmanager..oops@s 344 4r )r0)fnr8s r r4r4?s! 4 4 4   r c eZdZdZdZdZdS)_symbolc"|x|_|_dS)zConstruct a new named symbol.N)r0name)rr=s r rz_symbol.__init__Hs$((  r c t|jffSr)symbolr=r&s r r#z_symbol.__reduce__Ls |##r c|jSr)r=r&s r r/z_symbol.__repr__Os yr N)r0r1r2rr#r/r3r r r;r;FsA)))$$$r r;r?ceZdZdZiZdZdS)r?a?A constant symbol. >>> symbol('foo') is symbol('foo') True >>> symbol('foo') foo A slight refinement of the MAGICCOOKIE=object() pattern. The primary advantage of symbol() is its repr(). They are also singletons. Repeated calls of symbol('name') will all return the same instance. c |j|S#t$r+|j|t|cYSwxYwr)symbolsr setdefaultr;)clsr=s r __new__zsymbol.__new__dsS ?;t$ $ ? ? ?;))$ >> > > > ?s 2AAN)r0r1r2__doc__rCrFr3r r r?r?Ts4  G?????r c.t|dr(t|jt|jfSt|dr(t|jt|jfSt |tr|St|S)N__func__im_func)ridrI__self__rJim_self isinstancetext)objs r hashable_identityrQqssJ3<  "S\"2"233 i 3;CK11 C   #wwr ceZdZdZdS)annotatable_weakrefz7A weakref.ref that supports custom instance attributes.N)r0r1r2rGr3r r rSrSsAAAAr rSNc t|rt||}nt||}|D]\}}t ||||S)zReturn an annotated weak ref.)r callable_referencerSr!setattr)rcallback annotationsweakrrs r referencerZsk5!&(33"6844!''))"" Uc5!!!! Kr ct|dr|jt||St|dr|jt||St ||S)z@Return an annotated weak ref, supporting bound instance methods.rMN)target on_deleterL)rrMrrLrS)rrWs r rUrUslvy!!Efn&@!8DDDD  $ $E)D!8DDDD vx 0 00r ceZdZdZdZdZdS) lazy_propertyz(A @property that is only evaluated once.c,||_|j|_dSr) _deferredrG)rdeferreds r rzlazy_property.__init__s!' r cn||S||}t||jj||Sr)rarVr0)rrPrErs r __get__zlazy_property.__get__s9 ;Ks##T^,e444 r N)r0r1r2rGrrdr3r r r_r_s822(((r r_r)weakrefrblinker._saferefrr NameError collectionsr r contextlibr4 ImportErrorrr;r0r?strunicoderOrQ WeakTypesrSrZrUr_r3r r rnsW//////+ HH+++++++++ ,A'''''''*A)A)A)A)A)Ad)A)A)A)A)AX)))))))     f   ?????V???. >DD DDD$ % BBBBB#BBB1111     F     s7'9AAA6A;;BB