36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # WARNING
2 |
3 | homebrew has removed PHP 5.6 and this guide needs to be updated
4 |
5 | # PHP Development on MacOs High Sierra
6 |
7 | This guide will get your machine ready for web development using PHP, Apache, and XDebug. As a consequence we will also
8 | setup a handful of other tools. If you find a problem with anything please let me know by
9 | [creating an issue](https://github.com/MikeGarde/php-setup-guide/issues).
10 |
11 | ### Show hidden files
12 |
13 | ```bash
14 | defaults write com.apple.finder AppleShowAllFiles YES && killall Finder
15 | ```
16 |
17 | ### Homebrew
18 |
19 | ```bash
20 | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
21 | brew doctor
22 | ```
23 |
24 | ### Apache
25 |
26 | Your macOs shipped with a copy of Apache, unfortunately it is missing key pieces we need so we will install a second
27 | copy of Apache. Note that `apachectl -k graceful` and other `apachectl` commands will still be how you interact with
28 | appache. Also, if you're doing this after a clean install you won't be running apache so the first command may result
29 | in an error, you can ignore that error and run the second command.
30 |
31 | ```bash
32 | sudo apachectl stop
33 | sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
34 | ```
35 |
36 | Install Apache using brew
37 |
38 | ```bash
39 | brew install httpd
40 | ```
41 |
42 | Start Apache Server
43 |
44 | ```bash
45 | apachectl start
46 | ```
47 |
48 | You can test by visiting `http://localhost:8080`
49 |
50 |
51 | ### PHP
52 |
53 | We are going to install both PHP 5.6 and 7.1, as 7.2 is not yet stable. However your machine will only be able to use one
54 | version at a time.
55 |
56 | ```bash
57 | brew tap homebrew/php
58 | brew install php71 --with-httpd
59 | brew unlink php71
60 | brew install php56 --with-httpd
61 | ```
62 |
63 | #### PHP Xdebug
64 |
65 | Note that un-linking is not required here because the proper version will be referenced in the php.ini file.
66 |
67 | ```bash
68 | brew install php71-xdebug
69 | brew install php56-xdebug
70 | ```
71 |
72 | #### Config Files
73 |
74 | Create development folder, note that if you decide to use a different location note it in future instructions you will have to
75 | reference it properly, I am using the folder `dev` inside my home folder.
76 |
77 | ```bash
78 | mkdir ~/dev
79 | mkdir ~/dev/logs
80 | mkdir ~/dev/logs/xdebug
81 | git clone https://github.com/MikeGarde/php-setup-guide.git ~/dev/php-setup-guide
82 | ```
83 |
84 | These commands will allow for easy access to all of our config files.
85 |
86 | ```bash
87 | ln -s $(brew --prefix)/etc/php/7.1/php.ini ~/dev/php71.ini
88 | ln -s $(brew --prefix)/etc/php/5.6/php.ini ~/dev/php56.ini
89 | ln -s $(brew --prefix)/etc/php/7.1/conf.d/ext-xdebug.ini ~/dev/php71-xdebug.ini
90 | ln -s $(brew --prefix)/etc/php/5.6/conf.d/ext-xdebug.ini ~/dev/php56-xdebug.ini
91 | ln -s $(brew --prefix)/etc/httpd/httpd.conf ~/dev/httpd.conf
92 | ln -s $(brew --prefix)/etc/httpd/extra/httpd-vhosts.conf ~/dev/httpd-vhosts.conf
93 | ln -s ~/dev/php-setup-guide/localhost.php ~/dev/index.php
94 | ```
95 |
96 | ### dnsmasq
97 |
98 | This will route all traffic ending with `.test` to your machine so that you don't have to setup each project and domain.
99 | Note, you don't have to use `.test`, you can replace it with whatever you want however `.dev` was purchased by Google and
100 | Chrome may not honor your desired actions in the future. Other options are `.localhost` `.example` where as `.local` may
101 | compete with other devices on your network.
102 |
103 | After the install when you create the directory `etc` you may get an error if the directory already exists however this should
104 | work, you can verify by running `vi $(brew --prefix)/etc/dnsmasq.conf` (:q to quit) however it shouldn't be necessary.
105 |
106 | ```bash
107 | brew install dnsmasq
108 | cd $(brew --prefix); mkdir etc; echo 'address=/.test/127.0.0.1' > etc/dnsmasq.conf'
109 | sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
110 | sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
111 | sudo mkdir /etc/resolver
112 | sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/test'
113 | ping -c 1 me.test # will demonstrate that your machine will resolve me.test to your local machine
114 | cd ~
115 | ```
116 |
117 | ### Apache Setup
118 |
119 | Now that we are routing `.test` traffic to your machine we will get apache to resolve it to the proper directory within
120 | your development folder.
121 |
122 | Open `~/dev/php-setup-guide/httpd.conf` and replace all `YOUR_HOME_FOLDER` references with your home folder location and `YOUR_USER_NAME`. Next
123 | use the resulting file and replace `~/dev/httpd.conf` with it.
124 |
125 | Open `~/dev/httpd-vhosts.conf`, you can delete everything and replace it with this.
126 |
127 | ```apacheconfig
128 |
129 | DocumentRoot "/Users/YOUR_HOME_FOLDER/dev"
130 | ServerName localhost
131 | ServerAlias localhost
132 |
133 |
134 |
135 | DocumentRoot "/Users/YOUR_HOME_FOLDER/dev/php-setup-guide"
136 | ServerAlias php-setup-guide.test
137 | ErrorLog "/Users/YOUR_HOME_FOLDER/dev/logs/php-setup-guide-error_log"
138 | CustomLog "/Users/YOUR_HOME_FOLDER/dev/logs/php-setup-guide-access_log" common
139 |
140 | ```
141 |
142 | Anytime you modify `httpd.conf` or `httpd-vhosts.conf` file you will need to restart apache,
143 |
144 | ```bash
145 | sudo apachectl -k graceful
146 | ```
147 |
148 | ### Xdebug Setup
149 |
150 | Add the following to both of your `~/dev/xdebug.ini` files, the last two lines are for more detailed debugging.
151 |
152 | ```ini
153 | xdebug.remote_enable=1
154 | xdebug.remote_port=9000
155 | xdebug.remote_host=127.0.0.1
156 | ;xdebug.profiler_enable=1
157 | ;xdebug.profiler_output_dir="/Users/YOURNAME/dev/logs/xdebug"
158 | ```
159 |
160 | ```bash
161 | sudo apachectl -k graceful
162 | ```
163 |
164 | If there is a problem with using port 9000 you can change it but note it when setting up Xdebug in your IDE.
165 |
166 | ### Composer
167 |
168 | Follow instructions at [Composer](https://getcomposer.org/download/), when done make it globally available by moving it.
169 |
170 | ```bash
171 | mv composer.phar /usr/local/bin/composer
172 | ```
173 |
174 | ## And You're Done, Let's Test
175 |
176 | If you haven't already...
177 |
178 | ```bash
179 | sudo apachectl -k graceful
180 | ```
181 |
182 | [http://php-setup-guide.test/](http://php-setup-guide.test/) will show you a hello world while
183 | [http://localhost/](http://localhost/) will give you phpinfo and links to your projects.
184 |
185 |
186 | ### Adding Projects
187 |
188 | Open `~/dev/httpd-vhosts.conf` and copy the `php-setup-guide example`, if you don't need separated logging simply remove
189 | the ErrorLog and/or CustomLog lines.
190 |
191 | ### Switching between PHP 5.6 and 7.1
192 |
193 | Switching to 5.6 | Switching to 7.1
194 | ---------------- | ----------------
195 | `brew unlink php71` | `brew unlink php56`
196 | `brew link php56` | `brew link php71`
197 |
198 | Update httpd.conf appropriately.
199 |
200 | ```apacheconfig
201 | #LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
202 | LoadModule php7_module /usr/local/opt/php71/libexec/apache2/libphp7.so
203 | ```
204 |
205 | ```bash
206 | sudo apachectl -k graceful
207 | ```
208 |
209 | ### QCacheGrind for PHP Memory Profiling
210 |
211 | ```bash
212 | brew install qcachegrind
213 | brew install graphviz
214 | ```
215 |
216 | Enable Xdebug profile logging in your appropriate `~/dev/php56-xdebug.ini` file.
217 |
218 | ```ini
219 | xdebug.profiler_enable=1
220 | xdebug.profiler_output_dir="/Users/mikegarde/dev/logs/xdebug"
221 | ```
222 |
223 | ```bash
224 | sudo apachectl -k graceful
225 | ```
226 |
227 | To see results make a request to your machine invoking xdebug, this will create a new file in `~/dev/logs/xdebug`. Reference that
228 | when running the following or open `⌘ + space` qcachegrind and open the file. Note that using the command line will give you
229 | additional information when performing actions within QCacheGrind.
230 |
231 | ```bash
232 | qcachegrind # OR
233 | qcachegrind ~/dev/logs/xdebug/cachegrind.out.23938
234 | ```
235 |
236 | ## Extra Stuff I Use
237 |
238 | ### AWS CLI
239 |
240 | ```bash
241 | brew install awscli
242 | aws configure
243 | ```
244 |
245 | ### Python 3
246 |
247 | ```bash
248 | brew install python3
249 | curl -O https://bootstrap.pypa.io/get-pip.py
250 | sudo python get-pip.py
251 | rm get-pip.py
252 | ```
253 |
254 | ### Good Stuff
255 |
256 | * [IntelliJ IDEA](https://www.jetbrains.com/idea/) or [PhpStorm](https://www.jetbrains.com/phpstorm/), well worth the investment.
257 | * [Sourcetree](https://www.sourcetreeapp.com/) for git.
258 | * [ForkLift](http://www.binarynights.com/forklift/) for file management, SFTP, and S3 buckets.
259 | * [Sublime Text](https://www.sublimetext.com/) for text editing AND multiple selections using regular expressions.
260 | * [Postman](https://www.getpostman.com/) for calling API's.
261 | * [Sequel Pro](https://www.sequelpro.com/) for MySQL.
262 | * [Better Snap Tools](https://itunes.apple.com/us/app/bettersnaptool/id417375580?mt=12) for window management.
263 | * [Whatpulse](https://whatpulse.org/) because it's interesting.
264 | * [f.lux](https://justgetflux.com/) for screen brightness/color, nice when working late.
265 |
266 | ### PHP Specific Stuff
267 |
268 | * [Rollbar](https://rollbar.com/) you'll stop hating your users. "Something wen't wrong, sorry I can't explain what I was doing."
269 |
270 | ### Keyboard Shortcuts
271 |
272 | Download [Alfred 3](https://www.alfredapp.com/), I disable `⌘ + space` in my keyboard shortcuts an setup Alfred to open using the same command.
273 |
274 | 
275 | 
276 |
277 | Screen shot replacement commands.
278 |
279 | 
280 |
--------------------------------------------------------------------------------
/httpd.conf:
--------------------------------------------------------------------------------
1 | #
2 | # This is the main Apache HTTP server configuration file. It contains the
3 | # configuration directives that give the server its instructions.
4 | # See for detailed information.
5 | # In particular, see
6 | #
7 | # for a discussion of each configuration directive.
8 | #
9 | # Do NOT simply read the instructions in here without understanding
10 | # what they do. They're here only as hints or reminders. If you are unsure
11 | # consult the online docs. You have been warned.
12 | #
13 | # Configuration and logfile names: If the filenames you specify for many
14 | # of the server's control files begin with "/" (or "drive:/" for Win32), the
15 | # server will use that explicit path. If the filenames do *not* begin
16 | # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17 | # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18 | # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19 | # will be interpreted as '/logs/access_log'.
20 |
21 | #
22 | # ServerRoot: The top of the directory tree under which the server's
23 | # configuration, error, and log files are kept.
24 | #
25 | # Do not add a slash at the end of the directory path. If you point
26 | # ServerRoot at a non-local disk, be sure to specify a local disk on the
27 | # Mutex directive, if file-based mutexes are used. If you wish to share the
28 | # same ServerRoot for multiple httpd daemons, you will need to change at
29 | # least PidFile.
30 | #
31 | ServerRoot "/usr/local/opt/httpd"
32 |
33 | #
34 | # Mutex: Allows you to set the mutex mechanism and mutex file directory
35 | # for individual mutexes, or change the global defaults
36 | #
37 | # Uncomment and change the directory if mutexes are file-based and the default
38 | # mutex file directory is not on a local disk or is not appropriate for some
39 | # other reason.
40 | #
41 | # Mutex default:/usr/local/var/run/httpd
42 |
43 | #
44 | # Listen: Allows you to bind Apache to specific IP addresses and/or
45 | # ports, instead of the default. See also the
46 | # directive.
47 | #
48 | # Change this to Listen on specific IP addresses as shown below to
49 | # prevent Apache from glomming onto all bound IP addresses.
50 | #
51 | #Listen 12.34.56.78:80
52 | Listen 80
53 |
54 | #
55 | # Dynamic Shared Object (DSO) Support
56 | #
57 | # To be able to use the functionality of a module which was built as a DSO you
58 | # have to place corresponding `LoadModule' lines at this location so the
59 | # directives contained in it are actually available _before_ they are used.
60 | # Statically compiled modules (those listed by `httpd -l') do not need
61 | # to be loaded here.
62 | #
63 | # Example:
64 | # LoadModule foo_module modules/mod_foo.so
65 | #
66 | #LoadModule mpm_event_module lib/httpd/modules/mod_mpm_event.so
67 | LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
68 | #LoadModule mpm_worker_module lib/httpd/modules/mod_mpm_worker.so
69 | LoadModule authn_file_module lib/httpd/modules/mod_authn_file.so
70 | #LoadModule authn_dbm_module lib/httpd/modules/mod_authn_dbm.so
71 | #LoadModule authn_anon_module lib/httpd/modules/mod_authn_anon.so
72 | #LoadModule authn_dbd_module lib/httpd/modules/mod_authn_dbd.so
73 | #LoadModule authn_socache_module lib/httpd/modules/mod_authn_socache.so
74 | LoadModule authn_core_module lib/httpd/modules/mod_authn_core.so
75 | LoadModule authz_host_module lib/httpd/modules/mod_authz_host.so
76 | LoadModule authz_groupfile_module lib/httpd/modules/mod_authz_groupfile.so
77 | LoadModule authz_user_module lib/httpd/modules/mod_authz_user.so
78 | #LoadModule authz_dbm_module lib/httpd/modules/mod_authz_dbm.so
79 | #LoadModule authz_owner_module lib/httpd/modules/mod_authz_owner.so
80 | #LoadModule authz_dbd_module lib/httpd/modules/mod_authz_dbd.so
81 | LoadModule authz_core_module lib/httpd/modules/mod_authz_core.so
82 | LoadModule access_compat_module lib/httpd/modules/mod_access_compat.so
83 | LoadModule auth_basic_module lib/httpd/modules/mod_auth_basic.so
84 | #LoadModule auth_form_module lib/httpd/modules/mod_auth_form.so
85 | #LoadModule auth_digest_module lib/httpd/modules/mod_auth_digest.so
86 | #LoadModule allowmethods_module lib/httpd/modules/mod_allowmethods.so
87 | #LoadModule file_cache_module lib/httpd/modules/mod_file_cache.so
88 | #LoadModule cache_module lib/httpd/modules/mod_cache.so
89 | #LoadModule cache_disk_module lib/httpd/modules/mod_cache_disk.so
90 | #LoadModule cache_socache_module lib/httpd/modules/mod_cache_socache.so
91 | #LoadModule socache_shmcb_module lib/httpd/modules/mod_socache_shmcb.so
92 | #LoadModule socache_dbm_module lib/httpd/modules/mod_socache_dbm.so
93 | #LoadModule socache_memcache_module lib/httpd/modules/mod_socache_memcache.so
94 | #LoadModule watchdog_module lib/httpd/modules/mod_watchdog.so
95 | #LoadModule macro_module lib/httpd/modules/mod_macro.so
96 | #LoadModule dbd_module lib/httpd/modules/mod_dbd.so
97 | #LoadModule dumpio_module lib/httpd/modules/mod_dumpio.so
98 | #LoadModule echo_module lib/httpd/modules/mod_echo.so
99 | #LoadModule buffer_module lib/httpd/modules/mod_buffer.so
100 | #LoadModule data_module lib/httpd/modules/mod_data.so
101 | #LoadModule ratelimit_module lib/httpd/modules/mod_ratelimit.so
102 | LoadModule reqtimeout_module lib/httpd/modules/mod_reqtimeout.so
103 | #LoadModule ext_filter_module lib/httpd/modules/mod_ext_filter.so
104 | #LoadModule request_module lib/httpd/modules/mod_request.so
105 | #LoadModule include_module lib/httpd/modules/mod_include.so
106 | LoadModule filter_module lib/httpd/modules/mod_filter.so
107 | #LoadModule reflector_module lib/httpd/modules/mod_reflector.so
108 | #LoadModule substitute_module lib/httpd/modules/mod_substitute.so
109 | #LoadModule sed_module lib/httpd/modules/mod_sed.so
110 | #LoadModule charset_lite_module lib/httpd/modules/mod_charset_lite.so
111 | #LoadModule deflate_module lib/httpd/modules/mod_deflate.so
112 | #LoadModule xml2enc_module lib/httpd/modules/mod_xml2enc.so
113 | #LoadModule proxy_html_module lib/httpd/modules/mod_proxy_html.so
114 | LoadModule mime_module lib/httpd/modules/mod_mime.so
115 | LoadModule log_config_module lib/httpd/modules/mod_log_config.so
116 | #LoadModule log_debug_module lib/httpd/modules/mod_log_debug.so
117 | #LoadModule log_forensic_module lib/httpd/modules/mod_log_forensic.so
118 | #LoadModule logio_module lib/httpd/modules/mod_logio.so
119 | LoadModule env_module lib/httpd/modules/mod_env.so
120 | #LoadModule mime_magic_module lib/httpd/modules/mod_mime_magic.so
121 | #LoadModule expires_module lib/httpd/modules/mod_expires.so
122 | LoadModule headers_module lib/httpd/modules/mod_headers.so
123 | #LoadModule usertrack_module lib/httpd/modules/mod_usertrack.so
124 | #LoadModule unique_id_module lib/httpd/modules/mod_unique_id.so
125 | LoadModule setenvif_module lib/httpd/modules/mod_setenvif.so
126 | LoadModule version_module lib/httpd/modules/mod_version.so
127 | #LoadModule remoteip_module lib/httpd/modules/mod_remoteip.so
128 | #LoadModule proxy_module lib/httpd/modules/mod_proxy.so
129 | #LoadModule proxy_connect_module lib/httpd/modules/mod_proxy_connect.so
130 | #LoadModule proxy_ftp_module lib/httpd/modules/mod_proxy_ftp.so
131 | #LoadModule proxy_http_module lib/httpd/modules/mod_proxy_http.so
132 | #LoadModule proxy_fcgi_module lib/httpd/modules/mod_proxy_fcgi.so
133 | #LoadModule proxy_scgi_module lib/httpd/modules/mod_proxy_scgi.so
134 | #LoadModule proxy_fdpass_module lib/httpd/modules/mod_proxy_fdpass.so
135 | #LoadModule proxy_wstunnel_module lib/httpd/modules/mod_proxy_wstunnel.so
136 | #LoadModule proxy_ajp_module lib/httpd/modules/mod_proxy_ajp.so
137 | #LoadModule proxy_balancer_module lib/httpd/modules/mod_proxy_balancer.so
138 | #LoadModule proxy_express_module lib/httpd/modules/mod_proxy_express.so
139 | #LoadModule proxy_hcheck_module lib/httpd/modules/mod_proxy_hcheck.so
140 | #LoadModule session_module lib/httpd/modules/mod_session.so
141 | #LoadModule session_cookie_module lib/httpd/modules/mod_session_cookie.so
142 | #LoadModule session_crypto_module lib/httpd/modules/mod_session_crypto.so
143 | #LoadModule session_dbd_module lib/httpd/modules/mod_session_dbd.so
144 | #LoadModule slotmem_shm_module lib/httpd/modules/mod_slotmem_shm.so
145 | #LoadModule slotmem_plain_module lib/httpd/modules/mod_slotmem_plain.so
146 | #LoadModule ssl_module lib/httpd/modules/mod_ssl.so
147 | #LoadModule dialup_module lib/httpd/modules/mod_dialup.so
148 | #LoadModule http2_module lib/httpd/modules/mod_http2.so
149 | #LoadModule lbmethod_byrequests_module lib/httpd/modules/mod_lbmethod_byrequests.so
150 | #LoadModule lbmethod_bytraffic_module lib/httpd/modules/mod_lbmethod_bytraffic.so
151 | #LoadModule lbmethod_bybusyness_module lib/httpd/modules/mod_lbmethod_bybusyness.so
152 | #LoadModule lbmethod_heartbeat_module lib/httpd/modules/mod_lbmethod_heartbeat.so
153 | LoadModule unixd_module lib/httpd/modules/mod_unixd.so
154 | #LoadModule heartbeat_module lib/httpd/modules/mod_heartbeat.so
155 | #LoadModule heartmonitor_module lib/httpd/modules/mod_heartmonitor.so
156 | #LoadModule dav_module lib/httpd/modules/mod_dav.so
157 | LoadModule status_module lib/httpd/modules/mod_status.so
158 | LoadModule autoindex_module lib/httpd/modules/mod_autoindex.so
159 | #LoadModule asis_module lib/httpd/modules/mod_asis.so
160 | #LoadModule info_module lib/httpd/modules/mod_info.so
161 | #LoadModule suexec_module lib/httpd/modules/mod_suexec.so
162 | #LoadModule cgid_module lib/httpd/modules/mod_cgid.so
163 | #LoadModule dav_fs_module lib/httpd/modules/mod_dav_fs.so
164 | #LoadModule dav_lock_module lib/httpd/modules/mod_dav_lock.so
165 | LoadModule vhost_alias_module lib/httpd/modules/mod_vhost_alias.so
166 | #LoadModule negotiation_module lib/httpd/modules/mod_negotiation.so
167 | LoadModule dir_module lib/httpd/modules/mod_dir.so
168 | #LoadModule actions_module lib/httpd/modules/mod_actions.so
169 | #LoadModule speling_module lib/httpd/modules/mod_speling.so
170 | #LoadModule userdir_module lib/httpd/modules/mod_userdir.so
171 | LoadModule alias_module lib/httpd/modules/mod_alias.so
172 | LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
173 | LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
174 | #LoadModule php7_module /usr/local/opt/php71/libexec/apache2/libphp7.so
175 |
176 |
177 | #
178 | # If you wish httpd to run as a different user or group, you must run
179 | # httpd as root initially and it will switch.
180 | #
181 | # User/Group: The name (or #number) of the user/group to run httpd as.
182 | # It is usually good practice to create a dedicated user and group for
183 | # running httpd, as with most system services.
184 | #
185 | User YOUR_USER_NAME
186 | Group staff
187 |
188 |
189 |
190 | # 'Main' server configuration
191 | #
192 | # The directives in this section set up the values used by the 'main'
193 | # server, which responds to any requests that aren't handled by a
194 | # definition. These values also provide defaults for
195 | # any containers you may define later in the file.
196 | #
197 | # All of these directives may appear inside containers,
198 | # in which case these default settings will be overridden for the
199 | # virtual host being defined.
200 | #
201 |
202 | #
203 | # ServerAdmin: Your address, where problems with the server should be
204 | # e-mailed. This address appears on some server-generated pages, such
205 | # as error documents. e.g. admin@your-domain.com
206 | #
207 | ServerAdmin you@example.com
208 |
209 | #
210 | # ServerName gives the name and port that the server uses to identify itself.
211 | # This can often be determined automatically, but we recommend you specify
212 | # it explicitly to prevent problems during startup.
213 | #
214 | # If your host doesn't have a registered DNS name, enter its IP address here.
215 | #
216 | ServerName localhost:80
217 |
218 | #
219 | # Deny access to the entirety of your server's filesystem. You must
220 | # explicitly permit access to web content directories in other
221 | # blocks below.
222 | #
223 |
224 | AllowOverride none
225 | Require all denied
226 |
227 |
228 | #
229 | # Note that from this point forward you must specifically allow
230 | # particular features to be enabled - so if something's not working as
231 | # you might expect, make sure that you have specifically enabled it
232 | # below.
233 | #
234 |
235 | #
236 | # DocumentRoot: The directory out of which you will serve your
237 | # documents. By default, all requests are taken from this directory, but
238 | # symbolic links and aliases may be used to point to other locations.
239 | #
240 | DocumentRoot "/Users/YOUR_HOME_FOLDER/dev"
241 |
242 | #
243 | # Possible values for the Options directive are "None", "All",
244 | # or any combination of:
245 | # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
246 | #
247 | # Note that "MultiViews" must be named *explicitly* --- "Options All"
248 | # doesn't give it to you.
249 | #
250 | # The Options directive is both complicated and important. Please see
251 | # http://httpd.apache.org/docs/2.4/mod/core.html#options
252 | # for more information.
253 | #
254 | Options Indexes FollowSymLinks
255 |
256 | #
257 | # AllowOverride controls what directives may be placed in .htaccess files.
258 | # It can be "All", "None", or any combination of the keywords:
259 | # AllowOverride FileInfo AuthConfig Limit
260 | #
261 | AllowOverride All
262 |
263 | #
264 | # Controls who can get stuff from this server.
265 | #
266 | Require all granted
267 |
268 |
269 | #
270 | # DirectoryIndex: sets the file that Apache will serve if a directory
271 | # is requested.
272 | #
273 |
274 | DirectoryIndex index.php index.html
275 |
276 |
277 |
278 | SetHandler application/x-httpd-php
279 |
280 |
281 | #
282 | # The following lines prevent .htaccess and .htpasswd files from being
283 | # viewed by Web clients.
284 | #
285 |
286 | Require all denied
287 |
288 |
289 | #
290 | # ErrorLog: The location of the error log file.
291 | # If you do not specify an ErrorLog directive within a
292 | # container, error messages relating to that virtual host will be
293 | # logged here. If you *do* define an error logfile for a
294 | # container, that host's errors will be logged there and not here.
295 | #
296 | ErrorLog "/Users/YOUR_HOME_FOLDER/dev/logs/error_log"
297 |
298 | #
299 | # LogLevel: Control the number of messages logged to the error_log.
300 | # Possible values include: debug, info, notice, warn, error, crit,
301 | # alert, emerg.
302 | #
303 | LogLevel warn
304 |
305 |
306 | #
307 | # The following directives define some format nicknames for use with
308 | # a CustomLog directive (see below).
309 | #
310 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
311 | LogFormat "%h %l %u %t \"%r\" %>s %b" common
312 |
313 |
314 | # You need to enable mod_logio.c to use %I and %O
315 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
316 |
317 |
318 | #
319 | # The location and format of the access logfile (Common Logfile Format).
320 | # If you do not define any access logfiles within a
321 | # container, they will be logged here. Contrariwise, if you *do*
322 | # define per- access logfiles, transactions will be
323 | # logged therein and *not* in this file.
324 | #
325 | CustomLog "/Users/YOUR_HOME_FOLDER/dev/logs/access_log" common
326 |
327 | #
328 | # If you prefer a logfile with access, agent, and referer information
329 | # (Combined Logfile Format) you can use the following directive.
330 | #
331 | #CustomLog "/Users/YOUR_HOME_FOLDER/dev/logs/httpd/access_log" combined
332 |
333 |
334 |
335 | #
336 | # Redirect: Allows you to tell clients about documents that used to
337 | # exist in your server's namespace, but do not anymore. The client
338 | # will make a new request for the document at its new location.
339 | # Example:
340 | # Redirect permanent /foo http://www.example.com/bar
341 |
342 | #
343 | # Alias: Maps web paths into filesystem paths and is used to
344 | # access content that does not live under the DocumentRoot.
345 | # Example:
346 | # Alias /webpath /full/filesystem/path
347 | #
348 | # If you include a trailing / on /webpath then the server will
349 | # require it to be present in the URL. You will also likely
350 | # need to provide a section to allow access to
351 | # the filesystem path.
352 |
353 | #
354 | # ScriptAlias: This controls which directories contain server scripts.
355 | # ScriptAliases are essentially the same as Aliases, except that
356 | # documents in the target directory are treated as applications and
357 | # run by the server when requested rather than as documents sent to the
358 | # client. The same rules about trailing "/" apply to ScriptAlias
359 | # directives as to Alias.
360 | #
361 | ScriptAlias /cgi-bin/ "/usr/local/var/www/cgi-bin/"
362 |
363 |
364 |
365 |
366 | #
367 | # ScriptSock: On threaded servers, designate the path to the UNIX
368 | # socket used to communicate with the CGI daemon of mod_cgid.
369 | #
370 | #Scriptsock cgisock
371 |
372 |
373 | #
374 | # "/usr/local/var/www/cgi-bin" should be changed to whatever your ScriptAliased
375 | # CGI directory exists, if you have that configured.
376 | #
377 |
378 | AllowOverride None
379 | Options None
380 | Require all granted
381 |
382 |
383 |
384 | #
385 | # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
386 | # backend servers which have lingering "httpoxy" defects.
387 | # 'Proxy' request header is undefined by the IETF, not listed by IANA
388 | #
389 | RequestHeader unset Proxy early
390 |
391 |
392 |
393 | #
394 | # TypesConfig points to the file containing the list of mappings from
395 | # filename extension to MIME-type.
396 | #
397 | TypesConfig /usr/local/etc/httpd/mime.types
398 |
399 | #
400 | # AddType allows you to add to or override the MIME configuration
401 | # file specified in TypesConfig for specific file types.
402 | #
403 | #AddType application/x-gzip .tgz
404 | #
405 | # AddEncoding allows you to have certain browsers uncompress
406 | # information on the fly. Note: Not all browsers support this.
407 | #
408 | #AddEncoding x-compress .Z
409 | #AddEncoding x-gzip .gz .tgz
410 | #
411 | # If the AddEncoding directives above are commented-out, then you
412 | # probably should define those extensions to indicate media types:
413 | #
414 | AddType application/x-compress .Z
415 | AddType application/x-gzip .gz .tgz
416 |
417 | #
418 | # AddHandler allows you to map certain file extensions to "handlers":
419 | # actions unrelated to filetype. These can be either built into the server
420 | # or added with the Action directive (see below)
421 | #
422 | # To use CGI scripts outside of ScriptAliased directories:
423 | # (You will also need to add "ExecCGI" to the "Options" directive.)
424 | #
425 | #AddHandler cgi-script .cgi
426 |
427 | # For type maps (negotiated resources):
428 | #AddHandler type-map var
429 |
430 | #
431 | # Filters allow you to process content before it is sent to the client.
432 | #
433 | # To parse .shtml files for server-side includes (SSI):
434 | # (You will also need to add "Includes" to the "Options" directive.)
435 | #
436 | #AddType text/html .shtml
437 | #AddOutputFilter INCLUDES .shtml
438 |
439 |
440 | #
441 | # The mod_mime_magic module allows the server to use various hints from the
442 | # contents of the file itself to determine its type. The MIMEMagicFile
443 | # directive tells the module where the hint definitions are located.
444 | #
445 | #MIMEMagicFile /usr/local/etc/httpd/magic
446 |
447 | #
448 | # Customizable error responses come in three flavors:
449 | # 1) plain text 2) local redirects 3) external redirects
450 | #
451 | # Some examples:
452 | #ErrorDocument 500 "The server made a boo boo."
453 | #ErrorDocument 404 /missing.html
454 | #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
455 | #ErrorDocument 402 http://www.example.com/subscription_info.html
456 | #
457 |
458 | #
459 | # MaxRanges: Maximum number of Ranges in a request before
460 | # returning the entire resource, or one of the special
461 | # values 'default', 'none' or 'unlimited'.
462 | # Default setting is to accept 200 Ranges.
463 | #MaxRanges unlimited
464 |
465 | #
466 | # EnableMMAP and EnableSendfile: On systems that support it,
467 | # memory-mapping or the sendfile syscall may be used to deliver
468 | # files. This usually improves server performance, but must
469 | # be turned off when serving from networked-mounted
470 | # filesystems or if support for these functions is otherwise
471 | # broken on your system.
472 | # Defaults: EnableMMAP On, EnableSendfile Off
473 | #
474 | #EnableMMAP off
475 | #EnableSendfile on
476 |
477 | # Supplemental configuration
478 | #
479 | # The configuration files in the /usr/local/etc/httpd/extra/ directory can be
480 | # included to add extra features or to modify the default configuration of
481 | # the server, or you may simply copy their contents here and change as
482 | # necessary.
483 |
484 | # Server-pool management (MPM specific)
485 | #Include /usr/local/etc/httpd/extra/httpd-mpm.conf
486 |
487 | # Multi-language error messages
488 | #Include /usr/local/etc/httpd/extra/httpd-multilang-errordoc.conf
489 |
490 | # Fancy directory listings
491 | #Include /usr/local/etc/httpd/extra/httpd-autoindex.conf
492 |
493 | # Language settings
494 | #Include /usr/local/etc/httpd/extra/httpd-languages.conf
495 |
496 | # User home directories
497 | #Include /usr/local/etc/httpd/extra/httpd-userdir.conf
498 |
499 | # Real-time info on requests and configuration
500 | #Include /usr/local/etc/httpd/extra/httpd-info.conf
501 |
502 | # Virtual hosts
503 | Include /usr/local/etc/httpd/extra/httpd-vhosts.conf
504 |
505 | # Local access to the Apache HTTP Server Manual
506 | #Include /usr/local/etc/httpd/extra/httpd-manual.conf
507 |
508 | # Distributed authoring and versioning (WebDAV)
509 | #Include /usr/local/etc/httpd/extra/httpd-dav.conf
510 |
511 | # Various default settings
512 | #Include /usr/local/etc/httpd/extra/httpd-default.conf
513 |
514 | # Configure mod_proxy_html to understand HTML4/XHTML1
515 |
516 | Include /usr/local/etc/httpd/extra/proxy-html.conf
517 |
518 |
519 | # Secure (SSL/TLS) connections
520 | #Include /usr/local/etc/httpd/extra/httpd-ssl.conf
521 | #
522 | # Note: The following must must be present to support
523 | # starting without SSL on platforms with no /dev/random equivalent
524 | # but a statically compiled-in mod_ssl.
525 | #
526 |
527 | SSLRandomSeed startup builtin
528 | SSLRandomSeed connect builtin
529 |
530 |
531 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/assets/jquery-3.2.1.min.js:
--------------------------------------------------------------------------------
1 | /*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
2 | !function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S),
3 | a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,""],thead:[1,"