Full Code of shadowsocks/ShadowsocksX-NG for AI

develop 719203afc60e cached
574 files
3.2 MB
875.9k tokens
21 symbols
1 requests
Download .txt
Showing preview only (3,493K chars total). Download the full file or copy to clipboard to get everything.
Repository: shadowsocks/ShadowsocksX-NG
Branch: develop
Commit: 719203afc60e
Files: 574
Total size: 3.2 MB

Directory structure:
gitextract_rw2t5x3v/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── Bug_report.md
│   │   └── Feature_request.md
│   └── workflows/
│       ├── feature.yml
│       └── release.yml
├── .gitignore
├── .gitmodules
├── LICENSE
├── LaunchHelper/
│   ├── LaunchHelper/
│   │   ├── AppDelegate.h
│   │   ├── AppDelegate.m
│   │   ├── Assets.xcassets/
│   │   │   └── AppIcon.appiconset/
│   │   │       └── Contents.json
│   │   ├── Base.lproj/
│   │   │   └── MainMenu.xib
│   │   ├── Info.plist
│   │   └── main.m
│   └── LaunchHelper.xcodeproj/
│       └── project.pbxproj
├── Makefile
├── Podfile
├── Pods/
│   ├── Alamofire/
│   │   ├── LICENSE
│   │   ├── README.md
│   │   └── Source/
│   │       ├── AFError.swift
│   │       ├── Alamofire.swift
│   │       ├── AlamofireExtended.swift
│   │       ├── AuthenticationInterceptor.swift
│   │       ├── CachedResponseHandler.swift
│   │       ├── Combine.swift
│   │       ├── DispatchQueue+Alamofire.swift
│   │       ├── EventMonitor.swift
│   │       ├── HTTPHeaders.swift
│   │       ├── HTTPMethod.swift
│   │       ├── MultipartFormData.swift
│   │       ├── MultipartUpload.swift
│   │       ├── NetworkReachabilityManager.swift
│   │       ├── Notifications.swift
│   │       ├── OperationQueue+Alamofire.swift
│   │       ├── ParameterEncoder.swift
│   │       ├── ParameterEncoding.swift
│   │       ├── Protected.swift
│   │       ├── RedirectHandler.swift
│   │       ├── Request.swift
│   │       ├── RequestInterceptor.swift
│   │       ├── RequestTaskMap.swift
│   │       ├── Response.swift
│   │       ├── ResponseSerialization.swift
│   │       ├── Result+Alamofire.swift
│   │       ├── RetryPolicy.swift
│   │       ├── ServerTrustEvaluation.swift
│   │       ├── Session.swift
│   │       ├── SessionDelegate.swift
│   │       ├── StringEncoding+Alamofire.swift
│   │       ├── URLConvertible+URLRequestConvertible.swift
│   │       ├── URLEncodedFormEncoder.swift
│   │       ├── URLRequest+Alamofire.swift
│   │       ├── URLSessionConfiguration+Alamofire.swift
│   │       └── Validation.swift
│   ├── BRLOptionParser/
│   │   ├── BRLOptionParser/
│   │   │   ├── BRLOptionParser.h
│   │   │   └── BRLOptionParser.m
│   │   ├── LICENSE
│   │   └── README.markdown
│   ├── GCDWebServer/
│   │   ├── GCDWebServer/
│   │   │   ├── Core/
│   │   │   │   ├── GCDWebServer.h
│   │   │   │   ├── GCDWebServer.m
│   │   │   │   ├── GCDWebServerConnection.h
│   │   │   │   ├── GCDWebServerConnection.m
│   │   │   │   ├── GCDWebServerFunctions.h
│   │   │   │   ├── GCDWebServerFunctions.m
│   │   │   │   ├── GCDWebServerHTTPStatusCodes.h
│   │   │   │   ├── GCDWebServerPrivate.h
│   │   │   │   ├── GCDWebServerRequest.h
│   │   │   │   ├── GCDWebServerRequest.m
│   │   │   │   ├── GCDWebServerResponse.h
│   │   │   │   └── GCDWebServerResponse.m
│   │   │   ├── Requests/
│   │   │   │   ├── GCDWebServerDataRequest.h
│   │   │   │   ├── GCDWebServerDataRequest.m
│   │   │   │   ├── GCDWebServerFileRequest.h
│   │   │   │   ├── GCDWebServerFileRequest.m
│   │   │   │   ├── GCDWebServerMultiPartFormRequest.h
│   │   │   │   ├── GCDWebServerMultiPartFormRequest.m
│   │   │   │   ├── GCDWebServerURLEncodedFormRequest.h
│   │   │   │   └── GCDWebServerURLEncodedFormRequest.m
│   │   │   └── Responses/
│   │   │       ├── GCDWebServerDataResponse.h
│   │   │       ├── GCDWebServerDataResponse.m
│   │   │       ├── GCDWebServerErrorResponse.h
│   │   │       ├── GCDWebServerErrorResponse.m
│   │   │       ├── GCDWebServerFileResponse.h
│   │   │       ├── GCDWebServerFileResponse.m
│   │   │       ├── GCDWebServerStreamedResponse.h
│   │   │       └── GCDWebServerStreamedResponse.m
│   │   ├── LICENSE
│   │   └── README.md
│   ├── MASShortcut/
│   │   ├── Framework/
│   │   │   ├── Model/
│   │   │   │   ├── MASKeyCodes.h
│   │   │   │   ├── MASKeyMasks.h
│   │   │   │   ├── MASShortcut.h
│   │   │   │   ├── MASShortcut.m
│   │   │   │   ├── MASShortcutValidator.h
│   │   │   │   └── MASShortcutValidator.m
│   │   │   ├── Monitoring/
│   │   │   │   ├── MASHotKey.h
│   │   │   │   ├── MASHotKey.m
│   │   │   │   ├── MASShortcutMonitor.h
│   │   │   │   └── MASShortcutMonitor.m
│   │   │   ├── Shortcut.h
│   │   │   ├── UI/
│   │   │   │   ├── MASLocalization.h
│   │   │   │   ├── MASLocalization.m
│   │   │   │   ├── MASShortcutView+Bindings.h
│   │   │   │   ├── MASShortcutView+Bindings.m
│   │   │   │   ├── MASShortcutView.h
│   │   │   │   └── MASShortcutView.m
│   │   │   └── User Defaults Storage/
│   │   │       ├── MASDictionaryTransformer.h
│   │   │       ├── MASDictionaryTransformer.m
│   │   │       ├── MASShortcutBinder.h
│   │   │       └── MASShortcutBinder.m
│   │   ├── LICENSE
│   │   ├── README.md
│   │   └── Resources/
│   │       ├── cs.lproj/
│   │       │   └── Localizable.strings
│   │       ├── de.lproj/
│   │       │   └── Localizable.strings
│   │       ├── en.lproj/
│   │       │   └── Localizable.strings
│   │       ├── es.lproj/
│   │       │   └── Localizable.strings
│   │       ├── fr.lproj/
│   │       │   └── Localizable.strings
│   │       ├── it.lproj/
│   │       │   └── Localizable.strings
│   │       ├── ja.lproj/
│   │       │   └── Localizable.strings
│   │       ├── ko.lproj/
│   │       │   └── Localizable.strings
│   │       ├── nl.lproj/
│   │       │   └── Localizable.strings
│   │       ├── pl.lproj/
│   │       │   └── Localizable.strings
│   │       ├── pt.lproj/
│   │       │   └── Localizable.strings
│   │       ├── ru.lproj/
│   │       │   └── Localizable.strings
│   │       ├── sv.lproj/
│   │       │   └── Localizable.strings
│   │       ├── zh-Hans.lproj/
│   │       │   └── Localizable.strings
│   │       └── zh-Hant.lproj/
│   │           └── Localizable.strings
│   ├── Pods.xcodeproj/
│   │   └── project.pbxproj
│   ├── RxCocoa/
│   │   ├── LICENSE.md
│   │   ├── Platform/
│   │   │   ├── DataStructures/
│   │   │   │   ├── Bag.swift
│   │   │   │   ├── InfiniteSequence.swift
│   │   │   │   ├── PriorityQueue.swift
│   │   │   │   └── Queue.swift
│   │   │   ├── DispatchQueue+Extensions.swift
│   │   │   ├── Platform.Darwin.swift
│   │   │   ├── Platform.Linux.swift
│   │   │   └── RecursiveLock.swift
│   │   ├── README.md
│   │   └── RxCocoa/
│   │       ├── Common/
│   │       │   ├── ControlTarget.swift
│   │       │   ├── DelegateProxy.swift
│   │       │   ├── DelegateProxyType.swift
│   │       │   ├── Infallible+Bind.swift
│   │       │   ├── Observable+Bind.swift
│   │       │   ├── RxCocoaObjCRuntimeError+Extensions.swift
│   │       │   ├── RxTarget.swift
│   │       │   ├── SectionedViewDataSourceType.swift
│   │       │   └── TextInput.swift
│   │       ├── Foundation/
│   │       │   ├── KVORepresentable+CoreGraphics.swift
│   │       │   ├── KVORepresentable+Swift.swift
│   │       │   ├── KVORepresentable.swift
│   │       │   ├── NSObject+Rx+KVORepresentable.swift
│   │       │   ├── NSObject+Rx+RawRepresentable.swift
│   │       │   ├── NSObject+Rx.swift
│   │       │   ├── NotificationCenter+Rx.swift
│   │       │   └── URLSession+Rx.swift
│   │       ├── Runtime/
│   │       │   ├── _RX.m
│   │       │   ├── _RXDelegateProxy.m
│   │       │   ├── _RXKVOObserver.m
│   │       │   ├── _RXObjCRuntime.m
│   │       │   └── include/
│   │       │       ├── RxCocoaRuntime.h
│   │       │       ├── _RX.h
│   │       │       ├── _RXDelegateProxy.h
│   │       │       ├── _RXKVOObserver.h
│   │       │       └── _RXObjCRuntime.h
│   │       ├── RxCocoa.h
│   │       ├── RxCocoa.swift
│   │       ├── Traits/
│   │       │   ├── ControlEvent.swift
│   │       │   ├── ControlProperty.swift
│   │       │   ├── Driver/
│   │       │   │   ├── BehaviorRelay+Driver.swift
│   │       │   │   ├── ControlEvent+Driver.swift
│   │       │   │   ├── ControlProperty+Driver.swift
│   │       │   │   ├── Driver+Subscription.swift
│   │       │   │   ├── Driver.swift
│   │       │   │   └── ObservableConvertibleType+Driver.swift
│   │       │   ├── SharedSequence/
│   │       │   │   ├── ObservableConvertibleType+SharedSequence.swift
│   │       │   │   ├── SchedulerType+SharedSequence.swift
│   │       │   │   ├── SharedSequence+Operators+arity.swift
│   │       │   │   ├── SharedSequence+Operators.swift
│   │       │   │   └── SharedSequence.swift
│   │       │   └── Signal/
│   │       │       ├── ControlEvent+Signal.swift
│   │       │       ├── ObservableConvertibleType+Signal.swift
│   │       │       ├── PublishRelay+Signal.swift
│   │       │       ├── Signal+Subscription.swift
│   │       │       └── Signal.swift
│   │       ├── iOS/
│   │       │   ├── DataSources/
│   │       │   │   ├── RxCollectionViewReactiveArrayDataSource.swift
│   │       │   │   ├── RxPickerViewAdapter.swift
│   │       │   │   └── RxTableViewReactiveArrayDataSource.swift
│   │       │   ├── Events/
│   │       │   │   └── ItemEvents.swift
│   │       │   ├── NSTextStorage+Rx.swift
│   │       │   ├── Protocols/
│   │       │   │   ├── RxCollectionViewDataSourceType.swift
│   │       │   │   ├── RxPickerViewDataSourceType.swift
│   │       │   │   └── RxTableViewDataSourceType.swift
│   │       │   ├── Proxies/
│   │       │   │   ├── RxCollectionViewDataSourcePrefetchingProxy.swift
│   │       │   │   ├── RxCollectionViewDataSourceProxy.swift
│   │       │   │   ├── RxCollectionViewDelegateProxy.swift
│   │       │   │   ├── RxNavigationControllerDelegateProxy.swift
│   │       │   │   ├── RxPickerViewDataSourceProxy.swift
│   │       │   │   ├── RxPickerViewDelegateProxy.swift
│   │       │   │   ├── RxScrollViewDelegateProxy.swift
│   │       │   │   ├── RxSearchBarDelegateProxy.swift
│   │       │   │   ├── RxSearchControllerDelegateProxy.swift
│   │       │   │   ├── RxTabBarControllerDelegateProxy.swift
│   │       │   │   ├── RxTabBarDelegateProxy.swift
│   │       │   │   ├── RxTableViewDataSourcePrefetchingProxy.swift
│   │       │   │   ├── RxTableViewDataSourceProxy.swift
│   │       │   │   ├── RxTableViewDelegateProxy.swift
│   │       │   │   ├── RxTextStorageDelegateProxy.swift
│   │       │   │   ├── RxTextViewDelegateProxy.swift
│   │       │   │   └── RxWKNavigationDelegateProxy.swift
│   │       │   ├── UIActivityIndicatorView+Rx.swift
│   │       │   ├── UIApplication+Rx.swift
│   │       │   ├── UIBarButtonItem+Rx.swift
│   │       │   ├── UIButton+Rx.swift
│   │       │   ├── UICollectionView+Rx.swift
│   │       │   ├── UIControl+Rx.swift
│   │       │   ├── UIDatePicker+Rx.swift
│   │       │   ├── UIGestureRecognizer+Rx.swift
│   │       │   ├── UINavigationController+Rx.swift
│   │       │   ├── UIPickerView+Rx.swift
│   │       │   ├── UIRefreshControl+Rx.swift
│   │       │   ├── UIScrollView+Rx.swift
│   │       │   ├── UISearchBar+Rx.swift
│   │       │   ├── UISearchController+Rx.swift
│   │       │   ├── UISegmentedControl+Rx.swift
│   │       │   ├── UISlider+Rx.swift
│   │       │   ├── UIStepper+Rx.swift
│   │       │   ├── UISwitch+Rx.swift
│   │       │   ├── UITabBar+Rx.swift
│   │       │   ├── UITabBarController+Rx.swift
│   │       │   ├── UITableView+Rx.swift
│   │       │   ├── UITextField+Rx.swift
│   │       │   ├── UITextView+Rx.swift
│   │       │   └── WKWebView+Rx.swift
│   │       └── macOS/
│   │           ├── NSButton+Rx.swift
│   │           ├── NSControl+Rx.swift
│   │           ├── NSSlider+Rx.swift
│   │           ├── NSTextField+Rx.swift
│   │           ├── NSTextView+Rx.swift
│   │           └── NSView+Rx.swift
│   ├── RxRelay/
│   │   ├── LICENSE.md
│   │   ├── README.md
│   │   └── RxRelay/
│   │       ├── BehaviorRelay.swift
│   │       ├── Observable+Bind.swift
│   │       ├── PublishRelay.swift
│   │       ├── ReplayRelay.swift
│   │       └── Utils.swift
│   ├── RxSwift/
│   │   ├── LICENSE.md
│   │   ├── Platform/
│   │   │   ├── AtomicInt.swift
│   │   │   ├── DataStructures/
│   │   │   │   ├── Bag.swift
│   │   │   │   ├── InfiniteSequence.swift
│   │   │   │   ├── PriorityQueue.swift
│   │   │   │   └── Queue.swift
│   │   │   ├── DispatchQueue+Extensions.swift
│   │   │   ├── Platform.Darwin.swift
│   │   │   ├── Platform.Linux.swift
│   │   │   └── RecursiveLock.swift
│   │   ├── README.md
│   │   └── RxSwift/
│   │       ├── AnyObserver.swift
│   │       ├── Binder.swift
│   │       ├── Cancelable.swift
│   │       ├── Concurrency/
│   │       │   ├── AsyncLock.swift
│   │       │   ├── Lock.swift
│   │       │   ├── LockOwnerType.swift
│   │       │   ├── SynchronizedDisposeType.swift
│   │       │   ├── SynchronizedOnType.swift
│   │       │   └── SynchronizedUnsubscribeType.swift
│   │       ├── ConnectableObservableType.swift
│   │       ├── Date+Dispatch.swift
│   │       ├── Disposable.swift
│   │       ├── Disposables/
│   │       │   ├── AnonymousDisposable.swift
│   │       │   ├── BinaryDisposable.swift
│   │       │   ├── BooleanDisposable.swift
│   │       │   ├── CompositeDisposable.swift
│   │       │   ├── Disposables.swift
│   │       │   ├── DisposeBag.swift
│   │       │   ├── DisposeBase.swift
│   │       │   ├── NopDisposable.swift
│   │       │   ├── RefCountDisposable.swift
│   │       │   ├── ScheduledDisposable.swift
│   │       │   ├── SerialDisposable.swift
│   │       │   ├── SingleAssignmentDisposable.swift
│   │       │   └── SubscriptionDisposable.swift
│   │       ├── Errors.swift
│   │       ├── Event.swift
│   │       ├── Extensions/
│   │       │   └── Bag+Rx.swift
│   │       ├── GroupedObservable.swift
│   │       ├── ImmediateSchedulerType.swift
│   │       ├── Observable.swift
│   │       ├── ObservableConvertibleType.swift
│   │       ├── ObservableType+Extensions.swift
│   │       ├── ObservableType.swift
│   │       ├── Observables/
│   │       │   ├── AddRef.swift
│   │       │   ├── Amb.swift
│   │       │   ├── AsMaybe.swift
│   │       │   ├── AsSingle.swift
│   │       │   ├── Buffer.swift
│   │       │   ├── Catch.swift
│   │       │   ├── CombineLatest+Collection.swift
│   │       │   ├── CombineLatest+arity.swift
│   │       │   ├── CombineLatest.swift
│   │       │   ├── CompactMap.swift
│   │       │   ├── Concat.swift
│   │       │   ├── Create.swift
│   │       │   ├── Debounce.swift
│   │       │   ├── Debug.swift
│   │       │   ├── Decode.swift
│   │       │   ├── DefaultIfEmpty.swift
│   │       │   ├── Deferred.swift
│   │       │   ├── Delay.swift
│   │       │   ├── DelaySubscription.swift
│   │       │   ├── Dematerialize.swift
│   │       │   ├── DistinctUntilChanged.swift
│   │       │   ├── Do.swift
│   │       │   ├── ElementAt.swift
│   │       │   ├── Empty.swift
│   │       │   ├── Enumerated.swift
│   │       │   ├── Error.swift
│   │       │   ├── Filter.swift
│   │       │   ├── First.swift
│   │       │   ├── Generate.swift
│   │       │   ├── GroupBy.swift
│   │       │   ├── Just.swift
│   │       │   ├── Map.swift
│   │       │   ├── Materialize.swift
│   │       │   ├── Merge.swift
│   │       │   ├── Multicast.swift
│   │       │   ├── Never.swift
│   │       │   ├── ObserveOn.swift
│   │       │   ├── Optional.swift
│   │       │   ├── Producer.swift
│   │       │   ├── Range.swift
│   │       │   ├── Reduce.swift
│   │       │   ├── Repeat.swift
│   │       │   ├── RetryWhen.swift
│   │       │   ├── Sample.swift
│   │       │   ├── Scan.swift
│   │       │   ├── Sequence.swift
│   │       │   ├── ShareReplayScope.swift
│   │       │   ├── SingleAsync.swift
│   │       │   ├── Sink.swift
│   │       │   ├── Skip.swift
│   │       │   ├── SkipUntil.swift
│   │       │   ├── SkipWhile.swift
│   │       │   ├── StartWith.swift
│   │       │   ├── SubscribeOn.swift
│   │       │   ├── Switch.swift
│   │       │   ├── SwitchIfEmpty.swift
│   │       │   ├── Take.swift
│   │       │   ├── TakeLast.swift
│   │       │   ├── TakeWithPredicate.swift
│   │       │   ├── Throttle.swift
│   │       │   ├── Timeout.swift
│   │       │   ├── Timer.swift
│   │       │   ├── ToArray.swift
│   │       │   ├── Using.swift
│   │       │   ├── Window.swift
│   │       │   ├── WithLatestFrom.swift
│   │       │   ├── WithUnretained.swift
│   │       │   ├── Zip+Collection.swift
│   │       │   ├── Zip+arity.swift
│   │       │   └── Zip.swift
│   │       ├── ObserverType.swift
│   │       ├── Observers/
│   │       │   ├── AnonymousObserver.swift
│   │       │   ├── ObserverBase.swift
│   │       │   └── TailRecursiveSink.swift
│   │       ├── Reactive.swift
│   │       ├── Rx.swift
│   │       ├── RxMutableBox.swift
│   │       ├── SchedulerType.swift
│   │       ├── Schedulers/
│   │       │   ├── ConcurrentDispatchQueueScheduler.swift
│   │       │   ├── ConcurrentMainScheduler.swift
│   │       │   ├── CurrentThreadScheduler.swift
│   │       │   ├── HistoricalScheduler.swift
│   │       │   ├── HistoricalSchedulerTimeConverter.swift
│   │       │   ├── Internal/
│   │       │   │   ├── DispatchQueueConfiguration.swift
│   │       │   │   ├── InvocableScheduledItem.swift
│   │       │   │   ├── InvocableType.swift
│   │       │   │   ├── ScheduledItem.swift
│   │       │   │   └── ScheduledItemType.swift
│   │       │   ├── MainScheduler.swift
│   │       │   ├── OperationQueueScheduler.swift
│   │       │   ├── RecursiveScheduler.swift
│   │       │   ├── SchedulerServices+Emulation.swift
│   │       │   ├── SerialDispatchQueueScheduler.swift
│   │       │   ├── VirtualTimeConverterType.swift
│   │       │   └── VirtualTimeScheduler.swift
│   │       ├── Subjects/
│   │       │   ├── AsyncSubject.swift
│   │       │   ├── BehaviorSubject.swift
│   │       │   ├── PublishSubject.swift
│   │       │   ├── ReplaySubject.swift
│   │       │   └── SubjectType.swift
│   │       ├── SwiftSupport/
│   │       │   └── SwiftSupport.swift
│   │       └── Traits/
│   │           ├── Infallible/
│   │           │   ├── Infallible+CombineLatest+arity.swift
│   │           │   ├── Infallible+Create.swift
│   │           │   ├── Infallible+Operators.swift
│   │           │   ├── Infallible+Zip+arity.swift
│   │           │   ├── Infallible.swift
│   │           │   └── ObservableConvertibleType+Infallible.swift
│   │           └── PrimitiveSequence/
│   │               ├── Completable+AndThen.swift
│   │               ├── Completable.swift
│   │               ├── Maybe.swift
│   │               ├── ObservableType+PrimitiveSequence.swift
│   │               ├── PrimitiveSequence+Zip+arity.swift
│   │               ├── PrimitiveSequence.swift
│   │               └── Single.swift
│   └── Target Support Files/
│       ├── Alamofire/
│       │   ├── Alamofire-Info.plist
│       │   ├── Alamofire-dummy.m
│       │   ├── Alamofire-prefix.pch
│       │   ├── Alamofire-umbrella.h
│       │   ├── Alamofire.debug.xcconfig
│       │   ├── Alamofire.modulemap
│       │   ├── Alamofire.release.xcconfig
│       │   ├── Alamofire.xcconfig
│       │   └── Info.plist
│       ├── BRLOptionParser/
│       │   ├── BRLOptionParser-dummy.m
│       │   ├── BRLOptionParser-prefix.pch
│       │   ├── BRLOptionParser.debug.xcconfig
│       │   ├── BRLOptionParser.release.xcconfig
│       │   └── BRLOptionParser.xcconfig
│       ├── GCDWebServer/
│       │   ├── GCDWebServer-Info.plist
│       │   ├── GCDWebServer-dummy.m
│       │   ├── GCDWebServer-prefix.pch
│       │   ├── GCDWebServer-umbrella.h
│       │   ├── GCDWebServer.debug.xcconfig
│       │   ├── GCDWebServer.modulemap
│       │   ├── GCDWebServer.release.xcconfig
│       │   ├── GCDWebServer.xcconfig
│       │   └── Info.plist
│       ├── MASShortcut/
│       │   ├── Info.plist
│       │   ├── MASShortcut-Info.plist
│       │   ├── MASShortcut-dummy.m
│       │   ├── MASShortcut-prefix.pch
│       │   ├── MASShortcut-umbrella.h
│       │   ├── MASShortcut.debug.xcconfig
│       │   ├── MASShortcut.modulemap
│       │   ├── MASShortcut.release.xcconfig
│       │   ├── MASShortcut.xcconfig
│       │   ├── ResourceBundle-MASShortcut-Info.plist
│       │   └── ResourceBundle-MASShortcut-MASShortcut-Info.plist
│       ├── Pods-ShadowsocksX-NG/
│       │   ├── Info.plist
│       │   ├── Pods-ShadowsocksX-NG-Info.plist
│       │   ├── Pods-ShadowsocksX-NG-acknowledgements.markdown
│       │   ├── Pods-ShadowsocksX-NG-acknowledgements.plist
│       │   ├── Pods-ShadowsocksX-NG-dummy.m
│       │   ├── Pods-ShadowsocksX-NG-frameworks.sh
│       │   ├── Pods-ShadowsocksX-NG-resources.sh
│       │   ├── Pods-ShadowsocksX-NG-umbrella.h
│       │   ├── Pods-ShadowsocksX-NG.debug.xcconfig
│       │   ├── Pods-ShadowsocksX-NG.modulemap
│       │   └── Pods-ShadowsocksX-NG.release.xcconfig
│       ├── Pods-ShadowsocksX-NGTests/
│       │   ├── Info.plist
│       │   ├── Pods-ShadowsocksX-NGTests-Info.plist
│       │   ├── Pods-ShadowsocksX-NGTests-acknowledgements.markdown
│       │   ├── Pods-ShadowsocksX-NGTests-acknowledgements.plist
│       │   ├── Pods-ShadowsocksX-NGTests-dummy.m
│       │   ├── Pods-ShadowsocksX-NGTests-frameworks.sh
│       │   ├── Pods-ShadowsocksX-NGTests-resources.sh
│       │   ├── Pods-ShadowsocksX-NGTests-umbrella.h
│       │   ├── Pods-ShadowsocksX-NGTests.debug.xcconfig
│       │   ├── Pods-ShadowsocksX-NGTests.modulemap
│       │   └── Pods-ShadowsocksX-NGTests.release.xcconfig
│       ├── Pods-proxy_conf_helper/
│       │   ├── Pods-proxy_conf_helper-acknowledgements.markdown
│       │   ├── Pods-proxy_conf_helper-acknowledgements.plist
│       │   ├── Pods-proxy_conf_helper-dummy.m
│       │   ├── Pods-proxy_conf_helper-frameworks.sh
│       │   ├── Pods-proxy_conf_helper-resources.sh
│       │   ├── Pods-proxy_conf_helper.debug.xcconfig
│       │   └── Pods-proxy_conf_helper.release.xcconfig
│       ├── RxCocoa/
│       │   ├── Info.plist
│       │   ├── RxCocoa-Info.plist
│       │   ├── RxCocoa-dummy.m
│       │   ├── RxCocoa-prefix.pch
│       │   ├── RxCocoa-umbrella.h
│       │   ├── RxCocoa.debug.xcconfig
│       │   ├── RxCocoa.modulemap
│       │   ├── RxCocoa.release.xcconfig
│       │   └── RxCocoa.xcconfig
│       ├── RxRelay/
│       │   ├── RxRelay-Info.plist
│       │   ├── RxRelay-dummy.m
│       │   ├── RxRelay-prefix.pch
│       │   ├── RxRelay-umbrella.h
│       │   ├── RxRelay.debug.xcconfig
│       │   ├── RxRelay.modulemap
│       │   └── RxRelay.release.xcconfig
│       └── RxSwift/
│           ├── Info.plist
│           ├── RxSwift-Info.plist
│           ├── RxSwift-dummy.m
│           ├── RxSwift-prefix.pch
│           ├── RxSwift-umbrella.h
│           ├── RxSwift.debug.xcconfig
│           ├── RxSwift.modulemap
│           ├── RxSwift.release.xcconfig
│           └── RxSwift.xcconfig
├── README.md
├── ShadowsocksX-NG/
│   ├── AppDelegate.swift
│   ├── Assets.xcassets/
│   │   ├── AppIcon.appiconset/
│   │   │   └── Contents.json
│   │   └── Contents.json
│   ├── Base.lproj/
│   │   ├── ImportWindowController.xib
│   │   ├── Localizable.strings
│   │   ├── MainMenu.xib
│   │   ├── PreferencesWinController.xib
│   │   ├── PreferencesWindowController.xib
│   │   ├── ShareServerProfilesWindowController.xib
│   │   └── UserRulesController.xib
│   ├── Credits.rtf
│   ├── Diagnose.swift
│   ├── ImportWindowController.swift
│   ├── Info.plist
│   ├── LaunchAgentUtils.swift
│   ├── LaunchAtLoginController.h
│   ├── LaunchAtLoginController.m
│   ├── Notifications.swift
│   ├── PACURLFormatter.swift
│   ├── PACUtils.swift
│   ├── PreferencesWinController.swift
│   ├── PreferencesWindowController.swift
│   ├── ProxyConfHelper.h
│   ├── ProxyConfHelper.m
│   ├── ProxyConfTool.h
│   ├── ProxyConfTool.m
│   ├── ProxyInterfacesViewCtrl.swift
│   ├── SWBApplication.h
│   ├── SWBApplication.m
│   ├── SWBQRCodeWindowController.h
│   ├── SWBQRCodeWindowController.m
│   ├── SWBQRCodeWindowController.xib
│   ├── ServerProfile.swift
│   ├── ServerProfileManager.swift
│   ├── ShadowsocksX-NG-Bridging-Header.h
│   ├── ShareServerProfilesWindowController.swift
│   ├── ShortcutsController.h
│   ├── ShortcutsController.m
│   ├── ToastWindowController.swift
│   ├── ToastWindowController.xib
│   ├── UserRulesController.swift
│   ├── Utils.h
│   ├── Utils.m
│   ├── Utils.swift
│   ├── abp.js
│   ├── fix_dir_owner.sh
│   ├── gfwlist.txt
│   ├── install_helper.sh
│   ├── kcptun/
│   │   ├── install_kcptun.sh
│   │   └── kcptun.sh
│   ├── privoxy/
│   │   ├── install_privoxy.sh
│   │   ├── privoxy.template.config
│   │   ├── start_privoxy.sh
│   │   ├── stop_privoxy.sh
│   │   └── user-privoxy.config
│   ├── proxy_conf_helper_version.h
│   ├── simple-obfs/
│   │   └── install_simple_obfs.sh
│   ├── ss-local/
│   │   ├── install_ss_local.sh
│   │   ├── start_ss_local.sh
│   │   └── stop_ss_local.sh
│   ├── user-rule.txt
│   ├── v2ray-plugin/
│   │   └── install_v2ray_plugin.sh
│   └── zh-Hans.lproj/
│       ├── ImportWindowController.strings
│       ├── Localizable.strings
│       ├── MainMenu.strings
│       ├── PreferencesWinController.strings
│       ├── PreferencesWindowController.strings
│       ├── ShareServerProfilesWindowController.strings
│       └── UserRulesController.strings
├── ShadowsocksX-NG.xcodeproj/
│   ├── project.pbxproj
│   └── xcshareddata/
│       └── xcschemes/
│           ├── ShadowsocksX-NG.xcscheme
│           ├── ShadowsocksX-NGTests.xcscheme
│           └── proxy_conf_helper.xcscheme
├── ShadowsocksX-NG.xcworkspace/
│   └── xcshareddata/
│       └── WorkspaceSettings.xcsettings
├── ShadowsocksX-NGTests/
│   ├── Info.plist
│   ├── ServerProfileTests.swift
│   └── ShadowsocksX_NGTests.swift
├── _config.yml
├── deps/
│   ├── Makefile
│   └── patch/
│       └── privoxy/
│           └── configure.in.patch
├── genstrings.py
└── proxy_conf_helper/
    └── main.m

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/ISSUE_TEMPLATE/Bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**System and Shadowsocksx-NG version: (please complete the following information):**
 - OS Version: [e.g. 10.13.1]
 - Version [e.g. 22]

