;ELC   
;;; Compiled
;;; in Emacs version 29.3
;;; with all optimizations.


#@123 Predefined alist of spinners.
Each car is a symbol identifying the spinner, and each cdr is a
vector, the spinner itself.
(defconst spinner-types '((3-line-clock . ["┤" "┘" "┴" "└" "├" "┌" "┬" "┐"]) (2-line-clock . ["┘" "└" "┌" "┐"]) (flipping-line . ["_" "\\" "|" "/"]) (rotating-line . ["-" "\\" "|" "/"]) (progress-bar . ["[    ]" "[=   ]" "[==  ]" "[=== ]" "[====]" "[ ===]" "[  ==]" "[   =]"]) (progress-bar-filled . ["|    |" "|█   |" "|██  |" "|███ |" "|████|" "| ███|" "|  ██|" "|   █|"]) (vertical-breathing . ["▁" "▂" "▃" "▄" "▅" "▆" "▇" "█" "▇" "▆" "▅" "▄" "▃" "▂" "▁" " "]) (vertical-rising . ["▁" "▄" "█" "▀" "▔"]) (horizontal-breathing . [" " "▏" "▎" "▍" "▌" "▋" "▊" "▉" "▉" "▊" "▋" "▌" "▍" "▎" "▏"]) (horizontal-breathing-long . ["  " "▎ " "▌ " "▊ " "█ " "█▎" "█▌" "█▊" "██" "█▊" "█▌" "█▎" "█ " "▊ " "▋ " "▌ " "▍ " "▎ " "▏ "]) (horizontal-moving . ["  " "▌ " "█ " "▐▌" " █" " ▐"]) (minibox . ["▖" "▘" "▝" "▗"]) (triangle . ["◢" "◣" "◤" "◥"]) (box-in-box . ["◰" "◳" "◲" "◱"]) (box-in-circle . ["◴" "◷" "◶" "◵"]) (half-circle . ["◐" "◓" "◑" "◒"]) (moon . ["🌑" "🌘" "🌗" "🌖" "🌕" "🌔" "🌓" "🌒"])) (#$ . 84))#@262 Return a vector of strings of the given WIDTH.
The vector is a valid spinner type and is similar to the
`progress-bar' spinner, except without the surrounding brackets.
CHAR is the character to use for the moving bar (defaults to =).

(fn WIDTH &optional CHAR)
(defalias 'spinner-make-progress-bar #[513 "\300S\301\"\300\302\206\f \303\"\300\301\"Q\304\305\306\307\310#\311\312\\\313\314#\"\"\207" [make-string 32 4 61 apply vector mapcar make-closure #[257 "\300\211\301\\O\207" [V0 V1] 5 "\n\n(fn N)"] number-sequence 3 0 -1] 11 (#$ . 1455)])#@63 Spinner currently being displayed on the `mode-line-process'.
(defvar spinner-current nil (#$ . 2014))
(make-variable-buffer-local 'spinner-current)#@61 Construct used to display a spinner in `mode-line-process'.
(defconst spinner--mode-line-construct '(:eval (spinner-print spinner-current)) (#$ . 2168))
(put 'spinner--mode-line-construct 'risky-local-variable t)#@99 Default speed at which spinners spin, in frames per second.
Each spinner can override this value.
(defvar spinner-frames-per-second 10 (#$ . 2386))#@662 Return a vector of frames corresponding to TYPE.
The list of possible built-in spinner types is given by the
`spinner-types' variable, but you can also use your own (see
below).

If TYPE is nil, the frames of this spinner are given by the first
element of `spinner-types'.
If TYPE is a symbol, it specifies an element of `spinner-types'.
If TYPE is 'random, use a random element of `spinner-types'.
If TYPE is a list, it should be a list of symbols, and a random
one is chosen as the spinner type.
If TYPE is a vector, it should be a vector of strings and these
are used as the spinner's frames.  This allows you to make your
own spinner animations.

(fn TYPE)
(defalias 'spinner--type-to-frames #[257 "\301!\203 \207\211\302\267\202 @A\207\303G!\234A\207\211<\203( \211\303G!\234\236A\207\2119\2032 \211\236A\207\304\305\"\207" [spinner-types vectorp #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (nil 13 random 17)) random error "Unknown spinner type: %s"] 4 (#$ . 2540)])#@66 compiler-macro for inlining `spinner-p'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner-p--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner-p (and (memq (type-of cl-x) cl-struct-spinner-tags) t)) nil] 9 (#$ . 3569)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner-p compiler-macro spinner-p--cmacro] 4)#@13 

(fn CL-X)
(defalias 'spinner-p #[257 "\301!>\205	 \302\207" [cl-struct-spinner-tags type-of t] 3 (#$ . 3938)])
(byte-code "\300\301\302\303#\300\301\304\305#\306\307\310\301#\300\207" [function-put spinner-p side-effect-free error-free pure t define-symbol-prop spinner cl-deftype-satisfies] 6)#@72 compiler-macro for inlining `spinner--frames'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner--frames--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner--frames (progn (or (spinner-p cl-x) (signal 'wrong-type-argument (list 'spinner cl-x))) (aref cl-x 1))) nil] 9 (#$ . 4242)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner--frames compiler-macro spinner--frames--cmacro] 4)#@59 Access slot "frames" of `spinner' struct CL-X.

(fn CL-X)
(defalias 'spinner--frames #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 1] 5 (#$ . 4683)])
(byte-code "\300\301\302\303#\300\207" [function-put spinner--frames side-effect-free t] 4)#@73 compiler-macro for inlining `spinner--counter'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner--counter--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner--counter (progn (or (spinner-p cl-x) (signal 'wrong-type-argument (list 'spinner cl-x))) (aref cl-x 2))) nil] 9 (#$ . 5007)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner--counter compiler-macro spinner--counter--cmacro] 4)#@60 Access slot "counter" of `spinner' struct CL-X.

(fn CL-X)
(defalias 'spinner--counter #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 2] 5 (#$ . 5453)])
(byte-code "\300\301\302\303#\300\207" [function-put spinner--counter side-effect-free t] 4)#@69 compiler-macro for inlining `spinner--fps'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner--fps--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner--fps (progn (or (spinner-p cl-x) (signal 'wrong-type-argument (list 'spinner cl-x))) (aref cl-x 3))) nil] 9 (#$ . 5780)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner--fps compiler-macro spinner--fps--cmacro] 4)#@56 Access slot "fps" of `spinner' struct CL-X.

(fn CL-X)
(defalias 'spinner--fps #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 3] 5 (#$ . 6206)])
(byte-code "\300\301\302\303#\300\207" [function-put spinner--fps side-effect-free t] 4)#@71 compiler-macro for inlining `spinner--timer'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner--timer--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner--timer (progn (or (spinner-p cl-x) (signal 'wrong-type-argument (list 'spinner cl-x))) (aref cl-x 4))) nil] 9 (#$ . 6521)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner--timer compiler-macro spinner--timer--cmacro] 4)#@58 Access slot "timer" of `spinner' struct CL-X.

(fn CL-X)
(defalias 'spinner--timer #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 4] 5 (#$ . 6957)])
(byte-code "\300\301\302\303#\300\207" [function-put spinner--timer side-effect-free t] 4)#@74 compiler-macro for inlining `spinner--active-p'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner--active-p--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner--active-p (progn (or (spinner-p cl-x) (signal 'wrong-type-argument (list 'spinner cl-x))) (aref cl-x 5))) nil] 9 (#$ . 7278)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner--active-p compiler-macro spinner--active-p--cmacro] 4)#@61 Access slot "active-p" of `spinner' struct CL-X.

(fn CL-X)
(defalias 'spinner--active-p #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 5] 5 (#$ . 7729)])
(byte-code "\300\301\302\303#\300\207" [function-put spinner--active-p side-effect-free t] 4)#@72 compiler-macro for inlining `spinner--buffer'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner--buffer--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner--buffer (progn (or (spinner-p cl-x) (signal 'wrong-type-argument (list 'spinner cl-x))) (aref cl-x 6))) nil] 9 (#$ . 8059)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner--buffer compiler-macro spinner--buffer--cmacro] 4)#@59 Access slot "buffer" of `spinner' struct CL-X.

(fn CL-X)
(defalias 'spinner--buffer #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 6] 5 (#$ . 8500)])
(byte-code "\300\301\302\303#\300\207" [function-put spinner--buffer side-effect-free t] 4)#@71 compiler-macro for inlining `spinner--delay'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'spinner--delay--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block spinner--delay (progn (or (spinner-p cl-x) (signal 'wrong-type-argument (list 'spinner cl-x))) (aref cl-x 7))) nil] 9 (#$ . 8824)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop spinner--delay compiler-macro spinner--delay--cmacro] 4)#@58 Access slot "delay" of `spinner' struct CL-X.

(fn CL-X)
(defalias 'spinner--delay #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 7] 5 (#$ . 9260)])
(byte-code "\300\301\302\303#\300\207" [function-put spinner--delay side-effect-free t] 4)#@129 compiler-macro for inlining `make-spinner'.

(fn CL-WHOLE-ARG &optional TYPE BUFFER-LOCAL FRAMES-PER-SECOND DELAY-BEFORE-START)
(defalias 'make-spinner--cmacro #[1281 "\300\301\302\303\211\211				&	\207" [cl--defsubst-expand (type buffer-local frames-per-second delay-before-start) (cl-block make-spinner (record 'spinner (spinner--type-to-frames type) 0 (or frames-per-second spinner-frames-per-second) (timer-create) nil (when buffer-local (if (bufferp buffer-local) buffer-local (current-buffer))) (or delay-before-start 0))) nil] 15 (#$ . 9582)])
(byte-code "\300\301\302\303#\300\207" [define-symbol-prop make-spinner compiler-macro make-spinner--cmacro] 4)#@115 Constructor for objects of type `spinner'.

(fn &optional TYPE BUFFER-LOCAL FRAMES-PER-SECOND DELAY-BEFORE-START)
(defalias 'make-spinner #[1024 "\301\302\303!\304\206\f \305 \306	\205! \307\n!\203  	\202! p\206' \304&\207" [spinner-frames-per-second record spinner spinner--type-to-frames 0 timer-create nil bufferp] 13 (#$ . 10255)])
(cl-struct-define 'spinner nil 'cl-structure-object 'record nil '((cl-tag-slot) (frames (spinner--type-to-frames type)) (counter 0) (fps (or frames-per-second spinner-frames-per-second)) (timer (timer-create)) (active-p nil) (buffer (when buffer-local (if (bufferp buffer-local) buffer-local (current-buffer)))) (delay (or delay-before-start 0))) 'cl-struct-spinner-tags 'spinner t)#@916 Create a spinner of the given TYPE.
The possible TYPEs are described in `spinner--type-to-frames'.

FPS, if given, is the number of desired frames per second.
Default is `spinner-frames-per-second'.

If BUFFER-LOCAL is non-nil, the spinner will be automatically
deactivated if the buffer is killed.  If BUFFER-LOCAL is a
buffer, use that instead of current buffer.

When started, in order to function properly, the spinner runs a
timer which periodically calls `force-mode-line-update' in the
current buffer.  If BUFFER-LOCAL was set at creation time, then
`force-mode-line-update' is called in that buffer instead.  When
the spinner is stopped, the timer is deactivated.

DELAY, if given, is the number of seconds to wait after starting
the spinner before actually displaying it. It is safe to cancel
the spinner before this time, in which case it won't display at
all.

(fn &optional TYPE BUFFER-LOCAL FPS DELAY)
(defalias 'spinner-create #[1024 "\301\302\303!\304\206\f \305 \306	\205! \307\n!\203  	\202! p\206' \304&\207" [spinner-frames-per-second record spinner spinner--type-to-frames 0 timer-create nil bufferp] 13 (#$ . 10990)])#@184 Return a string of the current frame of SPINNER.
If SPINNER is nil, just return nil.
Designed to be used in the mode-line with:
    (:eval (spinner-print some-spinner))

(fn SPINNER)
(defalias 'spinner-print #[257 "\211\205G \301!>\204 \302\303\304D\"\210\211\305H\205G \301!>\204( \302\303\304D\"\210\211\306H\211\307Y\205E \301!>\204@ \302\303\304D\"\210\310H\234\262\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 5 2 0 1] 6 (#$ . 12145)])#@142 Function called to update SPINNER.
If SPINNER is no longer active, or if its buffer has been killed,
stop the SPINNER's timer.

(fn SPINNER)
(defalias 'spinner--timer-function #[257 "\301!>\204 \302\303\304D\"\210\211\305H\301!>\204! \302\303\304D\"\210\306H\2031 \211\2035 \307!\2045 \310!\207\301!>\204D \302\303\304D\"\210\311\311H\211\312W\203T \211T\202l \211T\301!>\204g \302\303\304D\"\210\313HG\246\262I\210\307!\203~ r\211q\210\314 )\207\314 \207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 6 5 buffer-live-p spinner-stop 2 0 1 force-mode-line-update] 10 (#$ . 12632)])#@40 Start a SPINNER's timer.

(fn SPINNER)
(defalias 'spinner--start-timer #[257 "\301!>\204 \302\303\304D\"\210\211\305H\306!\203 \307!\210\301!>\204+ \302\303\304D\"\210\310\311I\210\3121L \301!>\204C \302\303\304D\"\210\313H\314V0\202N \210\315\204U \316\317!\210\301!>\204d \302\303\304D\"\210\320\321\301!>\204w \302\303\304D\"\210\322H\206~ \314\301!>\204\217 \302\303\304D\"\210\313H_[!I\210\323\301!>\204\247 \302\303\304D\"\210\313H\245\324\325 \"\301!>\204\300 \302\303\304D\"\210\305H\326#\210\327\330C#\210\331!\210\332\333\"\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 4 timerp cancel-timer 5 t (error) 3 0 nil error "A spinner's FPS must be a positive number" 2 round 7 1.0 timer-next-integral-multiple-of-time current-time timer-set-time timer-set-function spinner--timer-function timer-activate make-closure #[0 "\301\300!\207" [V0 spinner-stop] 2]] 10 (#$ . 13263)])#@1127 Start a mode-line spinner of given TYPE-OR-OBJECT.
If TYPE-OR-OBJECT is an object created with `make-spinner',
simply activate it.  This method is designed for minor modes, so
they can use the spinner as part of their lighter by doing:
    '(:eval (spinner-print THE-SPINNER))
To stop this spinner, call `spinner-stop' on it.

If TYPE-OR-OBJECT is anything else, a buffer-local spinner is
created with this type, and it is displayed in the
`mode-line-process' of the buffer it was created it.  Both
TYPE-OR-OBJECT and FPS are passed to `make-spinner' (which see).
To stop this spinner, call `spinner-stop' in the same buffer.

Either way, the return value is a function which can be called
anywhere to stop this spinner.  You can also call `spinner-stop'
in the same buffer where the spinner was created.

FPS, if given, is the number of desired frames per second.
Default is `spinner-frames-per-second'.

DELAY, if given, is the number of seconds to wait until actually
displaying the spinner. It is safe to cancel the spinner before
this time, in which case it won't display at all.

(fn &optional TYPE-OR-OBJECT FPS DELAY)
(defalias 'spinner-start #[768 "\304!>\204d \304	!>\203, \304	!>\204 \305\306\307	D\"\210	\211\310\311!I\266\202N \312\307\311!\313\2067 \n\314 \315\316p!\203D p\202E p\206K \313&	\262<\203\\ \317>\204d \206a \320\317D\203| \304!>\204w \305\306\307D\"\210\321I\210\211\203\224 \304!>\204\217 \305\306\307D\"\210\322I\210\323!\207" [cl-struct-spinner-tags spinner-current spinner-frames-per-second mode-line-process type-of signal wrong-type-argument spinner 1 spinner--type-to-frames record 0 timer-create nil bufferp spinner--mode-line-construct "" 3 7 spinner--start-timer] 12 (#$ . 14227)])#@80 Like `spinner-print', but also start SPINNER if it's not active.

(fn SPINNER)
(defalias 'spinner-start-print #[257 "\301!>\204 \302\303\304D\"\210\211\305H\204 \306!\210\307!\207" [cl-struct-spinner-tags type-of signal wrong-type-argument spinner 5 spinner-start spinner-print] 5 (#$ . 15983)])#@160 Stop SPINNER, defaulting to the current buffer's spinner.
It is always safe to call this function, even if there is no
active spinner.

(fn &optional SPINNER)
(defalias 'spinner-stop #[256 "\211\206 \302!	>\205@ \302!	>\204 \303\304\305D\"\210\211\306H\307!\203) \310!\210\210\302!	>\2049 \303\304\305D\"\210\211\311\312I\210\313 \207" [spinner-current cl-struct-spinner-tags type-of signal wrong-type-argument spinner 4 timerp cancel-timer 5 nil force-mode-line-update] 6 (#$ . 16292)])
(provide 'spinner)