**Diagnoisis file:**

Please first upgrade to the latest version.
Then export the diagnosis file and upload it to here.

**ss-local.log**

Please upload the ss-local.log file here the file is in `~/Library/Logs`
1) Open 'Advanced Settings -> enable Verbose Mode'
2) Continue run `Shadowsocksx-NG` for 5 minutes
3) Upload the `~/Library/Logs/ss-local.log` here (with or without compress)

**Application log**

Open the `Console.app` and search `Shadowsocksx-NG`
Copy paste the log here

**Crash Log**

If the app crashes and pop up a crash log, please copy and paste here

**Additional context**
Add any other context about the problem here.


================================================
FILE: .github/ISSUE_TEMPLATE/Feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.


================================================
FILE: .github/workflows/feature.yml
================================================
name: Feature Building

on:
  push:
    branches:
      - '*'
  pull_request:
    branches:
      - '*'

jobs:
  build:

    runs-on: macos-latest

    steps:

      - name: Checkout
        uses: actions/checkout@v3
        with:
          submodules: recursive
          fetch-depth: 0

      - name: Build
        run: |
          brew install automake
          brew install autoconf
          brew install libtool
          make VERSION="${GITHUB_SHA::7}" debug
          make debug-dmg
          shasum -a 256 build/Debug/ShadowsocksX-NG.dmg > build/Debug/ShadowsocksX-NG.dmg.checksum

      - name: Upload artifacts
        uses: actions/upload-artifact@v3
        with:
          name: ShadowsocksX-NG
          path: |
            build/Debug/ShadowsocksX-NG.dmg
            build/Debug/ShadowsocksX-NG.dmg.checksum


================================================
FILE: .github/workflows/release.yml
================================================
name: Release Building

on:
  push:
    tags:
      - '*'

jobs:
  build:

    runs-on: macos-latest

    steps:

      - name: Checkout
        uses: actions/checkout@v3
        with:
          submodules: recursive
          fetch-depth: 0

      - name: Build
        run: |
          brew install automake
          brew install autoconf
          brew install libtool
          make VERSION="${GITHUB_REF_NAME}" release
          make release-dmg 
          shasum -a 256 build/Release/ShadowsocksX-NG.dmg > build/Release/ShadowsocksX-NG.dmg.checksum

      - name: Upload artifacts
        uses: actions/upload-artifact@v3
        with:
          name: ShadowsocksX-NG
          path: |
            build/Release/ShadowsocksX-NG.dmg
            build/Release/ShadowsocksX-NG.dmg.checksum

      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          generate_release_notes: true
          files: |
            build/Release/ShadowsocksX-NG.dmg
            build/Release/ShadowsocksX-NG.dmg.checksum


================================================
FILE: .gitignore
================================================
#####
# OS X temporary files that should never be committed
.DS_Store
*.swp
*.lock
profile

####
# Xcode temporary files that should never be committed
*~.nib

####
# Objective-C/Swift specific
*.hmap
*.ipa

####
# Xcode build files
DerivedData/
build/
Builds/

#####
# Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
!default.pbxuser
!default.mode1v3
!default.mode2v3
!default.perspectivev3

####
# Xcode 4
xcuserdata
!xcschemes
# Xcode 4
*.moved-aside

####
# XCode 4 workspaces - more detailed
!xcshareddata
!default.xcworkspace
*.xcworkspacedata


####
# Xcode 5
*.xccheckout
*.xcuserstate

####
# Xcode 7
*.xcscmblueprint

####
# AppCode
.idea/

####
# Other Xcode files
profile
*.hmap
*.ipa

####
# Carthage
Carthage/Build

IDEWorkspaceChecks.plist

####
# Dependencies
deps/dist
deps/pcre*
deps/libev*
deps/privoxy*

ShadowsocksX-NG/kcptun/client
ShadowsocksX-NG/privoxy/privoxy
ShadowsocksX-NG/simple-obfs/obfs-local
ShadowsocksX-NG/ss-local/ss-local
ShadowsocksX-NG/v2ray-plugin/v2ray-plugin


================================================
FILE: .gitmodules
================================================
[submodule "shadowsocks-libev"]
	path = deps/shadowsocks-libev
	url = https://github.com/shadowsocks/shadowsocks-libev
[submodule "libsodium"]
	path = deps/libsodium
	url = https://github.com/jedisct1/libsodium
[submodule "mbedtls"]
	path = deps/mbedtls
	url = https://github.com/Mbed-TLS/mbedtls
[submodule "c-ares"]
	path = deps/c-ares
	url = https://github.com/c-ares/c-ares
[submodule "deps/shadowsocks-libev"]
	path = deps/shadowsocks-libev
	url = https://github.com/shadowsocks/shadowsocks-libev
[submodule "deps/libsodium"]
	path = deps/libsodium
	url = https://github.com/jedisct1/libsodium
[submodule "deps/mbedtls"]
	path = deps/mbedtls
	url = https://github.com/Mbed-TLS/mbedtls
[submodule "deps/c-ares"]
	path = deps/c-ares
	url = https://github.com/c-ares/c-ares
[submodule "deps/v2ray-plugin"]
	path = deps/v2ray-plugin
	url = https://github.com/shadowsocks/v2ray-plugin
[submodule "deps/kcptun"]
	path = deps/kcptun
	url = https://github.com/xtaci/kcptun
[submodule "deps/simple-obfs"]
	path = deps/simple-obfs
	url = https://github.com/shadowsocks/simple-obfs


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.


================================================
FILE: LaunchHelper/LaunchHelper/AppDelegate.h
================================================
//
//  AppDelegate.h
//  LaunchHelper
//
//  Created by 邱宇舟 on 2017/3/28.
//  Copyright © 2017年 qiuyuzhou. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface AppDelegate : NSObject <NSApplicationDelegate>


@end



================================================
FILE: LaunchHelper/LaunchHelper/AppDelegate.m
================================================
//
//  AppDelegate.m
//  LaunchHelper
//
//  Created by 邱宇舟 on 2017/3/28.
//  Copyright © 2017年 qiuyuzhou. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@property (weak) IBOutlet NSWindow *window;
@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
    NSLog(@"ShadowsocksX-NG LaunchHelper");
    
    NSWorkspace* ws = [NSWorkspace sharedWorkspace];
    BOOL bLaunched = NO;
    bLaunched = [ws launchApplication: @"/Applications/ShadowsocksX-NG.app"];
    if (!bLaunched) {
        bLaunched = [ws launchApplication: @"ShadowsocksX-NG.app"];
    }
    if (!bLaunched) {
        NSArray *pathComponents = [[[NSBundle mainBundle] bundlePath] pathComponents];
        pathComponents = [pathComponents subarrayWithRange:NSMakeRange(0, [pathComponents count] - 4)];
        NSString *path = [NSString pathWithComponents:pathComponents];
        [[NSWorkspace sharedWorkspace] launchApplication:path];
    }
    [NSApp terminate:nil];
}


- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
}


@end


================================================
FILE: LaunchHelper/LaunchHelper/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "mac",
      "size" : "16x16",
      "scale" : "1x"
    },
    {
      "idiom" : "mac",
      "size" : "16x16",
      "scale" : "2x"
    },
    {
      "idiom" : "mac",
      "size" : "32x32",
      "scale" : "1x"
    },
    {
      "idiom" : "mac",
      "size" : "32x32",
      "scale" : "2x"
    },
    {
      "idiom" : "mac",
      "size" : "128x128",
      "scale" : "1x"
    },
    {
      "idiom" : "mac",
      "size" : "128x128",
      "scale" : "2x"
    },
    {
      "idiom" : "mac",
      "size" : "256x256",
      "scale" : "1x"
    },
    {
      "idiom" : "mac",
      "size" : "256x256",
      "scale" : "2x"
    },
    {
      "idiom" : "mac",
      "size" : "512x512",
      "scale" : "1x"
    },
    {
      "idiom" : "mac",
      "size" : "512x512",
      "scale" : "2x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: LaunchHelper/LaunchHelper/Base.lproj/MainMenu.xib
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
    <dependencies>
        <deployment identifier="macosx"/>
        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
    </dependencies>
    <objects>
        <customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
            <connections>
                <outlet property="delegate" destination="Voe-Tx-rLC" id="GzC-gU-4Uq"/>
            </connections>
        </customObject>
        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
        <customObject id="Voe-Tx-rLC" customClass="AppDelegate"/>
        <customObject id="YLy-65-1bz" customClass="NSFontManager"/>
    </objects>
</document>


================================================
FILE: LaunchHelper/LaunchHelper/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIconFile</key>
	<string></string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleVersion</key>
	<string>2</string>
	<key>LSBackgroundOnly</key>
	<true/>
	<key>LSMinimumSystemVersion</key>
	<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
	<key>NSHumanReadableCopyright</key>
	<string>Copyright © 2017年 qiuyuzhou. All rights reserved.</string>
	<key>NSMainNibFile</key>
	<string>MainMenu</string>
	<key>NSPrincipalClass</key>
	<string>NSApplication</string>
</dict>
</plist>


================================================
FILE: LaunchHelper/LaunchHelper/main.m
================================================
//
//  main.m
//  LaunchHelper
//
//  Created by 邱宇舟 on 2017/3/28.
//  Copyright © 2017年 qiuyuzhou. All rights reserved.
//

#import <Cocoa/Cocoa.h>

int main(int argc, const char * argv[]) {
    return NSApplicationMain(argc, argv);
}


================================================
FILE: LaunchHelper/LaunchHelper.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
	archiveVersion = 1;
	classes = {
	};
	objectVersion = 46;
	objects = {

/* Begin PBXBuildFile section */
		9B9F13921E8A282C00DE4794 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B9F13911E8A282C00DE4794 /* AppDelegate.m */; };
		9B9F13951E8A282C00DE4794 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B9F13941E8A282C00DE4794 /* main.m */; };
		9B9F13971E8A282C00DE4794 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9B9F13961E8A282C00DE4794 /* Assets.xcassets */; };
		9B9F139A1E8A282C00DE4794 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9B9F13981E8A282C00DE4794 /* MainMenu.xib */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
		9B9F138D1E8A282C00DE4794 /* LaunchHelper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LaunchHelper.app; sourceTree = BUILT_PRODUCTS_DIR; };
		9B9F13901E8A282C00DE4794 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
		9B9F13911E8A282C00DE4794 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
		9B9F13941E8A282C00DE4794 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
		9B9F13961E8A282C00DE4794 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
		9B9F13991E8A282C00DE4794 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
		9B9F139B1E8A282C00DE4794 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		9B9F138A1E8A282C00DE4794 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
		9B9F13841E8A282C00DE4794 = {
			isa = PBXGroup;
			children = (
				9B9F138F1E8A282C00DE4794 /* LaunchHelper */,
				9B9F138E1E8A282C00DE4794 /* Products */,
			);
			sourceTree = "<group>";
		};
		9B9F138E1E8A282C00DE4794 /* Products */ = {
			isa = PBXGroup;
			children = (
				9B9F138D1E8A282C00DE4794 /* LaunchHelper.app */,
			);
			name = Products;
			sourceTree = "<group>";
		};
		9B9F138F1E8A282C00DE4794 /* LaunchHelper */ = {
			isa = PBXGroup;
			children = (
				9B9F13901E8A282C00DE4794 /* AppDelegate.h */,
				9B9F13911E8A282C00DE4794 /* AppDelegate.m */,
				9B9F13961E8A282C00DE4794 /* Assets.xcassets */,
				9B9F13981E8A282C00DE4794 /* MainMenu.xib */,
				9B9F139B1E8A282C00DE4794 /* Info.plist */,
				9B9F13931E8A282C00DE4794 /* Supporting Files */,
			);
			path = LaunchHelper;
			sourceTree = "<group>";
		};
		9B9F13931E8A282C00DE4794 /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				9B9F13941E8A282C00DE4794 /* main.m */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
		9B9F138C1E8A282C00DE4794 /* LaunchHelper */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = 9B9F139E1E8A282C00DE4794 /* Build configuration list for PBXNativeTarget "LaunchHelper" */;
			buildPhases = (
				9B9F13891E8A282C00DE4794 /* Sources */,
				9B9F138A1E8A282C00DE4794 /* Frameworks */,
				9B9F138B1E8A282C00DE4794 /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
			);
			name = LaunchHelper;
			productName = LaunchHelper;
			productReference = 9B9F138D1E8A282C00DE4794 /* LaunchHelper.app */;
			productType = "com.apple.product-type.application";
		};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
		9B9F13851E8A282C00DE4794 /* Project object */ = {
			isa = PBXProject;
			attributes = {
				LastUpgradeCheck = 1250;
				ORGANIZATIONNAME = qiuyuzhou;
				TargetAttributes = {
					9B9F138C1E8A282C00DE4794 = {
						CreatedOnToolsVersion = 8.2.1;
						ProvisioningStyle = Automatic;
					};
				};
			};
			buildConfigurationList = 9B9F13881E8A282C00DE4794 /* Build configuration list for PBXProject "LaunchHelper" */;
			compatibilityVersion = "Xcode 3.2";
			developmentRegion = English;
			hasScannedForEncodings = 0;
			knownRegions = (
				English,
				en,
				Base,
			);
			mainGroup = 9B9F13841E8A282C00DE4794;
			productRefGroup = 9B9F138E1E8A282C00DE4794 /* Products */;
			projectDirPath = "";
			projectRoot = "";
			targets = (
				9B9F138C1E8A282C00DE4794 /* LaunchHelper */,
			);
		};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
		9B9F138B1E8A282C00DE4794 /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				9B9F13971E8A282C00DE4794 /* Assets.xcassets in Resources */,
				9B9F139A1E8A282C00DE4794 /* MainMenu.xib in Resources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
		9B9F13891E8A282C00DE4794 /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				9B9F13951E8A282C00DE4794 /* main.m in Sources */,
				9B9F13921E8A282C00DE4794 /* AppDelegate.m in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
		9B9F13981E8A282C00DE4794 /* MainMenu.xib */ = {
			isa = PBXVariantGroup;
			children = (
				9B9F13991E8A282C00DE4794 /* Base */,
			);
			name = MainMenu.xib;
			sourceTree = "<group>";
		};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
		9B9F139C1E8A282C00DE4794 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
				CLANG_ANALYZER_NONNULL = YES;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_COMMA = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INFINITE_RECURSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
				CLANG_WARN_STRICT_PROTOTYPES = YES;
				CLANG_WARN_SUSPICIOUS_MOVE = YES;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				CODE_SIGN_IDENTITY = "-";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = dwarf;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				ENABLE_TESTABILITY = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.12;
				MTL_ENABLE_DEBUG_INFO = YES;
				ONLY_ACTIVE_ARCH = YES;
				SDKROOT = macosx;
			};
			name = Debug;
		};
		9B9F139D1E8A282C00DE4794 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
				CLANG_ANALYZER_NONNULL = YES;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_COMMA = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INFINITE_RECURSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
				CLANG_WARN_STRICT_PROTOTYPES = YES;
				CLANG_WARN_SUSPICIOUS_MOVE = YES;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				CODE_SIGN_IDENTITY = "-";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				ENABLE_NS_ASSERTIONS = NO;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.12;
				MTL_ENABLE_DEBUG_INFO = NO;
				SDKROOT = macosx;
			};
			name = Release;
		};
		9B9F139F1E8A282C00DE4794 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				CODE_SIGN_IDENTITY = "Apple Development";
				"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
				CODE_SIGN_STYLE = Automatic;
				COMBINE_HIDPI_IMAGES = YES;
				DEVELOPMENT_TEAM = "";
				INFOPLIST_FILE = LaunchHelper/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
				MACOSX_DEPLOYMENT_TARGET = 10.12;
				PRODUCT_BUNDLE_IDENTIFIER = "com.qiuyuzhou.ShadowsocksX-NG.LaunchHelper";
				PRODUCT_NAME = "$(TARGET_NAME)";
				PROVISIONING_PROFILE_SPECIFIER = "";
				SKIP_INSTALL = YES;
			};
			name = Debug;
		};
		9B9F13A01E8A282C00DE4794 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				CODE_SIGN_IDENTITY = "Apple Development";
				"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
				CODE_SIGN_STYLE = Automatic;
				COMBINE_HIDPI_IMAGES = YES;
				DEVELOPMENT_TEAM = "";
				INFOPLIST_FILE = LaunchHelper/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
				MACOSX_DEPLOYMENT_TARGET = 10.12;
				PRODUCT_BUNDLE_IDENTIFIER = "com.qiuyuzhou.ShadowsocksX-NG.LaunchHelper";
				PRODUCT_NAME = "$(TARGET_NAME)";
				PROVISIONING_PROFILE_SPECIFIER = "";
				SKIP_INSTALL = YES;
			};
			name = Release;
		};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
		9B9F13881E8A282C00DE4794 /* Build configuration list for PBXProject "LaunchHelper" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				9B9F139C1E8A282C00DE4794 /* Debug */,
				9B9F139D1E8A282C00DE4794 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		9B9F139E1E8A282C00DE4794 /* Build configuration list for PBXNativeTarget "LaunchHelper" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				9B9F139F1E8A282C00DE4794 /* Debug */,
				9B9F13A01E8A282C00DE4794 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
/* End XCConfigurationList section */
	};
	rootObject = 9B9F13851E8A282C00DE4794 /* Project object */;
}


================================================
FILE: Makefile
================================================
VERSION ?= 0.0.0

.PHONY: all
all: debug

.PHONY: debug
debug: deps/dist set-version
	xcodebuild -workspace ShadowsocksX-NG.xcworkspace -scheme ShadowsocksX-NG -configuration Debug SYMROOT=$${PWD}/build

.PHONY: release
release: deps/dist set-version
	xcodebuild -workspace ShadowsocksX-NG.xcworkspace -scheme ShadowsocksX-NG -configuration Release SYMROOT=$${PWD}/build

.PHONY: debug-dmg release-dmg
debug-dmg release-dmg: TARGET = $(subst -dmg,,$@)
debug-dmg release-dmg:
	t="$(TARGET)" && t="`tr '[:lower:]' '[:upper:]' <<< $${t:0:1}`$${t:1}" \
	  && rm -rf build/$${t}/ShadowsocksX-NG/ \
	  && mkdir build/$${t}/ShadowsocksX-NG \
	  && cp -r build/$${t}/ShadowsocksX-NG.app build/$${t}/ShadowsocksX-NG/ \
	  && ln -s /Applications build/$${t}/ShadowsocksX-NG/Applications \
	  && hdiutil create build/$${t}/ShadowsocksX-NG.dmg -ov -volname "ShadowsocksX-NG" -fs HFS+ -srcfolder build/$${t}/ShadowsocksX-NG/ \
          && rm -rf build/$${t}/ShadowsocksX-NG/

.PHONY: set-version
set-version:
	agvtool new-marketing-version $(VERSION)

deps/dist:
	$(MAKE) -C deps

.PHONY: clean
clean:
	$(MAKE) -C deps clean


================================================
FILE: Podfile
================================================
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :macos, '10.12'

target 'ShadowsocksX-NG' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for ShadowsocksX-NG
  pod 'Alamofire', '~> 5.4.3'
  pod "GCDWebServer", "~> 3.0"
  pod 'MASShortcut', '~> 2'
  
  # https://github.com/ReactiveX/RxSwift/blob/master/Documentation/GettingStarted.md
  pod 'RxSwift',    '~> 6.2.0'
  pod 'RxCocoa',    '~> 6.2.0'

  target 'ShadowsocksX-NGTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'proxy_conf_helper' do
  pod 'BRLOptionParser', '~> 0.3.1'
end


================================================
FILE: Pods/Alamofire/LICENSE
================================================
Copyright (c) 2014-2021 Alamofire Software Foundation (http://alamofire.org/)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


================================================
FILE: Pods/Alamofire/README.md
================================================
![Alamofire: Elegant Networking in Swift](https://raw.githubusercontent.com/Alamofire/Alamofire/master/alamofire.png)

[![Build Status](https://github.com/Alamofire/Alamofire/workflows/Alamofire%20CI/badge.svg?branch=master)](https://github.com/Alamofire/Alamofire/actions)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Alamofire.svg)](https://img.shields.io/cocoapods/v/Alamofire.svg)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Platform](https://img.shields.io/cocoapods/p/Alamofire.svg?style=flat)](https://alamofire.github.io/Alamofire)
[![Twitter](https://img.shields.io/badge/twitter-@AlamofireSF-blue.svg?style=flat)](https://twitter.com/AlamofireSF)
[![Gitter](https://badges.gitter.im/Alamofire/Alamofire.svg)](https://gitter.im/Alamofire/Alamofire?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Open Source Helpers](https://www.codetriage.com/alamofire/alamofire/badges/users.svg)](https://www.codetriage.com/alamofire/alamofire)

Alamofire is an HTTP networking library written in Swift.

- [Features](#features)
- [Component Libraries](#component-libraries)
- [Requirements](#requirements)
- [Migration Guides](#migration-guides)
- [Communication](#communication)
- [Installation](#installation)
- [Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#using-alamofire)
    - [**Introduction -**](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#introduction) [Making Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#making-requests), [Response Handling](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-handling), [Response Validation](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-validation), [Response Caching](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-caching)
	- **HTTP -** [HTTP Methods](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-methods), [Parameters and Parameter Encoder](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md##request-parameters-and-parameter-encoders), [HTTP Headers](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-headers), [Authentication](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#authentication)
	- **Large Data -** [Downloading Data to a File](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#downloading-data-to-a-file), [Uploading Data to a Server](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#uploading-data-to-a-server)
	- **Tools -** [Statistical Metrics](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#statistical-metrics), [cURL Command Output](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#curl-command-output)
- [Advanced Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md)
	- **URL Session -** [Session Manager](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#session), [Session Delegate](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#sessiondelegate), [Request](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#request)
	- **Routing -** [Routing Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#routing-requests), [Adapting and Retrying Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#adapting-and-retrying-requests-with-requestinterceptor)
	- **Model Objects -** [Custom Response Handlers](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#customizing-response-handlers)
	- **Connection -** [Security](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#security), [Network Reachability](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#network-reachability)
- [Open Radars](#open-radars)
- [FAQ](#faq)
- [Credits](#credits)
- [Donations](#donations)
- [License](#license)

## Features

- [x] Chainable Request / Response Methods
- [x] Combine Support
- [x] URL / JSON Parameter Encoding
- [x] Upload File / Data / Stream / MultipartFormData
- [x] Download File using Request or Resume Data
- [x] Authentication with `URLCredential`
- [x] HTTP Response Validation
- [x] Upload and Download Progress Closures with Progress
- [x] cURL Command Output
- [x] Dynamically Adapt and Retry Requests
- [x] TLS Certificate and Public Key Pinning
- [x] Network Reachability
- [x] Comprehensive Unit and Integration Test Coverage
- [x] [Complete Documentation](https://alamofire.github.io/Alamofire)

## Component Libraries

In order to keep Alamofire focused specifically on core networking implementations, additional component libraries have been created by the [Alamofire Software Foundation](https://github.com/Alamofire/Foundation) to bring additional functionality to the Alamofire ecosystem.

- [AlamofireImage](https://github.com/Alamofire/AlamofireImage) - An image library including image response serializers, `UIImage` and `UIImageView` extensions, custom image filters, an auto-purging in-memory cache, and a priority-based image downloading system.
- [AlamofireNetworkActivityIndicator](https://github.com/Alamofire/AlamofireNetworkActivityIndicator) - Controls the visibility of the network activity indicator on iOS using Alamofire. It contains configurable delay timers to help mitigate flicker and can support `URLSession` instances not managed by Alamofire.

## Requirements

- iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+
- Xcode 11+
- Swift 5.1+

## Migration Guides

- [Alamofire 5.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%205.0%20Migration%20Guide.md)
- [Alamofire 4.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md)
- [Alamofire 3.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%203.0%20Migration%20Guide.md)
- [Alamofire 2.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%202.0%20Migration%20Guide.md)

## Communication
- If you **need help with making network requests** using Alamofire, use [Stack Overflow](https://stackoverflow.com/questions/tagged/alamofire) and tag `alamofire`.
- If you need to **find or understand an API**, check [our documentation](http://alamofire.github.io/Alamofire/) or [Apple's documentation for `URLSession`](https://developer.apple.com/documentation/foundation/url_loading_system), on top of which Alamofire is built.
- If you need **help with an Alamofire feature**, use [our forum on swift.org](https://forums.swift.org/c/related-projects/alamofire).
- If you'd like to **discuss Alamofire best practices**, use [our forum on swift.org](https://forums.swift.org/c/related-projects/alamofire).
- If you'd like to **discuss a feature request**, use [our forum on swift.org](https://forums.swift.org/c/related-projects/alamofire). 
- If you **found a bug**, open an issue here on GitHub and follow the guide. The more detail the better!
- If you **want to contribute**, submit a pull request!

## Installation

### CocoaPods

[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your `Podfile`:

```ruby
pod 'Alamofire', '~> 5.2'
```

### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "Alamofire/Alamofire" ~> 5.2
```

### Swift Package Manager

The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but Alamofire does support its use on supported platforms.

Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.

```swift
dependencies: [
    .package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.2.0"))
]
```

### Manually

If you prefer not to use any of the aforementioned dependency managers, you can integrate Alamofire into your project manually.

#### Embedded Framework

- Open up Terminal, `cd` into your top-level project directory, and run the following command "if" your project is not initialized as a git repository:

  ```bash
  $ git init
  ```

- Add Alamofire as a git [submodule](https://git-scm.com/docs/git-submodule) by running the following command:

  ```bash
  $ git submodule add https://github.com/Alamofire/Alamofire.git
  ```

- Open the new `Alamofire` folder, and drag the `Alamofire.xcodeproj` into the Project Navigator of your application's Xcode project.

    > It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.

- Select the `Alamofire.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target.
- Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.
- In the tab bar at the top of that window, open the "General" panel.
- Click on the `+` button under the "Embedded Binaries" section.
- You will see two different `Alamofire.xcodeproj` folders each with two different versions of the `Alamofire.framework` nested inside a `Products` folder.

    > It does not matter which `Products` folder you choose from, but it does matter whether you choose the top or bottom `Alamofire.framework`.

- Select the top `Alamofire.framework` for iOS and the bottom one for macOS.

    > You can verify which one you selected by inspecting the build log for your project. The build target for `Alamofire` will be listed as `Alamofire iOS`, `Alamofire macOS`, `Alamofire tvOS`, or `Alamofire watchOS`.

- And that's it!

  > The `Alamofire.framework` is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.

## Open Radars

The following radars have some effect on the current implementation of Alamofire.

- [`rdar://21349340`](http://www.openradar.me/radar?id=5517037090635776) - Compiler throwing warning due to toll-free bridging issue in the test case
- `rdar://26870455` - Background URL Session Configurations do not work in the simulator
- `rdar://26849668` - Some URLProtocol APIs do not properly handle `URLRequest`
- `FB7624529` - `urlSession(_:task:didFinishCollecting:)` never called on watchOS

## Resolved Radars

The following radars have been resolved over time after being filed against the Alamofire project.

- [`rdar://26761490`](http://www.openradar.me/radar?id=5010235949318144) - Swift string interpolation causing memory leak with common usage.
  - (Resolved): 9/1/17 in Xcode 9 beta 6.
- [`rdar://36082113`](http://openradar.appspot.com/radar?id=4942308441063424) - `URLSessionTaskMetrics` failing to link on watchOS 3.0+
  - (Resolved): Just add `CFNetwork` to your linked frameworks.

## Workarounds

- Collection of `URLSessionTaskMetrics` is currently disabled on watchOS due to `FB7624529`.

## FAQ

### What's the origin of the name Alamofire?

Alamofire is named after the [Alamo Fire flower](https://aggie-horticulture.tamu.edu/wildseed/alamofire.html), a hybrid variant of the Bluebonnet, the official state flower of Texas.

## Credits

Alamofire is owned and maintained by the [Alamofire Software Foundation](http://alamofire.org). You can follow them on Twitter at [@AlamofireSF](https://twitter.com/AlamofireSF) for project updates and releases.

### Security Disclosure

If you believe you have identified a security vulnerability with Alamofire, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker.

## Donations

The [ASF](https://github.com/Alamofire/Foundation#members) is looking to raise money to officially stay registered as a federal non-profit organization.
Registering will allow Foundation members to gain some legal protections and also allow us to put donations to use, tax-free.
Donating to the ASF will enable us to:

- Pay our yearly legal fees to keep the non-profit in good status
- Pay for our mail servers to help us stay on top of all questions and security issues
- Potentially fund test servers to make it easier for us to test the edge cases
- Potentially fund developers to work on one of our projects full-time

The community adoption of the ASF libraries has been amazing.
We are greatly humbled by your enthusiasm around the projects and want to continue to do everything we can to move the needle forward.
With your continued support, the ASF will be able to improve its reach and also provide better legal safety for the core members.
If you use any of our libraries for work, see if your employers would be interested in donating.
Any amount you can donate today to help us reach our goal would be greatly appreciated.

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W34WPEE74APJQ)

## License

Alamofire is released under the MIT license. [See LICENSE](https://github.com/Alamofire/Alamofire/blob/master/LICENSE) for details.


================================================
FILE: Pods/Alamofire/Source/AFError.swift
================================================
//
//  AFError.swift
//
//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

import Foundation

/// `AFError` is the error type returned by Alamofire. It encompasses a few different types of errors, each with
/// their own associated reasons.
public enum AFError: Error {
    /// The underlying reason the `.multipartEncodingFailed` error occurred.
    public enum MultipartEncodingFailureReason {
        /// The `fileURL` provided for reading an encodable body part isn't a file `URL`.
        case bodyPartURLInvalid(url: URL)
        /// The filename of the `fileURL` provided has either an empty `lastPathComponent` or `pathExtension.
        case bodyPartFilenameInvalid(in: URL)
        /// The file at the `fileURL` provided was not reachable.
        case bodyPartFileNotReachable(at: URL)
        /// Attempting to check the reachability of the `fileURL` provided threw an error.
        case bodyPartFileNotReachableWithError(atURL: URL, error: Error)
        /// The file at the `fileURL` provided is actually a directory.
        case bodyPartFileIsDirectory(at: URL)
        /// The size of the file at the `fileURL` provided was not returned by the system.
        case bodyPartFileSizeNotAvailable(at: URL)
        /// The attempt to find the size of the file at the `fileURL` provided threw an error.
        case bodyPartFileSizeQueryFailedWithError(forURL: URL, error: Error)
        /// An `InputStream` could not be created for the provided `fileURL`.
        case bodyPartInputStreamCreationFailed(for: URL)
        /// An `OutputStream` could not be created when attempting to write the encoded data to disk.
        case outputStreamCreationFailed(for: URL)
        /// The encoded body data could not be written to disk because a file already exists at the provided `fileURL`.
        case outputStreamFileAlreadyExists(at: URL)
        /// The `fileURL` provided for writing the encoded body data to disk is not a file `URL`.
        case outputStreamURLInvalid(url: URL)
        /// The attempt to write the encoded body data to disk failed with an underlying error.
        case outputStreamWriteFailed(error: Error)
        /// The attempt to read an encoded body part `InputStream` failed with underlying system error.
        case inputStreamReadFailed(error: Error)
    }

    /// Represents unexpected input stream length that occur when encoding the `MultipartFormData`. Instances will be
    /// embedded within an `AFError.multipartEncodingFailed` `.inputStreamReadFailed` case.
    public struct UnexpectedInputStreamLength: Error {
        /// The expected byte count to read.
        public var bytesExpected: UInt64
        /// The actual byte count read.
        public var bytesRead: UInt64
    }

    /// The underlying reason the `.parameterEncodingFailed` error occurred.
    public enum ParameterEncodingFailureReason {
        /// The `URLRequest` did not have a `URL` to encode.
        case missingURL
        /// JSON serialization failed with an underlying system error during the encoding process.
        case jsonEncodingFailed(error: Error)
        /// Custom parameter encoding failed due to the associated `Error`.
        case customEncodingFailed(error: Error)
    }

    /// The underlying reason the `.parameterEncoderFailed` error occurred.
    public enum ParameterEncoderFailureReason {
        /// Possible missing components.
        public enum RequiredComponent {
            /// The `URL` was missing or unable to be extracted from the passed `URLRequest` or during encoding.
            case url
            /// The `HTTPMethod` could not be extracted from the passed `URLRequest`.
            case httpMethod(rawValue: String)
        }

        /// A `RequiredComponent` was missing during encoding.
        case missingRequiredComponent(RequiredComponent)
        /// The underlying encoder failed with the associated error.
        case encoderFailed(error: Error)
    }

    /// The underlying reason the `.responseValidationFailed` error occurred.
    public enum ResponseValidationFailureReason {
        /// The data file containing the server response did not exist.
        case dataFileNil
        /// The data file containing the server response at the associated `URL` could not be read.
        case dataFileReadFailed(at: URL)
        /// The response did not contain a `Content-Type` and the `acceptableContentTypes` provided did not contain a
        /// wildcard type.
        case missingContentType(acceptableContentTypes: [String])
        /// The response `Content-Type` did not match any type in the provided `acceptableContentTypes`.
        case unacceptableContentType(acceptableContentTypes: [String], responseContentType: String)
        /// The response status code was not acceptable.
        case unacceptableStatusCode(code: Int)
        /// Custom response validation failed due to the associated `Error`.
        case customValidationFailed(error: Error)
    }

    /// The underlying reason the response serialization error occurred.
    public enum ResponseSerializationFailureReason {
        /// The server response contained no data or the data was zero length.
        case inputDataNilOrZeroLength
        /// The file containing the server response did not exist.
        case inputFileNil
        /// The file containing the server response could not be read from the associated `URL`.
        case inputFileReadFailed(at: URL)
        /// String serialization failed using the provided `String.Encoding`.
        case stringSerializationFailed(encoding: String.Encoding)
        /// JSON serialization failed with an underlying system error.
        case jsonSerializationFailed(error: Error)
        /// A `DataDecoder` failed to decode the response due to the associated `Error`.
        case decodingFailed(error: Error)
        /// A custom response serializer failed due to the associated `Error`.
        case customSerializationFailed(error: Error)
        /// Generic serialization failed for an empty response that wasn't type `Empty` but instead the associated type.
        case invalidEmptyResponse(type: String)
    }

    /// Underlying reason a server trust evaluation error occurred.
    public enum ServerTrustFailureReason {
        /// The output of a server trust evaluation.
        public struct Output {
            /// The host for which the evaluation was performed.
            public let host: String
            /// The `SecTrust` value which was evaluated.
            public let trust: SecTrust
            /// The `OSStatus` of evaluation operation.
            public let status: OSStatus
            /// The result of the evaluation operation.
            public let result: SecTrustResultType

            /// Creates an `Output` value from the provided values.
            init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
                self.host = host
                self.trust = trust
                self.status = status
                self.result = result
            }
        }

        /// No `ServerTrustEvaluator` was found for the associated host.
        case noRequiredEvaluator(host: String)
        /// No certificates were found with which to perform the trust evaluation.
        case noCertificatesFound
        /// No public keys were found with which to perform the trust evaluation.
        case noPublicKeysFound
        /// During evaluation, application of the associated `SecPolicy` failed.
        case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
        /// During evaluation, setting the associated anchor certificates failed.
        case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
        /// During evaluation, creation of the revocation policy failed.
        case revocationPolicyCreationFailed
        /// `SecTrust` evaluation failed with the associated `Error`, if one was produced.
        case trustEvaluationFailed(error: Error?)
        /// Default evaluation failed with the associated `Output`.
        case defaultEvaluationFailed(output: Output)
        /// Host validation failed with the associated `Output`.
        case hostValidationFailed(output: Output)
        /// Revocation check failed with the associated `Output` and options.
        case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
        /// Certificate pinning failed.
        case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
        /// Public key pinning failed.
        case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
        /// Custom server trust evaluation failed due to the associated `Error`.
        case customEvaluationFailed(error: Error)
    }

    /// The underlying reason the `.urlRequestValidationFailed`
    public enum URLRequestValidationFailureReason {
        /// URLRequest with GET method had body data.
        case bodyDataInGETRequest(Data)
    }

    ///  `UploadableConvertible` threw an error in `createUploadable()`.
    case createUploadableFailed(error: Error)
    ///  `URLRequestConvertible` threw an error in `asURLRequest()`.
    case createURLRequestFailed(error: Error)
    /// `SessionDelegate` threw an error while attempting to move downloaded file to destination URL.
    case downloadedFileMoveFailed(error: Error, source: URL, destination: URL)
    /// `Request` was explicitly cancelled.
    case explicitlyCancelled
    /// `URLConvertible` type failed to create a valid `URL`.
    case invalidURL(url: URLConvertible)
    /// Multipart form encoding failed.
    case multipartEncodingFailed(reason: MultipartEncodingFailureReason)
    /// `ParameterEncoding` threw an error during the encoding process.
    case parameterEncodingFailed(reason: ParameterEncodingFailureReason)
    /// `ParameterEncoder` threw an error while running the encoder.
    case parameterEncoderFailed(reason: ParameterEncoderFailureReason)
    /// `RequestAdapter` threw an error during adaptation.
    case requestAdaptationFailed(error: Error)
    /// `RequestRetrier` threw an error during the request retry process.
    case requestRetryFailed(retryError: Error, originalError: Error)
    /// Response validation failed.
    case responseValidationFailed(reason: ResponseValidationFailureReason)
    /// Response serialization failed.
    case responseSerializationFailed(reason: ResponseSerializationFailureReason)
    /// `ServerTrustEvaluating` instance threw an error during trust evaluation.
    case serverTrustEvaluationFailed(reason: ServerTrustFailureReason)
    /// `Session` which issued the `Request` was deinitialized, most likely because its reference went out of scope.
    case sessionDeinitialized
    /// `Session` was explicitly invalidated, possibly with the `Error` produced by the underlying `URLSession`.
    case sessionInvalidated(error: Error?)
    /// `URLSessionTask` completed with error.
    case sessionTaskFailed(error: Error)
    /// `URLRequest` failed validation.
    case urlRequestValidationFailed(reason: URLRequestValidationFailureReason)
}

extension Error {
    /// Returns the instance cast as an `AFError`.
    public var asAFError: AFError? {
        self as? AFError
    }

    /// Returns the instance cast as an `AFError`. If casting fails, a `fatalError` with the specified `message` is thrown.
    public func asAFError(orFailWith message: @autoclosure () -> String, file: StaticString = #file, line: UInt = #line) -> AFError {
        guard let afError = self as? AFError else {
            fatalError(message(), file: file, line: line)
        }
        return afError
    }

    /// Casts the instance as `AFError` or returns `defaultAFError`
    func asAFError(or defaultAFError: @autoclosure () -> AFError) -> AFError {
        self as? AFError ?? defaultAFError()
    }
}

// MARK: - Error Booleans

extension AFError {
    /// Returns whether the instance is `.sessionDeinitialized`.
    public var isSessionDeinitializedError: Bool {
        if case .sessionDeinitialized = self { return true }
        return false
    }

    /// Returns whether the instance is `.sessionInvalidated`.
    public var isSessionInvalidatedError: Bool {
        if case .sessionInvalidated = self { return true }
        return false
    }

    /// Returns whether the instance is `.explicitlyCancelled`.
    public var isExplicitlyCancelledError: Bool {
        if case .explicitlyCancelled = self { return true }
        return false
    }

    /// Returns whether the instance is `.invalidURL`.
    public var isInvalidURLError: Bool {
        if case .invalidURL = self { return true }
        return false
    }

    /// Returns whether the instance is `.parameterEncodingFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isParameterEncodingError: Bool {
        if case .parameterEncodingFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `.parameterEncoderFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isParameterEncoderError: Bool {
        if case .parameterEncoderFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `.multipartEncodingFailed`. When `true`, the `url` and `underlyingError`
    /// properties will contain the associated values.
    public var isMultipartEncodingError: Bool {
        if case .multipartEncodingFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `.requestAdaptationFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isRequestAdaptationError: Bool {
        if case .requestAdaptationFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `.responseValidationFailed`. When `true`, the `acceptableContentTypes`,
    /// `responseContentType`,  `responseCode`, and `underlyingError` properties will contain the associated values.
    public var isResponseValidationError: Bool {
        if case .responseValidationFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `.responseSerializationFailed`. When `true`, the `failedStringEncoding` and
    /// `underlyingError` properties will contain the associated values.
    public var isResponseSerializationError: Bool {
        if case .responseSerializationFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `.serverTrustEvaluationFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isServerTrustEvaluationError: Bool {
        if case .serverTrustEvaluationFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `requestRetryFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isRequestRetryError: Bool {
        if case .requestRetryFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `createUploadableFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isCreateUploadableError: Bool {
        if case .createUploadableFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `createURLRequestFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isCreateURLRequestError: Bool {
        if case .createURLRequestFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `downloadedFileMoveFailed`. When `true`, the `destination` and `underlyingError` properties will
    /// contain the associated values.
    public var isDownloadedFileMoveError: Bool {
        if case .downloadedFileMoveFailed = self { return true }
        return false
    }

    /// Returns whether the instance is `createURLRequestFailed`. When `true`, the `underlyingError` property will
    /// contain the associated value.
    public var isSessionTaskError: Bool {
        if case .sessionTaskFailed = self { return true }
        return false
    }
}

// MARK: - Convenience Properties

extension AFError {
    /// The `URLConvertible` associated with the error.
    public var urlConvertible: URLConvertible? {
        guard case let .invalidURL(url) = self else { return nil }
        return url
    }

    /// The `URL` associated with the error.
    public var url: URL? {
        guard case let .multipartEncodingFailed(reason) = self else { return nil }
        return reason.url
    }

    /// The underlying `Error` responsible for generating the failure associated with `.sessionInvalidated`,
    /// `.parameterEncodingFailed`, `.parameterEncoderFailed`, `.multipartEncodingFailed`, `.requestAdaptationFailed`,
    /// `.responseSerializationFailed`, `.requestRetryFailed` errors.
    public var underlyingError: Error? {
        switch self {
        case let .multipartEncodingFailed(reason):
            return reason.underlyingError
        case let .parameterEncodingFailed(reason):
            return reason.underlyingError
        case let .parameterEncoderFailed(reason):
            return reason.underlyingError
        case let .requestAdaptationFailed(error):
            return error
        case let .requestRetryFailed(retryError, _):
            return retryError
        case let .responseValidationFailed(reason):
            return reason.underlyingError
        case let .responseSerializationFailed(reason):
            return reason.underlyingError
        case let .serverTrustEvaluationFailed(reason):
            return reason.underlyingError
        case let .sessionInvalidated(error):
            return error
        case let .createUploadableFailed(error):
            return error
        case let .createURLRequestFailed(error):
            return error
        case let .downloadedFileMoveFailed(error, _, _):
            return error
        case let .sessionTaskFailed(error):
            return error
        case .explicitlyCancelled,
             .invalidURL,
             .sessionDeinitialized,
             .urlRequestValidationFailed:
            return nil
        }
    }

    /// The acceptable `Content-Type`s of a `.responseValidationFailed` error.
    public var acceptableContentTypes: [String]? {
        guard case let .responseValidationFailed(reason) = self else { return nil }
        return reason.acceptableContentTypes
    }

    /// The response `Content-Type` of a `.responseValidationFailed` error.
    public var responseContentType: String? {
        guard case let .responseValidationFailed(reason) = self else { return nil }
        return reason.responseContentType
    }

    /// The response code of a `.responseValidationFailed` error.
    public var responseCode: Int? {
        guard case let .responseValidationFailed(reason) = self else { return nil }
        return reason.responseCode
    }

    /// The `String.Encoding` associated with a failed `.stringResponse()` call.
    public var failedStringEncoding: String.Encoding? {
        guard case let .responseSerializationFailed(reason) = self else { return nil }
        return reason.failedStringEncoding
    }

    /// The `source` URL of a `.downloadedFileMoveFailed` error.
    public var sourceURL: URL? {
        guard case let .downloadedFileMoveFailed(_, source, _) = self else { return nil }
        return source
    }

    /// The `destination` URL of a `.downloadedFileMoveFailed` error.
    public var destinationURL: URL? {
        guard case let .downloadedFileMoveFailed(_, _, destination) = self else { return nil }
        return destination
    }

    /// The download resume data of any underlying network error. Only produced by `DownloadRequest`s.
    public var downloadResumeData: Data? {
        (underlyingError as? URLError)?.userInfo[NSURLSessionDownloadTaskResumeData] as? Data
    }
}

extension AFError.ParameterEncodingFailureReason {
    var underlyingError: Error? {
        switch self {
        case let .jsonEncodingFailed(error),
             let .customEncodingFailed(error):
            return error
        case .missingURL:
            return nil
        }
    }
}

extension AFError.ParameterEncoderFailureReason {
    var underlyingError: Error? {
        switch self {
        case let .encoderFailed(error):
            return error
        case .missingRequiredComponent:
            return nil
        }
    }
}

extension AFError.MultipartEncodingFailureReason {
    var url: URL? {
        switch self {
        case let .bodyPartURLInvalid(url),
             let .bodyPartFilenameInvalid(url),
             let .bodyPartFileNotReachable(url),
             let .bodyPartFileIsDirectory(url),
             let .bodyPartFileSizeNotAvailable(url),
             let .bodyPartInputStreamCreationFailed(url),
             let .outputStreamCreationFailed(url),
             let .outputStreamFileAlreadyExists(url),
             let .outputStreamURLInvalid(url),
             let .bodyPartFileNotReachableWithError(url, _),
             let .bodyPartFileSizeQueryFailedWithError(url, _):
            return url
        case .outputStreamWriteFailed,
             .inputStreamReadFailed:
            return nil
        }
    }

    var underlyingError: Error? {
        switch self {
        case let .bodyPartFileNotReachableWithError(_, error),
             let .bodyPartFileSizeQueryFailedWithError(_, error),
             let .outputStreamWriteFailed(error),
             let .inputStreamReadFailed(error):
            return error
        case .bodyPartURLInvalid,
             .bodyPartFilenameInvalid,
             .bodyPartFileNotReachable,
             .bodyPartFileIsDirectory,
             .bodyPartFileSizeNotAvailable,
             .bodyPartInputStreamCreationFailed,
             .outputStreamCreationFailed,
             .outputStreamFileAlreadyExists,
             .outputStreamURLInvalid:
            return nil
        }
    }
}

extension AFError.ResponseValidationFailureReason {
    var acceptableContentTypes: [String]? {
        switch self {
        case let .missingContentType(types),
             let .unacceptableContentType(types, _):
            return types
        case .dataFileNil,
             .dataFileReadFailed,
             .unacceptableStatusCode,
             .customValidationFailed:
            return nil
        }
    }

    var responseContentType: String? {
        switch self {
        case let .unacceptableContentType(_, responseType):
            return responseType
        case .dataFileNil,
             .dataFileReadFailed,
             .missingContentType,
             .unacceptableStatusCode,
             .customValidationFailed:
            return nil
        }
    }

    var responseCode: Int? {
        switch self {
        case let .unacceptableStatusCode(code):
            return code
        case .dataFileNil,
             .dataFileReadFailed,
             .missingContentType,
             .unacceptableContentType,
             .customValidationFailed:
            return nil
        }
    }

    var underlyingError: Error? {
        switch self {
        case let .customValidationFailed(error):
            return error
        case .dataFileNil,
             .dataFileReadFailed,
             .missingContentType,
             .unacceptableContentType,
             .unacceptableStatusCode:
            return nil
        }
    }
}

extension AFError.ResponseSerializationFailureReason {
    var failedStringEncoding: String.Encoding? {
        switch self {
        case let .stringSerializationFailed(encoding):
            return encoding
        case .inputDataNilOrZeroLength,
             .inputFileNil,
             .inputFileReadFailed(_),
             .jsonSerializationFailed(_),
             .decodingFailed(_),
             .customSerializationFailed(_),
             .invalidEmptyResponse:
            return nil
        }
    }

    var underlyingError: Error? {
        switch self {
        case let .jsonSerializationFailed(error),
             let .decodingFailed(error),
             let .customSerializationFailed(error):
            return error
        case .inputDataNilOrZeroLength,
             .inputFileNil,
             .inputFileReadFailed,
             .stringSerializationFailed,
             .invalidEmptyResponse:
            return nil
        }
    }
}

extension AFError.ServerTrustFailureReason {
    var output: AFError.ServerTrustFailureReason.Output? {
        switch self {
        case let .defaultEvaluationFailed(output),
             let .hostValidationFailed(output),
             let .revocationCheckFailed(output, _):
            return output
        case .noRequiredEvaluator,
             .noCertificatesFound,
             .noPublicKeysFound,
             .policyApplicationFailed,
             .settingAnchorCertificatesFailed,
             .revocationPolicyCreationFailed,
             .trustEvaluationFailed,
             .certificatePinningFailed,
             .publicKeyPinningFailed,
             .customEvaluationFailed:
            return nil
        }
    }

    var underlyingError: Error? {
        switch self {
        case let .customEvaluationFailed(error):
            return error
        case let .trustEvaluationFailed(error):
            return error
        case .noRequiredEvaluator,
             .noCertificatesFound,
             .noPublicKeysFound,
             .policyApplicationFailed,
             .settingAnchorCertificatesFailed,
             .revocationPolicyCreationFailed,
             .defaultEvaluationFailed,
             .hostValidationFailed,
             .revocationCheckFailed,
             .certificatePinningFailed,
             .publicKeyPinningFailed:
            return nil
        }
    }
}

// MARK: - Error Descriptions

extension AFError: LocalizedError {
    public var errorDescription: String? {
        switch self {
        case .explicitlyCancelled:
            return "Request explicitly cancelled."
        case let .invalidURL(url):
            return "URL is not valid: \(url)"
        case let .parameterEncodingFailed(reason):
            return reason.localizedDescription
        case let .parameterEncoderFailed(reason):
            return reason.localizedDescription
        case let .multipartEncodingFailed(reason):
            return reason.localizedDescription
        case let .requestAdaptationFailed(error):
            return "Request adaption failed with error: \(error.localizedDescription)"
        case let .responseValidationFailed(reason):
            return reason.localizedDescription
        case let .responseSerializationFailed(reason):
            return reason.localizedDescription
        case let .requestRetryFailed(retryError, originalError):
            return """
            Request retry failed with retry error: \(retryError.localizedDescription), \
            original error: \(originalError.localizedDescription)
            """
        case .sessionDeinitialized:
            return """
            Session was invalidated without error, so it was likely deinitialized unexpectedly. \
            Be sure to retain a reference to your Session for the duration of your requests.
            """
        case let .sessionInvalidated(error):
            return "Session was invalidated with error: \(error?.localizedDescription ?? "No description.")"
        case let .serverTrustEvaluationFailed(reason):
            return "Server trust evaluation failed due to reason: \(reason.localizedDescription)"
        case let .urlRequestValidationFailed(reason):
            return "URLRequest validation failed due to reason: \(reason.localizedDescription)"
        case let .createUploadableFailed(error):
            return "Uploadable creation failed with error: \(error.localizedDescription)"
        case let .createURLRequestFailed(error):
            return "URLRequest creation failed with error: \(error.localizedDescription)"
        case let .downloadedFileMoveFailed(error, source, destination):
            return "Moving downloaded file from: \(source) to: \(destination) failed with error: \(error.localizedDescription)"
        case let .sessionTaskFailed(error):
            return "URLSessionTask failed with error: \(error.localizedDescription)"
        }
    }
}

extension AFError.ParameterEncodingFailureReason {
    var localizedDescription: String {
        switch self {
        case .missingURL:
            return "URL request to encode was missing a URL"
        case let .jsonEncodingFailed(error):
            return "JSON could not be encoded because of error:\n\(error.localizedDescription)"
        case let .customEncodingFailed(error):
            return "Custom parameter encoder failed with error: \(error.localizedDescription)"
        }
    }
}

extension AFError.ParameterEncoderFailureReason {
    var localizedDescription: String {
        switch self {
        case let .missingRequiredComponent(component):
            return "Encoding failed due to a missing request component: \(component)"
        case let .encoderFailed(error):
            return "The underlying encoder failed with the error: \(error)"
        }
    }
}

extension AFError.MultipartEncodingFailureReason {
    var localizedDescription: String {
        switch self {
        case let .bodyPartURLInvalid(url):
            return "The URL provided is not a file URL: \(url)"
        case let .bodyPartFilenameInvalid(url):
            return "The URL provided does not have a valid filename: \(url)"
        case let .bodyPartFileNotReachable(url):
            return "The URL provided is not reachable: \(url)"
        case let .bodyPartFileNotReachableWithError(url, error):
            return """
            The system returned an error while checking the provided URL for reachability.
            URL: \(url)
            Error: \(error)
            """
        case let .bodyPartFileIsDirectory(url):
            return "The URL provided is a directory: \(url)"
        case let .bodyPartFileSizeNotAvailable(url):
            return "Could not fetch the file size from the provided URL: \(url)"
        case let .bodyPartFileSizeQueryFailedWithError(url, error):
            return """
            The system returned an error while attempting to fetch the file size from the provided URL.
            URL: \(url)
            Error: \(error)
            """
        case let .bodyPartInputStreamCreationFailed(url):
            return "Failed to create an InputStream for the provided URL: \(url)"
        case let .outputStreamCreationFailed(url):
            return "Failed to create an OutputStream for URL: \(url)"
        case let .outputStreamFileAlreadyExists(url):
            return "A file already exists at the provided URL: \(url)"
        case let .outputStreamURLInvalid(url):
            return "The provided OutputStream URL is invalid: \(url)"
        case let .outputStreamWriteFailed(error):
            return "OutputStream write failed with error: \(error)"
        case let .inputStreamReadFailed(error):
            return "InputStream read failed with error: \(error)"
        }
    }
}

extension AFError.ResponseSerializationFailureReason {
    var localizedDescription: String {
        switch self {
        case .inputDataNilOrZeroLength:
            return "Response could not be serialized, input data was nil or zero length."
        case .inputFileNil:
            return "Response could not be serialized, input file was nil."
        case let .inputFileReadFailed(url):
            return "Response could not be serialized, input file could not be read: \(url)."
        case let .stringSerializationFailed(encoding):
            return "String could not be serialized with encoding: \(encoding)."
        case let .jsonSerializationFailed(error):
            return "JSON could not be serialized because of error:\n\(error.localizedDescription)"
        case let .invalidEmptyResponse(type):
            return """
            Empty response could not be serialized to type: \(type). \
            Use Empty as the expected type for such responses.
            """
        case let .decodingFailed(error):
            return "Response could not be decoded because of error:\n\(error.localizedDescription)"
        case let .customSerializationFailed(error):
            return "Custom response serializer failed with error:\n\(error.localizedDescription)"
        }
    }
}

extension AFError.ResponseValidationFailureReason {
    var localizedDescription: String {
        switch self {
        case .dataFileNil:
            return "Response could not be validated, data file was nil."
        case let .dataFileReadFailed(url):
            return "Response could not be validated, data file could not be read: \(url)."
        case let .missingContentType(types):
            return """
            Response Content-Type was missing and acceptable content types \
            (\(types.joined(separator: ","))) do not match "*/*".
            """
        case let .unacceptableContentType(acceptableTypes, responseType):
            return """
            Response Content-Type "\(responseType)" does not match any acceptable types: \
            \(acceptableTypes.joined(separator: ",")).
            """
        case let .unacceptableStatusCode(code):
            return "Response status code was unacceptable: \(code)."
        case let .customValidationFailed(error):
            return "Custom response validation failed with error: \(error.localizedDescription)"
        }
    }
}

extension AFError.ServerTrustFailureReason {
    var localizedDescription: String {
        switch self {
        case let .noRequiredEvaluator(host):
            return "A ServerTrustEvaluating value is required for host \(host) but none was found."
        case .noCertificatesFound:
            return "No certificates were found or provided for evaluation."
        case .noPublicKeysFound:
            return "No public keys were found or provided for evaluation."
        case .policyApplicationFailed:
            return "Attempting to set a SecPolicy failed."
        case .settingAnchorCertificatesFailed:
            return "Attempting to set the provided certificates as anchor certificates failed."
        case .revocationPolicyCreationFailed:
            return "Attempting to create a revocation policy failed."
        case let .trustEvaluationFailed(error):
            return "SecTrust evaluation failed with error: \(error?.localizedDescription ?? "None")"
        case let .defaultEvaluationFailed(output):
            return "Default evaluation failed for host \(output.host)."
        case let .hostValidationFailed(output):
            return "Host validation failed for host \(output.host)."
        case let .revocationCheckFailed(output, _):
            return "Revocation check failed for host \(output.host)."
        case let .certificatePinningFailed(host, _, _, _):
            return "Certificate pinning failed for host \(host)."
        case let .publicKeyPinningFailed(host, _, _, _):
            return "Public key pinning failed for host \(host)."
        case let .customEvaluationFailed(error):
            return "Custom trust evaluation failed with error: \(error.localizedDescription)"
        }
    }
}

extension AFError.URLRequestValidationFailureReason {
    var localizedDescription: String {
        switch self {
        case let .bodyDataInGETRequest(data):
            return """
            Invalid URLRequest: Requests with GET method cannot have body data:
            \(String(decoding: data, as: UTF8.self))
            """
        }
    }
}


================================================
FILE: Pods/Alamofire/Source/Alamofire.swift
================================================
//
//  Alamofire.swift
//
//  Copyright (c) 2014-2021 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

/// Reference to `Session.default` for quick bootstrapping and examples.
public let AF = Session.default

/// Current Alamofire version. Necessary since SPM doesn't use dynamic libraries. Plus this will be more accurate.
let version = "5.4.3"


================================================
FILE: Pods/Alamofire/Source/AlamofireExtended.swift
================================================
//
//  AlamofireExtended.swift
//
//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

/// Type that acts as a generic extension point for all `AlamofireExtended` types.
public struct AlamofireExtension<ExtendedType> {
    /// Stores the type or meta-type of any extended type.
    public private(set) var type: ExtendedType

    /// Create an instance from the provided value.
    ///
    /// - Parameter type: Instance being extended.
    public init(_ type: ExtendedType) {
        self.type = type
    }
}

/// Protocol describing the `af` extension points for Alamofire extended types.
public protocol AlamofireExtended {
    /// Type being extended.
    associatedtype ExtendedType

    /// Static Alamofire extension point.
    static var af: AlamofireExtension<ExtendedType>.Type { get set }
    /// Instance Alamofire extension point.
    var af: AlamofireExtension<ExtendedType> { get set }
}

extension AlamofireExtended {
    /// Static Alamofire extension point.
    public static var af: AlamofireExtension<Self>.Type {
        get { AlamofireExtension<Self>.self }
        set {}
    }

    /// Instance Alamofire extension point.
    public var af: AlamofireExtension<Self> {
        get { AlamofireExtension(self) }
        set {}
    }
}


================================================
FILE: Pods/Alamofire/Source/AuthenticationInterceptor.swift
================================================
//
//  AuthenticationInterceptor.swift
//
//  Copyright (c) 2020 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

import Foundation

/// Types adopting the `AuthenticationCredential` protocol can be used to authenticate `URLRequest`s.
///
/// One common example of an `AuthenticationCredential` is an OAuth2 credential containing an access token used to
/// authenticate all requests on behalf of a user. The access token generally has an expiration window of 60 minutes
/// which will then require a refresh of the credential using the refresh token to generate a new access token.
public protocol AuthenticationCredential {
    /// Whether the credential requires a refresh. This property should always return `true` when the credential is
    /// expired. It is also wise to consider returning `true` when the credential will expire in several seconds or
    /// minutes depending on the expiration window of the credential.
    ///
    /// For example, if the credential is valid for 60 minutes, then it would be wise to return `true` when the
    /// credential is only valid for 5 minutes or less. That ensures the credential will not expire as it is passed
    /// around backend services.
    var requiresRefresh: Bool { get }
}

// MARK: -

/// Types adopting the `Authenticator` protocol can be used to authenticate `URLRequest`s with an
/// `AuthenticationCredential` as well as refresh the `AuthenticationCredential` when required.
public protocol Authenticator: AnyObject {
    /// The type of credential associated with the `Authenticator` instance.
    associatedtype Credential: AuthenticationCredential

    /// Applies the `Credential` to the `URLRequest`.
    ///
    /// In the case of OAuth2, the access token of the `Credential` would be added to the `URLRequest` as a Bearer
    /// token to the `Authorization` header.
    ///
    /// - Parameters:
    ///   - credential: The `Credential`.
    ///   - urlRequest: The `URLRequest`.
    func apply(_ credential: Credential, to urlRequest: inout URLRequest)

    /// Refreshes the `Credential` and executes the `completion` closure with the `Result` once complete.
    ///
    /// Refresh can be called in one of two ways. It can be called before the `Request` is actually executed due to
    /// a `requiresRefresh` returning `true` during the adapt portion of the `Request` creation process. It can also
    /// be triggered by a failed `Request` where the authentication server denied access due to an expired or
    /// invalidated access token.
    ///
    /// In the case of OAuth2, this method would use the refresh token of the `Credential` to generate a new
    /// `Credential` using the authentication service. Once complete, the `completion` closure should be called with
    /// the new `Credential`, or the error that occurred.
    ///
    /// In general, if the refresh call fails with certain status codes from the authentication server (commonly a 401),
    /// the refresh token in the `Credential` can no longer be used to generate a valid `Credential`. In these cases,
    /// you will need to reauthenticate the user with their username / password.
    ///
    /// Please note, these are just general examples of common use cases. They are not meant to solve your specific
    /// authentication server challenges. Please work with your authentication server team to ensure your
    /// `Authenticator` logic matches their expectations.
    ///
    /// - Parameters:
    ///   - credential: The `Credential` to refresh.
    ///   - session:    The `Session` requiring the refresh.
    ///   - completion: The closure to be executed once the refresh is complete.
    func refresh(_ credential: Credential, for session: Session, completion: @escaping (Result<Credential, Error>) -> Void)

    /// Determines whether the `URLRequest` failed due to an authentication error based on the `HTTPURLResponse`.
    ///
    /// If the authentication server **CANNOT** invalidate credentials after they are issued, then simply return `false`
    /// for this method. If the authentication server **CAN** invalidate credentials due to security breaches, then you
    /// will need to work with your authentication server team to understand how to identify when this occurs.
    ///
    /// In the case of OAuth2, where an authentication server can invalidate credentials, you will need to inspect the
    /// `HTTPURLResponse` or possibly the `Error` for when this occurs. This is commonly handled by the authentication
    /// server returning a 401 status code and some additional header to indicate an OAuth2 failure occurred.
    ///
    /// It is very important to understand how your authentication server works to be able to implement this correctly.
    /// For example, if your authentication server returns a 401 when an OAuth2 error occurs, and your downstream
    /// service also returns a 401 when you are not authorized to perform that operation, how do you know which layer
    /// of the backend returned you a 401? You do not want to trigger a refresh unless you know your authentication
    /// server is actually the layer rejecting the request. Again, work with your authentication server team to understand
    /// how to identify an OAuth2 401 error vs. a downstream 401 error to avoid endless refresh loops.
    ///
    /// - Parameters:
    ///   - urlRequest: The `URLRequest`.
    ///   - response:   The `HTTPURLResponse`.
    ///   - error:      The `Error`.
    ///
    /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
    func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse, failDueToAuthenticationError error: Error) -> Bool

    /// Determines whether the `URLRequest` is authenticated with the `Credential`.
    ///
    /// If the authentication server **CANNOT** invalidate credentials after they are issued, then simply return `true`
    /// for this method. If the authentication server **CAN** invalidate credentials due to security breaches, then
    /// read on.
    ///
    /// When an authentication server can invalidate credentials, it means that you may have a non-expired credential
    /// that appears to be valid, but will be rejected by the authentication server when used. Generally when this
    /// happens, a number of requests are all sent when the application is foregrounded, and all of them will be
    /// rejected by the authentication server in the order they are received. The first failed request will trigger a
    /// refresh internally, which will update the credential, and then retry all the queued requests with the new
    /// credential. However, it is possible that some of the original requests will not return from the authentication
    /// server until the refresh has completed. This is where this method comes in.
    ///
    /// When the authentication server rejects a credential, we need to check to make sure we haven't refreshed the
    /// credential while the request was in flight. If it has already refreshed, then we don't need to trigger an
    /// additional refresh. If it hasn't refreshed, then we need to refresh.
    ///
    /// Now that it is understood how the result of this method is used in the refresh lifecyle, let's walk through how
    /// to implement it. You should return `true` in this method if the `URLRequest` is authenticated in a way that
    /// matches the values in the `Credential`. In the case of OAuth2, this would mean that the Bearer token in the
    /// `Authorization` header of the `URLRequest` matches the access token in the `Credential`. If it matches, then we
    /// know the `Credential` was used to authenticate the `URLRequest` and should return `true`. If the Bearer token
    /// did not match the access token, then you should return `false`.
    ///
    /// - Parameters:
    ///   - urlRequest: The `URLRequest`.
    ///   - credential: The `Credential`.
    ///
    /// - Returns: `true` if the `URLRequest` is authenticated with the `Credential`, `false` otherwise.
    func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
}

// MARK: -

/// Represents various authentication failures that occur when using the `AuthenticationInterceptor`. All errors are
/// still vended from Alamofire as `AFError` types. The `AuthenticationError` instances will be embedded within
/// `AFError` `.requestAdaptationFailed` or `.requestRetryFailed` cases.
public enum AuthenticationError: Error {
    /// The credential was missing so the request could not be authenticated.
    case missingCredential
    /// The credential was refreshed too many times within the `RefreshWindow`.
    case excessiveRefresh
}

// MARK: -

/// The `AuthenticationInterceptor` class manages the queuing and threading complexity of authenticating requests.
/// It relies on an `Authenticator` type to handle the actual `URLRequest` authentication and `Credential` refresh.
public class AuthenticationInterceptor<AuthenticatorType>: RequestInterceptor where AuthenticatorType: Authenticator {
    // MARK: Typealiases

    /// Type of credential used to authenticate requests.
    public typealias Credential = AuthenticatorType.Credential

    // MARK: Helper Types

    /// Type that defines a time window used to identify excessive refresh calls. When enabled, prior to executing a
    /// refresh, the `AuthenticationInterceptor` compares the timestamp history of previous refresh calls against the
    /// `RefreshWindow`. If more refreshes have occurred within the refresh window than allowed, the refresh is
    /// cancelled and an `AuthorizationError.excessiveRefresh` error is thrown.
    public struct RefreshWindow {
        /// `TimeInterval` defining the duration of the time window before the current time in which the number of
        /// refresh attempts is compared against `maximumAttempts`. For example, if `interval` is 30 seconds, then the
        /// `RefreshWindow` represents the past 30 seconds. If more attempts occurred in the past 30 seconds than
        /// `maximumAttempts`, an `.excessiveRefresh` error will be thrown.
        public let interval: TimeInterval

        /// Total refresh attempts allowed within `interval` before throwing an `.excessiveRefresh` error.
        public let maximumAttempts: Int

        /// Creates a `RefreshWindow` instance from the specified `interval` and `maximumAttempts`.
        ///
        /// - Parameters:
        ///   - interval:        `TimeInterval` defining the duration of the time window before the current time.
        ///   - maximumAttempts: The maximum attempts allowed within the `TimeInterval`.
        public init(interval: TimeInterval = 30.0, maximumAttempts: Int = 5) {
            self.interval = interval
            self.maximumAttempts = maximumAttempts
        }
    }

    private struct AdaptOperation {
        let urlRequest: URLRequest
        let session: Session
        let completion: (Result<URLRequest, Error>) -> Void
    }

    private enum AdaptResult {
        case adapt(Credential)
        case doNotAdapt(AuthenticationError)
        case adaptDeferred
    }

    private struct MutableState {
        var credential: Credential?

        var isRefreshing = false
        var refreshTimestamps: [TimeInterval] = []
        var refreshWindow: RefreshWindow?

        var adaptOperations: [AdaptOperation] = []
        var requestsToRetry: [(RetryResult) -> Void] = []
    }

    // MARK: Properties

    /// The `Credential` used to authenticate requests.
    public var credential: Credential? {
        get { mutableState.credential }
        set { mutableState.credential = newValue }
    }

    let authenticator: AuthenticatorType
    let queue = DispatchQueue(label: "org.alamofire.authentication.inspector")

    @Protected
    private var mutableState = MutableState()

    // MARK: Initialization

    /// Creates an `AuthenticationInterceptor` instance from the specified parameters.
    ///
    /// A `nil` `RefreshWindow` will result in the `AuthenticationInterceptor` not checking for excessive refresh calls.
    /// It is recommended to always use a `RefreshWindow` to avoid endless refresh cycles.
    ///
    /// - Parameters:
    ///   - authenticator: The `Authenticator` type.
    ///   - credential:    The `Credential` if it exists. `nil` by default.
    ///   - refreshWindow: The `RefreshWindow` used to identify excessive refresh calls. `RefreshWindow()` by default.
    public init(authenticator: AuthenticatorType,
                credential: Credential? = nil,
                refreshWindow: RefreshWindow? = RefreshWindow()) {
        self.authenticator = authenticator
        mutableState.credential = credential
        mutableState.refreshWindow = refreshWindow
    }

    // MARK: Adapt

    public func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void) {
        let adaptResult: AdaptResult = $mutableState.write { mutableState in
            // Queue the adapt operation if a refresh is already in place.
            guard !mutableState.isRefreshing else {
                let operation = AdaptOperation(urlRequest: urlRequest, session: session, completion: completion)
                mutableState.adaptOperations.append(operation)
                return .adaptDeferred
            }

            // Throw missing credential error is the credential is missing.
            guard let credential = mutableState.credential else {
                let error = AuthenticationError.missingCredential
                return .doNotAdapt(error)
            }

            // Queue the adapt operation and trigger refresh operation if credential requires refresh.
            guard !credential.requiresRefresh else {
                let operation = AdaptOperation(urlRequest: urlRequest, session: session, completion: completion)
                mutableState.adaptOperations.append(operation)
                refresh(credential, for: session, insideLock: &mutableState)
                return .adaptDeferred
            }

            return .adapt(credential)
        }

        switch adaptResult {
        case let .adapt(credential):
            var authenticatedRequest = urlRequest
            authenticator.apply(credential, to: &authenticatedRequest)
            completion(.success(authenticatedRequest))

        case let .doNotAdapt(adaptError):
            completion(.failure(adaptError))

        case .adaptDeferred:
            // No-op: adapt operation captured during refresh.
            break
        }
    }

    // MARK: Retry

    public func retry(_ request: Request, for session: Session, dueTo error: Error, completion: @escaping (RetryResult) -> Void) {
        // Do not attempt retry if there was not an original request and response from the server.
        guard let urlRequest = request.request, let response = request.response else {
            completion(.doNotRetry)
            return
        }

        // Do not attempt retry unless the `Authenticator` verifies failure was due to authentication error (i.e. 401 status code).
        guard authenticator.didRequest(urlRequest, with: response, failDueToAuthenticationError: error) else {
            completion(.doNotRetry)
            return
        }

        // Do not attempt retry if there is no credential.
        guard let credential = credential else {
            let error = AuthenticationError.missingCredential
            completion(.doNotRetryWithError(error))
            return
        }

        // Retry the request if the `Authenticator` verifies it was authenticated with a previous credential.
        guard authenticator.isRequest(urlRequest, authenticatedWith: credential) else {
            completion(.retry)
            return
        }

        $mutableState.write { mutableState in
            mutableState.requestsToRetry.append(completion)

            guard !mutableState.isRefreshing else { return }

            refresh(credential, for: session, insideLock: &mutableState)
        }
    }

    // MARK: Refresh

    private func refresh(_ credential: Credential, for session: Session, insideLock mutableState: inout MutableState) {
        guard !isRefreshExcessive(insideLock: &mutableState) else {
            let error = AuthenticationError.excessiveRefresh
            handleRefreshFailure(error, insideLock: &mutableState)
            return
        }

        mutableState.refreshTimestamps.append(ProcessInfo.processInfo.systemUptime)
        mutableState.isRefreshing = true

        // Dispatch to queue to hop out of the lock in case authenticator.refresh is implemented synchronously.
        queue.async {
            self.authenticator.refresh(credential, for: session) { result in
                self.$mutableState.write { mutableState in
                    switch result {
                    case let .success(credential):
                        self.handleRefreshSuccess(credential, insideLock: &mutableState)
                    case let .failure(error):
                        self.handleRefreshFailure(error, insideLock: &mutableState)
                    }
                }
            }
        }
    }

    private func isRefreshExcessive(insideLock mutableState: inout MutableState) -> Bool {
        guard let refreshWindow = mutableState.refreshWindow else { return false }

        let refreshWindowMin = ProcessInfo.processInfo.systemUptime - refreshWindow.interval

        let refreshAttemptsWithinWindow = mutableState.refreshTimestamps.reduce(into: 0) { attempts, refreshTimestamp in
            guard refreshWindowMin <= refreshTimestamp else { return }
            attempts += 1
        }

        let isRefreshExcessive = refreshAttemptsWithinWindow >= refreshWindow.maximumAttempts

        return isRefreshExcessive
    }

    private func handleRefreshSuccess(_ credential: Credential, insideLock mutableState: inout MutableState) {
        mutableState.credential = credential

        let adaptOperations = mutableState.adaptOperations
        let requestsToRetry = mutableState.requestsToRetry

        mutableState.adaptOperations.removeAll()
        mutableState.requestsToRetry.removeAll()

        mutableState.isRefreshing = false

        // Dispatch to queue to hop out of the mutable state lock
        queue.async {
            adaptOperations.forEach { self.adapt($0.urlRequest, for: $0.session, completion: $0.completion) }
            requestsToRetry.forEach { $0(.retry) }
        }
    }

    private func handleRefreshFailure(_ error: Error, insideLock mutableState: inout MutableState) {
        let adaptOperations = mutableState.adaptOperations
        let requestsToRetry = mutableState.requestsToRetry

        mutableState.adaptOperations.removeAll()
        mutableState.requestsToRetry.removeAll()

        mutableState.isRefreshing = false

        // Dispatch to queue to hop out of the mutable state lock
        queue.async {
            adaptOperations.forEach { $0.completion(.failure(error)) }
            requestsToRetry.forEach { $0(.doNotRetryWithError(error)) }
        }
    }
}


================================================
FILE: Pods/Alamofire/Source/CachedResponseHandler.swift
================================================
//
//  CachedResponseHandler.swift
//
//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

import Foundation

/// A type that handles whether the data task should store the HTTP response in the cache.
public protocol CachedResponseHandler {
    /// Determines whether the HTTP response should be stored in the cache.
    ///
    /// The `completion` closure should be passed one of three possible options:
    ///
    ///   1. The cached response provided by the server (this is the most common use case).
    ///   2. A modified version of the cached response (you may want to modify it in some way before caching).
    ///   3. A `nil` value to prevent the cached response from being stored in the cache.
    ///
    /// - Parameters:
    ///   - task:       The data task whose request resulted in the cached response.
    ///   - response:   The cached response to potentially store in the cache.
    ///   - completion: The closure to execute containing cached response, a modified response, or `nil`.
    func dataTask(_ task: URLSessionDataTask,
                  willCacheResponse response: CachedURLResponse,
                  completion: @escaping (CachedURLResponse?) -> Void)
}

// MARK: -

/// `ResponseCacher` is a convenience `CachedResponseHandler` making it easy to cache, not cache, or modify a cached
/// response.
public struct ResponseCacher {
    /// Defines the behavior of the `ResponseCacher` type.
    public enum Behavior {
        /// Stores the cached response in the cache.
        case cache
        /// Prevents the cached response from being stored in the cache.
        case doNotCache
        /// Modifies the cached response before storing it in the cache.
        case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
    }

    /// Returns a `ResponseCacher` with a follow `Behavior`.
    public static let cache = ResponseCacher(behavior: .cache)
    /// Returns a `ResponseCacher` with a do not follow `Behavior`.
    public static let doNotCache = ResponseCacher(behavior: .doNotCache)

    /// The `Behavior` of the `ResponseCacher`.
    public let behavior: Behavior

    /// Creates a `ResponseCacher` instance from the `Behavior`.
    ///
    /// - Parameter behavior: The `Behavior`.
    public init(behavior: Behavior) {
        self.behavior = behavior
    }
}

extension ResponseCacher: CachedResponseHandler {
    public func dataTask(_ task: URLSessionDataTask,
                         willCacheResponse response: CachedURLResponse,
                         completion: @escaping (CachedURLResponse?) -> Void) {
        switch behavior {
        case .cache:
            completion(response)
        case .doNotCache:
            completion(nil)
        case let .modify(closure):
            let response = closure(task, response)
            completion(response)
        }
    }
}


================================================
FILE: Pods/Alamofire/Source/Combine.swift
================================================
//
//  Combine.swift
//
//  Copyright (c) 2020 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

#if canImport(Combine)

import Combine
import Dispatch
import Foundation

// MARK: - DataRequest / UploadRequest

/// A Combine `Publisher` that publishes the `DataResponse<Value, AFError>` of the provided `DataRequest`.
@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
public struct DataResponsePublisher<Value>: Publisher {
    public typealias Output = DataResponse<Value, AFError>
    public typealias Failure = Never

    private typealias Handler = (@escaping (_ response: DataResponse<Value, AFError>) -> Void) -> DataRequest

    private let request: DataRequest
    private let responseHandler: Handler

    /// Creates an instance which will serialize responses using the provided `ResponseSerializer`.
    ///
    /// - Parameters:
    ///   - request:    `DataRequest` for which to publish the response.
    ///   - queue:      `DispatchQueue` on which the `DataResponse` value will be published. `.main` by default.
    ///   - serializer: `ResponseSerializer` used to produce the published `DataResponse`.
    public init<Serializer: ResponseSerializer>(_ request: DataRequest, queue: DispatchQueue, serializer: Serializer)
        where Value == Serializer.SerializedObject {
        self.request = request
        responseHandler = { request.response(queue: queue, responseSerializer: serializer, completionHandler: $0) }
    }

    /// Creates an instance which will serialize responses using the provided `DataResponseSerializerProtocol`.
    ///
    /// - Parameters:
    ///   - request:    `DataRequest` for which to publish the response.
    ///   - queue:      `DispatchQueue` on which the `DataResponse` value will be published. `.main` by default.
    ///   - serializer: `DataResponseSerializerProtocol` used to produce the published `DataResponse`.
    public init<Serializer: DataResponseSerializerProtocol>(_ request: DataRequest,
                                                            queue: DispatchQueue,
                                                            serializer: Serializer)
        where Value == Serializer.SerializedObject {
        self.request = request
        responseHandler = { request.response(queue: queue, responseSerializer: serializer, completionHandler: $0) }
    }

    /// Publishes only the `Result` of the `DataResponse` value.
    ///
    /// - Returns: The `AnyPublisher` publishing the `Result<Value, AFError>` value.
    public func result() -> AnyPublisher<Result<Value, AFError>, Never> {
        map { $0.result }.eraseToAnyPublisher()
    }

    /// Publishes the `Result` of the `DataResponse` as a single `Value` or fail with the `AFError` instance.
    ///
    /// - Returns: The `AnyPublisher<Value, AFError>` publishing the stream.
    public func value() -> AnyPublisher<Value, AFError> {
        setFailureType(to: AFError.self).flatMap { $0.result.publisher }.eraseToAnyPublisher()
    }

    public func receive<S>(subscriber: S) where S: Subscriber, DataResponsePublisher.Failure == S.Failure, DataResponsePublisher.Output == S.Input {
        subscriber.receive(subscription: Inner(request: request,
                                               responseHandler: responseHandler,
                                               downstream: subscriber))
    }

    private final class Inner<Downstream: Subscriber>: Subscription, Cancellable
        where Downstream.Input == Output {
        typealias Failure = Downstream.Failure

        @Protected
        private var downstream: Downstream?
        private let request: DataRequest
        private let responseHandler: Handler

        init(request: DataRequest, responseHandler: @escaping Handler, downstream: Downstream) {
            self.request = request
            self.responseHandler = responseHandler
            self.downstream = downstream
        }

        func request(_ demand: Subscribers.Demand) {
            assert(demand > 0)

            guard let downstream = downstream else { return }

            self.downstream = nil
            responseHandler { response in
                _ = downstream.receive(response)
                downstream.receive(completion: .finished)
            }.resume()
        }

        func cancel() {
            request.cancel()
            downstream = nil
        }
    }
}

@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
extension DataResponsePublisher where Value == Data? {
    /// Creates an instance which publishes a `DataResponse<Data?, AFError>` value without serialization.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public init(_ request: DataRequest, queue: DispatchQueue) {
        self.request = request
        responseHandler = { request.response(queue: queue, completionHandler: $0) }
    }
}

extension DataRequest {
    /// Creates a `DataResponsePublisher` for this instance using the given `ResponseSerializer` and `DispatchQueue`.
    ///
    /// - Parameters:
    ///   - serializer: `ResponseSerializer` used to serialize response `Data`.
    ///   - queue:      `DispatchQueue` on which the `DataResponse` will be published. `.main` by default.
    ///
    /// - Returns:      The `DataResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishResponse<Serializer: ResponseSerializer, T>(using serializer: Serializer, on queue: DispatchQueue = .main) -> DataResponsePublisher<T>
        where Serializer.SerializedObject == T {
        DataResponsePublisher(self, queue: queue, serializer: serializer)
    }

    /// Creates a `DataResponsePublisher` for this instance and uses a `DataResponseSerializer` to serialize the
    /// response.
    ///
    /// - Parameters:
    ///   - queue:               `DispatchQueue` on which the `DataResponse` will be published. `.main` by default.
    ///   - preprocessor:        `DataPreprocessor` which filters the `Data` before serialization. `PassthroughPreprocessor()`
    ///                          by default.
    ///   - emptyResponseCodes:  `Set<Int>` of HTTP status codes for which empty responses are allowed. `[204, 205]` by
    ///                          default.
    ///   - emptyRequestMethods: `Set<HTTPMethod>` of `HTTPMethod`s for which empty responses are allowed, regardless of
    ///                          status code. `[.head]` by default.
    /// - Returns:               The `DataResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishData(queue: DispatchQueue = .main,
                            preprocessor: DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor,
                            emptyResponseCodes: Set<Int> = DataResponseSerializer.defaultEmptyResponseCodes,
                            emptyRequestMethods: Set<HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods) -> DataResponsePublisher<Data> {
        publishResponse(using: DataResponseSerializer(dataPreprocessor: preprocessor,
                                                      emptyResponseCodes: emptyResponseCodes,
                                                      emptyRequestMethods: emptyRequestMethods),
                        on: queue)
    }

    /// Creates a `DataResponsePublisher` for this instance and uses a `StringResponseSerializer` to serialize the
    /// response.
    ///
    /// - Parameters:
    ///   - queue:               `DispatchQueue` on which the `DataResponse` will be published. `.main` by default.
    ///   - preprocessor:        `DataPreprocessor` which filters the `Data` before serialization. `PassthroughPreprocessor()`
    ///                          by default.
    ///   - encoding:            `String.Encoding` to parse the response. `nil` by default, in which case the encoding
    ///                          will be determined by the server response, falling back to the default HTTP character
    ///                          set, `ISO-8859-1`.
    ///   - emptyResponseCodes:  `Set<Int>` of HTTP status codes for which empty responses are allowed. `[204, 205]` by
    ///                          default.
    ///   - emptyRequestMethods: `Set<HTTPMethod>` of `HTTPMethod`s for which empty responses are allowed, regardless of
    ///                          status code. `[.head]` by default.
    ///
    /// - Returns:               The `DataResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishString(queue: DispatchQueue = .main,
                              preprocessor: DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor,
                              encoding: String.Encoding? = nil,
                              emptyResponseCodes: Set<Int> = StringResponseSerializer.defaultEmptyResponseCodes,
                              emptyRequestMethods: Set<HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods) -> DataResponsePublisher<String> {
        publishResponse(using: StringResponseSerializer(dataPreprocessor: preprocessor,
                                                        encoding: encoding,
                                                        emptyResponseCodes: emptyResponseCodes,
                                                        emptyRequestMethods: emptyRequestMethods),
                        on: queue)
    }

    /// Creates a `DataResponsePublisher` for this instance and uses a `DecodableResponseSerializer` to serialize the
    /// response.
    ///
    /// - Parameters:
    ///   - type:                `Decodable` type to which to decode response `Data`. Inferred from the context by default.
    ///   - queue:               `DispatchQueue` on which the `DataResponse` will be published. `.main` by default.
    ///   - preprocessor:        `DataPreprocessor` which filters the `Data` before serialization. `PassthroughPreprocessor()`
    ///                          by default.
    ///   - decoder:             `DataDecoder` instance used to decode response `Data`. `JSONDecoder()` by default.
    ///   - emptyResponseCodes:  `Set<Int>` of HTTP status codes for which empty responses are allowed. `[204, 205]` by
    ///                          default.
    ///   - emptyRequestMethods: `Set<HTTPMethod>` of `HTTPMethod`s for which empty responses are allowed, regardless of
    ///                          status code. `[.head]` by default.
    ///
    /// - Returns:               The `DataResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishDecodable<T: Decodable>(type: T.Type = T.self,
                                               queue: DispatchQueue = .main,
                                               preprocessor: DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor,
                                               decoder: DataDecoder = JSONDecoder(),
                                               emptyResponseCodes: Set<Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes,
                                               emptyResponseMethods: Set<HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods) -> DataResponsePublisher<T> {
        publishResponse(using: DecodableResponseSerializer(dataPreprocessor: preprocessor,
                                                           decoder: decoder,
                                                           emptyResponseCodes: emptyResponseCodes,
                                                           emptyRequestMethods: emptyResponseMethods),
                        on: queue)
    }

    /// Creates a `DataResponsePublisher` for this instance which does not serialize the response before publishing.
    ///
    ///   - queue: `DispatchQueue` on which the `DataResponse` will be published. `.main` by default.
    ///
    /// - Returns: The `DataResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishUnserialized(queue: DispatchQueue = .main) -> DataResponsePublisher<Data?> {
        DataResponsePublisher(self, queue: queue)
    }
}

// A Combine `Publisher` that publishes a sequence of `Stream<Value, AFError>` values received by the provided `DataStreamRequest`.
@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
public struct DataStreamPublisher<Value>: Publisher {
    public typealias Output = DataStreamRequest.Stream<Value, AFError>
    public typealias Failure = Never

    private typealias Handler = (@escaping DataStreamRequest.Handler<Value, AFError>) -> DataStreamRequest

    private let request: DataStreamRequest
    private let streamHandler: Handler

    /// Creates an instance which will serialize responses using the provided `DataStreamSerializer`.
    ///
    /// - Parameters:
    ///   - request:    `DataStreamRequest` for which to publish the response.
    ///   - queue:      `DispatchQueue` on which the `Stream<Value, AFError>` values will be published. `.main` by
    ///                 default.
    ///   - serializer: `DataStreamSerializer` used to produce the published `Stream<Value, AFError>` values.
    public init<Serializer: DataStreamSerializer>(_ request: DataStreamRequest, queue: DispatchQueue, serializer: Serializer)
        where Value == Serializer.SerializedObject {
        self.request = request
        streamHandler = { request.responseStream(using: serializer, on: queue, stream: $0) }
    }

    /// Publishes only the `Result` of the `DataStreamRequest.Stream`'s `Event`s.
    ///
    /// - Returns: The `AnyPublisher` publishing the `Result<Value, AFError>` value.
    public func result() -> AnyPublisher<Result<Value, AFError>, Never> {
        compactMap { stream in
            switch stream.event {
            case let .stream(result):
                return result
            // If the stream has completed with an error, send the error value downstream as a `.failure`.
            case let .complete(completion):
                return completion.error.map(Result.failure)
            }
        }
        .eraseToAnyPublisher()
    }

    /// Publishes the streamed values of the `DataStreamRequest.Stream` as a sequence of `Value` or fail with the
    /// `AFError` instance.
    ///
    /// - Returns: The `AnyPublisher<Value, AFError>` publishing the stream.
    public func value() -> AnyPublisher<Value, AFError> {
        result().setFailureType(to: AFError.self).flatMap { $0.publisher }.eraseToAnyPublisher()
    }

    public func receive<S>(subscriber: S) where S: Subscriber, DataStreamPublisher.Failure == S.Failure, DataStreamPublisher.Output == S.Input {
        subscriber.receive(subscription: Inner(request: request,
                                               streamHandler: streamHandler,
                                               downstream: subscriber))
    }

    private final class Inner<Downstream: Subscriber>: Subscription, Cancellable
        where Downstream.Input == Output {
        typealias Failure = Downstream.Failure

        @Protected
        private var downstream: Downstream?
        private let request: DataStreamRequest
        private let streamHandler: Handler

        init(request: DataStreamRequest, streamHandler: @escaping Handler, downstream: Downstream) {
            self.request = request
            self.streamHandler = streamHandler
            self.downstream = downstream
        }

        func request(_ demand: Subscribers.Demand) {
            assert(demand > 0)

            guard let downstream = downstream else { return }

            self.downstream = nil
            streamHandler { stream in
                _ = downstream.receive(stream)
                if case .complete = stream.event {
                    downstream.receive(completion: .finished)
                }
            }.resume()
        }

        func cancel() {
            request.cancel()
            downstream = nil
        }
    }
}

extension DataStreamRequest {
    /// Creates a `DataStreamPublisher` for this instance using the given `DataStreamSerializer` and `DispatchQueue`.
    ///
    /// - Parameters:
    ///   - serializer: `DataStreamSerializer` used to serialize the streamed `Data`.
    ///   - queue:      `DispatchQueue` on which the `DataRequest.Stream` values will be published. `.main` by default.
    /// - Returns:      The `DataStreamPublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishStream<Serializer: DataStreamSerializer>(using serializer: Serializer,
                                                                on queue: DispatchQueue = .main) -> DataStreamPublisher<Serializer.SerializedObject> {
        DataStreamPublisher(self, queue: queue, serializer: serializer)
    }

    /// Creates a `DataStreamPublisher` for this instance which uses a `PassthroughStreamSerializer` to stream `Data`
    /// unserialized.
    ///
    /// - Parameters:
    ///   - queue:      `DispatchQueue` on which the `DataRequest.Stream` values will be published. `.main` by default.
    /// - Returns:      The `DataStreamPublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishData(queue: DispatchQueue = .main) -> DataStreamPublisher<Data> {
        publishStream(using: PassthroughStreamSerializer(), on: queue)
    }

    /// Creates a `DataStreamPublisher` for this instance which uses a `StringStreamSerializer` to serialize stream
    /// `Data` values into `String` values.
    ///
    /// - Parameters:
    ///   - queue:      `DispatchQueue` on which the `DataRequest.Stream` values will be published. `.main` by default.
    /// - Returns:      The `DataStreamPublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishString(queue: DispatchQueue = .main) -> DataStreamPublisher<String> {
        publishStream(using: StringStreamSerializer(), on: queue)
    }

    /// Creates a `DataStreamPublisher` for this instance which uses a `DecodableStreamSerializer` with the provided
    /// parameters to serialize stream `Data` values into the provided type.
    ///
    /// - Parameters:
    ///   - type:         `Decodable` type to which to decode stream `Data`. Inferred from the context by default.
    ///   - queue:        `DispatchQueue` on which the `DataRequest.Stream` values will be published. `.main` by default.
    ///   - decoder:      `DataDecoder` instance used to decode stream `Data`. `JSONDecoder()` by default.
    ///   - preprocessor: `DataPreprocessor` which filters incoming stream `Data` before serialization.
    ///                   `PassthroughPreprocessor()` by default.
    /// - Returns:        The `DataStreamPublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishDecodable<T: Decodable>(type: T.Type = T.self,
                                               queue: DispatchQueue = .main,
                                               decoder: DataDecoder = JSONDecoder(),
                                               preprocessor: DataPreprocessor = PassthroughPreprocessor()) -> DataStreamPublisher<T> {
        publishStream(using: DecodableStreamSerializer(decoder: decoder,
                                                       dataPreprocessor: preprocessor),
                      on: queue)
    }
}

/// A Combine `Publisher` that publishes the `DownloadResponse<Value, AFError>` of the provided `DownloadRequest`.
@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
public struct DownloadResponsePublisher<Value>: Publisher {
    public typealias Output = DownloadResponse<Value, AFError>
    public typealias Failure = Never

    private typealias Handler = (@escaping (_ response: DownloadResponse<Value, AFError>) -> Void) -> DownloadRequest

    private let request: DownloadRequest
    private let responseHandler: Handler

    /// Creates an instance which will serialize responses using the provided `ResponseSerializer`.
    ///
    /// - Parameters:
    ///   - request:    `DownloadRequest` for which to publish the response.
    ///   - queue:      `DispatchQueue` on which the `DownloadResponse` value will be published. `.main` by default.
    ///   - serializer: `ResponseSerializer` used to produce the published `DownloadResponse`.
    public init<Serializer: ResponseSerializer>(_ request: DownloadRequest, queue: DispatchQueue, serializer: Serializer)
        where Value == Serializer.SerializedObject {
        self.request = request
        responseHandler = { request.response(queue: queue, responseSerializer: serializer, completionHandler: $0) }
    }

    /// Creates an instance which will serialize responses using the provided `DownloadResponseSerializerProtocol` value.
    ///
    /// - Parameters:
    ///   - request:    `DownloadRequest` for which to publish the response.
    ///   - queue:      `DispatchQueue` on which the `DataResponse` value will be published. `.main` by default.
    ///   - serializer: `DownloadResponseSerializerProtocol` used to produce the published `DownloadResponse`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public init<Serializer: DownloadResponseSerializerProtocol>(_ request: DownloadRequest,
                                                                queue: DispatchQueue,
                                                                serializer: Serializer)
        where Value == Serializer.SerializedObject {
        self.request = request
        responseHandler = { request.response(queue: queue, responseSerializer: serializer, completionHandler: $0) }
    }

    /// Publishes only the `Result` of the `DownloadResponse` value.
    ///
    /// - Returns: The `AnyPublisher` publishing the `Result<Value, AFError>` value.
    public func result() -> AnyPublisher<Result<Value, AFError>, Never> {
        map { $0.result }.eraseToAnyPublisher()
    }

    /// Publishes the `Result` of the `DownloadResponse` as a single `Value` or fail with the `AFError` instance.
    ///
    /// - Returns: The `AnyPublisher<Value, AFError>` publishing the stream.
    public func value() -> AnyPublisher<Value, AFError> {
        setFailureType(to: AFError.self).flatMap { $0.result.publisher }.eraseToAnyPublisher()
    }

    public func receive<S>(subscriber: S) where S: Subscriber, DownloadResponsePublisher.Failure == S.Failure, DownloadResponsePublisher.Output == S.Input {
        subscriber.receive(subscription: Inner(request: request,
                                               responseHandler: responseHandler,
                                               downstream: subscriber))
    }

    private final class Inner<Downstream: Subscriber>: Subscription, Cancellable
        where Downstream.Input == Output {
        typealias Failure = Downstream.Failure

        @Protected
        private var downstream: Downstream?
        private let request: DownloadRequest
        private let responseHandler: Handler

        init(request: DownloadRequest, responseHandler: @escaping Handler, downstream: Downstream) {
            self.request = request
            self.responseHandler = responseHandler
            self.downstream = downstream
        }

        func request(_ demand: Subscribers.Demand) {
            assert(demand > 0)

            guard let downstream = downstream else { return }

            self.downstream = nil
            responseHandler { response in
                _ = downstream.receive(response)
                downstream.receive(completion: .finished)
            }.resume()
        }

        func cancel() {
            request.cancel()
            downstream = nil
        }
    }
}

extension DownloadRequest {
    /// Creates a `DownloadResponsePublisher` for this instance using the given `ResponseSerializer` and `DispatchQueue`.
    ///
    /// - Parameters:
    ///   - serializer: `ResponseSerializer` used to serialize the response `Data` from disk.
    ///   - queue:      `DispatchQueue` on which the `DownloadResponse` will be published.`.main` by default.
    ///
    /// - Returns:      The `DownloadResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishResponse<Serializer: ResponseSerializer, T>(using serializer: Serializer, on queue: DispatchQueue = .main) -> DownloadResponsePublisher<T>
        where Serializer.SerializedObject == T {
        DownloadResponsePublisher(self, queue: queue, serializer: serializer)
    }

    /// Creates a `DownloadResponsePublisher` for this instance using the given `DownloadResponseSerializerProtocol` and
    /// `DispatchQueue`.
    ///
    /// - Parameters:
    ///   - serializer: `DownloadResponseSerializer` used to serialize the response `Data` from disk.
    ///   - queue:      `DispatchQueue` on which the `DownloadResponse` will be published.`.main` by default.
    ///
    /// - Returns:      The `DownloadResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishResponse<Serializer: DownloadResponseSerializerProtocol, T>(using serializer: Serializer, on queue: DispatchQueue = .main) -> DownloadResponsePublisher<T>
        where Serializer.SerializedObject == T {
        DownloadResponsePublisher(self, queue: queue, serializer: serializer)
    }

    /// Creates a `DownloadResponsePublisher` for this instance and uses a `URLResponseSerializer` to serialize the
    /// response.
    ///
    /// - Parameter queue: `DispatchQueue` on which the `DownloadResponse` will be published. `.main` by default.
    ///
    /// - Returns:         The `DownloadResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishURL(queue: DispatchQueue = .main) -> DownloadResponsePublisher<URL> {
        publishResponse(using: URLResponseSerializer(), on: queue)
    }

    /// Creates a `DownloadResponsePublisher` for this instance and uses a `DataResponseSerializer` to serialize the
    /// response.
    ///
    /// - Parameters:
    ///   - queue:               `DispatchQueue` on which the `DownloadResponse` will be published. `.main` by default.
    ///   - preprocessor:        `DataPreprocessor` which filters the `Data` before serialization. `PassthroughPreprocessor()`
    ///                          by default.
    ///   - emptyResponseCodes:  `Set<Int>` of HTTP status codes for which empty responses are allowed. `[204, 205]` by
    ///                          default.
    ///   - emptyRequestMethods: `Set<HTTPMethod>` of `HTTPMethod`s for which empty responses are allowed, regardless of
    ///                          status code. `[.head]` by default.
    ///
    /// - Returns:               The `DownloadResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishData(queue: DispatchQueue = .main,
                            preprocessor: DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor,
                            emptyResponseCodes: Set<Int> = DataResponseSerializer.defaultEmptyResponseCodes,
                            emptyRequestMethods: Set<HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods) -> DownloadResponsePublisher<Data> {
        publishResponse(using: DataResponseSerializer(dataPreprocessor: preprocessor,
                                                      emptyResponseCodes: emptyResponseCodes,
                                                      emptyRequestMethods: emptyRequestMethods),
                        on: queue)
    }

    /// Creates a `DataResponsePublisher` for this instance and uses a `StringResponseSerializer` to serialize the
    /// response.
    ///
    /// - Parameters:
    ///   - queue:               `DispatchQueue` on which the `DataResponse` will be published. `.main` by default.
    ///   - preprocessor:        `DataPreprocessor` which filters the `Data` before serialization. `PassthroughPreprocessor()`
    ///                          by default.
    ///   - encoding:            `String.Encoding` to parse the response. `nil` by default, in which case the encoding
    ///                          will be determined by the server response, falling back to the default HTTP character
    ///                          set, `ISO-8859-1`.
    ///   - emptyResponseCodes:  `Set<Int>` of HTTP status codes for which empty responses are allowed. `[204, 205]` by
    ///                          default.
    ///   - emptyRequestMethods: `Set<HTTPMethod>` of `HTTPMethod`s for which empty responses are allowed, regardless of
    ///                          status code. `[.head]` by default.
    ///
    /// - Returns:               The `DownloadResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishString(queue: DispatchQueue = .main,
                              preprocessor: DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor,
                              encoding: String.Encoding? = nil,
                              emptyResponseCodes: Set<Int> = StringResponseSerializer.defaultEmptyResponseCodes,
                              emptyRequestMethods: Set<HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods) -> DownloadResponsePublisher<String> {
        publishResponse(using: StringResponseSerializer(dataPreprocessor: preprocessor,
                                                        encoding: encoding,
                                                        emptyResponseCodes: emptyResponseCodes,
                                                        emptyRequestMethods: emptyRequestMethods),
                        on: queue)
    }

    /// Creates a `DataResponsePublisher` for this instance and uses a `DecodableResponseSerializer` to serialize the
    /// response.
    ///
    /// - Parameters:
    ///   - type:                `Decodable` type to which to decode response `Data`. Inferred from the context by default.
    ///   - queue:               `DispatchQueue` on which the `DataResponse` will be published. `.main` by default.
    ///   - preprocessor:        `DataPreprocessor` which filters the `Data` before serialization. `PassthroughPreprocessor()`
    ///                          by default.
    ///   - decoder:             `DataDecoder` instance used to decode response `Data`. `JSONDecoder()` by default.
    ///   - emptyResponseCodes:  `Set<Int>` of HTTP status codes for which empty responses are allowed. `[204, 205]` by
    ///                          default.
    ///   - emptyRequestMethods: `Set<HTTPMethod>` of `HTTPMethod`s for which empty responses are allowed, regardless of
    ///                          status code. `[.head]` by default.
    ///
    /// - Returns:               The `DownloadResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishDecodable<T: Decodable>(type: T.Type = T.self,
                                               queue: DispatchQueue = .main,
                                               preprocessor: DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor,
                                               decoder: DataDecoder = JSONDecoder(),
                                               emptyResponseCodes: Set<Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes,
                                               emptyResponseMethods: Set<HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods) -> DownloadResponsePublisher<T> {
        publishResponse(using: DecodableResponseSerializer(dataPreprocessor: preprocessor,
                                                           decoder: decoder,
                                                           emptyResponseCodes: emptyResponseCodes,
                                                           emptyRequestMethods: emptyResponseMethods),
                        on: queue)
    }
}

@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
extension DownloadResponsePublisher where Value == URL? {
    /// Creates an instance which publishes a `DownloadResponse<URL?, AFError>` value without serialization.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public init(_ request: DownloadRequest, queue: DispatchQueue) {
        self.request = request
        responseHandler = { request.response(queue: queue, completionHandler: $0) }
    }
}

extension DownloadRequest {
    /// Creates a `DownloadResponsePublisher` for this instance which does not serialize the response before publishing.
    ///
    /// - Parameter queue: `DispatchQueue` on which the `DownloadResponse` will be published. `.main` by default.
    ///
    /// - Returns:         The `DownloadResponsePublisher`.
    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public func publishUnserialized(on queue: DispatchQueue = .main) -> DownloadResponsePublisher<URL?> {
        DownloadResponsePublisher(self, queue: queue)
    }
}

#endif


================================================
FILE: Pods/Alamofire/Source/DispatchQueue+Alamofire.swift
================================================
//
//  DispatchQueue+Alamofire.swift
//
//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

import Dispatch
import Foundation

extension DispatchQueue {
    /// Execute the provided closure after a `TimeInterval`.
    ///
    /// - Parameters:
    ///   - delay:   `TimeInterval` to delay execution.
    ///   - closure: Closure to execute.
    func after(_ delay: TimeInterval, execute closure: @escaping () -> Void) {
        asyncAfter(deadline: .now() + delay, execute: closure)
    }
}


================================================
FILE: Pods/Alamofire/Source/EventMonitor.swift
================================================
//
//  EventMonitor.swift
//
//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

import Foundation

/// Protocol outlining the lifetime events inside Alamofire. It includes both events received from the various
/// `URLSession` delegate protocols as well as various events from the lifetime of `Request` and its subclasses.
public protocol EventMonitor {
    /// The `DispatchQueue` onto which Alamofire's root `CompositeEventMonitor` will dispatch events. `.main` by default.
    var queue: DispatchQueue { get }

    // MARK: - URLSession Events

    // MARK: URLSessionDelegate Events

    /// Event called during `URLSessionDelegate`'s `urlSession(_:didBecomeInvalidWithError:)` method.
    func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?)

    // MARK: URLSessionTaskDelegate Events

    /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didReceive:completionHandler:)` method.
    func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge)

    /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:)` method.
    func urlSession(_ session: URLSession,
                    task: URLSessionTask,
                    didSendBodyData bytesSent: Int64,
                    totalBytesSent: Int64,
                    totalBytesExpectedToSend: Int64)

    /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:needNewBodyStream:)` method.
    func urlSession(_ session: URLSession, taskNeedsNewBodyStream task: URLSessionTask)

    /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:)` method.
    func urlSession(_ session: URLSession,
                    task: URLSessionTask,
                    willPerformHTTPRedirection response: HTTPURLResponse,
                    newRequest request: URLRequest)

    /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didFinishCollecting:)` method.
    func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)

    /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didCompleteWithError:)` method.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?)

    /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:taskIsWaitingForConnectivity:)` method.
    @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
    func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask)

    // MARK: URLSessionDataDelegate Events

    /// Event called during `URLSessionDataDelegate`'s `urlSession(_:dataTask:didReceive:)` method.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)

    /// Event called during `URLSessionDataDelegate`'s `urlSession(_:dataTask:willCacheResponse:completionHandler:)` method.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse)

    // MARK: URLSessionDownloadDelegate Events

    /// Event called during `URLSessionDownloadDelegate`'s `urlSession(_:downloadTask:didResumeAtOffset:expectedTotalBytes:)` method.
    func urlSession(_ session: URLSession,
                    downloadTask: URLSessionDownloadTask,
                    didResumeAtOffset fileOffset: Int64,
                    expectedTotalBytes: Int64)

    /// Event called during `URLSessionDownloadDelegate`'s `urlSession(_:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:)` method.
    func urlSession(_ session: URLSession,
                    downloadTask: URLSessionDownloadTask,
                    didWriteData bytesWritten: Int64,
                    totalBytesWritten: Int64,
                    totalBytesExpectedToWrite: Int64)

    /// Event called during `URLSessionDownloadDelegate`'s `urlSession(_:downloadTask:didFinishDownloadingTo:)` method.
    func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL)

    // MARK: - Request Events

    /// Event called when a `URLRequest` is first created for a `Request`. If a `RequestAdapter` is active, the
    /// `URLRequest` will be adapted before being issued.
    func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest)

    /// Event called when the attempt to create a `URLRequest` from a `Request`'s original `URLRequestConvertible` value fails.
    func request(_ request: Request, didFailToCreateURLRequestWithError error: AFError)

    /// Event called when a `RequestAdapter` adapts the `Request`'s initial `URLRequest`.
    func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)

    /// Event called when a `RequestAdapter` fails to adapt the `Request`'s initial `URLRequest`.
    func request(_ request: Request, didFailToAdaptURLRequest initialRequest: URLRequest, withError error: AFError)

    /// Event called when a final `URLRequest` is created for a `Request`.
    func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest)

    /// Event called when a `URLSessionTask` subclass instance is created for a `Request`.
    func request(_ request: Request, didCreateTask task: URLSessionTask)

    /// Event called when a `Request` receives a `URLSessionTaskMetrics` value.
    func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics)

    /// Event called when a `Request` fails due to an error created by Alamofire. e.g. When certificate pinning fails.
    func request(_ request: Request, didFailTask task: URLSessionTask, earlyWithError error: AFError)

    /// Event called when a `Request`'s task completes, possibly with an error. A `Request` may receive this event
    /// multiple times if it is retried.
    func request(_ request: Request, didCompleteTask task: URLSessionTask, with error: AFError?)

    /// Event called when a `Request` is about to be retried.
    func requestIsRetrying(_ request: Request)

    /// Event called when a `Request` finishes and response serializers are being called.
    func requestDidFinish(_ request: Request)

    /// Event called when a `Request` receives a `resume` call.
    func requestDidResume(_ request: Request)

    /// Event called when a `Request`'s associated `URLSessionTask` is resumed.
    func request(_ request: Request, didResumeTask task: URLSessionTask)

    /// Event called when a `Request` receives a `suspend` call.
    func requestDidSuspend(_ request: Request)

    /// Event called when a `Request`'s associated `URLSessionTask` is suspended.
    func request(_ request: Request, didSuspendTask task: URLSessionTask)

    /// Event called when a `Request` receives a `cancel` call.
    func requestDidCancel(_ request: Request)

    /// Event called when a `Request`'s associated `URLSessionTask` is cancelled.
    func request(_ request: Request, didCancelTask task: URLSessionTask)

    // MARK: DataRequest Events

    /// Event called when a `DataRequest` calls a `Validation`.
    func request(_ request: DataRequest,
                 didValidateRequest urlRequest: URLRequest?,
                 response: HTTPURLResponse,
                 data: Data?,
                 withResult result: Request.ValidationResult)

    /// Event called when a `DataRequest` creates a `DataResponse<Data?>` value without calling a `ResponseSerializer`.
    func request(_ request: DataRequest, didParseResponse response: DataResponse<Data?, AFError>)

    /// Event called when a `DataRequest` calls a `ResponseSerializer` and creates a generic `DataResponse<Value, AFError>`.
    func request<Value>(_ request: DataRequest, didParseResponse response: DataResponse<Value, AFError>)

    // MARK: DataStreamRequest Events

    /// Event called when a `DataStreamRequest` calls a `Validation` closure.
    ///
    /// - Parameters:
    ///   - request:    `DataStreamRequest` which is calling the `Validation`.
    ///   - urlRequest: `URLRequest` of the request being validated.
    ///   - response:   `HTTPURLResponse` of the request being validated.
    ///   - result:      Produced `ValidationResult`.
    func request(_ request: DataStreamRequest,
                 didValidateRequest urlRequest: URLRequest?,
                 response: HTTPURLResponse,
                 withResult result: Request.ValidationResult)

    /// Event called when a `DataStreamSerializer` produces a value from streamed `Data`.
    ///
    /// - Parameters:
    ///   - request: `DataStreamRequest` for which the value was serialized.
    ///   - result:  `Result` of the serialization attempt.
    func request<Value>(_ request: DataStreamRequest, didParseStream result: Result<Value, AFError>)

    // MARK: UploadRequest Events

    /// Event called when an `UploadRequest` creates its `Uploadable` value, indicating the type of upload it represents.
    func request(_ request: UploadRequest, didCreateUploadable uploadable: UploadRequest.Uploadable)

    /// Event called when an `UploadRequest` failed to create its `Uploadable` value due to an error.
    func request(_ request: UploadRequest, didFailToCreateUploadableWithError error: AFError)

    /// Event called when an `UploadRequest` provides the `InputStream` from its `Uploadable` value. This only occurs if
    /// the `InputStream` does not wrap a `Data` value or file `URL`.
    func request(_ request: UploadRequest, didProvideInputStream stream: InputStream)

    // MARK: DownloadRequest Events

    /// Event called when a `DownloadRequest`'s `URLSessionDownloadTask` finishes and the temporary file has been moved.
    func request(_ request: DownloadRequest, didFinishDownloadingUsing task: URLSessionTask, with result: Result<URL, AFError>)

    /// Event called when a `DownloadRequest`'s `Destination` closure is called and creates the destination URL the
    /// downloaded file will be moved to.
    func request(_ request: DownloadRequest, didCreateDestinationURL url: URL)

    /// Event called when a `DownloadRequest` calls a `Validation`.
    func request(_ request: DownloadRequest,
                 didValidateRequest urlRequest: URLRequest?,
                 response: HTTPURLResponse,
                 fileURL: URL?,
                 withResult result: Request.ValidationResult)

    /// Event called when a `DownloadRequest` creates a `DownloadResponse<URL?, AFError>` without calling a `ResponseSerializer`.
    func request(_ request: DownloadRequest, didParseResponse response: DownloadResponse<URL?, AFError>)

    /// Event called when a `DownloadRequest` calls a `DownloadResponseSerializer` and creates a generic `DownloadResponse<Value, AFError>`
    func request<Value>(_ request: DownloadRequest, didParseResponse response: DownloadResponse<Value, AFError>)
}

extension EventMonitor {
    /// The default queue on which `CompositeEventMonitor`s will call the `EventMonitor` methods. `.main` by default.
    public var queue: DispatchQueue { .main }

    // MARK: Default Implementations

    public func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {}
    public func urlSession(_ session: URLSession,
                           task: URLSessionTask,
                           didReceive challenge: URLAuthenticationChallenge) {}
    public func urlSession(_ session: URLSession,
                           task: URLSessionTask,
                           didSendBodyData bytesSent: Int64,
                           totalBytesSent: Int64,
                           totalBytesExpectedToSend: Int64) {}
    public func urlSession(_ session: URLSession, taskNeedsNewBodyStream task: URLSessionTask) {}
    public func urlSession(_ session: URLSession,
                           task: URLSessionTask,
                           willPerformHTTPRedirection response: HTTPURLResponse,
                           newRequest request: URLRequest) {}
    public func urlSession(_ session: URLSession,
                           task: URLSessionTask,
                           didFinishCollecting metrics: URLSessionTaskMetrics) {}
    public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {}
    public func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {}
    public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {}
    public func urlSession(_ session: URLSession,
                           dataTask: URLSessionDataTask,
                           willCacheResponse proposedResponse: CachedURLResponse) {}
    public func urlSession(_ session: URLSession,
                           downloadTask: URLSessionDownloadTask,
                           didResumeAtOffset fileOffset: Int64,
                           expectedTotalBytes: Int64) {}
    public func urlSession(_ session: URLSession,
                           downloadTask: URLSessionDownloadTask,
                           didWriteData bytesWritten: Int64,
                           totalBytesWritten: Int64,
                           totalBytesExpectedToWrite: Int64) {}
    public func urlSession(_ session: URLSession,
                           downloadTask: URLSessionDownloadTask,
                           didFinishDownloadingTo location: URL) {}
    public func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest) {}
    public func request(_ request: Request, didFailToCreateURLRequestWithError error: AFError) {}
    public func request(_ request: Request,
                        didAdaptInitialRequest initialRequest: URLRequest,
                        to adaptedRequest: URLRequest) {}
    public func request(_ request: Request,
                        didFailToAdaptURLRequest initialRequest: URLRequest,
                        withError error: AFError) {}
    public func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest) {}
    public func request(_ request: Request, didCreateTask task: URLSessionTask) {}
    public func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics) {}
    public func request(_ request: Request, didFailTask task: URLSessionTask, earlyWithError error: AFError) {}
    public func request(_ request: Request, didCompleteTask task: URLSessionTask, with error: AFError?) {}
    public func requestIsRetrying(_ request: Request) {}
    public func requestDidFinish(_ request: Request) {}
    public func requestDidResume(_ request: Request) {}
    public func request(_ request: Request, didResumeTask task: URLSessionTask) {}
    public func requestDidSuspend(_ request: Request) {}
    public func request(_ request: Request, didSuspendTask task: URLSessionTask) {}
    public func requestDidCancel(_ request: Request) {}
    public func request(_ request: Request, didCancelTask task: URLSessionTask) {}
    public func request(_ request: DataRequest,
                        didValidateRequest urlRequest: URLRequest?,
                        response: HTTPURLResponse,
                        data: Data?,
                        withResult result: Request.ValidationResult) {}
    public func request(_ request: DataRequest, didParseResponse response: DataResponse<Data?, AFError>) {}
    public func request<Value>(_ request: DataRequest, didParseResponse response: DataResponse<Value, AFError>) {}
    public func request(_ request: DataStreamRequest,
                        didValidateRequest urlRequest: URLRequest?,
                        response: HTTPURLResponse,
                        withResult result: Request.ValidationResult) {}
    public func request<Value>(_ request: DataStreamRequest, didParseStream result: Result<Value, AFError>) {}
    public func request(_ request: UploadRequest, didCreateUploadable uploadable: UploadRequest.Uploadable) {}
    public func request(_ request: UploadRequest, didFailToCreateUploadableWithError error: AFError) {}
    public func request(_ request: UploadRequest, didProvideInputStream stream: InputStream) {}
    public func request(_ request: DownloadRequest, didFinishDownloadingUsing task: URLSessionTask, with result: Result<URL, AFError>) {}
    public func request(_ request: DownloadRequest, didCreateDestinationURL url: URL) {}
    public func request(_ request: DownloadRequest,
                        didValidateRequest urlRequest: URLRequest?,
                        response: HTTPURLResponse,
                        fileURL: URL?,
                        withResult result: Request.ValidationResult) {}
    public func request(_ request: DownloadRequest, didParseResponse response: DownloadResponse<URL?, AFError>) {}
    public func request<Value>(_ request: DownloadRequest, didParseResponse response: DownloadResponse<Value, AFError>) {}
}

/// An `EventMonitor` which can contain multiple `EventMonitor`s and calls their methods on their queues.
public final class CompositeEventMonitor: EventMonitor {
    public let queue = DispatchQueue(label: "org.alamofire.compositeEventMonitor", qos: .utility)

    let monitors: [EventMonitor]

    init(monitors: [EventMonitor]) {
        self.monitors = monitors
    }

    func performEvent(_ event: @escaping (EventMonitor) -> Void) {
        queue.async {
            for monitor in self.monitors {
                monitor.queue.async { event(monitor) }
            }
        }
    }

    public func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
        performEvent { $0.urlSession(session, didBecomeInvalidWithError: error) }
    }

    public func urlSession(_ session: URLSession,
                           task: URLSessionTask,
                           didReceive challenge: URLAuthenticationChallenge) {
        performEvent { $0.urlSession(session, task: task, didReceive: challenge) }
    }

    public func urlSession(_ session: URLSession,
                           task: URLSessionTask,
                           didSendBodyData bytesSent: Int64,
                           totalBytesSent: Int64,
                           totalBytesExpectedToSend: Int64) {
        performEvent {
            $0.urlSession(session,
                          task: task,
                          didSendBodyData: bytesSent,
                          totalBytesSent: totalBytesSent,
                          totalBytesExpectedToSend: totalBytesExpectedToSend)
        }
    }

    public func urlSession(_ session: URLSession, taskNeedsNewBodyStream task: URLSessionTask) {
        performEvent {
            $0.urlSession(session, taskNeedsNewBodyStream: task)
        }
    }

    public func urlSession(_ session: URLSession,
                           task: URLSessionTask,
                           willPerformHTTPRedirection response: HTTPURLResponse,
                           newRequest request: URLRequest) {
        performEvent {
            $0.urlSession(session,
                          task: task,
                          willPerformHTTPRedirection: response,
                          newRequest: request)
        }
    }

    public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
        performEvent { $0.urlSession(session, task: task, didFinishCollecting: metrics) }
    }
Download .txt
gitextract_rw2t5x3v/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── Bug_report.md
│   │   └── Feature_request.md
│   └── workflows/
│       ├── feature.yml
│       └── release.yml
├── .gitignore
├── .gitmodules
├── LICENSE
├── LaunchHelper/
│   ├── LaunchHelper/
│   │   ├── AppDelegate.h
│   │   ├── AppDelegate.m
│   │   ├── Assets.xcassets/
│   │   │   └── AppIcon.appiconset/
│   │   │       └── Contents.json
│   │   ├── Base.lproj/
│   │   │   └── MainMenu.xib
│   │   ├── Info.plist
│   │   └── main.m
│   └── LaunchHelper.xcodeproj/
│       └── project.pbxproj
├── Makefile
├── Podfile
├── Pods/
│   ├── Alamofire/
│   │   ├── LICENSE
│   │   ├── README.md
│   │   └── Source/
│   │       ├── AFError.swift
│   │       ├── Alamofire.swift
│   │       ├── AlamofireExtended.swift
│   │       ├── AuthenticationInterceptor.swift
│   │       ├── CachedResponseHandler.swift
│   │       ├── Combine.swift
│   │       ├── DispatchQueue+Alamofire.swift
│   │       ├── EventMonitor.swift
│   │       ├── HTTPHeaders.swift
│   │       ├── HTTPMethod.swift
│   │       ├── MultipartFormData.swift
│   │       ├── MultipartUpload.swift
│   │       ├── NetworkReachabilityManager.swift
│   │       ├── Notifications.swift
│   │       ├── OperationQueue+Alamofire.swift
│   │       ├── ParameterEncoder.swift
│   │       ├── ParameterEncoding.swift
│   │       ├── Protected.swift
│   │       ├── RedirectHandler.swift
│   │       ├── Request.swift
│   │       ├── RequestInterceptor.swift
│   │       ├── RequestTaskMap.swift
│   │       ├── Response.swift
│   │       ├── ResponseSerialization.swift
│   │       ├── Result+Alamofire.swift
│   │       ├── RetryPolicy.swift
│   │       ├── ServerTrustEvaluation.swift
│   │       ├── Session.swift
│   │       ├── SessionDelegate.swift
│   │       ├── StringEncoding+Alamofire.swift
│   │       ├── URLConvertible+URLRequestConvertible.swift
│   │       ├── URLEncodedFormEncoder.swift
│   │       ├── URLRequest+Alamofire.swift
│   │       ├── URLSessionConfiguration+Alamofire.swift
│   │       └── Validation.swift
│   ├── BRLOptionParser/
│   │   ├── BRLOptionParser/
│   │   │   ├── BRLOptionParser.h
│   │   │   └── BRLOptionParser.m
│   │   ├── LICENSE
│   │   └── README.markdown
│   ├── GCDWebServer/
│   │   ├── GCDWebServer/
│   │   │   ├── Core/
│   │   │   │   ├── GCDWebServer.h
│   │   │   │   ├── GCDWebServer.m
│   │   │   │   ├── GCDWebServerConnection.h
│   │   │   │   ├── GCDWebServerConnection.m
│   │   │   │   ├── GCDWebServerFunctions.h
│   │   │   │   ├── GCDWebServerFunctions.m
│   │   │   │   ├── GCDWebServerHTTPStatusCodes.h
│   │   │   │   ├── GCDWebServerPrivate.h
│   │   │   │   ├── GCDWebServerRequest.h
│   │   │   │   ├── GCDWebServerRequest.m
│   │   │   │   ├── GCDWebServerResponse.h
│   │   │   │   └── GCDWebServerResponse.m
│   │   │   ├── Requests/
│   │   │   │   ├── GCDWebServerDataRequest.h
│   │   │   │   ├── GCDWebServerDataRequest.m
│   │   │   │   ├── GCDWebServerFileRequest.h
│   │   │   │   ├── GCDWebServerFileRequest.m
│   │   │   │   ├── GCDWebServerMultiPartFormRequest.h
│   │   │   │   ├── GCDWebServerMultiPartFormRequest.m
│   │   │   │   ├── GCDWebServerURLEncodedFormRequest.h
│   │   │   │   └── GCDWebServerURLEncodedFormRequest.m
│   │   │   └── Responses/
│   │   │       ├── GCDWebServerDataResponse.h
│   │   │       ├── GCDWebServerDataResponse.m
│   │   │       ├── GCDWebServerErrorResponse.h
│   │   │       ├── GCDWebServerErrorResponse.m
│   │   │       ├── GCDWebServerFileResponse.h
│   │   │       ├── GCDWebServerFileResponse.m
│   │   │       ├── GCDWebServerStreamedResponse.h
│   │   │       └── GCDWebServerStreamedResponse.m
│   │   ├── LICENSE
│   │   └── README.md
│   ├── MASShortcut/
│   │   ├── Framework/
│   │   │   ├── Model/
│   │   │   │   ├── MASKeyCodes.h
│   │   │   │   ├── MASKeyMasks.h
│   │   │   │   ├── MASShortcut.h
│   │   │   │   ├── MASShortcut.m
│   │   │   │   ├── MASShortcutValidator.h
│   │   │   │   └── MASShortcutValidator.m
│   │   │   ├── Monitoring/
│   │   │   │   ├── MASHotKey.h
│   │   │   │   ├── MASHotKey.m
│   │   │   │   ├── MASShortcutMonitor.h
│   │   │   │   └── MASShortcutMonitor.m
│   │   │   ├── Shortcut.h
│   │   │   ├── UI/
│   │   │   │   ├── MASLocalization.h
│   │   │   │   ├── MASLocalization.m
│   │   │   │   ├── MASShortcutView+Bindings.h
│   │   │   │   ├── MASShortcutView+Bindings.m
│   │   │   │   ├── MASShortcutView.h
│   │   │   │   └── MASShortcutView.m
│   │   │   └── User Defaults Storage/
│   │   │       ├── MASDictionaryTransformer.h
│   │   │       ├── MASDictionaryTransformer.m
│   │   │       ├── MASShortcutBinder.h
│   │   │       └── MASShortcutBinder.m
│   │   ├── LICENSE
│   │   ├── README.md
│   │   └── Resources/
│   │       ├── cs.lproj/
│   │       │   └── Localizable.strings
│   │       ├── de.lproj/
│   │       │   └── Localizable.strings
│   │       ├── en.lproj/
│   │       │   └── Localizable.strings
│   │       ├── es.lproj/
│   │       │   └── Localizable.strings
│   │       ├── fr.lproj/
│   │       │   └── Localizable.strings
│   │       ├── it.lproj/
│   │       │   └── Localizable.strings
│   │       ├── ja.lproj/
│   │       │   └── Localizable.strings
│   │       ├── ko.lproj/
│   │       │   └── Localizable.strings
│   │       ├── nl.lproj/
│   │       │   └── Localizable.strings
│   │       ├── pl.lproj/
│   │       │   └── Localizable.strings
│   │       ├── pt.lproj/
│   │       │   └── Localizable.strings
│   │       ├── ru.lproj/
│   │       │   └── Localizable.strings
│   │       ├── sv.lproj/
│   │       │   └── Localizable.strings
│   │       ├── zh-Hans.lproj/
│   │       │   └── Localizable.strings
│   │       └── zh-Hant.lproj/
│   │           └── Localizable.strings
│   ├── Pods.xcodeproj/
│   │   └── project.pbxproj
│   ├── RxCocoa/
│   │   ├── LICENSE.md
│   │   ├── Platform/
│   │   │   ├── DataStructures/
│   │   │   │   ├── Bag.swift
│   │   │   │   ├── InfiniteSequence.swift
│   │   │   │   ├── PriorityQueue.swift
│   │   │   │   └── Queue.swift
│   │   │   ├── DispatchQueue+Extensions.swift
│   │   │   ├── Platform.Darwin.swift
│   │   │   ├── Platform.Linux.swift
│   │   │   └── RecursiveLock.swift
│   │   ├── README.md
│   │   └── RxCocoa/
│   │       ├── Common/
│   │       │   ├── ControlTarget.swift
│   │       │   ├── DelegateProxy.swift
│   │       │   ├── DelegateProxyType.swift
│   │       │   ├── Infallible+Bind.swift
│   │       │   ├── Observable+Bind.swift
│   │       │   ├── RxCocoaObjCRuntimeError+Extensions.swift
│   │       │   ├── RxTarget.swift
│   │       │   ├── SectionedViewDataSourceType.swift
│   │       │   └── TextInput.swift
│   │       ├── Foundation/
│   │       │   ├── KVORepresentable+CoreGraphics.swift
│   │       │   ├── KVORepresentable+Swift.swift
│   │       │   ├── KVORepresentable.swift
│   │       │   ├── NSObject+Rx+KVORepresentable.swift
│   │       │   ├── NSObject+Rx+RawRepresentable.swift
│   │       │   ├── NSObject+Rx.swift
│   │       │   ├── NotificationCenter+Rx.swift
│   │       │   └── URLSession+Rx.swift
│   │       ├── Runtime/
│   │       │   ├── _RX.m
│   │       │   ├── _RXDelegateProxy.m
│   │       │   ├── _RXKVOObserver.m
│   │       │   ├── _RXObjCRuntime.m
│   │       │   └── include/
│   │       │       ├── RxCocoaRuntime.h
│   │       │       ├── _RX.h
│   │       │       ├── _RXDelegateProxy.h
│   │       │       ├── _RXKVOObserver.h
│   │       │       └── _RXObjCRuntime.h
│   │       ├── RxCocoa.h
│   │       ├── RxCocoa.swift
│   │       ├── Traits/
│   │       │   ├── ControlEvent.swift
│   │       │   ├── ControlProperty.swift
│   │       │   ├── Driver/
│   │       │   │   ├── BehaviorRelay+Driver.swift
│   │       │   │   ├── ControlEvent+Driver.swift
│   │       │   │   ├── ControlProperty+Driver.swift
│   │       │   │   ├── Driver+Subscription.swift
│   │       │   │   ├── Driver.swift
│   │       │   │   └── ObservableConvertibleType+Driver.swift
│   │       │   ├── SharedSequence/
│   │       │   │   ├── ObservableConvertibleType+SharedSequence.swift
│   │       │   │   ├── SchedulerType+SharedSequence.swift
│   │       │   │   ├── SharedSequence+Operators+arity.swift
│   │       │   │   ├── SharedSequence+Operators.swift
│   │       │   │   └── SharedSequence.swift
│   │       │   └── Signal/
│   │       │       ├── ControlEvent+Signal.swift
│   │       │       ├── ObservableConvertibleType+Signal.swift
│   │       │       ├── PublishRelay+Signal.swift
│   │       │       ├── Signal+Subscription.swift
│   │       │       └── Signal.swift
│   │       ├── iOS/
│   │       │   ├── DataSources/
│   │       │   │   ├── RxCollectionViewReactiveArrayDataSource.swift
│   │       │   │   ├── RxPickerViewAdapter.swift
│   │       │   │   └── RxTableViewReactiveArrayDataSource.swift
│   │       │   ├── Events/
│   │       │   │   └── ItemEvents.swift
│   │       │   ├── NSTextStorage+Rx.swift
│   │       │   ├── Protocols/
│   │       │   │   ├── RxCollectionViewDataSourceType.swift
│   │       │   │   ├── RxPickerViewDataSourceType.swift
│   │       │   │   └── RxTableViewDataSourceType.swift
│   │       │   ├── Proxies/
│   │       │   │   ├── RxCollectionViewDataSourcePrefetchingProxy.swift
│   │       │   │   ├── RxCollectionViewDataSourceProxy.swift
│   │       │   │   ├── RxCollectionViewDelegateProxy.swift
│   │       │   │   ├── RxNavigationControllerDelegateProxy.swift
│   │       │   │   ├── RxPickerViewDataSourceProxy.swift
│   │       │   │   ├── RxPickerViewDelegateProxy.swift
│   │       │   │   ├── RxScrollViewDelegateProxy.swift
│   │       │   │   ├── RxSearchBarDelegateProxy.swift
│   │       │   │   ├── RxSearchControllerDelegateProxy.swift
│   │       │   │   ├── RxTabBarControllerDelegateProxy.swift
│   │       │   │   ├── RxTabBarDelegateProxy.swift
│   │       │   │   ├── RxTableViewDataSourcePrefetchingProxy.swift
│   │       │   │   ├── RxTableViewDataSourceProxy.swift
│   │       │   │   ├── RxTableViewDelegateProxy.swift
│   │       │   │   ├── RxTextStorageDelegateProxy.swift
│   │       │   │   ├── RxTextViewDelegateProxy.swift
│   │       │   │   └── RxWKNavigationDelegateProxy.swift
│   │       │   ├── UIActivityIndicatorView+Rx.swift
│   │       │   ├── UIApplication+Rx.swift
│   │       │   ├── UIBarButtonItem+Rx.swift
│   │       │   ├── UIButton+Rx.swift
│   │       │   ├── UICollectionView+Rx.swift
│   │       │   ├── UIControl+Rx.swift
│   │       │   ├── UIDatePicker+Rx.swift
│   │       │   ├── UIGestureRecognizer+Rx.swift
│   │       │   ├── UINavigationController+Rx.swift
│   │       │   ├── UIPickerView+Rx.swift
│   │       │   ├── UIRefreshControl+Rx.swift
│   │       │   ├── UIScrollView+Rx.swift
│   │       │   ├── UISearchBar+Rx.swift
│   │       │   ├── UISearchController+Rx.swift
│   │       │   ├── UISegmentedControl+Rx.swift
│   │       │   ├── UISlider+Rx.swift
│   │       │   ├── UIStepper+Rx.swift
│   │       │   ├── UISwitch+Rx.swift
│   │       │   ├── UITabBar+Rx.swift
│   │       │   ├── UITabBarController+Rx.swift
│   │       │   ├── UITableView+Rx.swift
│   │       │   ├── UITextField+Rx.swift
│   │       │   ├── UITextView+Rx.swift
│   │       │   └── WKWebView+Rx.swift
│   │       └── macOS/
│   │           ├── NSButton+Rx.swift
│   │           ├── NSControl+Rx.swift
│   │           ├── NSSlider+Rx.swift
│   │           ├── NSTextField+Rx.swift
│   │           ├── NSTextView+Rx.swift
│   │           └── NSView+Rx.swift
│   ├── RxRelay/
│   │   ├── LICENSE.md
│   │   ├── README.md
│   │   └── RxRelay/
│   │       ├── BehaviorRelay.swift
│   │       ├── Observable+Bind.swift
│   │       ├── PublishRelay.swift
│   │       ├── ReplayRelay.swift
│   │       └── Utils.swift
│   ├── RxSwift/
│   │   ├── LICENSE.md
│   │   ├── Platform/
│   │   │   ├── AtomicInt.swift
│   │   │   ├── DataStructures/
│   │   │   │   ├── Bag.swift
│   │   │   │   ├── InfiniteSequence.swift
│   │   │   │   ├── PriorityQueue.swift
│   │   │   │   └── Queue.swift
│   │   │   ├── DispatchQueue+Extensions.swift
│   │   │   ├── Platform.Darwin.swift
│   │   │   ├── Platform.Linux.swift
│   │   │   └── RecursiveLock.swift
│   │   ├── README.md
│   │   └── RxSwift/
│   │       ├── AnyObserver.swift
│   │       ├── Binder.swift
│   │       ├── Cancelable.swift
│   │       ├── Concurrency/
│   │       │   ├── AsyncLock.swift
│   │       │   ├── Lock.swift
│   │       │   ├── LockOwnerType.swift
│   │       │   ├── SynchronizedDisposeType.swift
│   │       │   ├── SynchronizedOnType.swift
│   │       │   └── SynchronizedUnsubscribeType.swift
│   │       ├── ConnectableObservableType.swift
│   │       ├── Date+Dispatch.swift
│   │       ├── Disposable.swift
│   │       ├── Disposables/
│   │       │   ├── AnonymousDisposable.swift
│   │       │   ├── BinaryDisposable.swift
│   │       │   ├── BooleanDisposable.swift
│   │       │   ├── CompositeDisposable.swift
│   │       │   ├── Disposables.swift
│   │       │   ├── DisposeBag.swift
│   │       │   ├── DisposeBase.swift
│   │       │   ├── NopDisposable.swift
│   │       │   ├── RefCountDisposable.swift
│   │       │   ├── ScheduledDisposable.swift
│   │       │   ├── SerialDisposable.swift
│   │       │   ├── SingleAssignmentDisposable.swift
│   │       │   └── SubscriptionDisposable.swift
│   │       ├── Errors.swift
│   │       ├── Event.swift
│   │       ├── Extensions/
│   │       │   └── Bag+Rx.swift
│   │       ├── GroupedObservable.swift
│   │       ├── ImmediateSchedulerType.swift
│   │       ├── Observable.swift
│   │       ├── ObservableConvertibleType.swift
│   │       ├── ObservableType+Extensions.swift
│   │       ├── ObservableType.swift
│   │       ├── Observables/
│   │       │   ├── AddRef.swift
│   │       │   ├── Amb.swift
│   │       │   ├── AsMaybe.swift
│   │       │   ├── AsSingle.swift
│   │       │   ├── Buffer.swift
│   │       │   ├── Catch.swift
│   │       │   ├── CombineLatest+Collection.swift
│   │       │   ├── CombineLatest+arity.swift
│   │       │   ├── CombineLatest.swift
│   │       │   ├── CompactMap.swift
│   │       │   ├── Concat.swift
│   │       │   ├── Create.swift
│   │       │   ├── Debounce.swift
│   │       │   ├── Debug.swift
│   │       │   ├── Decode.swift
│   │       │   ├── DefaultIfEmpty.swift
│   │       │   ├── Deferred.swift
│   │       │   ├── Delay.swift
│   │       │   ├── DelaySubscription.swift
│   │       │   ├── Dematerialize.swift
│   │       │   ├── DistinctUntilChanged.swift
│   │       │   ├── Do.swift
│   │       │   ├── ElementAt.swift
│   │       │   ├── Empty.swift
│   │       │   ├── Enumerated.swift
│   │       │   ├── Error.swift
│   │       │   ├── Filter.swift
│   │       │   ├── First.swift
│   │       │   ├── Generate.swift
│   │       │   ├── GroupBy.swift
│   │       │   ├── Just.swift
│   │       │   ├── Map.swift
│   │       │   ├── Materialize.swift
│   │       │   ├── Merge.swift
│   │       │   ├── Multicast.swift
│   │       │   ├── Never.swift
│   │       │   ├── ObserveOn.swift
│   │       │   ├── Optional.swift
│   │       │   ├── Producer.swift
│   │       │   ├── Range.swift
│   │       │   ├── Reduce.swift
│   │       │   ├── Repeat.swift
│   │       │   ├── RetryWhen.swift
│   │       │   ├── Sample.swift
│   │       │   ├── Scan.swift
│   │       │   ├── Sequence.swift
│   │       │   ├── ShareReplayScope.swift
│   │       │   ├── SingleAsync.swift
│   │       │   ├── Sink.swift
│   │       │   ├── Skip.swift
│   │       │   ├── SkipUntil.swift
│   │       │   ├── SkipWhile.swift
│   │       │   ├── StartWith.swift
│   │       │   ├── SubscribeOn.swift
│   │       │   ├── Switch.swift
│   │       │   ├── SwitchIfEmpty.swift
│   │       │   ├── Take.swift
│   │       │   ├── TakeLast.swift
│   │       │   ├── TakeWithPredicate.swift
│   │       │   ├── Throttle.swift
│   │       │   ├── Timeout.swift
│   │       │   ├── Timer.swift
│   │       │   ├── ToArray.swift
│   │       │   ├── Using.swift
│   │       │   ├── Window.swift
│   │       │   ├── WithLatestFrom.swift
│   │       │   ├── WithUnretained.swift
│   │       │   ├── Zip+Collection.swift
│   │       │   ├── Zip+arity.swift
│   │       │   └── Zip.swift
│   │       ├── ObserverType.swift
│   │       ├── Observers/
│   │       │   ├── AnonymousObserver.swift
│   │       │   ├── ObserverBase.swift
│   │       │   └── TailRecursiveSink.swift
│   │       ├── Reactive.swift
│   │       ├── Rx.swift
│   │       ├── RxMutableBox.swift
│   │       ├── SchedulerType.swift
│   │       ├── Schedulers/
│   │       │   ├── ConcurrentDispatchQueueScheduler.swift
│   │       │   ├── ConcurrentMainScheduler.swift
│   │       │   ├── CurrentThreadScheduler.swift
│   │       │   ├── HistoricalScheduler.swift
│   │       │   ├── HistoricalSchedulerTimeConverter.swift
│   │       │   ├── Internal/
│   │       │   │   ├── DispatchQueueConfiguration.swift
│   │       │   │   ├── InvocableScheduledItem.swift
│   │       │   │   ├── InvocableType.swift
│   │       │   │   ├── ScheduledItem.swift
│   │       │   │   └── ScheduledItemType.swift
│   │       │   ├── MainScheduler.swift
│   │       │   ├── OperationQueueScheduler.swift
│   │       │   ├── RecursiveScheduler.swift
│   │       │   ├── SchedulerServices+Emulation.swift
│   │       │   ├── SerialDispatchQueueScheduler.swift
│   │       │   ├── VirtualTimeConverterType.swift
│   │       │   └── VirtualTimeScheduler.swift
│   │       ├── Subjects/
│   │       │   ├── AsyncSubject.swift
│   │       │   ├── BehaviorSubject.swift
│   │       │   ├── PublishSubject.swift
│   │       │   ├── ReplaySubject.swift
│   │       │   └── SubjectType.swift
│   │       ├── SwiftSupport/
│   │       │   └── SwiftSupport.swift
│   │       └── Traits/
│   │           ├── Infallible/
│   │           │   ├── Infallible+CombineLatest+arity.swift
│   │           │   ├── Infallible+Create.swift
│   │           │   ├── Infallible+Operators.swift
│   │           │   ├── Infallible+Zip+arity.swift
│   │           │   ├── Infallible.swift
│   │           │   └── ObservableConvertibleType+Infallible.swift
│   │           └── PrimitiveSequence/
│   │               ├── Completable+AndThen.swift
│   │               ├── Completable.swift
│   │               ├── Maybe.swift
│   │               ├── ObservableType+PrimitiveSequence.swift
│   │               ├── PrimitiveSequence+Zip+arity.swift
│   │               ├── PrimitiveSequence.swift
│   │               └── Single.swift
│   └── Target Support Files/
│       ├── Alamofire/
│       │   ├── Alamofire-Info.plist
│       │   ├── Alamofire-dummy.m
│       │   ├── Alamofire-prefix.pch
│       │   ├── Alamofire-umbrella.h
│       │   ├── Alamofire.debug.xcconfig
│       │   ├── Alamofire.modulemap
│       │   ├── Alamofire.release.xcconfig
│       │   ├── Alamofire.xcconfig
│       │   └── Info.plist
│       ├── BRLOptionParser/
│       │   ├── BRLOptionParser-dummy.m
│       │   ├── BRLOptionParser-prefix.pch
│       │   ├── BRLOptionParser.debug.xcconfig
│       │   ├── BRLOptionParser.release.xcconfig
│       │   └── BRLOptionParser.xcconfig
│       ├── GCDWebServer/
│       │   ├── GCDWebServer-Info.plist
│       │   ├── GCDWebServer-dummy.m
│       │   ├── GCDWebServer-prefix.pch
│       │   ├── GCDWebServer-umbrella.h
│       │   ├── GCDWebServer.debug.xcconfig
│       │   ├── GCDWebServer.modulemap
│       │   ├── GCDWebServer.release.xcconfig
│       │   ├── GCDWebServer.xcconfig
│       │   └── Info.plist
│       ├── MASShortcut/
│       │   ├── Info.plist
│       │   ├── MASShortcut-Info.plist
│       │   ├── MASShortcut-dummy.m
│       │   ├── MASShortcut-prefix.pch
│       │   ├── MASShortcut-umbrella.h
│       │   ├── MASShortcut.debug.xcconfig
│       │   ├── MASShortcut.modulemap
│       │   ├── MASShortcut.release.xcconfig
│       │   ├── MASShortcut.xcconfig
│       │   ├── ResourceBundle-MASShortcut-Info.plist
│       │   └── ResourceBundle-MASShortcut-MASShortcut-Info.plist
│       ├── Pods-ShadowsocksX-NG/
│       │   ├── Info.plist
│       │   ├── Pods-ShadowsocksX-NG-Info.plist
│       │   ├── Pods-ShadowsocksX-NG-acknowledgements.markdown
│       │   ├── Pods-ShadowsocksX-NG-acknowledgements.plist
│       │   ├── Pods-ShadowsocksX-NG-dummy.m
│       │   ├── Pods-ShadowsocksX-NG-frameworks.sh
│       │   ├── Pods-ShadowsocksX-NG-resources.sh
│       │   ├── Pods-ShadowsocksX-NG-umbrella.h
│       │   ├── Pods-ShadowsocksX-NG.debug.xcconfig
│       │   ├── Pods-ShadowsocksX-NG.modulemap
│       │   └── Pods-ShadowsocksX-NG.release.xcconfig
│       ├── Pods-ShadowsocksX-NGTests/
│       │   ├── Info.plist
│       │   ├── Pods-ShadowsocksX-NGTests-Info.plist
│       │   ├── Pods-ShadowsocksX-NGTests-acknowledgements.markdown
│       │   ├── Pods-ShadowsocksX-NGTests-acknowledgements.plist
│       │   ├── Pods-ShadowsocksX-NGTests-dummy.m
│       │   ├── Pods-ShadowsocksX-NGTests-frameworks.sh
│       │   ├── Pods-ShadowsocksX-NGTests-resources.sh
│       │   ├── Pods-ShadowsocksX-NGTests-umbrella.h
│       │   ├── Pods-ShadowsocksX-NGTests.debug.xcconfig
│       │   ├── Pods-ShadowsocksX-NGTests.modulemap
│       │   └── Pods-ShadowsocksX-NGTests.release.xcconfig
│       ├── Pods-proxy_conf_helper/
│       │   ├── Pods-proxy_conf_helper-acknowledgements.markdown
│       │   ├── Pods-proxy_conf_helper-acknowledgements.plist
│       │   ├── Pods-proxy_conf_helper-dummy.m
│       │   ├── Pods-proxy_conf_helper-frameworks.sh
│       │   ├── Pods-proxy_conf_helper-resources.sh
│       │   ├── Pods-proxy_conf_helper.debug.xcconfig
│       │   └── Pods-proxy_conf_helper.release.xcconfig
│       ├── RxCocoa/
│       │   ├── Info.plist
│       │   ├── RxCocoa-Info.plist
│       │   ├── RxCocoa-dummy.m
│       │   ├── RxCocoa-prefix.pch
│       │   ├── RxCocoa-umbrella.h
│       │   ├── RxCocoa.debug.xcconfig
│       │   ├── RxCocoa.modulemap
│       │   ├── RxCocoa.release.xcconfig
│       │   └── RxCocoa.xcconfig
│       ├── RxRelay/
│       │   ├── RxRelay-Info.plist
│       │   ├── RxRelay-dummy.m
│       │   ├── RxRelay-prefix.pch
│       │   ├── RxRelay-umbrella.h
│       │   ├── RxRelay.debug.xcconfig
│       │   ├── RxRelay.modulemap
│       │   └── RxRelay.release.xcconfig
│       └── RxSwift/
│           ├── Info.plist
│           ├── RxSwift-Info.plist
│           ├── RxSwift-dummy.m
│           ├── RxSwift-prefix.pch
│           ├── RxSwift-umbrella.h
│           ├── RxSwift.debug.xcconfig
│           ├── RxSwift.modulemap
│           ├── RxSwift.release.xcconfig
│           └── RxSwift.xcconfig
├── README.md
├── ShadowsocksX-NG/
│   ├── AppDelegate.swift
│   ├── Assets.xcassets/
│   │   ├── AppIcon.appiconset/
│   │   │   └── Contents.json
│   │   └── Contents.json
│   ├── Base.lproj/
│   │   ├── ImportWindowController.xib
│   │   ├── Localizable.strings
│   │   ├── MainMenu.xib
│   │   ├── PreferencesWinController.xib
│   │   ├── PreferencesWindowController.xib
│   │   ├── ShareServerProfilesWindowController.xib
│   │   └── UserRulesController.xib
│   ├── Credits.rtf
│   ├── Diagnose.swift
│   ├── ImportWindowController.swift
│   ├── Info.plist
│   ├── LaunchAgentUtils.swift
│   ├── LaunchAtLoginController.h
│   ├── LaunchAtLoginController.m
│   ├── Notifications.swift
│   ├── PACURLFormatter.swift
│   ├── PACUtils.swift
│   ├── PreferencesWinController.swift
│   ├── PreferencesWindowController.swift
│   ├── ProxyConfHelper.h
│   ├── ProxyConfHelper.m
│   ├── ProxyConfTool.h
│   ├── ProxyConfTool.m
│   ├── ProxyInterfacesViewCtrl.swift
│   ├── SWBApplication.h
│   ├── SWBApplication.m
│   ├── SWBQRCodeWindowController.h
│   ├── SWBQRCodeWindowController.m
│   ├── SWBQRCodeWindowController.xib
│   ├── ServerProfile.swift
│   ├── ServerProfileManager.swift
│   ├── ShadowsocksX-NG-Bridging-Header.h
│   ├── ShareServerProfilesWindowController.swift
│   ├── ShortcutsController.h
│   ├── ShortcutsController.m
│   ├── ToastWindowController.swift
│   ├── ToastWindowController.xib
│   ├── UserRulesController.swift
│   ├── Utils.h
│   ├── Utils.m
│   ├── Utils.swift
│   ├── abp.js
│   ├── fix_dir_owner.sh
│   ├── gfwlist.txt
│   ├── install_helper.sh
│   ├── kcptun/
│   │   ├── install_kcptun.sh
│   │   └── kcptun.sh
│   ├── privoxy/
│   │   ├── install_privoxy.sh
│   │   ├── privoxy.template.config
│   │   ├── start_privoxy.sh
│   │   ├── stop_privoxy.sh
│   │   └── user-privoxy.config
│   ├── proxy_conf_helper_version.h
│   ├── simple-obfs/
│   │   └── install_simple_obfs.sh
│   ├── ss-local/
│   │   ├── install_ss_local.sh
│   │   ├── start_ss_local.sh
│   │   └── stop_ss_local.sh
│   ├── user-rule.txt
│   ├── v2ray-plugin/
│   │   └── install_v2ray_plugin.sh
│   └── zh-Hans.lproj/
│       ├── ImportWindowController.strings
│       ├── Localizable.strings
│       ├── MainMenu.strings
│       ├── PreferencesWinController.strings
│       ├── PreferencesWindowController.strings
│       ├── ShareServerProfilesWindowController.strings
│       └── UserRulesController.strings
├── ShadowsocksX-NG.xcodeproj/
│   ├── project.pbxproj
│   └── xcshareddata/
│       └── xcschemes/
│           ├── ShadowsocksX-NG.xcscheme
│           ├── ShadowsocksX-NGTests.xcscheme
│           └── proxy_conf_helper.xcscheme
├── ShadowsocksX-NG.xcworkspace/
│   └── xcshareddata/
│       └── WorkspaceSettings.xcsettings
├── ShadowsocksX-NGTests/
│   ├── Info.plist
│   ├── ServerProfileTests.swift
│   └── ShadowsocksX_NGTests.swift
├── _config.yml
├── deps/
│   ├── Makefile
│   └── patch/
│       └── privoxy/
│           └── configure.in.patch
├── genstrings.py
└── proxy_conf_helper/
    └── main.m
Download .txt
SYMBOL INDEX (21 symbols across 6 files)

FILE: Pods/GCDWebServer/GCDWebServer/Core/GCDWebServer.h
  type GCDWebServerResponse (line 57) | typedef GCDWebServerResponse* _Nullable (^GCDWebServerProcessBlock)(__ki...

FILE: Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerPrivate.h
  function BOOL (line 165) | static inline BOOL GCDWebServerIsValidByteRange(NSRange range) {
  type sockaddr (line 181) | struct sockaddr

FILE: Pods/MASShortcut/Framework/Model/MASKeyCodes.h
  function NS_INLINE (line 27) | NS_INLINE NSString* NSStringFromMASKeyCode(unsigned short ch)
  function NS_INLINE (line 32) | NS_INLINE NSUInteger MASPickCocoaModifiers(NSUInteger flags)
  function NS_INLINE (line 37) | NS_INLINE UInt32 MASCarbonModifiersFromCocoaModifiers(NSUInteger cocoaFl...

FILE: Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h
  type objc_method_description (line 96) | struct objc_method_description

FILE: ShadowsocksX-NG/abp.js
  function createDict (line 25) | function createDict()
  function getOwnPropertyDescriptor (line 32) | function getOwnPropertyDescriptor(obj, key)
  function extend (line 41) | function extend(subclass, superclass, definition)
  function Filter (line 64) | function Filter(text)
  function InvalidFilter (line 100) | function InvalidFilter(text, reason)
  function CommentFilter (line 109) | function CommentFilter(text)
  function ActiveFilter (line 116) | function ActiveFilter(text, domains)
  function RegExpFilter (line 246) | function RegExpFilter(text, regexpSource, contentType, matchCase, domain...
  function BlockingFilter (line 453) | function BlockingFilter(text, regexpSource, contentType, matchCase, doma...
  function WhitelistFilter (line 462) | function WhitelistFilter(text, regexpSource, contentType, matchCase, dom...
  function Matcher (line 469) | function Matcher()
  function CombinedMatcher (line 623) | function CombinedMatcher()
  function FindProxyForURL (line 772) | function FindProxyForURL(url, host) {

FILE: genstrings.py
  function fetch_files_recursive (line 33) | def fetch_files_recursive(directory, extension):
Condensed preview — 574 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3,539K chars).
[
  {
    "path": ".github/ISSUE_TEMPLATE/Bug_report.md",
    "chars": 1181,
    "preview": "---\r\nname: Bug report\r\nabout: Create a report to help us improve\r\n\r\n---\r\n\r\n**Describe the bug**\r\nA clear and concise des"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/Feature_request.md",
    "chars": 577,
    "preview": "---\r\nname: Feature request\r\nabout: Suggest an idea for this project\r\n\r\n---\r\n\r\n**Is your feature request related to a pro"
  },
  {
    "path": ".github/workflows/feature.yml",
    "chars": 825,
    "preview": "name: Feature Building\n\non:\n  push:\n    branches:\n      - '*'\n  pull_request:\n    branches:\n      - '*'\n\njobs:\n  build:\n"
  },
  {
    "path": ".github/workflows/release.yml",
    "chars": 1035,
    "preview": "name: Release Building\n\non:\n  push:\n    tags:\n      - '*'\n\njobs:\n  build:\n\n    runs-on: macos-latest\n\n    steps:\n\n      "
  },
  {
    "path": ".gitignore",
    "chars": 1095,
    "preview": "#####\n# OS X temporary files that should never be committed\n.DS_Store\n*.swp\n*.lock\nprofile\n\n####\n# Xcode temporary files"
  },
  {
    "path": ".gitmodules",
    "chars": 1076,
    "preview": "[submodule \"shadowsocks-libev\"]\n\tpath = deps/shadowsocks-libev\n\turl = https://github.com/shadowsocks/shadowsocks-libev\n["
  },
  {
    "path": "LICENSE",
    "chars": 35147,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "LaunchHelper/LaunchHelper/AppDelegate.h",
    "chars": 223,
    "preview": "//\n//  AppDelegate.h\n//  LaunchHelper\n//\n//  Created by 邱宇舟 on 2017/3/28.\n//  Copyright © 2017年 qiuyuzhou. All rights re"
  },
  {
    "path": "LaunchHelper/LaunchHelper/AppDelegate.m",
    "chars": 1206,
    "preview": "//\n//  AppDelegate.m\n//  LaunchHelper\n//\n//  Created by 邱宇舟 on 2017/3/28.\n//  Copyright © 2017年 qiuyuzhou. All rights re"
  },
  {
    "path": "LaunchHelper/LaunchHelper/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "chars": 903,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"mac\",\n      \"size\" : \"16x16\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : "
  },
  {
    "path": "LaunchHelper/LaunchHelper/Base.lproj/MainMenu.xib",
    "chars": 1030,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
  },
  {
    "path": "LaunchHelper/LaunchHelper/Info.plist",
    "chars": 1066,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "LaunchHelper/LaunchHelper/main.m",
    "chars": 236,
    "preview": "//\n//  main.m\n//  LaunchHelper\n//\n//  Created by 邱宇舟 on 2017/3/28.\n//  Copyright © 2017年 qiuyuzhou. All rights reserved."
  },
  {
    "path": "LaunchHelper/LaunchHelper.xcodeproj/project.pbxproj",
    "chars": 12064,
    "preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
  },
  {
    "path": "Makefile",
    "chars": 1113,
    "preview": "VERSION ?= 0.0.0\n\n.PHONY: all\nall: debug\n\n.PHONY: debug\ndebug: deps/dist set-version\n\txcodebuild -workspace ShadowsocksX"
  },
  {
    "path": "Podfile",
    "chars": 688,
    "preview": "# Uncomment this line to define a global platform for your project\n# platform :ios, '9.0'\nplatform :macos, '10.12'\n\ntarg"
  },
  {
    "path": "Pods/Alamofire/LICENSE",
    "chars": 1102,
    "preview": "Copyright (c) 2014-2021 Alamofire Software Foundation (http://alamofire.org/)\n\nPermission is hereby granted, free of cha"
  },
  {
    "path": "Pods/Alamofire/README.md",
    "chars": 14080,
    "preview": "![Alamofire: Elegant Networking in Swift](https://raw.githubusercontent.com/Alamofire/Alamofire/master/alamofire.png)\n\n["
  },
  {
    "path": "Pods/Alamofire/Source/AFError.swift",
    "chars": 37226,
    "preview": "//\n//  AFError.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Permiss"
  },
  {
    "path": "Pods/Alamofire/Source/Alamofire.swift",
    "chars": 1445,
    "preview": "//\n//  Alamofire.swift\n//\n//  Copyright (c) 2014-2021 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Permi"
  },
  {
    "path": "Pods/Alamofire/Source/AlamofireExtended.swift",
    "chars": 2374,
    "preview": "//\n//  AlamofireExtended.swift\n//\n//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Pe"
  },
  {
    "path": "Pods/Alamofire/Source/AuthenticationInterceptor.swift",
    "chars": 20280,
    "preview": "//\n//  AuthenticationInterceptor.swift\n//\n//  Copyright (c) 2020 Alamofire Software Foundation (http://alamofire.org/)\n/"
  },
  {
    "path": "Pods/Alamofire/Source/CachedResponseHandler.swift",
    "chars": 3974,
    "preview": "//\n//  CachedResponseHandler.swift\n//\n//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)\n//\n//"
  },
  {
    "path": "Pods/Alamofire/Source/Combine.swift",
    "chars": 34139,
    "preview": "//\n//  Combine.swift\n//\n//  Copyright (c) 2020 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Permission i"
  },
  {
    "path": "Pods/Alamofire/Source/DispatchQueue+Alamofire.swift",
    "chars": 1615,
    "preview": "//\n//  DispatchQueue+Alamofire.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/"
  },
  {
    "path": "Pods/Alamofire/Source/EventMonitor.swift",
    "chars": 44654,
    "preview": "//\n//  EventMonitor.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Pe"
  },
  {
    "path": "Pods/Alamofire/Source/HTTPHeaders.swift",
    "chars": 15617,
    "preview": "//\n//  HTTPHeaders.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Per"
  },
  {
    "path": "Pods/Alamofire/Source/HTTPMethod.swift",
    "chars": 2345,
    "preview": "//\n//  HTTPMethod.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Perm"
  },
  {
    "path": "Pods/Alamofire/Source/MultipartFormData.swift",
    "chars": 22477,
    "preview": "//\n//  MultipartFormData.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n/"
  },
  {
    "path": "Pods/Alamofire/Source/MultipartUpload.swift",
    "chars": 3389,
    "preview": "//\n//  MultipartUpload.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n// "
  },
  {
    "path": "Pods/Alamofire/Source/NetworkReachabilityManager.swift",
    "chars": 10821,
    "preview": "//\n//  NetworkReachabilityManager.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.o"
  },
  {
    "path": "Pods/Alamofire/Source/Notifications.swift",
    "chars": 6019,
    "preview": "//\n//  Notifications.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  P"
  },
  {
    "path": "Pods/Alamofire/Source/OperationQueue+Alamofire.swift",
    "chars": 2479,
    "preview": "//\n//  OperationQueue+Alamofire.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org"
  },
  {
    "path": "Pods/Alamofire/Source/ParameterEncoder.swift",
    "chars": 8229,
    "preview": "//\n//  ParameterEncoder.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//"
  },
  {
    "path": "Pods/Alamofire/Source/ParameterEncoding.swift",
    "chars": 13106,
    "preview": "//\n//  ParameterEncoding.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n/"
  },
  {
    "path": "Pods/Alamofire/Source/Protected.swift",
    "chars": 6796,
    "preview": "//\n//  Protected.swift\n//\n//  Copyright (c) 2014-2020 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Permi"
  },
  {
    "path": "Pods/Alamofire/Source/RedirectHandler.swift",
    "chars": 4125,
    "preview": "//\n//  RedirectHandler.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n// "
  },
  {
    "path": "Pods/Alamofire/Source/Request.swift",
    "chars": 78417,
    "preview": "//\n//  Request.swift\n//\n//  Copyright (c) 2014-2020 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Permiss"
  },
  {
    "path": "Pods/Alamofire/Source/RequestInterceptor.swift",
    "chars": 9843,
    "preview": "//\n//  RequestInterceptor.swift\n//\n//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  P"
  },
  {
    "path": "Pods/Alamofire/Source/RequestTaskMap.swift",
    "chars": 6199,
    "preview": "//\n//  RequestTaskMap.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  "
  },
  {
    "path": "Pods/Alamofire/Source/Response.swift",
    "chars": 21231,
    "preview": "//\n//  Response.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Permis"
  },
  {
    "path": "Pods/Alamofire/Source/ResponseSerialization.swift",
    "chars": 58690,
    "preview": "//\n//  ResponseSerialization.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n"
  },
  {
    "path": "Pods/Alamofire/Source/Result+Alamofire.swift",
    "chars": 4629,
    "preview": "//\n//  Result+Alamofire.swift\n//\n//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Per"
  },
  {
    "path": "Pods/Alamofire/Source/RetryPolicy.swift",
    "chars": 20542,
    "preview": "//\n//  RetryPolicy.swift\n//\n//  Copyright (c) 2019-2020 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Per"
  },
  {
    "path": "Pods/Alamofire/Source/ServerTrustEvaluation.swift",
    "chars": 30493,
    "preview": "//\n//  ServerTrustPolicy.swift\n//\n//  Copyright (c) 2014-2016 Alamofire Software Foundation (http://alamofire.org/)\n//\n/"
  },
  {
    "path": "Pods/Alamofire/Source/Session.swift",
    "chars": 71132,
    "preview": "//\n//  Session.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Permiss"
  },
  {
    "path": "Pods/Alamofire/Source/SessionDelegate.swift",
    "chars": 15155,
    "preview": "//\n//  SessionDelegate.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n// "
  },
  {
    "path": "Pods/Alamofire/Source/StringEncoding+Alamofire.swift",
    "chars": 2146,
    "preview": "//\n//  StringEncoding+Alamofire.swift\n//\n//  Copyright (c) 2020 Alamofire Software Foundation (http://alamofire.org/)\n//"
  },
  {
    "path": "Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift",
    "chars": 3855,
    "preview": "//\n//  URLConvertible+URLRequestConvertible.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://a"
  },
  {
    "path": "Pods/Alamofire/Source/URLEncodedFormEncoder.swift",
    "chars": 41090,
    "preview": "//\n//  URLEncodedFormEncoder.swift\n//\n//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)\n//\n//"
  },
  {
    "path": "Pods/Alamofire/Source/URLRequest+Alamofire.swift",
    "chars": 1662,
    "preview": "//\n//  URLRequest+Alamofire.swift\n//\n//  Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)\n//\n// "
  },
  {
    "path": "Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift",
    "chars": 1758,
    "preview": "//\n//  URLSessionConfiguration+Alamofire.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alam"
  },
  {
    "path": "Pods/Alamofire/Source/Validation.swift",
    "chars": 12395,
    "preview": "//\n//  Validation.swift\n//\n//  Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/)\n//\n//  Perm"
  },
  {
    "path": "Pods/BRLOptionParser/BRLOptionParser/BRLOptionParser.h",
    "chars": 2472,
    "preview": "// BRLOptionParser.h\n//\n// Copyright © 2013–2015 Stephen Celis (<stephen@stephencelis.com>)\n//\n// Permission is hereby g"
  },
  {
    "path": "Pods/BRLOptionParser/BRLOptionParser/BRLOptionParser.m",
    "chars": 11130,
    "preview": "// BRLOptionParser.m\n//\n// Copyright © 2013–2015 Stephen Celis (<stephen@stephencelis.com>)\n//\n// Permission is hereby g"
  },
  {
    "path": "Pods/BRLOptionParser/LICENSE",
    "chars": 1109,
    "preview": "(The MIT License)\n\nCopyright © 2013-2015 Stephen Celis (<stephen@stephencelis.com>)\n\nPermission is hereby granted, free "
  },
  {
    "path": "Pods/BRLOptionParser/README.markdown",
    "chars": 2231,
    "preview": "# BRLOptionParser [![Build Status][1]][2]\n\nA short wrapper for [getopt_long(3)][3] (and getopt_long_only(3)).\n\n[1]: http"
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServer.h",
    "chars": 23410,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServer.m",
    "chars": 54690,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerConnection.h",
    "chars": 6333,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerConnection.m",
    "chars": 36173,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerFunctions.h",
    "chars": 4212,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerFunctions.m",
    "chars": 13011,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerHTTPStatusCodes.h",
    "chars": 5241,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerPrivate.h",
    "chars": 9430,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerRequest.h",
    "chars": 7224,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerRequest.m",
    "chars": 10377,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerResponse.h",
    "chars": 6997,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Core/GCDWebServerResponse.m",
    "chars": 8597,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerDataRequest.h",
    "chars": 2462,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerDataRequest.m",
    "chars": 3487,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerFileRequest.h",
    "chars": 2094,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerFileRequest.m",
    "chars": 3788,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerMultiPartFormRequest.h",
    "chars": 4515,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerMultiPartFormRequest.m",
    "chars": 15145,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerURLEncodedFormRequest.h",
    "chars": 2234,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Requests/GCDWebServerURLEncodedFormRequest.m",
    "chars": 2445,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerDataResponse.h",
    "chars": 3988,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerDataResponse.m",
    "chars": 4760,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerErrorResponse.h",
    "chars": 3999,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerErrorResponse.m",
    "chars": 6337,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerFileResponse.h",
    "chars": 4582,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerFileResponse.m",
    "chars": 7105,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerStreamedResponse.h",
    "chars": 3421,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/GCDWebServer/Responses/GCDWebServerStreamedResponse.m",
    "chars": 3033,
    "preview": "/*\n Copyright (c) 2012-2019, Pierre-Olivier Latour\n All rights reserved.\n \n Redistribution and use in source and binary "
  },
  {
    "path": "Pods/GCDWebServer/LICENSE",
    "chars": 1481,
    "preview": "Copyright (c) 2012-2014, Pierre-Olivier Latour\nAll rights reserved.\n\nRedistribution and use in source and binary forms, "
  },
  {
    "path": "Pods/GCDWebServer/README.md",
    "chars": 27194,
    "preview": "Overview\n========\n\n[![Build Status](https://travis-ci.org/swisspol/GCDWebServer.svg?branch=master)](https://travis-ci.or"
  },
  {
    "path": "Pods/MASShortcut/Framework/Model/MASKeyCodes.h",
    "chars": 1575,
    "preview": "#import <Carbon/Carbon.h>\n#import <AppKit/AppKit.h>\n#import \"MASKeyMasks.h\"\n\n// These glyphs are missed in Carbon.h\ntype"
  },
  {
    "path": "Pods/MASShortcut/Framework/Model/MASKeyMasks.h",
    "chars": 882,
    "preview": "#import <Availability.h>\n\n// https://github.com/shpakovski/MASShortcut/issues/99\n//\n// Long story short: NSControlKeyMas"
  },
  {
    "path": "Pods/MASShortcut/Framework/Model/MASShortcut.h",
    "chars": 2698,
    "preview": "#import \"MASKeyCodes.h\"\n\n/**\n A model class to hold a key combination.\n\n This class just represents a combination of key"
  },
  {
    "path": "Pods/MASShortcut/Framework/Model/MASShortcut.m",
    "chars": 9450,
    "preview": "#import \"MASShortcut.h\"\n#import \"MASLocalization.h\"\n\nstatic NSString *const MASShortcutKeyCode = @\"KeyCode\";\nstatic NSSt"
  },
  {
    "path": "Pods/MASShortcut/Framework/Model/MASShortcutValidator.h",
    "chars": 1130,
    "preview": "#import \"MASShortcut.h\"\n\n/**\n This class is used by the recording control to tell which shortcuts are acceptable.\n\n Ther"
  },
  {
    "path": "Pods/MASShortcut/Framework/Model/MASShortcutValidator.m",
    "chars": 5475,
    "preview": "#import \"MASShortcutValidator.h\"\n#import \"MASLocalization.h\"\n\n@implementation MASShortcutValidator\n\n+ (instancetype) sha"
  },
  {
    "path": "Pods/MASShortcut/Framework/Monitoring/MASHotKey.h",
    "chars": 262,
    "preview": "#import \"MASShortcut.h\"\n\nextern FourCharCode const MASHotKeySignature;\n\n@interface MASHotKey : NSObject\n\n@property(reado"
  },
  {
    "path": "Pods/MASShortcut/Framework/Monitoring/MASHotKey.m",
    "chars": 936,
    "preview": "#import \"MASHotKey.h\"\n\nFourCharCode const MASHotKeySignature = 'MASS';\n\n@interface MASHotKey ()\n@property(assign) EventH"
  },
  {
    "path": "Pods/MASShortcut/Framework/Monitoring/MASShortcutMonitor.h",
    "chars": 816,
    "preview": "#import \"MASShortcut.h\"\n\n/**\n Executes action when a shortcut is pressed.\n\n There can only be one instance of this class"
  },
  {
    "path": "Pods/MASShortcut/Framework/Monitoring/MASShortcutMonitor.m",
    "chars": 2765,
    "preview": "#import \"MASShortcutMonitor.h\"\n#import \"MASHotKey.h\"\n\n@interface MASShortcutMonitor ()\n@property(assign) EventHandlerRef"
  },
  {
    "path": "Pods/MASShortcut/Framework/Shortcut.h",
    "chars": 244,
    "preview": "#import \"MASKeyMasks.h\"\n#import \"MASShortcut.h\"\n#import \"MASShortcutValidator.h\"\n#import \"MASShortcutMonitor.h\"\n#import "
  },
  {
    "path": "Pods/MASShortcut/Framework/UI/MASLocalization.h",
    "chars": 586,
    "preview": "/**\n Reads a localized string from the framework’s bundle.\n\n Normally you would use NSLocalizedString to read the locali"
  },
  {
    "path": "Pods/MASShortcut/Framework/UI/MASLocalization.m",
    "chars": 1677,
    "preview": "#import \"MASLocalization.h\"\n#import \"MASShortcut.h\"\n\nstatic NSString *const MASLocalizationTableName = @\"Localizable\";\ns"
  },
  {
    "path": "Pods/MASShortcut/Framework/UI/MASShortcutView+Bindings.h",
    "chars": 982,
    "preview": "#import \"MASShortcutView.h\"\n\n/**\n A simplified interface to bind the recorder value to user defaults.\n\n You can bind the"
  },
  {
    "path": "Pods/MASShortcut/Framework/UI/MASShortcutView+Bindings.m",
    "chars": 1556,
    "preview": "#import \"MASShortcutView+Bindings.h\"\n\n@implementation MASShortcutView (Bindings)\n\n- (NSString*) associatedUserDefaultsKe"
  },
  {
    "path": "Pods/MASShortcut/Framework/UI/MASShortcutView.h",
    "chars": 889,
    "preview": "@class MASShortcut, MASShortcutValidator;\n\nextern NSString *const MASShortcutBinding;\n\ntypedef NS_ENUM(NSInteger, MASSho"
  },
  {
    "path": "Pods/MASShortcut/Framework/UI/MASShortcutView.m",
    "chars": 21627,
    "preview": "#import \"MASShortcutView.h\"\n#import \"MASShortcutValidator.h\"\n#import \"MASLocalization.h\"\n\nNSString *const MASShortcutBin"
  },
  {
    "path": "Pods/MASShortcut/Framework/User Defaults Storage/MASDictionaryTransformer.h",
    "chars": 766,
    "preview": "extern NSString *const MASDictionaryTransformerName;\n\n/**\n Converts shortcuts for storage in user defaults.\n\n User defau"
  },
  {
    "path": "Pods/MASShortcut/Framework/User Defaults Storage/MASDictionaryTransformer.m",
    "chars": 1546,
    "preview": "#import \"MASDictionaryTransformer.h\"\n#import \"MASShortcut.h\"\n\nNSString *const MASDictionaryTransformerName = @\"MASDictio"
  },
  {
    "path": "Pods/MASShortcut/Framework/User Defaults Storage/MASShortcutBinder.h",
    "chars": 2275,
    "preview": "#import \"MASShortcutMonitor.h\"\n\n/**\n Binds actions to user defaults keys.\n\n If you store shortcuts in user defaults (for"
  },
  {
    "path": "Pods/MASShortcut/Framework/User Defaults Storage/MASShortcutBinder.m",
    "chars": 3819,
    "preview": "#import \"MASShortcutBinder.h\"\n#import \"MASShortcut.h\"\n\n@interface MASShortcutBinder ()\n@property(strong) NSMutableDictio"
  },
  {
    "path": "Pods/MASShortcut/LICENSE",
    "chars": 1307,
    "preview": "Copyright (c) 2012-2013, Vadim Shpakovski\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with "
  },
  {
    "path": "Pods/MASShortcut/README.md",
    "chars": 6103,
    "preview": "[![Build Status](https://travis-ci.org/shpakovski/MASShortcut.svg?branch=master)](https://travis-ci.org/shpakovski/MASSh"
  },
  {
    "path": "Pods/MASShortcut/Resources/cs.lproj/Localizable.strings",
    "chars": 2079,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Zrušit\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click "
  },
  {
    "path": "Pods/MASShortcut/Resources/de.lproj/Localizable.strings",
    "chars": 2255,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Abbrechen\";\n\n/* Tooltip for non-empty shortcut button */\n\"Clic"
  },
  {
    "path": "Pods/MASShortcut/Resources/en.lproj/Localizable.strings",
    "chars": 2150,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Cancel\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click "
  },
  {
    "path": "Pods/MASShortcut/Resources/es.lproj/Localizable.strings",
    "chars": 2202,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Cancelar\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click"
  },
  {
    "path": "Pods/MASShortcut/Resources/fr.lproj/Localizable.strings",
    "chars": 2265,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Annuler\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click "
  },
  {
    "path": "Pods/MASShortcut/Resources/it.lproj/Localizable.strings",
    "chars": 2330,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Annulla\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click "
  },
  {
    "path": "Pods/MASShortcut/Resources/ja.lproj/Localizable.strings",
    "chars": 1904,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"キャンセルする\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click "
  },
  {
    "path": "Pods/MASShortcut/Resources/ko.lproj/Localizable.strings",
    "chars": 1830,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"취소\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click to r"
  },
  {
    "path": "Pods/MASShortcut/Resources/nl.lproj/Localizable.strings",
    "chars": 2226,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Verbreken\";\n\n/* Tooltip for non-empty shortcut button */\n\"Cli"
  },
  {
    "path": "Pods/MASShortcut/Resources/pl.lproj/Localizable.strings",
    "chars": 2070,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Anuluj\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click "
  },
  {
    "path": "Pods/MASShortcut/Resources/pt.lproj/Localizable.strings",
    "chars": 2149,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Cancelar\";\n\n/* Tooltip for non-empty shortcut button */\n\"Clic"
  },
  {
    "path": "Pods/MASShortcut/Resources/ru.lproj/Localizable.strings",
    "chars": 2223,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Отмена\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click "
  },
  {
    "path": "Pods/MASShortcut/Resources/sv.lproj/Localizable.strings",
    "chars": 2291,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"Avbryt\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click t"
  },
  {
    "path": "Pods/MASShortcut/Resources/zh-Hans.lproj/Localizable.strings",
    "chars": 1753,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"取消\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click to r"
  },
  {
    "path": "Pods/MASShortcut/Resources/zh-Hant.lproj/Localizable.strings",
    "chars": 1753,
    "preview": "/* Cancel action button in recording state */\n\"Cancel\" = \"取消\";\n\n/* Tooltip for non-empty shortcut button */\n\"Click to r"
  },
  {
    "path": "Pods/Pods.xcodeproj/project.pbxproj",
    "chars": 312743,
    "preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
  },
  {
    "path": "Pods/RxCocoa/LICENSE.md",
    "chars": 1120,
    "preview": "**The MIT License**\n**Copyright © 2015 Krunoslav Zaher, Shai Mishali**\n**All rights reserved.**\n\nPermission is hereby gr"
  },
  {
    "path": "Pods/RxCocoa/Platform/DataStructures/Bag.swift",
    "chars": 4288,
    "preview": "//\n//  Bag.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 2/28/15.\n//  Copyright © 2015 Krunoslav Zaher. All ri"
  },
  {
    "path": "Pods/RxCocoa/Platform/DataStructures/InfiniteSequence.swift",
    "chars": 588,
    "preview": "//\n//  InfiniteSequence.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 6/13/15.\n//  Copyright © 2015 Krunoslav "
  },
  {
    "path": "Pods/RxCocoa/Platform/DataStructures/PriorityQueue.swift",
    "chars": 3299,
    "preview": "//\n//  PriorityQueue.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 12/27/15.\n//  Copyright © 2015 Krunoslav Za"
  },
  {
    "path": "Pods/RxCocoa/Platform/DataStructures/Queue.swift",
    "chars": 4043,
    "preview": "//\n//  Queue.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 3/21/15.\n//  Copyright © 2015 Krunoslav Zaher. All "
  },
  {
    "path": "Pods/RxCocoa/Platform/DispatchQueue+Extensions.swift",
    "chars": 485,
    "preview": "//\n//  DispatchQueue+Extensions.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 10/22/16.\n//  Copyright © 2016 K"
  },
  {
    "path": "Pods/RxCocoa/Platform/Platform.Darwin.swift",
    "chars": 950,
    "preview": "//\n//  Platform.Darwin.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 12/29/15.\n//  Copyright © 2015 Krunoslav "
  },
  {
    "path": "Pods/RxCocoa/Platform/Platform.Linux.swift",
    "chars": 803,
    "preview": "//\n//  Platform.Linux.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 12/29/15.\n//  Copyright © 2015 Krunoslav Z"
  },
  {
    "path": "Pods/RxCocoa/Platform/RecursiveLock.swift",
    "chars": 696,
    "preview": "//\n//  RecursiveLock.swift\n//  Platform\n//\n//  Created by Krunoslav Zaher on 12/18/16.\n//  Copyright © 2016 Krunoslav Za"
  },
  {
    "path": "Pods/RxCocoa/README.md",
    "chars": 10514,
    "preview": "<p align=\"center\">\n<img src=\"assets/RxSwift_Logo.png\" width=\"35%\" alt=\"RxSwift Logo\" />\n<br />\n<a href=\"https://actions-"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/ControlTarget.swift",
    "chars": 2116,
    "preview": "//\n//  ControlTarget.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 2/21/15.\n//  Copyright © 2015 Krunoslav Zahe"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/DelegateProxy.swift",
    "chars": 12558,
    "preview": "//\n//  DelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/14/15.\n//  Copyright © 2015 Krunoslav Zahe"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/DelegateProxyType.swift",
    "chars": 18820,
    "preview": "//\n//  DelegateProxyType.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/15/15.\n//  Copyright © 2015 Krunoslav "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/Infallible+Bind.swift",
    "chars": 5365,
    "preview": "//\n//  Infallible+Bind.swift\n//  RxCocoa\n//\n//  Created by Shai Mishali on 27/08/2020.\n//  Copyright © 2020 Krunoslav Za"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/Observable+Bind.swift",
    "chars": 3942,
    "preview": "//\n//  Observable+Bind.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 8/29/15.\n//  Copyright © 2015 Krunoslav Za"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift",
    "chars": 8715,
    "preview": "//\n//  RxCocoaObjCRuntimeError+Extensions.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 10/9/16.\n//  Copyright "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/RxTarget.swift",
    "chars": 714,
    "preview": "//\n//  RxTarget.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/12/15.\n//  Copyright © 2015 Krunoslav Zaher. Al"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/SectionedViewDataSourceType.swift",
    "chars": 624,
    "preview": "//\n//  SectionedViewDataSourceType.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 1/10/16.\n//  Copyright © 2016 "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Common/TextInput.swift",
    "chars": 2037,
    "preview": "//\n//  TextInput.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 5/12/16.\n//  Copyright © 2016 Krunoslav Zaher. A"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift",
    "chars": 1705,
    "preview": "//\n//  KVORepresentable+CoreGraphics.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 11/14/15.\n//  Copyright © 20"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+Swift.swift",
    "chars": 2004,
    "preview": "//\n//  KVORepresentable+Swift.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 11/14/15.\n//  Copyright © 2015 Krun"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable.swift",
    "chars": 644,
    "preview": "//\n//  KVORepresentable.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 11/14/15.\n//  Copyright © 2015 Krunoslav "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift",
    "chars": 2008,
    "preview": "//\n//  NSObject+Rx+KVORepresentable.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 11/14/15.\n//  Copyright © 201"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift",
    "chars": 1786,
    "preview": "//\n//  NSObject+Rx+RawRepresentable.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 11/9/15.\n//  Copyright © 2015"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx.swift",
    "chars": 19121,
    "preview": "//\n//  NSObject+Rx.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 2/21/15.\n//  Copyright © 2015 Krunoslav Zaher."
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/NotificationCenter+Rx.swift",
    "chars": 1044,
    "preview": "//\n//  NotificationCenter+Rx.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 5/2/15.\n//  Copyright © 2015 Krunosl"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Foundation/URLSession+Rx.swift",
    "chars": 8443,
    "preview": "//\n//  URLSession+Rx.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 3/23/15.\n//  Copyright © 2015 Krunoslav Zahe"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/_RX.m",
    "chars": 159,
    "preview": "//\n//  _RX.m\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/12/15.\n//  Copyright © 2015 Krunoslav Zaher. All rights "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/_RXDelegateProxy.m",
    "chars": 4409,
    "preview": "//\n//  _RXDelegateProxy.m\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/4/15.\n//  Copyright © 2015 Krunoslav Zaher."
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/_RXKVOObserver.m",
    "chars": 1468,
    "preview": "//\n//  _RXKVOObserver.m\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/11/15.\n//  Copyright © 2015 Krunoslav Zaher. "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/_RXObjCRuntime.m",
    "chars": 48935,
    "preview": "//\n//  _RXObjCRuntime.m\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/11/15.\n//  Copyright © 2015 Krunoslav Zaher. "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/include/RxCocoaRuntime.h",
    "chars": 469,
    "preview": "//\n//  RxCocoaRuntime.h\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 2/21/15.\n//  Copyright © 2015 Krunoslav Zaher. "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/include/_RX.h",
    "chars": 3956,
    "preview": "//\n//  _RX.h\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/12/15.\n//  Copyright © 2015 Krunoslav Zaher. All rights "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/include/_RXDelegateProxy.h",
    "chars": 740,
    "preview": "//\n//  _RXDelegateProxy.h\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/4/15.\n//  Copyright © 2015 Krunoslav Zaher."
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/include/_RXKVOObserver.h",
    "chars": 800,
    "preview": "//\n//  _RXKVOObserver.h\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/11/15.\n//  Copyright © 2015 Krunoslav Zaher. "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h",
    "chars": 4071,
    "preview": "//\n//  _RXObjCRuntime.h\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/11/15.\n//  Copyright © 2015 Krunoslav Zaher. "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/RxCocoa.h",
    "chars": 494,
    "preview": "//\n//  RxCocoa.h\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 2/21/15.\n//  Copyright © 2015 Krunoslav Zaher. All rig"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/RxCocoa.swift",
    "chars": 4811,
    "preview": "//\n//  RxCocoa.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 2/21/15.\n//  Copyright © 2015 Krunoslav Zaher. All"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/ControlEvent.swift",
    "chars": 2452,
    "preview": "//\n//  ControlEvent.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 8/28/15.\n//  Copyright © 2015 Krunoslav Zaher"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/ControlProperty.swift",
    "chars": 4974,
    "preview": "//\n//  ControlProperty.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 8/28/15.\n//  Copyright © 2015 Krunoslav Za"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift",
    "chars": 498,
    "preview": "//\n//  BehaviorRelay+Driver.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 10/7/17.\n//  Copyright © 2017 Krunosl"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Driver/ControlEvent+Driver.swift",
    "chars": 656,
    "preview": "//\n//  ControlEvent+Driver.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/19/15.\n//  Copyright © 2015 Krunosla"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Driver/ControlProperty+Driver.swift",
    "chars": 664,
    "preview": "//\n//  ControlProperty+Driver.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/19/15.\n//  Copyright © 2015 Kruno"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Driver/Driver+Subscription.swift",
    "chars": 8815,
    "preview": "//\n//  Driver+Subscription.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/19/15.\n//  Copyright © 2015 Krunosla"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Driver/Driver.swift",
    "chars": 2143,
    "preview": "//\n//  Driver.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/26/16.\n//  Copyright © 2016 Krunoslav Zaher. All "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift",
    "chars": 1784,
    "preview": "//\n//  ObservableConvertibleType+Driver.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/19/15.\n//  Copyright © "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift",
    "chars": 2069,
    "preview": "//\n//  ObservableConvertibleType+SharedSequence.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 11/1/17.\n//  Copy"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift",
    "chars": 1781,
    "preview": "//\n//  SchedulerType+SharedSequence.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 8/27/17.\n//  Copyright © 2017"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift",
    "chars": 42159,
    "preview": "// This file is autogenerated. Take a look at `Preprocessor` target in RxSwift project \n//\n//  SharedSequence+Operators+"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift",
    "chars": 28607,
    "preview": "//\n//  SharedSequence+Operators.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/19/15.\n//  Copyright © 2015 Kru"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence.swift",
    "chars": 8647,
    "preview": "//\n//  SharedSequence.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 8/27/15.\n//  Copyright © 2015 Krunoslav Zah"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Signal/ControlEvent+Signal.swift",
    "chars": 653,
    "preview": "//\n//  ControlEvent+Signal.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 11/1/17.\n//  Copyright © 2017 Krunosla"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift",
    "chars": 1784,
    "preview": "//\n//  ObservableConvertibleType+Signal.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/19/15.\n//  Copyright © "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Signal/PublishRelay+Signal.swift",
    "chars": 496,
    "preview": "//\n//  PublishRelay+Signal.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 12/28/15.\n//  Copyright © 2017 Krunosl"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Signal/Signal+Subscription.swift",
    "chars": 7148,
    "preview": "//\n//  Signal+Subscription.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/19/15.\n//  Copyright © 2015 Krunosla"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/Traits/Signal/Signal.swift",
    "chars": 1619,
    "preview": "//\n//  Signal.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 9/26/16.\n//  Copyright © 2016 Krunoslav Zaher. All "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift",
    "chars": 3470,
    "preview": "//\n//  RxCollectionViewReactiveArrayDataSource.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/29/15.\n//  Copyr"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift",
    "chars": 2942,
    "preview": "//\n//  RxPickerViewAdapter.swift\n//  RxCocoa\n//\n//  Created by Sergey Shulga on 12/07/2017.\n//  Copyright © 2017 Krunosl"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift",
    "chars": 2938,
    "preview": "//\n//  RxTableViewReactiveArrayDataSource.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/26/15.\n//  Copyright "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Events/ItemEvents.swift",
    "chars": 455,
    "preview": "//\n//  ItemEvents.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/20/15.\n//  Copyright © 2015 Krunoslav Zaher. "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/NSTextStorage+Rx.swift",
    "chars": 1325,
    "preview": "//\n//  NSTextStorage+Rx.swift\n//  RxCocoa\n//\n//  Created by Segii Shulga on 12/30/15.\n//  Copyright © 2015 Krunoslav Zah"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift",
    "chars": 780,
    "preview": "//\n//  RxCollectionViewDataSourceType.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/29/15.\n//  Copyright © 20"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift",
    "chars": 703,
    "preview": "//\n//  RxPickerViewDataSourceType.swift\n//  RxCocoa\n//\n//  Created by Sergey Shulga on 05/07/2017.\n//  Copyright © 2017 "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift",
    "chars": 730,
    "preview": "//\n//  RxTableViewDataSourceType.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/26/15.\n//  Copyright © 2015 Kr"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.swift",
    "chars": 3157,
    "preview": "//\n//  RxCollectionViewDataSourcePrefetchingProxy.swift\n//  RxCocoa\n//\n//  Created by Rowan Livingstone on 2/15/18.\n//  "
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift",
    "chars": 2852,
    "preview": "//\n//  RxCollectionViewDataSourceProxy.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/29/15.\n//  Copyright © 2"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift",
    "chars": 814,
    "preview": "//\n//  RxCollectionViewDelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/29/15.\n//  Copyright © 201"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift",
    "chars": 1278,
    "preview": "//\n//  RxNavigationControllerDelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Diogo on 13/04/17.\n//  Copyright © 2017 K"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift",
    "chars": 2415,
    "preview": "//\n//  RxPickerViewDataSourceProxy.swift\n//  RxCocoa\n//\n//  Created by Sergey Shulga on 05/07/2017.\n//  Copyright © 2017"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift",
    "chars": 1038,
    "preview": "//\n//  RxPickerViewDelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Segii Shulga on 5/12/16.\n//  Copyright © 2016 Kruno"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift",
    "chars": 2840,
    "preview": "//\n//  RxScrollViewDelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 6/19/15.\n//  Copyright © 2015 Kr"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift",
    "chars": 1012,
    "preview": "//\n//  RxSearchBarDelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Krunoslav Zaher on 7/4/15.\n//  Copyright © 2015 Krun"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift",
    "chars": 1130,
    "preview": "//\n//  RxSearchControllerDelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Segii Shulga on 3/17/16.\n//  Copyright © 2016"
  },
  {
    "path": "Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift",
    "chars": 1061,
    "preview": "//\n//  RxTabBarControllerDelegateProxy.swift\n//  RxCocoa\n//\n//  Created by Yusuke Kita on 2016/12/07.\n//  Copyright © 20"
  }
]

// ... and 374 more files (download for full content)

About this extraction

This page contains the full source code of the shadowsocks/ShadowsocksX-NG GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 574 files (3.2 MB), approximately 875.9k tokens, and a symbol index with 21 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!