Version Description
- [Update] The Privacy Mode option under Slimstat > Settings > Tracker now controls the fingerprint collection mechanism as well. If you have this option enabled to comply with European privacy laws, your visitors' IP addresses will be masked and they won't be fingerprinted (thank you, Peter).
- [Update] Improved handling of our local DNS cache to store hostnames when the option to convert IP addresses is enabled in the settings.
- [Fix] Redirects from the canonical URL to its corresponding nice permalink were being affected by a new feature introduce in version 4.8.7 (thank you, Brookjnk).
- [Fix] The new tracker was throwing a Javascript error when handling events attached to DOM elements without a proper hierarchy (thank , you pollensteyn).
- [Fix] Tracking downloads using third-party solutions like Download Attachments was not working as expected (thank you, damianomalorzo).
- [Fix] Inverted stacking order of dots on the map so that the most recent pageviews are always on top, when dots are really close to each other.
- [Fix] A warning message was being returned by the function looking for search keywords in the URL (thank you, Ryan).
Download this release
Release Info
Developer | coolmann |
Plugin | Slimstat Analytics |
Version | 4.8.8.1 |
Comparing to | |
See all releases |
Code changes from version 4.8.8 to 4.8.8.1
- CHANGELOG.md +9 -0
- admin/config/index.php +1 -1
- admin/index.php +2 -2
- admin/view/right-now.php +13 -52
- admin/view/wp-slimstat-db.php +8 -4
- admin/view/wp-slimstat-reports.php +3 -4
- readme.txt +10 -1
- wp-slimstat.js +14 -23
- wp-slimstat.min.js +1 -1
- wp-slimstat.php +33 -10
CHANGELOG.md
CHANGED
@@ -1,4 +1,13 @@
|
|
1 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
### 4.8.8 ###
|
3 |
* [New] Implemented new [FingerPrintJs2](https://github.com/Valve/fingerprintjs2) library in the tracker. Your visitors are now associated with a unique identifier that does not rely on cookies, IP address or other unreliable information. This will allow Slimstat to produce more accurate results in terms of session lenghts, user patterns and much more.
|
4 |
* [New] Added event handler for 'beforeunload', which will allow the tracker to better meausure the time spent by your visitors on each page. This will make our upcoming new charts even more accurate.
|
1 |
## Changelog ##
|
2 |
+
### 4.8.8.1 ###
|
3 |
+
* [Update] The Privacy Mode option under Slimstat > Settings > Tracker now controls the fingerprint collection mechanism as well. If you have this option enabled to comply with European privacy laws, your visitors' IP addresses will be masked and they won't be fingerprinted (thank you, Peter).
|
4 |
+
* [Update] Improved handling of our local DNS cache to store hostnames when the option to convert IP addresses is enabled in the settings.
|
5 |
+
* [Fix] Redirects from the canonical URL to its corresponding nice permalink were being affected by a new feature introduce in version 4.8.7 (thank you, [Brookjnk](https://wordpress.org/support/topic/slimstat-forces-wordpress-to-use-302-redirects-instead-of-301/)).
|
6 |
+
* [Fix] The new tracker was throwing a Javascript error when handling events attached to DOM elements without a proper hierarchy (thank , you [pollensteyn](https://wordpress.org/support/topic/another-javascript-error/)).
|
7 |
+
* [Fix] Tracking downloads using third-party solutions like [Download Attachments](https://wordpress.org/plugins/download-attachments/) was not working as expected (thank you, [damianomalorzo](https://wordpress.org/support/topic/downolads-stats/)).
|
8 |
+
* [Fix] Inverted stacking order of dots on the map so that the most recent pageviews are always on top, when dots are really close to each other.
|
9 |
+
* [Fix] A warning message was being returned by the function looking for search keywords in the URL (thank you, Ryan).
|
10 |
+
|
11 |
### 4.8.8 ###
|
12 |
* [New] Implemented new [FingerPrintJs2](https://github.com/Valve/fingerprintjs2) library in the tracker. Your visitors are now associated with a unique identifier that does not rely on cookies, IP address or other unreliable information. This will allow Slimstat to produce more accurate results in terms of session lenghts, user patterns and much more.
|
13 |
* [New] Added event handler for 'beforeunload', which will allow the tracker to better meausure the time spent by your visitors on each page. This will make our upcoming new charts even more accurate.
|
admin/config/index.php
CHANGED
@@ -102,7 +102,7 @@ $settings = array(
|
|
102 |
'anonymize_ip' => array(
|
103 |
'title' => __( 'Privacy Mode', 'wp-slimstat' ),
|
104 |
'type'=> 'toggle',
|
105 |
-
'description'=> __( "Mask your visitors' IP addresses
|
106 |
),
|
107 |
'set_tracker_cookie' => array(
|
108 |
'title' => __( 'Set Cookie', 'wp-slimstat' ),
|
102 |
'anonymize_ip' => array(
|
103 |
'title' => __( 'Privacy Mode', 'wp-slimstat' ),
|
104 |
'type'=> 'toggle',
|
105 |
+
'description'=> __( "Mask your visitors' IP addresses (by converting the last number into a zero) and do not track their browser fingerprint, to comply with European privacy laws.", 'wp-slimstat' )
|
106 |
),
|
107 |
'set_tracker_cookie' => array(
|
108 |
'title' => __( 'Set Cookie', 'wp-slimstat' ),
|
admin/index.php
CHANGED
@@ -18,8 +18,8 @@ class wp_slimstat_admin {
|
|
18 |
* Init -- Sets things up.
|
19 |
*/
|
20 |
public static function init() {
|
21 |
-
|
22 |
-
self::$admin_notice = "In this day and age where every single social media platform knows our individual whereabouts on the Interwebs, we have been doing some research on what <em>the techies</em> out there call <a href='https://amiunique.org/fp' target='_blank'>browser fingerprinting</a>. With this technique, it is not necessary to rely on cookies to identify a specific user. This version of Slimstat implements <a href='https://github.com/Valve/fingerprintjs2' target='_blank'>FingerprintJS2</a>, a library that enables our tracker to record your users' unique fingerprint and local timezone (isn't it nice to know what time it was for the user when s/he was visiting your website?) Of course, if you have Privacy Mode enabled, this feature will not be used, in compliance with GDPR and other international privacy laws. Your visitors' fingerprints are now available in the Access Log and in the Filter dropdown. In the next few months, we plan to introduce new reports and to leverage this new information to increase the plugin's overall accuracy.";
|
23 |
|
24 |
// Load language files
|
25 |
load_plugin_textdomain( 'wp-slimstat', false, '/wp-slimstat/languages' );
|
18 |
* Init -- Sets things up.
|
19 |
*/
|
20 |
public static function init() {
|
21 |
+
self::$admin_notice = "Just a quick reminder that, in our quest for improved performance, we are deprecating the two columns <em>type</em> and <em>event_description</em> in the events table, and consolidating that information in the <em>notes</em> field. Code will be added to Slimstat in a few released to actually drop these columns from the database. If you are using those two columns in your custom code, please feel free to contact our support team to discuss your options and how to update your code using the information collected by the new tracker.";
|
22 |
+
// self::$admin_notice = "In this day and age where every single social media platform knows our individual whereabouts on the Interwebs, we have been doing some research on what <em>the techies</em> out there call <a href='https://amiunique.org/fp' target='_blank'>browser fingerprinting</a>. With this technique, it is not necessary to rely on cookies to identify a specific user. This version of Slimstat implements <a href='https://github.com/Valve/fingerprintjs2' target='_blank'>FingerprintJS2</a>, a library that enables our tracker to record your users' unique fingerprint and local timezone (isn't it nice to know what time it was for the user when s/he was visiting your website?) Of course, if you have Privacy Mode enabled, this feature will not be used, in compliance with GDPR and other international privacy laws. Your visitors' fingerprints are now available in the Access Log and in the Filter dropdown. In the next few months, we plan to introduce new reports and to leverage this new information to increase the plugin's overall accuracy.";
|
23 |
|
24 |
// Load language files
|
25 |
load_plugin_textdomain( 'wp-slimstat', false, '/wp-slimstat/languages' );
|
admin/view/right-now.php
CHANGED
@@ -50,28 +50,11 @@ if ( isset( $_args[ 'echo' ] ) && $_args[ 'echo' ] === false ) {
|
|
50 |
// Process the data before returning it
|
51 |
if ( wp_slimstat::$settings[ 'convert_ip_addresses' ] == 'on' ) {
|
52 |
for ( $i = 0; $i < $count_page_results; $i++ ) {
|
53 |
-
// When the IP conversion feature is enabled,
|
54 |
-
$
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
wp_slimstat::$wpdb->query( wp_slimstat::$wpdb->prepare( "
|
59 |
-
UPDATE {$GLOBALS['wpdb']->prefix}slim_stats
|
60 |
-
SET notes = %s
|
61 |
-
WHERE id = %s", ( empty( $results[ $i ][ 'notes' ] ) ? '' : $results[ $i ][ 'notes' ] . ';' ) . "hostbyaddr:$gethostbyaddr", $results[ $i ][ 'id' ]
|
62 |
-
) );
|
63 |
-
|
64 |
-
$results[ $i ][ 'ip' ] .= ', ' . $gethostbyaddr;
|
65 |
-
}
|
66 |
-
}
|
67 |
-
else {
|
68 |
-
$gethostbyaddr = substr( $results[ $i ][ 'notes' ], strpos( $results[ $i ][ 'notes' ], 'hostbyaddr:' ) + 11 );
|
69 |
-
|
70 |
-
$length = strpos( $gethostbyaddr, ';' );
|
71 |
-
if ( $length == 0 ) {
|
72 |
-
$length = strlen( $gethostbyaddr );
|
73 |
-
}
|
74 |
-
$results[ $i ][ 'ip' ] .= ', ' . substr( $gethostbyaddr, 0, $length );
|
75 |
}
|
76 |
}
|
77 |
}
|
@@ -88,34 +71,6 @@ $delete_row = '';
|
|
88 |
|
89 |
// Loop through the results
|
90 |
for ( $i=0; $i < $count_page_results; $i++ ) {
|
91 |
-
$host_by_ip = $results[ $i ][ 'ip' ];
|
92 |
-
|
93 |
-
if ( wp_slimstat::$settings[ 'convert_ip_addresses' ] == 'on' ) {
|
94 |
-
// When the IP conversion feature is enabled, data is stored in the "notes" field, so that it doesn't need to be calculated over and over again
|
95 |
-
$gethostbyaddr = '';
|
96 |
-
if ( strpos( $results[ $i ][ 'notes' ], 'hostbyaddr:' ) === false ) {
|
97 |
-
$gethostbyaddr = gethostbyaddr( $results[ $i ][ 'ip' ] );
|
98 |
-
if ( $gethostbyaddr != $results[ $i ][ 'ip' ] && !empty( $gethostbyaddr ) ) {
|
99 |
-
wp_slimstat::$wpdb->query( wp_slimstat::$wpdb->prepare( "
|
100 |
-
UPDATE {$GLOBALS['wpdb']->prefix}slim_stats
|
101 |
-
SET notes = %s
|
102 |
-
WHERE id = %s", ( empty( $results[ $i ][ 'notes' ] ) ? '' : $results[ $i ][ 'notes' ] . ';' ) . "hostbyaddr:$gethostbyaddr", $results[ $i ][ 'id' ]
|
103 |
-
) );
|
104 |
-
|
105 |
-
$host_by_ip .= ', ' . $gethostbyaddr;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
else {
|
109 |
-
$gethostbyaddr = substr( $results[ $i ][ 'notes' ], strpos( $results[ $i ][ 'notes' ], 'hostbyaddr:' ) + 11 );
|
110 |
-
|
111 |
-
$length = strpos( $gethostbyaddr, ';' );
|
112 |
-
if ( $length == 0 ) {
|
113 |
-
$length = strlen( $gethostbyaddr );
|
114 |
-
}
|
115 |
-
$host_by_ip .= ', ' . substr( $gethostbyaddr, 0, $length );
|
116 |
-
}
|
117 |
-
}
|
118 |
-
|
119 |
$date_time = "<i class='spaced slimstat-font-clock slimstat-tooltip-trigger' title='".__( 'Date and Time', 'wp-slimstat' )."'></i> " . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $results[ $i ][ 'dt' ], true );
|
120 |
|
121 |
// Print visit header?
|
@@ -170,6 +125,12 @@ for ( $i=0; $i < $count_page_results; $i++ ) {
|
|
170 |
}
|
171 |
|
172 |
// IP Address and user
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
if ( empty( $results[ $i ][ 'username' ] ) ) {
|
174 |
$ip_address = "<a class='slimstat-filter-link' href='" . wp_slimstat_reports::fs_url( 'ip equals ' . $results[ $i ][ 'ip' ] ) . "'>$host_by_ip</a>";
|
175 |
}
|
@@ -205,7 +166,7 @@ for ( $i=0; $i < $count_page_results; $i++ ) {
|
|
205 |
|
206 |
// Fingerprint
|
207 |
$fingerprint = '';
|
208 |
-
if ( !empty( $results[ $i ][ 'fingerprint' ] ) ) {
|
209 |
$fingerprint = "<span class='pageview-screenres'><code><a class='slimstat-filter-link slimstat-tooltip-trigger' href='" . wp_slimstat_reports::fs_url( 'fingerprint equals ' . $results[ $i ][ 'fingerprint' ] ) . "' title='" . $results[ $i ][ 'fingerprint' ] . "'>" . substr( $results[ $i ][ 'fingerprint' ], 0, 8 ) . "</a></code></span>";
|
210 |
}
|
211 |
|
@@ -229,7 +190,7 @@ for ( $i=0; $i < $count_page_results; $i++ ) {
|
|
229 |
$resource_title = wp_slimstat_reports::get_resource_title( $results[$i][ 'resource' ] );
|
230 |
}
|
231 |
|
232 |
-
$results[ $i ][ 'resource' ] = "<a class='slimstat-font-logout slimstat-tooltip-trigger' target='_blank' title='" . htmlentities( __( 'Open this URL in a new window', 'wp-slimstat' ), ENT_QUOTES, 'UTF-8' ) . "' href='" . htmlentities( $results[$i][ 'resource' ], ENT_QUOTES, 'UTF-8' ) . "'></a> <a class='slimstat-filter-link' href='" . wp_slimstat_reports::fs_url( 'resource equals ' .
|
233 |
}
|
234 |
else {
|
235 |
if ( !empty( $results[$i][ 'notes' ] ) ) {
|
50 |
// Process the data before returning it
|
51 |
if ( wp_slimstat::$settings[ 'convert_ip_addresses' ] == 'on' ) {
|
52 |
for ( $i = 0; $i < $count_page_results; $i++ ) {
|
53 |
+
// When the IP conversion feature is enabled, we need to return the correct values
|
54 |
+
$hostname = wp_slimstat::gethostbyaddr( $results[ $i ][ 'ip' ] );
|
55 |
+
|
56 |
+
if ( $hostname != $results[ $i ][ 'ip' ] ) {
|
57 |
+
$results[ $i ][ 'ip' ] .= ', ' . $hostname;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
}
|
60 |
}
|
71 |
|
72 |
// Loop through the results
|
73 |
for ( $i=0; $i < $count_page_results; $i++ ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
$date_time = "<i class='spaced slimstat-font-clock slimstat-tooltip-trigger' title='".__( 'Date and Time', 'wp-slimstat' )."'></i> " . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $results[ $i ][ 'dt' ], true );
|
75 |
|
76 |
// Print visit header?
|
125 |
}
|
126 |
|
127 |
// IP Address and user
|
128 |
+
$host_by_ip = $results[ $i ][ 'ip' ];
|
129 |
+
if ( wp_slimstat::$settings[ 'convert_ip_addresses' ] == 'on' ) {
|
130 |
+
// When the IP conversion feature is enabled, we need to return the correct values
|
131 |
+
$host_by_ip = wp_slimstat::gethostbyaddr( $results[ $i ][ 'ip' ] );
|
132 |
+
}
|
133 |
+
|
134 |
if ( empty( $results[ $i ][ 'username' ] ) ) {
|
135 |
$ip_address = "<a class='slimstat-filter-link' href='" . wp_slimstat_reports::fs_url( 'ip equals ' . $results[ $i ][ 'ip' ] ) . "'>$host_by_ip</a>";
|
136 |
}
|
166 |
|
167 |
// Fingerprint
|
168 |
$fingerprint = '';
|
169 |
+
if ( !$is_dashboard && !empty( $results[ $i ][ 'fingerprint' ] ) ) {
|
170 |
$fingerprint = "<span class='pageview-screenres'><code><a class='slimstat-filter-link slimstat-tooltip-trigger' href='" . wp_slimstat_reports::fs_url( 'fingerprint equals ' . $results[ $i ][ 'fingerprint' ] ) . "' title='" . $results[ $i ][ 'fingerprint' ] . "'>" . substr( $results[ $i ][ 'fingerprint' ], 0, 8 ) . "</a></code></span>";
|
171 |
}
|
172 |
|
190 |
$resource_title = wp_slimstat_reports::get_resource_title( $results[$i][ 'resource' ] );
|
191 |
}
|
192 |
|
193 |
+
$results[ $i ][ 'resource' ] = "<a class='slimstat-font-logout slimstat-tooltip-trigger' target='_blank' title='" . htmlentities( __( 'Open this URL in a new window', 'wp-slimstat' ), ENT_QUOTES, 'UTF-8' ) . "' href='" . htmlentities( $results[$i][ 'resource' ], ENT_QUOTES, 'UTF-8' ) . "'></a> <a class='slimstat-filter-link' href='" . wp_slimstat_reports::fs_url( 'resource equals ' . $results[ $i ][ 'resource' ] ) . "'>" . $resource_title . '</a>';
|
194 |
}
|
195 |
else {
|
196 |
if ( !empty( $results[$i][ 'notes' ] ) ) {
|
admin/view/wp-slimstat-db.php
CHANGED
@@ -286,7 +286,8 @@ class wp_slimstat_db {
|
|
286 |
break;
|
287 |
}
|
288 |
|
289 |
-
$where = array( '', $_value );
|
|
|
290 |
switch ( $_operator ) {
|
291 |
case 'is_not_equal_to':
|
292 |
$where[ 0 ] = "$column_with_alias <> %s";
|
@@ -366,12 +367,15 @@ class wp_slimstat_db {
|
|
366 |
self::$debug_message .= "<p class='debug'>$_sql</p>";
|
367 |
}
|
368 |
|
|
|
|
|
369 |
// Save the results of this query in our object cache
|
370 |
-
if ( empty(
|
371 |
-
|
|
|
372 |
}
|
373 |
|
374 |
-
return
|
375 |
}
|
376 |
|
377 |
public static function get_var( $_sql = '', $_aggregate_value = '' ) {
|
286 |
break;
|
287 |
}
|
288 |
|
289 |
+
$where = array( '', htmlentities( $_value, ENT_QUOTES, 'UTF-8' ) );
|
290 |
+
|
291 |
switch ( $_operator ) {
|
292 |
case 'is_not_equal_to':
|
293 |
$where[ 0 ] = "$column_with_alias <> %s";
|
367 |
self::$debug_message .= "<p class='debug'>$_sql</p>";
|
368 |
}
|
369 |
|
370 |
+
$cached_results = wp_cache_get( md5( $_sql ), 'wp-slimstat' );
|
371 |
+
|
372 |
// Save the results of this query in our object cache
|
373 |
+
if ( empty( $cached_results ) ) {
|
374 |
+
$cached_results = wp_slimstat::$wpdb->get_results( $_sql, ARRAY_A );
|
375 |
+
wp_cache_add( md5( $_sql ), $cached_results, 'wp-slimstat' );
|
376 |
}
|
377 |
|
378 |
+
return $cached_results;
|
379 |
}
|
380 |
|
381 |
public static function get_var( $_sql = '', $_aggregate_value = '' ) {
|
admin/view/wp-slimstat-reports.php
CHANGED
@@ -1071,7 +1071,7 @@ class wp_slimstat_reports {
|
|
1071 |
case 'id':
|
1072 |
case 'ip':
|
1073 |
if ( wp_slimstat::$settings[ 'convert_ip_addresses' ] == 'on' ) {
|
1074 |
-
$element_value = gethostbyaddr( $results[ $i ][ 'ip' ] );
|
1075 |
}
|
1076 |
else{
|
1077 |
$element_value = $results[ $i ][ 'ip' ];
|
@@ -1091,7 +1091,6 @@ class wp_slimstat_reports {
|
|
1091 |
|
1092 |
case 'referer':
|
1093 |
$element_value = str_replace( array( '<', '>' ), array( '<', '>' ), urldecode( $results[ $i ][ $_args[ 'columns' ] ] ) );
|
1094 |
-
$results[ $i ][ $_args[ 'columns' ] ] = 'https://' . $results[ $i ][ $_args[ 'columns' ] ];
|
1095 |
break;
|
1096 |
|
1097 |
case 'resource':
|
@@ -1145,7 +1144,7 @@ class wp_slimstat_reports {
|
|
1145 |
}
|
1146 |
|
1147 |
if ( is_admin() ) {
|
1148 |
-
$element_value = "<a class='slimstat-filter-link' href='" . self::fs_url( $_args[ 'columns' ] . ' ' . $_args[ 'filter_op' ] . ' ' . $results[ $i ][ $_args[ 'columns' ] ] ) . "'>$element_value</a>";
|
1149 |
}
|
1150 |
|
1151 |
if ( !empty( $_args['type'] ) && $_args['type'] == 'recent' ) {
|
@@ -1598,7 +1597,7 @@ class wp_slimstat_reports {
|
|
1598 |
map: "worldLow",
|
1599 |
getAreasFromMap: false,
|
1600 |
areas:[ <?php echo implode( ',', $data_areas ) ?> ],
|
1601 |
-
images: [ <?php if ( !empty( $data_points ) ) echo implode( ',', $data_points ) ?> ]
|
1602 |
};
|
1603 |
|
1604 |
// Create AmMap object
|
1071 |
case 'id':
|
1072 |
case 'ip':
|
1073 |
if ( wp_slimstat::$settings[ 'convert_ip_addresses' ] == 'on' ) {
|
1074 |
+
$element_value = wp_slimstat::gethostbyaddr( $results[ $i ][ 'ip' ] );
|
1075 |
}
|
1076 |
else{
|
1077 |
$element_value = $results[ $i ][ 'ip' ];
|
1091 |
|
1092 |
case 'referer':
|
1093 |
$element_value = str_replace( array( '<', '>' ), array( '<', '>' ), urldecode( $results[ $i ][ $_args[ 'columns' ] ] ) );
|
|
|
1094 |
break;
|
1095 |
|
1096 |
case 'resource':
|
1144 |
}
|
1145 |
|
1146 |
if ( is_admin() ) {
|
1147 |
+
$element_value = "<a class='slimstat-filter-link' href='" . self::fs_url( $_args[ 'columns' ] . ' ' . $_args[ 'filter_op' ] . ' ' . htmlentities( $results[ $i ][ $_args[ 'columns' ] ], ENT_QUOTES, 'UTF-8' ) ) . "'>$element_value</a>";
|
1148 |
}
|
1149 |
|
1150 |
if ( !empty( $_args['type'] ) && $_args['type'] == 'recent' ) {
|
1597 |
map: "worldLow",
|
1598 |
getAreasFromMap: false,
|
1599 |
areas:[ <?php echo implode( ',', $data_areas ) ?> ],
|
1600 |
+
images: [ <?php if ( !empty( $data_points ) ) echo implode( ',', array_reverse( $data_points ) ) ?> ]
|
1601 |
};
|
1602 |
|
1603 |
// Create AmMap object
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Text Domain: wp-slimstat
|
|
6 |
Requires at least: 4.9
|
7 |
Requires PHP: 5.2
|
8 |
Tested up to: 5.3
|
9 |
-
Stable tag: 4.8.8
|
10 |
|
11 |
== Description ==
|
12 |
The leading web analytics plugin for WordPress. Track returning customers and registered users, monitor Javascript events, detect intrusions, analyze email campaigns. Thousands of WordPress sites are already using it.
|
@@ -60,6 +60,15 @@ Our knowledge base is available on our [support center](https://docs.wp-slimstat
|
|
60 |
5. **Responsive layout** - Keep an eye on your reports on the go
|
61 |
|
62 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
= 4.8.8 =
|
64 |
* [New] Implemented new [FingerPrintJs2](https://github.com/Valve/fingerprintjs2) library in the tracker. Your visitors are now associated with a unique identifier that does not rely on cookies, IP address or other unreliable information. This will allow Slimstat to produce more accurate results in terms of session lenghts, user patterns and much more.
|
65 |
* [New] Added event handler for 'beforeunload', which will allow the tracker to better meausure the time spent by your visitors on each page. This will make our upcoming new charts even more accurate.
|
6 |
Requires at least: 4.9
|
7 |
Requires PHP: 5.2
|
8 |
Tested up to: 5.3
|
9 |
+
Stable tag: 4.8.8.1
|
10 |
|
11 |
== Description ==
|
12 |
The leading web analytics plugin for WordPress. Track returning customers and registered users, monitor Javascript events, detect intrusions, analyze email campaigns. Thousands of WordPress sites are already using it.
|
60 |
5. **Responsive layout** - Keep an eye on your reports on the go
|
61 |
|
62 |
== Changelog ==
|
63 |
+
= 4.8.8.1 =
|
64 |
+
* [Update] The Privacy Mode option under Slimstat > Settings > Tracker now controls the fingerprint collection mechanism as well. If you have this option enabled to comply with European privacy laws, your visitors' IP addresses will be masked and they won't be fingerprinted (thank you, Peter).
|
65 |
+
* [Update] Improved handling of our local DNS cache to store hostnames when the option to convert IP addresses is enabled in the settings.
|
66 |
+
* [Fix] Redirects from the canonical URL to its corresponding nice permalink were being affected by a new feature introduce in version 4.8.7 (thank you, [Brookjnk](https://wordpress.org/support/topic/slimstat-forces-wordpress-to-use-302-redirects-instead-of-301/)).
|
67 |
+
* [Fix] The new tracker was throwing a Javascript error when handling events attached to DOM elements without a proper hierarchy (thank , you [pollensteyn](https://wordpress.org/support/topic/another-javascript-error/)).
|
68 |
+
* [Fix] Tracking downloads using third-party solutions like [Download Attachments](https://wordpress.org/plugins/download-attachments/) was not working as expected (thank you, [damianomalorzo](https://wordpress.org/support/topic/downolads-stats/)).
|
69 |
+
* [Fix] Inverted stacking order of dots on the map so that the most recent pageviews are always on top, when dots are really close to each other.
|
70 |
+
* [Fix] A warning message was being returned by the function looking for search keywords in the URL (thank you, Ryan).
|
71 |
+
|
72 |
= 4.8.8 =
|
73 |
* [New] Implemented new [FingerPrintJs2](https://github.com/Valve/fingerprintjs2) library in the tracker. Your visitors are now associated with a unique identifier that does not rely on cookies, IP address or other unreliable information. This will allow Slimstat to produce more accurate results in terms of session lenghts, user patterns and much more.
|
74 |
* [New] Added event handler for 'beforeunload', which will allow the tracker to better meausure the time spent by your visitors on each page. This will make our upcoming new charts even more accurate.
|
wp-slimstat.js
CHANGED
@@ -283,12 +283,13 @@ var SlimStat = {
|
|
283 |
case "input":
|
284 |
case "button":
|
285 |
// Look for a parent FORM element to get the target action
|
286 |
-
|
287 |
-
|
|
|
288 |
}
|
289 |
|
290 |
-
if ( !SlimStat.empty(
|
291 |
-
resource_url =
|
292 |
}
|
293 |
break;
|
294 |
|
@@ -307,16 +308,6 @@ var SlimStat = {
|
|
307 |
else if ( !SlimStat.empty( parent_node.href ) ) {
|
308 |
resource_url = parent_node.href;
|
309 |
}
|
310 |
-
|
311 |
-
// If this element has a title, we can record that as well
|
312 |
-
if ( "function" == typeof parent_node.getAttribute ) {
|
313 |
-
if ( !SlimStat.empty( parent_node.getAttribute( "title" ) ) ) {
|
314 |
-
note_array.push( "Parent Title:" + parent_node.getAttribute( "title" ) );
|
315 |
-
}
|
316 |
-
if ( !SlimStat.empty( parent_node.getAttribute( "id" ) ) ) {
|
317 |
-
note_array.push( "Parent ID:" + parent_node.getAttribute( "id" ) );
|
318 |
-
}
|
319 |
-
}
|
320 |
}
|
321 |
}
|
322 |
else if ( !SlimStat.empty( target_node.hash ) ) {
|
@@ -325,16 +316,16 @@ var SlimStat = {
|
|
325 |
else {
|
326 |
resource_url = target_node.href;
|
327 |
}
|
|
|
328 |
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
}
|
338 |
}
|
339 |
|
340 |
do_not_track = !SlimStat.empty( SlimStatParams.dnt ) ? SlimStatParams.dnt.split( ',' ) : [];
|
283 |
case "input":
|
284 |
case "button":
|
285 |
// Look for a parent FORM element to get the target action
|
286 |
+
parent_node = target_node.parentNode;
|
287 |
+
while ( !SlimStat.empty( parent_node ) && !SlimStat.empty( parent_node.nodeName ) && parent_node.nodeName.toLowerCase() != "form" ) {
|
288 |
+
parent_node = parent_node.parentNode;
|
289 |
}
|
290 |
|
291 |
+
if ( !SlimStat.empty( parent_node ) && !SlimStat.empty( parent_node.action ) ) {
|
292 |
+
resource_url = parent_node.action;
|
293 |
}
|
294 |
break;
|
295 |
|
308 |
else if ( !SlimStat.empty( parent_node.href ) ) {
|
309 |
resource_url = parent_node.href;
|
310 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
}
|
312 |
}
|
313 |
else if ( !SlimStat.empty( target_node.hash ) ) {
|
316 |
else {
|
317 |
resource_url = target_node.href;
|
318 |
}
|
319 |
+
}
|
320 |
|
321 |
+
// If this element has a title, we can record that as well
|
322 |
+
if ( "function" == typeof target_node.getAttribute ) {
|
323 |
+
if ( !SlimStat.empty( target_node.getAttribute( "title" ) ) ) {
|
324 |
+
note_array.push( "Title:" + target_node.getAttribute( "title" ) );
|
325 |
+
}
|
326 |
+
if ( !SlimStat.empty( target_node.getAttribute( "id" ) ) ) {
|
327 |
+
note_array.push( "ID:" + target_node.getAttribute( "id" ) );
|
328 |
+
}
|
|
|
329 |
}
|
330 |
|
331 |
do_not_track = !SlimStat.empty( SlimStatParams.dnt ) ? SlimStatParams.dnt.split( ',' ) : [];
|
wp-slimstat.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var SlimStat={base64_key_str:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-",fingerprint_hash:"",utf8_encode:function(e){var t,a,n="";for(e=e.replace(/\r\n/g,"\n"),t=0;t<e.length;t++)(a=e.charCodeAt(t))<128?n+=String.fromCharCode(a):(127<a&&a<2048?n+=String.fromCharCode(a>>6|192):(n+=String.fromCharCode(a>>12|224),n+=String.fromCharCode(a>>6&63|128)),n+=String.fromCharCode(63&a|128));return n},base64_encode:function(e){var t,a,n,r,i,o,s,l="",d=0;for(e=SlimStat.utf8_encode(e);d<e.length;)r=(t=e.charCodeAt(d++))>>2,i=(3&t)<<4|(a=e.charCodeAt(d++))>>4,o=(15&a)<<2|(n=e.charCodeAt(d++))>>6,s=63&n,isNaN(a)?o=s=64:isNaN(n)&&(s=64),l=l+SlimStat.base64_key_str.charAt(r)+SlimStat.base64_key_str.charAt(i)+SlimStat.base64_key_str.charAt(o)+SlimStat.base64_key_str.charAt(s);return l},get_page_performance:function(){return slim_performance=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},void 0===slim_performance.timing?0:slim_performance.timing.loadEventEnd-slim_performance.timing.responseEnd},get_server_latency:function(){return slim_performance=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},void 0===slim_performance.timing?0:slim_performance.timing.responseEnd-slim_performance.timing.connectEnd},optout:function(e,t){e.preventDefault(),"string"==typeof SlimStatParams.baseurl&&0!=SlimStatParams.baseurl.length||(SlimStatParams.baseurl="/"),expiration=new Date,expiration.setTime(expiration.getTime()+31536e6),document.cookie="slimstat_optout_tracking="+t+";path="+SlimStatParams.baseurl+";expires="+expiration.toGMTString(),e.target.parentNode.parentNode.removeChild(e.target.parentNode)},show_optout_message:function(){opt_out_cookies=SlimStat.empty(SlimStatParams.oc)?[]:SlimStatParams.oc.split(","),Array.isArray(opt_out_cookies)||(opt_out_cookies=[]),show_optout=0<opt_out_cookies.length;for(var e=0;e<opt_out_cookies.length;e++)""!=SlimStat.get_cookie(opt_out_cookies[e])&&(show_optout=!1);if(show_optout){try{xhr=new XMLHttpRequest}catch(e){return!1}if("object"==typeof xhr)return xhr.open("POST",SlimStatParams.ajaxurl,!0),xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.withCredentials=!0,xhr.send("action=slimstat_optout_html"),xhr.onreadystatechange=function(){4==xhr.readyState&&document.body.insertAdjacentHTML("beforeend",xhr.responseText)},!0}},add_event:function(e,t,a){e&&e.addEventListener?e.addEventListener(t,a,!1):e&&e.attachEvent?(e["e"+t+a]=a,e[t+a]=function(){e["e"+t+a](window.event)},e.attachEvent("on"+t,e[t+a])):e["on"+t]=e["e"+t+a]},in_array:function(e,t){for(var a=0;a<t.length;a++)if(-1!=e.indexOf(t[a].trim()))return!0;return!1},empty:function(e){return void 0===e||null==e||("number"==typeof e?0==e:"boolean"==typeof e?!e:"string"!=typeof e&&"object"!=typeof e||0==e.length)},get_cookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return 2==t.length?t.pop().split(";").shift():""},send_to_server:function(e,t){if(SlimStat.empty(SlimStatParams.ajaxurl)||SlimStat.empty(e))return!1;if(void 0===t&&(t=!0),t&&navigator.sendBeacon)navigator.sendBeacon(SlimStatParams.ajaxurl,e);else{try{xhr=new XMLHttpRequest}catch(e){return!1}if("object"==typeof xhr)return xhr.open("POST",SlimStatParams.ajaxurl,!0),xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.withCredentials=!0,xhr.send(e),xhr.onreadystatechange=function(){4==xhr.readyState&&(parsed_id=parseInt(xhr.responseText),!isNaN(parsed_id)&&0<parsed_id&&(SlimStatParams.id=xhr.responseText))},!0}return!1},ss_track:function(e,t){if(SlimStat.empty(SlimStatParams.id)||isNaN(parseInt(SlimStatParams.id))||parseInt(SlimStatParams.id)<=0)return!1;if(note_array=[],SlimStat.empty(e)||note_array.push(e),void 0===t&&(t=!0),SlimStat.empty(window.event))return!1;if(SlimStat.empty(window.event.target)){if(SlimStat.empty(window.event.srcElement))return!1;target_node=window.event.srcElement}else target_node=window.event.target;var a="",n="";if(SlimStat.empty(window.event.type)||"focus"==window.event.type)return!1;switch(note_array.push("Type:"+window.event.type),"keypress"==window.event.type?note_array.push("Keypress:"+String.fromCharCode(parseInt(window.event.which))):"click"==window.event.type&¬e_array.push("Button:"+(1==window.event.which?"left":2==window.event.which?"middle":"right")),target_node.nodeName.toLowerCase()){case"input":case"button":for(;!SlimStat.empty(target_node)&&!SlimStat.empty(target_node.nodeName)&&"form"!=target_node.nodeName.toLowerCase();)target_node=target_node.parentNode;SlimStat.empty(target_node)||SlimStat.empty(target_node.action)||(a=target_node.action);break;default:if(SlimStat.empty(target_node.href)||"string"!=typeof target_node.href){for(parent_node=target_node.parentNode;!SlimStat.empty(parent_node)&&!SlimStat.empty(parent_node.nodeName)&&SlimStat.empty(parent_node.href);)parent_node=parent_node.parentNode;SlimStat.empty(parent_node)||(SlimStat.empty(parent_node.hash)||parent_node.hostname!=location.hostname?SlimStat.empty(parent_node.href)||(a=parent_node.href):a=parent_node.hash,"function"==typeof parent_node.getAttribute&&(SlimStat.empty(parent_node.getAttribute("title"))||note_array.push("Parent Title:"+parent_node.getAttribute("title")),SlimStat.empty(parent_node.getAttribute("id"))||note_array.push("Parent ID:"+parent_node.getAttribute("id"))))}else a=SlimStat.empty(target_node.hash)?target_node.href:target_node.hash;"function"==typeof target_node.getAttribute&&(SlimStat.empty(target_node.getAttribute("title"))||note_array.push("Title:"+target_node.getAttribute("title")),SlimStat.empty(target_node.getAttribute("id"))||note_array.push("ID:"+target_node.getAttribute("id")))}if(do_not_track=SlimStat.empty(SlimStatParams.dnt)?[]:SlimStatParams.dnt.split(","),!SlimStat.empty(a)){if(!SlimStat.empty(do_not_track)&&SlimStat.in_array(a,do_not_track))return!1;n="&fh="+SlimStat.fingerprint_hash}return target_classes=SlimStat.empty(target_node.className)||"string"!=typeof target_node.className?[]:target_node.className.split(" "),!!(SlimStat.empty(do_not_track)||SlimStat.empty(target_classes)||0==target_classes.filter(function(e){return-1!==do_not_track.indexOf(e)}).length&&(SlimStat.empty(target_node.attributes)||SlimStat.empty(target_node.attributes.rel)||SlimStat.empty(target_node.attributes.rel.value)||!SlimStat.in_array(target_node.attributes.rel.value,do_not_track)))&&(position="0,0",SlimStat.empty(window.event.pageX)||SlimStat.empty(window.event.pageY)?SlimStat.empty(window.event.clientX)||SlimStat.empty(document.body.scrollLeft)||SlimStat.empty(document.documentElement.scrollLeft)||(position=window.event.clientX+document.body.scrollLeft+document.documentElement.scrollLeft+","+window.event.clientY+document.body.scrollTop+document.documentElement.scrollTop):position=window.event.pageX+","+window.event.pageY,SlimStat.send_to_server("action=slimtrack&id="+SlimStatParams.id+"&res="+SlimStat.base64_encode(a)+"&pos="+position+"&no="+SlimStat.base64_encode(note_array.join(","))+n,t),!0)},get_slimstat_data:function(e){return screenres=SlimStat.get_component_value(e,"screenResolution",[0,0]),"&sw="+screenres[0]+"&sh="+screenres[1]+"&bw="+window.innerWidth+"&bh="+window.innerHeight+"&sl="+SlimStat.get_server_latency()+"&pp="+SlimStat.get_page_performance()+"&fh="+SlimStat.fingerprint_hash+"&tz="+SlimStat.get_component_value(e,"timezoneOffset",0)},get_component_value:function(e,t,a){for(x=0;x<e.length;x++)if(e[x].key===t)return e[x].value;return a},init_fingerprint_hash:function(e){values=e.map(function(e){return e.value}),SlimStat.fingerprint_hash=Fingerprint2.x64hash128(values.join(""),31)}};"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),SlimStat.add_event(window,"load",function(){if(slimstat_data="",use_beacon=!0,!SlimStat.empty(SlimStatParams.id)&&0<parseInt(SlimStatParams.id)?slimstat_data="action=slimtrack&id="+SlimStatParams.id:(slimstat_data="action=slimtrack&ref="+SlimStat.base64_encode(document.referrer)+"&res="+SlimStat.base64_encode(window.location.href),SlimStat.empty(SlimStatParams.ci)||(slimstat_data+="&ci="+SlimStatParams.ci),use_beacon=!1),0<slimstat_data.length){window.requestIdleCallback?requestIdleCallback(function(){Fingerprint2.get(function(e){SlimStat.init_fingerprint_hash(e),SlimStat.send_to_server(slimstat_data+SlimStat.get_slimstat_data(e),use_beacon),SlimStat.show_optout_message()})}):setTimeout(function(){Fingerprint2.get(function(e){SlimStat.init_fingerprint_hash(e),SlimStat.send_to_server(slimstat_data+SlimStat.get_slimstat_data(e),use_beacon),SlimStat.show_optout_message()})},250)}all_clickable=document.querySelectorAll("a,button,input,area");for(var e=0;e<all_clickable.length;e++)SlimStat.add_event(all_clickable[e],"click",function(e){SlimStat.ss_track()})}),SlimStat.add_event(window,"beforeunload",function(){!SlimStat.empty(document.activeElement)&&!SlimStat.empty(document.activeElement.nodeName)&&"body"==document.activeElement.nodeName.toLowerCase()&&!SlimStat.empty(SlimStatParams.id)&&0<parseInt(SlimStatParams.id)&&SlimStat.send_to_server("action=slimtrack&id="+SlimStatParams.id,!0)}),function(e,t,a){"use strict";"undefined"!=typeof window&&"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&module.exports?module.exports=a():t.exports?t.exports=a():t.Fingerprint2=a()}(0,this,function(){"use strict";function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var a=[0,0,0,0];return a[3]+=e[3]+t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]+t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]+t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]+t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]}function m(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var a=[0,0,0,0];return a[3]+=e[3]*t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]*t[3],a[1]+=a[2]>>>16,a[2]&=65535,a[2]+=e[3]*t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]*t[3],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[2]*t[2],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[3]*t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]}function g(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function f(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function p(e,t){return[e[0]^t[0],e[1]^t[1]]}function h(e){return e=p(e,[0,e[0]>>>1]),e=m(e,[4283543511,3981806797]),e=p(e,[0,e[0]>>>1]),e=m(e,[3301882366,444984403]),p(e,[0,e[0]>>>1])}function s(e,t){t=t||0;for(var a=(e=e||"").length%16,n=e.length-a,r=[0,t],i=[0,t],o=[0,0],s=[0,0],l=[2277735313,289559509],d=[1291169091,658871167],c=0;c<n;c+=16)o=[255&e.charCodeAt(c+4)|(255&e.charCodeAt(c+5))<<8|(255&e.charCodeAt(c+6))<<16|(255&e.charCodeAt(c+7))<<24,255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24],s=[255&e.charCodeAt(c+12)|(255&e.charCodeAt(c+13))<<8|(255&e.charCodeAt(c+14))<<16|(255&e.charCodeAt(c+15))<<24,255&e.charCodeAt(c+8)|(255&e.charCodeAt(c+9))<<8|(255&e.charCodeAt(c+10))<<16|(255&e.charCodeAt(c+11))<<24],o=m(o,l),o=g(o,31),o=m(o,d),r=p(r,o),r=g(r,27),r=u(r,i),r=u(m(r,[0,5]),[0,1390208809]),s=m(s,d),s=g(s,33),s=m(s,l),i=p(i,s),i=g(i,31),i=u(i,r),i=u(m(i,[0,5]),[0,944331445]);switch(o=[0,0],s=[0,0],a){case 15:s=p(s,f([0,e.charCodeAt(c+14)],48));case 14:s=p(s,f([0,e.charCodeAt(c+13)],40));case 13:s=p(s,f([0,e.charCodeAt(c+12)],32));case 12:s=p(s,f([0,e.charCodeAt(c+11)],24));case 11:s=p(s,f([0,e.charCodeAt(c+10)],16));case 10:s=p(s,f([0,e.charCodeAt(c+9)],8));case 9:s=p(s,[0,e.charCodeAt(c+8)]),s=m(s,d),s=g(s,33),s=m(s,l),i=p(i,s);case 8:o=p(o,f([0,e.charCodeAt(c+7)],56));case 7:o=p(o,f([0,e.charCodeAt(c+6)],48));case 6:o=p(o,f([0,e.charCodeAt(c+5)],40));case 5:o=p(o,f([0,e.charCodeAt(c+4)],32));case 4:o=p(o,f([0,e.charCodeAt(c+3)],24));case 3:o=p(o,f([0,e.charCodeAt(c+2)],16));case 2:o=p(o,f([0,e.charCodeAt(c+1)],8));case 1:o=p(o,[0,e.charCodeAt(c)]),o=m(o,l),o=g(o,31),o=m(o,d),r=p(r,o)}return r=p(r,[0,e.length]),i=p(i,[0,e.length]),r=u(r,i),i=u(i,r),r=h(r),i=h(i),r=u(r,i),i=u(i,r),("00000000"+(r[0]>>>0).toString(16)).slice(-8)+("00000000"+(r[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}function d(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var a=0,n=e.length;a<n;a++)t(e[a],a,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}function l(e,n){var r=[];return null==e?r:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(d(e,function(e,t,a){r.push(n(e,t,a))}),r)}function a(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],a=0,n=navigator.plugins.length;a<n;a++)navigator.plugins[a]&&t.push(navigator.plugins[a]);return i(e)&&(t=t.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),l(t,function(e){var t=l(e,function(e){return[e.type,e.suffixes]});return[e.name,e.description,t]})}function n(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}function r(){if(!n())return!1;var e=S();return!!window.WebGLRenderingContext&&!!e}function c(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")}var e={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},i=function(e){for(var t=!1,a=0,n=e.plugins.sortPluginsFor.length;a<n;a++){var r=e.plugins.sortPluginsFor[a];if(navigator.userAgent.match(r)){t=!0;break}}return t},S=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t=t||null},t=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(t){try{return!!window.sessionStorage}catch(e){return t.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(t){try{return!!window.localStorage}catch(e){return t.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(t){try{return!!window.indexedDB}catch(e){return t.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(function(e){return navigator.cpuClass||e.NOT_AVAILABLE}(t))}},{key:"platform",getData:function(e,t){e(function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t.plugins.excludeIE?e(t.EXCLUDED):e(function(t){var e=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?e=l(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],function(e){try{return new window.ActiveXObject(e),e}catch(e){return t.ERROR}}):e.push(t.NOT_AVAILABLE),navigator.plugins&&(e=e.concat(a(t))),e}(t)):e(a(t))}},{key:"canvas",getData:function(e,t){n()?e(function(e){var t=[],a=document.createElement("canvas");a.width=2e3,a.height=200,a.style.display="inline";var n=a.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),t.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",e.dontUseFakeFontInCanvas?n.font="11pt Arial":n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),a.toDataURL&&t.push("canvas fp:"+a.toDataURL()),t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){r()?e(function(){function e(e){return o.clearColor(0,0,0,1),o.enable(o.DEPTH_TEST),o.depthFunc(o.LEQUAL),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"}var o;if(!(o=S()))return null;var s=[],t=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,t);var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);o.bufferData(o.ARRAY_BUFFER,a,o.STATIC_DRAW),t.itemSize=3,t.numItems=3;var n=o.createProgram(),r=o.createShader(o.VERTEX_SHADER);o.shaderSource(r,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),o.compileShader(r);var i=o.createShader(o.FRAGMENT_SHADER);o.shaderSource(i,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),o.compileShader(i),o.attachShader(n,r),o.attachShader(n,i),o.linkProgram(n),o.useProgram(n),n.vertexPosAttrib=o.getAttribLocation(n,"attrVertex"),n.offsetUniform=o.getUniformLocation(n,"uniformOffset"),o.enableVertexAttribArray(n.vertexPosArray),o.vertexAttribPointer(n.vertexPosAttrib,t.itemSize,o.FLOAT,!1,0,0),o.uniform2f(n.offsetUniform,1,1),o.drawArrays(o.TRIANGLE_STRIP,0,t.numItems);try{s.push(o.canvas.toDataURL())}catch(e){}s.push("extensions:"+(o.getSupportedExtensions()||[]).join(";")),s.push("webgl aliased line width range:"+e(o.getParameter(o.ALIASED_LINE_WIDTH_RANGE))),s.push("webgl aliased point size range:"+e(o.getParameter(o.ALIASED_POINT_SIZE_RANGE))),s.push("webgl alpha bits:"+o.getParameter(o.ALPHA_BITS)),s.push("webgl antialiasing:"+(o.getContextAttributes().antialias?"yes":"no")),s.push("webgl blue bits:"+o.getParameter(o.BLUE_BITS)),s.push("webgl depth bits:"+o.getParameter(o.DEPTH_BITS)),s.push("webgl green bits:"+o.getParameter(o.GREEN_BITS)),s.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var a=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===a&&(a=2),a}return null}(o)),s.push("webgl max combined texture image units:"+o.getParameter(o.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),s.push("webgl max cube map texture size:"+o.getParameter(o.MAX_CUBE_MAP_TEXTURE_SIZE)),s.push("webgl max fragment uniform vectors:"+o.getParameter(o.MAX_FRAGMENT_UNIFORM_VECTORS)),s.push("webgl max render buffer size:"+o.getParameter(o.MAX_RENDERBUFFER_SIZE)),s.push("webgl max texture image units:"+o.getParameter(o.MAX_TEXTURE_IMAGE_UNITS)),s.push("webgl max texture size:"+o.getParameter(o.MAX_TEXTURE_SIZE)),s.push("webgl max varying vectors:"+o.getParameter(o.MAX_VARYING_VECTORS)),s.push("webgl max vertex attribs:"+o.getParameter(o.MAX_VERTEX_ATTRIBS)),s.push("webgl max vertex texture image units:"+o.getParameter(o.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),s.push("webgl max vertex uniform vectors:"+o.getParameter(o.MAX_VERTEX_UNIFORM_VECTORS)),s.push("webgl max viewport dims:"+e(o.getParameter(o.MAX_VIEWPORT_DIMS))),s.push("webgl red bits:"+o.getParameter(o.RED_BITS)),s.push("webgl renderer:"+o.getParameter(o.RENDERER)),s.push("webgl shading language version:"+o.getParameter(o.SHADING_LANGUAGE_VERSION)),s.push("webgl stencil bits:"+o.getParameter(o.STENCIL_BITS)),s.push("webgl vendor:"+o.getParameter(o.VENDOR)),s.push("webgl version:"+o.getParameter(o.VERSION));try{var l=o.getExtension("WEBGL_debug_renderer_info");l&&(s.push("webgl unmasked vendor:"+o.getParameter(l.UNMASKED_VENDOR_WEBGL)),s.push("webgl unmasked renderer:"+o.getParameter(l.UNMASKED_RENDERER_WEBGL)))}catch(e){}return o.getShaderPrecisionFormat&&d(["FLOAT","INT"],function(i){d(["VERTEX","FRAGMENT"],function(r){d(["HIGH","MEDIUM","LOW"],function(n){d(["precision","rangeMin","rangeMax"],function(e){var t=o.getShaderPrecisionFormat(o[r+"_SHADER"],o[n+"_"+i])[e];"precision"!==e&&(e="precision "+e);var a=["webgl ",r.toLowerCase()," shader ",n.toLowerCase()," ",i.toLowerCase()," ",e,":",t].join("");s.push(a)})})})}),s}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){r()?e(function(){try{var e=S(),t=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div");e.innerHTML=" ";var t=!(e.className="adsbox");try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),a=navigator.oscpu,n=navigator.platform.toLowerCase();if(e=0<=t.indexOf("windows phone")?"Windows Phone":0<=t.indexOf("win")?"Windows":0<=t.indexOf("android")?"Android":0<=t.indexOf("linux")||0<=t.indexOf("cros")?"Linux":0<=t.indexOf("iphone")||0<=t.indexOf("ipad")?"iOS":0<=t.indexOf("mac")?"Mac":"Other",("ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&"Windows Phone"!=e&&"Android"!=e&&"iOS"!=e&&"Other"!=e)return!0;if(void 0!==a){if(0<=(a=a.toLowerCase()).indexOf("win")&&"Windows"!=e&&"Windows Phone"!=e)return!0;if(0<=a.indexOf("linux")&&"Linux"!=e&&"Android"!=e)return!0;if(0<=a.indexOf("mac")&&"Mac"!=e&&"iOS"!=e)return!0;if((-1===a.indexOf("win")&&-1===a.indexOf("linux")&&-1===a.indexOf("mac"))!=("Other"==e))return!0}return 0<=n.indexOf("win")&&"Windows"!=e&&"Windows Phone"!=e||(0<=n.indexOf("linux")||0<=n.indexOf("android")||0<=n.indexOf("pike"))&&"Linux"!=e&&"Android"!=e||(0<=n.indexOf("mac")||0<=n.indexOf("ipad")||0<=n.indexOf("ipod")||0<=n.indexOf("iphone"))&&"Mac"!=e&&"iOS"!=e||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"==e)||void 0===navigator.plugins&&"Windows"!=e&&"Windows Phone"!=e}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),a=navigator.productSub;if(("Chrome"==(e=0<=t.indexOf("firefox")?"Firefox":0<=t.indexOf("opera")||0<=t.indexOf("opr")?"Opera":0<=t.indexOf("chrome")?"Chrome":0<=t.indexOf("safari")?"Safari":0<=t.indexOf("trident")?"Internet Explorer":"Other")||"Safari"==e||"Opera"==e)&&"20030107"!==a)return!0;var n,r=eval.toString().length;if(37===r&&"Safari"!=e&&"Firefox"!=e&&"Other"!=e)return!0;if(39===r&&"Internet Explorer"!=e&&"Other"!=e)return!0;if(33===r&&"Chrome"!=e&&"Opera"!=e&&"Other"!=e)return!0;try{throw"a"}catch(e){try{e.toSource(),n=!0}catch(e){n=!1}}return n&&"Firefox"!=e&&"Other"!=e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var c=["monospace","sans-serif","serif"],u=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(u=u.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),u=(u=u.concat(t.fonts.userDefinedFonts)).filter(function(e,t){return u.indexOf(e)===t});function m(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e}function a(e){for(var t=!1,a=0;a<c.length;a++)if(t=e[a].offsetWidth!==i[c[a]]||e[a].offsetHeight!==o[c[a]])return t;return t}var n=document.getElementsByTagName("body")[0],r=document.createElement("div"),g=document.createElement("div"),i={},o={},s=function(){for(var e=[],t=0,a=c.length;t<a;t++){var n=m();n.style.fontFamily=c[t],r.appendChild(n),e.push(n)}return e}();n.appendChild(r);for(var l=0,d=c.length;l<d;l++)i[c[l]]=s[l].offsetWidth,o[c[l]]=s[l].offsetHeight;var f=function(){for(var e,t,a,n={},r=0,i=u.length;r<i;r++){for(var o=[],s=0,l=c.length;s<l;s++){var d=(e=u[r],t=c[s],a=void 0,(a=m()).style.fontFamily="'"+e+"',"+t,a);g.appendChild(d),o.push(d)}n[u[r]]=o}return n}();n.appendChild(g);for(var p=[],h=0,S=u.length;h<S;h++)a(f[u[h]])&&p.push(u[h]);n.removeChild(g),n.removeChild(r),e(p)},pauseBefore:!0},{key:"fontsFlash",getData:function(t,e){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?e.fonts.swfPath?void function(t,e){var a="___fp_swf_loaded";window[a]=function(e){t(e)};var n,r=e.fonts.swfContainerId;(n=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(n);var i={onReady:a};window.swfobject.embedSWF(e.fonts.swfPath,r,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})}(function(e){t(e)},e):t("missing options.fonts.swfPath"):t("flash not installed"):t("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(a,e){var t=e.audio;if(t.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return a(e.EXCLUDED);var n=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==n)return a(e.NOT_AVAILABLE);var r=new n(1,44100,44100),i=r.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,r.currentTime);var o=r.createDynamicsCompressor();d([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],r.currentTime)}),i.connect(o),o.connect(r.destination),i.start(0),r.startRendering();var s=setTimeout(function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),r.oncomplete=function(){},r=null,a("audioTimeout")},t.timeout);r.oncomplete=function(e){var t;try{clearTimeout(s),t=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce(function(e,t){return e+Math.abs(t)},0).toString(),i.disconnect(),o.disconnect()}catch(e){return void a(e)}a(t)}}},{key:"enumerateDevices",getData:function(t,e){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return t(e.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then(function(e){t(e.map(function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label}))}).catch(function(e){t(e)})}}];return c.get=function(a,n){(function(e,t){var a,n;if(null!=t)for(n in t)null==(a=t[n])||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=a)})(a=n?a||{}:(n=a,{}),e),a.components=a.extraComponents.concat(t);var r={data:[],addPreprocessedComponent:function(e,t){"function"==typeof a.preprocessor&&(t=a.preprocessor(e,t)),r.data.push({key:e,value:t})}},i=-1,o=function(e){if((i+=1)>=a.components.length)n(r.data);else{var t=a.components[i];if(a.excludes[t.key])o(!1);else{if(!e&&t.pauseBefore)return i-=1,void setTimeout(function(){o(!0)},1);try{t.getData(function(e){r.addPreprocessedComponent(t.key,e),o(!1)},a)}catch(e){r.addPreprocessedComponent(t.key,String(e)),o(!1)}}}};o(!1)},c.getPromise=function(a){return new Promise(function(e,t){c.get(a,e)})},c.getV18=function(i,o){return null==o&&(o=i,i={}),c.get(i,function(e){for(var t=[],a=0;a<e.length;a++){var n=e[a];if(n.value===(i.NOT_AVAILABLE||"not available"))t.push({key:n.key,value:"unknown"});else if("plugins"===n.key)t.push({key:"plugins",value:l(n.value,function(e){var t=l(e[2],function(e){return e.join?e.join("~"):e}).join(",");return[e[0],e[1],t].join("::")})});else if(-1!==["canvas","webgl"].indexOf(n.key))t.push({key:n.key,value:n.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(n.key)){if(!n.value)continue;t.push({key:n.key,value:1})}else n.value?t.push(n.value.join?{key:n.key,value:n.value.join(";")}:n):t.push({key:n.key,value:n.value})}var r=s(l(t,function(e){return e.value}).join("~~~"),31);o(r,t)})},c.x64hash128=s,c.VERSION="2.1.0",c});
|
1 |
+
var SlimStat={base64_key_str:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-",fingerprint_hash:"",utf8_encode:function(e){var t,a,n="";for(e=e.replace(/\r\n/g,"\n"),t=0;t<e.length;t++)(a=e.charCodeAt(t))<128?n+=String.fromCharCode(a):(127<a&&a<2048?n+=String.fromCharCode(a>>6|192):(n+=String.fromCharCode(a>>12|224),n+=String.fromCharCode(a>>6&63|128)),n+=String.fromCharCode(63&a|128));return n},base64_encode:function(e){var t,a,n,r,i,o,s,l="",d=0;for(e=SlimStat.utf8_encode(e);d<e.length;)r=(t=e.charCodeAt(d++))>>2,i=(3&t)<<4|(a=e.charCodeAt(d++))>>4,o=(15&a)<<2|(n=e.charCodeAt(d++))>>6,s=63&n,isNaN(a)?o=s=64:isNaN(n)&&(s=64),l=l+SlimStat.base64_key_str.charAt(r)+SlimStat.base64_key_str.charAt(i)+SlimStat.base64_key_str.charAt(o)+SlimStat.base64_key_str.charAt(s);return l},get_page_performance:function(){return slim_performance=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},void 0===slim_performance.timing?0:slim_performance.timing.loadEventEnd-slim_performance.timing.responseEnd},get_server_latency:function(){return slim_performance=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},void 0===slim_performance.timing?0:slim_performance.timing.responseEnd-slim_performance.timing.connectEnd},optout:function(e,t){e.preventDefault(),"string"==typeof SlimStatParams.baseurl&&0!=SlimStatParams.baseurl.length||(SlimStatParams.baseurl="/"),expiration=new Date,expiration.setTime(expiration.getTime()+31536e6),document.cookie="slimstat_optout_tracking="+t+";path="+SlimStatParams.baseurl+";expires="+expiration.toGMTString(),e.target.parentNode.parentNode.removeChild(e.target.parentNode)},show_optout_message:function(){opt_out_cookies=SlimStat.empty(SlimStatParams.oc)?[]:SlimStatParams.oc.split(","),Array.isArray(opt_out_cookies)||(opt_out_cookies=[]),show_optout=0<opt_out_cookies.length;for(var e=0;e<opt_out_cookies.length;e++)""!=SlimStat.get_cookie(opt_out_cookies[e])&&(show_optout=!1);if(show_optout){try{xhr=new XMLHttpRequest}catch(e){return!1}if("object"==typeof xhr)return xhr.open("POST",SlimStatParams.ajaxurl,!0),xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.withCredentials=!0,xhr.send("action=slimstat_optout_html"),xhr.onreadystatechange=function(){4==xhr.readyState&&document.body.insertAdjacentHTML("beforeend",xhr.responseText)},!0}},add_event:function(e,t,a){e&&e.addEventListener?e.addEventListener(t,a,!1):e&&e.attachEvent?(e["e"+t+a]=a,e[t+a]=function(){e["e"+t+a](window.event)},e.attachEvent("on"+t,e[t+a])):e["on"+t]=e["e"+t+a]},in_array:function(e,t){for(var a=0;a<t.length;a++)if(-1!=e.indexOf(t[a].trim()))return!0;return!1},empty:function(e){return void 0===e||null==e||("number"==typeof e?0==e:"boolean"==typeof e?!e:"string"!=typeof e&&"object"!=typeof e||0==e.length)},get_cookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return 2==t.length?t.pop().split(";").shift():""},send_to_server:function(e,t){if(SlimStat.empty(SlimStatParams.ajaxurl)||SlimStat.empty(e))return!1;if(void 0===t&&(t=!0),t&&navigator.sendBeacon)navigator.sendBeacon(SlimStatParams.ajaxurl,e);else{try{xhr=new XMLHttpRequest}catch(e){return!1}if("object"==typeof xhr)return xhr.open("POST",SlimStatParams.ajaxurl,!0),xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.withCredentials=!0,xhr.send(e),xhr.onreadystatechange=function(){4==xhr.readyState&&(parsed_id=parseInt(xhr.responseText),!isNaN(parsed_id)&&0<parsed_id&&(SlimStatParams.id=xhr.responseText))},!0}return!1},ss_track:function(e,t){if(SlimStat.empty(SlimStatParams.id)||isNaN(parseInt(SlimStatParams.id))||parseInt(SlimStatParams.id)<=0)return!1;if(note_array=[],SlimStat.empty(e)||note_array.push(e),void 0===t&&(t=!0),SlimStat.empty(window.event))return!1;if(SlimStat.empty(window.event.target)){if(SlimStat.empty(window.event.srcElement))return!1;target_node=window.event.srcElement}else target_node=window.event.target;var a="",n="";if(SlimStat.empty(window.event.type)||"focus"==window.event.type)return!1;switch(note_array.push("Type:"+window.event.type),"keypress"==window.event.type?note_array.push("Keypress:"+String.fromCharCode(parseInt(window.event.which))):"click"==window.event.type&¬e_array.push("Button:"+(1==window.event.which?"left":2==window.event.which?"middle":"right")),target_node.nodeName.toLowerCase()){case"input":case"button":for(parent_node=target_node.parentNode;!SlimStat.empty(parent_node)&&!SlimStat.empty(parent_node.nodeName)&&"form"!=parent_node.nodeName.toLowerCase();)parent_node=parent_node.parentNode;SlimStat.empty(parent_node)||SlimStat.empty(parent_node.action)||(a=parent_node.action);break;default:if(SlimStat.empty(target_node.href)||"string"!=typeof target_node.href){for(parent_node=target_node.parentNode;!SlimStat.empty(parent_node)&&!SlimStat.empty(parent_node.nodeName)&&SlimStat.empty(parent_node.href);)parent_node=parent_node.parentNode;SlimStat.empty(parent_node)||(SlimStat.empty(parent_node.hash)||parent_node.hostname!=location.hostname?SlimStat.empty(parent_node.href)||(a=parent_node.href):a=parent_node.hash)}else a=SlimStat.empty(target_node.hash)?target_node.href:target_node.hash}if("function"==typeof target_node.getAttribute&&(SlimStat.empty(target_node.getAttribute("title"))||note_array.push("Title:"+target_node.getAttribute("title")),SlimStat.empty(target_node.getAttribute("id"))||note_array.push("ID:"+target_node.getAttribute("id"))),do_not_track=SlimStat.empty(SlimStatParams.dnt)?[]:SlimStatParams.dnt.split(","),!SlimStat.empty(a)){if(!SlimStat.empty(do_not_track)&&SlimStat.in_array(a,do_not_track))return!1;n="&fh="+SlimStat.fingerprint_hash}return target_classes=SlimStat.empty(target_node.className)||"string"!=typeof target_node.className?[]:target_node.className.split(" "),!!(SlimStat.empty(do_not_track)||SlimStat.empty(target_classes)||0==target_classes.filter(function(e){return-1!==do_not_track.indexOf(e)}).length&&(SlimStat.empty(target_node.attributes)||SlimStat.empty(target_node.attributes.rel)||SlimStat.empty(target_node.attributes.rel.value)||!SlimStat.in_array(target_node.attributes.rel.value,do_not_track)))&&(position="0,0",SlimStat.empty(window.event.pageX)||SlimStat.empty(window.event.pageY)?SlimStat.empty(window.event.clientX)||SlimStat.empty(document.body.scrollLeft)||SlimStat.empty(document.documentElement.scrollLeft)||(position=window.event.clientX+document.body.scrollLeft+document.documentElement.scrollLeft+","+window.event.clientY+document.body.scrollTop+document.documentElement.scrollTop):position=window.event.pageX+","+window.event.pageY,SlimStat.send_to_server("action=slimtrack&id="+SlimStatParams.id+"&res="+SlimStat.base64_encode(a)+"&pos="+position+"&no="+SlimStat.base64_encode(note_array.join(","))+n,t),!0)},get_slimstat_data:function(e){return screenres=SlimStat.get_component_value(e,"screenResolution",[0,0]),"&sw="+screenres[0]+"&sh="+screenres[1]+"&bw="+window.innerWidth+"&bh="+window.innerHeight+"&sl="+SlimStat.get_server_latency()+"&pp="+SlimStat.get_page_performance()+"&fh="+SlimStat.fingerprint_hash+"&tz="+SlimStat.get_component_value(e,"timezoneOffset",0)},get_component_value:function(e,t,a){for(x=0;x<e.length;x++)if(e[x].key===t)return e[x].value;return a},init_fingerprint_hash:function(e){values=e.map(function(e){return e.value}),SlimStat.fingerprint_hash=Fingerprint2.x64hash128(values.join(""),31)}};"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),SlimStat.add_event(window,"load",function(){if(slimstat_data="",use_beacon=!0,!SlimStat.empty(SlimStatParams.id)&&0<parseInt(SlimStatParams.id)?slimstat_data="action=slimtrack&id="+SlimStatParams.id:(slimstat_data="action=slimtrack&ref="+SlimStat.base64_encode(document.referrer)+"&res="+SlimStat.base64_encode(window.location.href),SlimStat.empty(SlimStatParams.ci)||(slimstat_data+="&ci="+SlimStatParams.ci),use_beacon=!1),0<slimstat_data.length){window.requestIdleCallback?requestIdleCallback(function(){Fingerprint2.get(function(e){SlimStat.init_fingerprint_hash(e),SlimStat.send_to_server(slimstat_data+SlimStat.get_slimstat_data(e),use_beacon),SlimStat.show_optout_message()})}):setTimeout(function(){Fingerprint2.get(function(e){SlimStat.init_fingerprint_hash(e),SlimStat.send_to_server(slimstat_data+SlimStat.get_slimstat_data(e),use_beacon),SlimStat.show_optout_message()})},250)}all_clickable=document.querySelectorAll("a,button,input,area");for(var e=0;e<all_clickable.length;e++)SlimStat.add_event(all_clickable[e],"click",function(e){SlimStat.ss_track()})}),SlimStat.add_event(window,"beforeunload",function(){!SlimStat.empty(document.activeElement)&&!SlimStat.empty(document.activeElement.nodeName)&&"body"==document.activeElement.nodeName.toLowerCase()&&!SlimStat.empty(SlimStatParams.id)&&0<parseInt(SlimStatParams.id)&&SlimStat.send_to_server("action=slimtrack&id="+SlimStatParams.id,!0)}),function(e,t,a){"use strict";"undefined"!=typeof window&&"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&module.exports?module.exports=a():t.exports?t.exports=a():t.Fingerprint2=a()}(0,this,function(){"use strict";function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var a=[0,0,0,0];return a[3]+=e[3]+t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]+t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]+t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]+t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]}function m(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var a=[0,0,0,0];return a[3]+=e[3]*t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]*t[3],a[1]+=a[2]>>>16,a[2]&=65535,a[2]+=e[3]*t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]*t[3],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[2]*t[2],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[3]*t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]}function f(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function g(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function p(e,t){return[e[0]^t[0],e[1]^t[1]]}function h(e){return e=p(e,[0,e[0]>>>1]),e=m(e,[4283543511,3981806797]),e=p(e,[0,e[0]>>>1]),e=m(e,[3301882366,444984403]),p(e,[0,e[0]>>>1])}function s(e,t){t=t||0;for(var a=(e=e||"").length%16,n=e.length-a,r=[0,t],i=[0,t],o=[0,0],s=[0,0],l=[2277735313,289559509],d=[1291169091,658871167],c=0;c<n;c+=16)o=[255&e.charCodeAt(c+4)|(255&e.charCodeAt(c+5))<<8|(255&e.charCodeAt(c+6))<<16|(255&e.charCodeAt(c+7))<<24,255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24],s=[255&e.charCodeAt(c+12)|(255&e.charCodeAt(c+13))<<8|(255&e.charCodeAt(c+14))<<16|(255&e.charCodeAt(c+15))<<24,255&e.charCodeAt(c+8)|(255&e.charCodeAt(c+9))<<8|(255&e.charCodeAt(c+10))<<16|(255&e.charCodeAt(c+11))<<24],o=m(o,l),o=f(o,31),o=m(o,d),r=p(r,o),r=f(r,27),r=u(r,i),r=u(m(r,[0,5]),[0,1390208809]),s=m(s,d),s=f(s,33),s=m(s,l),i=p(i,s),i=f(i,31),i=u(i,r),i=u(m(i,[0,5]),[0,944331445]);switch(o=[0,0],s=[0,0],a){case 15:s=p(s,g([0,e.charCodeAt(c+14)],48));case 14:s=p(s,g([0,e.charCodeAt(c+13)],40));case 13:s=p(s,g([0,e.charCodeAt(c+12)],32));case 12:s=p(s,g([0,e.charCodeAt(c+11)],24));case 11:s=p(s,g([0,e.charCodeAt(c+10)],16));case 10:s=p(s,g([0,e.charCodeAt(c+9)],8));case 9:s=p(s,[0,e.charCodeAt(c+8)]),s=m(s,d),s=f(s,33),s=m(s,l),i=p(i,s);case 8:o=p(o,g([0,e.charCodeAt(c+7)],56));case 7:o=p(o,g([0,e.charCodeAt(c+6)],48));case 6:o=p(o,g([0,e.charCodeAt(c+5)],40));case 5:o=p(o,g([0,e.charCodeAt(c+4)],32));case 4:o=p(o,g([0,e.charCodeAt(c+3)],24));case 3:o=p(o,g([0,e.charCodeAt(c+2)],16));case 2:o=p(o,g([0,e.charCodeAt(c+1)],8));case 1:o=p(o,[0,e.charCodeAt(c)]),o=m(o,l),o=f(o,31),o=m(o,d),r=p(r,o)}return r=p(r,[0,e.length]),i=p(i,[0,e.length]),r=u(r,i),i=u(i,r),r=h(r),i=h(i),r=u(r,i),i=u(i,r),("00000000"+(r[0]>>>0).toString(16)).slice(-8)+("00000000"+(r[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}function d(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var a=0,n=e.length;a<n;a++)t(e[a],a,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}function l(e,n){var r=[];return null==e?r:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(d(e,function(e,t,a){r.push(n(e,t,a))}),r)}function a(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],a=0,n=navigator.plugins.length;a<n;a++)navigator.plugins[a]&&t.push(navigator.plugins[a]);return i(e)&&(t=t.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),l(t,function(e){var t=l(e,function(e){return[e.type,e.suffixes]});return[e.name,e.description,t]})}function n(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}function r(){if(!n())return!1;var e=S();return!!window.WebGLRenderingContext&&!!e}function c(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")}var e={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},i=function(e){for(var t=!1,a=0,n=e.plugins.sortPluginsFor.length;a<n;a++){var r=e.plugins.sortPluginsFor[a];if(navigator.userAgent.match(r)){t=!0;break}}return t},S=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t=t||null},t=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(t){try{return!!window.sessionStorage}catch(e){return t.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(t){try{return!!window.localStorage}catch(e){return t.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(t){try{return!!window.indexedDB}catch(e){return t.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(function(e){return navigator.cpuClass||e.NOT_AVAILABLE}(t))}},{key:"platform",getData:function(e,t){e(function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t.plugins.excludeIE?e(t.EXCLUDED):e(function(t){var e=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?e=l(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],function(e){try{return new window.ActiveXObject(e),e}catch(e){return t.ERROR}}):e.push(t.NOT_AVAILABLE),navigator.plugins&&(e=e.concat(a(t))),e}(t)):e(a(t))}},{key:"canvas",getData:function(e,t){n()?e(function(e){var t=[],a=document.createElement("canvas");a.width=2e3,a.height=200,a.style.display="inline";var n=a.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),t.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",e.dontUseFakeFontInCanvas?n.font="11pt Arial":n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),a.toDataURL&&t.push("canvas fp:"+a.toDataURL()),t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){r()?e(function(){function e(e){return o.clearColor(0,0,0,1),o.enable(o.DEPTH_TEST),o.depthFunc(o.LEQUAL),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"}var o;if(!(o=S()))return null;var s=[],t=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,t);var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);o.bufferData(o.ARRAY_BUFFER,a,o.STATIC_DRAW),t.itemSize=3,t.numItems=3;var n=o.createProgram(),r=o.createShader(o.VERTEX_SHADER);o.shaderSource(r,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),o.compileShader(r);var i=o.createShader(o.FRAGMENT_SHADER);o.shaderSource(i,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),o.compileShader(i),o.attachShader(n,r),o.attachShader(n,i),o.linkProgram(n),o.useProgram(n),n.vertexPosAttrib=o.getAttribLocation(n,"attrVertex"),n.offsetUniform=o.getUniformLocation(n,"uniformOffset"),o.enableVertexAttribArray(n.vertexPosArray),o.vertexAttribPointer(n.vertexPosAttrib,t.itemSize,o.FLOAT,!1,0,0),o.uniform2f(n.offsetUniform,1,1),o.drawArrays(o.TRIANGLE_STRIP,0,t.numItems);try{s.push(o.canvas.toDataURL())}catch(e){}s.push("extensions:"+(o.getSupportedExtensions()||[]).join(";")),s.push("webgl aliased line width range:"+e(o.getParameter(o.ALIASED_LINE_WIDTH_RANGE))),s.push("webgl aliased point size range:"+e(o.getParameter(o.ALIASED_POINT_SIZE_RANGE))),s.push("webgl alpha bits:"+o.getParameter(o.ALPHA_BITS)),s.push("webgl antialiasing:"+(o.getContextAttributes().antialias?"yes":"no")),s.push("webgl blue bits:"+o.getParameter(o.BLUE_BITS)),s.push("webgl depth bits:"+o.getParameter(o.DEPTH_BITS)),s.push("webgl green bits:"+o.getParameter(o.GREEN_BITS)),s.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var a=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===a&&(a=2),a}return null}(o)),s.push("webgl max combined texture image units:"+o.getParameter(o.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),s.push("webgl max cube map texture size:"+o.getParameter(o.MAX_CUBE_MAP_TEXTURE_SIZE)),s.push("webgl max fragment uniform vectors:"+o.getParameter(o.MAX_FRAGMENT_UNIFORM_VECTORS)),s.push("webgl max render buffer size:"+o.getParameter(o.MAX_RENDERBUFFER_SIZE)),s.push("webgl max texture image units:"+o.getParameter(o.MAX_TEXTURE_IMAGE_UNITS)),s.push("webgl max texture size:"+o.getParameter(o.MAX_TEXTURE_SIZE)),s.push("webgl max varying vectors:"+o.getParameter(o.MAX_VARYING_VECTORS)),s.push("webgl max vertex attribs:"+o.getParameter(o.MAX_VERTEX_ATTRIBS)),s.push("webgl max vertex texture image units:"+o.getParameter(o.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),s.push("webgl max vertex uniform vectors:"+o.getParameter(o.MAX_VERTEX_UNIFORM_VECTORS)),s.push("webgl max viewport dims:"+e(o.getParameter(o.MAX_VIEWPORT_DIMS))),s.push("webgl red bits:"+o.getParameter(o.RED_BITS)),s.push("webgl renderer:"+o.getParameter(o.RENDERER)),s.push("webgl shading language version:"+o.getParameter(o.SHADING_LANGUAGE_VERSION)),s.push("webgl stencil bits:"+o.getParameter(o.STENCIL_BITS)),s.push("webgl vendor:"+o.getParameter(o.VENDOR)),s.push("webgl version:"+o.getParameter(o.VERSION));try{var l=o.getExtension("WEBGL_debug_renderer_info");l&&(s.push("webgl unmasked vendor:"+o.getParameter(l.UNMASKED_VENDOR_WEBGL)),s.push("webgl unmasked renderer:"+o.getParameter(l.UNMASKED_RENDERER_WEBGL)))}catch(e){}return o.getShaderPrecisionFormat&&d(["FLOAT","INT"],function(i){d(["VERTEX","FRAGMENT"],function(r){d(["HIGH","MEDIUM","LOW"],function(n){d(["precision","rangeMin","rangeMax"],function(e){var t=o.getShaderPrecisionFormat(o[r+"_SHADER"],o[n+"_"+i])[e];"precision"!==e&&(e="precision "+e);var a=["webgl ",r.toLowerCase()," shader ",n.toLowerCase()," ",i.toLowerCase()," ",e,":",t].join("");s.push(a)})})})}),s}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){r()?e(function(){try{var e=S(),t=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div");e.innerHTML=" ";var t=!(e.className="adsbox");try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),a=navigator.oscpu,n=navigator.platform.toLowerCase();if(e=0<=t.indexOf("windows phone")?"Windows Phone":0<=t.indexOf("win")?"Windows":0<=t.indexOf("android")?"Android":0<=t.indexOf("linux")||0<=t.indexOf("cros")?"Linux":0<=t.indexOf("iphone")||0<=t.indexOf("ipad")?"iOS":0<=t.indexOf("mac")?"Mac":"Other",("ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&"Windows Phone"!=e&&"Android"!=e&&"iOS"!=e&&"Other"!=e)return!0;if(void 0!==a){if(0<=(a=a.toLowerCase()).indexOf("win")&&"Windows"!=e&&"Windows Phone"!=e)return!0;if(0<=a.indexOf("linux")&&"Linux"!=e&&"Android"!=e)return!0;if(0<=a.indexOf("mac")&&"Mac"!=e&&"iOS"!=e)return!0;if((-1===a.indexOf("win")&&-1===a.indexOf("linux")&&-1===a.indexOf("mac"))!=("Other"==e))return!0}return 0<=n.indexOf("win")&&"Windows"!=e&&"Windows Phone"!=e||(0<=n.indexOf("linux")||0<=n.indexOf("android")||0<=n.indexOf("pike"))&&"Linux"!=e&&"Android"!=e||(0<=n.indexOf("mac")||0<=n.indexOf("ipad")||0<=n.indexOf("ipod")||0<=n.indexOf("iphone"))&&"Mac"!=e&&"iOS"!=e||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"==e)||void 0===navigator.plugins&&"Windows"!=e&&"Windows Phone"!=e}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),a=navigator.productSub;if(("Chrome"==(e=0<=t.indexOf("firefox")?"Firefox":0<=t.indexOf("opera")||0<=t.indexOf("opr")?"Opera":0<=t.indexOf("chrome")?"Chrome":0<=t.indexOf("safari")?"Safari":0<=t.indexOf("trident")?"Internet Explorer":"Other")||"Safari"==e||"Opera"==e)&&"20030107"!==a)return!0;var n,r=eval.toString().length;if(37===r&&"Safari"!=e&&"Firefox"!=e&&"Other"!=e)return!0;if(39===r&&"Internet Explorer"!=e&&"Other"!=e)return!0;if(33===r&&"Chrome"!=e&&"Opera"!=e&&"Other"!=e)return!0;try{throw"a"}catch(e){try{e.toSource(),n=!0}catch(e){n=!1}}return n&&"Firefox"!=e&&"Other"!=e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var c=["monospace","sans-serif","serif"],u=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(u=u.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),u=(u=u.concat(t.fonts.userDefinedFonts)).filter(function(e,t){return u.indexOf(e)===t});function m(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e}function a(e){for(var t=!1,a=0;a<c.length;a++)if(t=e[a].offsetWidth!==i[c[a]]||e[a].offsetHeight!==o[c[a]])return t;return t}var n=document.getElementsByTagName("body")[0],r=document.createElement("div"),f=document.createElement("div"),i={},o={},s=function(){for(var e=[],t=0,a=c.length;t<a;t++){var n=m();n.style.fontFamily=c[t],r.appendChild(n),e.push(n)}return e}();n.appendChild(r);for(var l=0,d=c.length;l<d;l++)i[c[l]]=s[l].offsetWidth,o[c[l]]=s[l].offsetHeight;var g=function(){for(var e,t,a,n={},r=0,i=u.length;r<i;r++){for(var o=[],s=0,l=c.length;s<l;s++){var d=(e=u[r],t=c[s],a=void 0,(a=m()).style.fontFamily="'"+e+"',"+t,a);f.appendChild(d),o.push(d)}n[u[r]]=o}return n}();n.appendChild(f);for(var p=[],h=0,S=u.length;h<S;h++)a(g[u[h]])&&p.push(u[h]);n.removeChild(f),n.removeChild(r),e(p)},pauseBefore:!0},{key:"fontsFlash",getData:function(t,e){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?e.fonts.swfPath?void function(t,e){var a="___fp_swf_loaded";window[a]=function(e){t(e)};var n,r=e.fonts.swfContainerId;(n=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(n);var i={onReady:a};window.swfobject.embedSWF(e.fonts.swfPath,r,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})}(function(e){t(e)},e):t("missing options.fonts.swfPath"):t("flash not installed"):t("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(a,e){var t=e.audio;if(t.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return a(e.EXCLUDED);var n=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==n)return a(e.NOT_AVAILABLE);var r=new n(1,44100,44100),i=r.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,r.currentTime);var o=r.createDynamicsCompressor();d([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],r.currentTime)}),i.connect(o),o.connect(r.destination),i.start(0),r.startRendering();var s=setTimeout(function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),r.oncomplete=function(){},r=null,a("audioTimeout")},t.timeout);r.oncomplete=function(e){var t;try{clearTimeout(s),t=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce(function(e,t){return e+Math.abs(t)},0).toString(),i.disconnect(),o.disconnect()}catch(e){return void a(e)}a(t)}}},{key:"enumerateDevices",getData:function(t,e){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return t(e.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then(function(e){t(e.map(function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label}))}).catch(function(e){t(e)})}}];return c.get=function(a,n){(function(e,t){var a,n;if(null!=t)for(n in t)null==(a=t[n])||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=a)})(a=n?a||{}:(n=a,{}),e),a.components=a.extraComponents.concat(t);var r={data:[],addPreprocessedComponent:function(e,t){"function"==typeof a.preprocessor&&(t=a.preprocessor(e,t)),r.data.push({key:e,value:t})}},i=-1,o=function(e){if((i+=1)>=a.components.length)n(r.data);else{var t=a.components[i];if(a.excludes[t.key])o(!1);else{if(!e&&t.pauseBefore)return i-=1,void setTimeout(function(){o(!0)},1);try{t.getData(function(e){r.addPreprocessedComponent(t.key,e),o(!1)},a)}catch(e){r.addPreprocessedComponent(t.key,String(e)),o(!1)}}}};o(!1)},c.getPromise=function(a){return new Promise(function(e,t){c.get(a,e)})},c.getV18=function(i,o){return null==o&&(o=i,i={}),c.get(i,function(e){for(var t=[],a=0;a<e.length;a++){var n=e[a];if(n.value===(i.NOT_AVAILABLE||"not available"))t.push({key:n.key,value:"unknown"});else if("plugins"===n.key)t.push({key:"plugins",value:l(n.value,function(e){var t=l(e[2],function(e){return e.join?e.join("~"):e}).join(",");return[e[0],e[1],t].join("::")})});else if(-1!==["canvas","webgl"].indexOf(n.key))t.push({key:n.key,value:n.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(n.key)){if(!n.value)continue;t.push({key:n.key,value:1})}else n.value?t.push(n.value.join?{key:n.key,value:n.value.join(";")}:n):t.push({key:n.key,value:n.value})}var r=s(l(t,function(e){return e.value}).join("~~~"),31);o(r,t)})},c.x64hash128=s,c.VERSION="2.1.0",c});
|
wp-slimstat.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Slimstat Analytics
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
-
Version: 4.8.8
|
7 |
Author: Jason Crouse
|
8 |
Author URI: https://www.wp-slimstat.com/
|
9 |
Text Domain: wp-slimstat
|
@@ -15,7 +15,7 @@ if ( !empty( wp_slimstat::$settings ) ) {
|
|
15 |
}
|
16 |
|
17 |
class wp_slimstat {
|
18 |
-
public static $version = '4.8.8';
|
19 |
public static $settings = array();
|
20 |
|
21 |
public static $wpdb = '';
|
@@ -209,8 +209,8 @@ class wp_slimstat {
|
|
209 |
}
|
210 |
|
211 |
// Is this a download? If it is, add a new record to the database
|
212 |
-
if ( in_array( pathinfo( $
|
213 |
-
self::$stat[ 'resource' ] = $parsed_resource[ 'path' ];
|
214 |
self::$stat[ 'content_type' ] = 'download';
|
215 |
|
216 |
if ( !empty( self::$data_js[ 'fh' ] ) ) {
|
@@ -844,7 +844,7 @@ class wp_slimstat {
|
|
844 |
break;
|
845 |
|
846 |
case 'hostname':
|
847 |
-
$output[ $result_idx ][ $a_column ] .= gethostbyaddr( $a_result[ 'ip' ] );
|
848 |
break;
|
849 |
|
850 |
case 'language':
|
@@ -1365,6 +1365,21 @@ class wp_slimstat {
|
|
1365 |
return $_links;
|
1366 |
}
|
1367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1368 |
/**
|
1369 |
* Registers the Slimstat widget
|
1370 |
*/
|
@@ -1403,6 +1418,8 @@ class wp_slimstat {
|
|
1403 |
self::$stat[ 'content_type' ] = 'redirect:' . intval( $_status );
|
1404 |
self::_update_row( self::$stat );
|
1405 |
}
|
|
|
|
|
1406 |
}
|
1407 |
// end update_content_type
|
1408 |
|
@@ -1544,9 +1561,11 @@ class wp_slimstat {
|
|
1544 |
}
|
1545 |
|
1546 |
foreach ( $search_engines[ $sek ][ 'params' ] as $a_param ) {
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
|
|
|
|
1550 |
}
|
1551 |
}
|
1552 |
|
@@ -1726,7 +1745,7 @@ class wp_slimstat {
|
|
1726 |
if ( !empty( $_data_js[ 'pp' ] ) && $_data_js[ 'pp' ] > 0 && $_data_js[ 'pp' ] < 60000 ) {
|
1727 |
$_stat[ 'page_performance' ] = intval( $_data_js[ 'pp' ] );
|
1728 |
}
|
1729 |
-
if ( !empty( $_data_js[ 'fh' ] ) ) {
|
1730 |
$_stat[ 'fingerprint' ] = sanitize_text_field( $_data_js[ 'fh' ] );
|
1731 |
}
|
1732 |
if ( !empty( $_data_js[ 'tz' ] ) ) {
|
@@ -1848,6 +1867,11 @@ class wp_slimstat {
|
|
1848 |
* Determines if this is a new visitor, meaning that we've never seen this fingerprint before
|
1849 |
*/
|
1850 |
protected static function _is_new_visitor( $_fingerprint = '' ) {
|
|
|
|
|
|
|
|
|
|
|
1851 |
$count_fingerprint = self::$wpdb->get_var( self::$wpdb->prepare( "
|
1852 |
SELECT COUNT( id )
|
1853 |
FROM {$GLOBALS[ 'wpdb' ]->prefix}slim_stats
|
@@ -1910,7 +1934,6 @@ class wp_slimstat {
|
|
1910 |
// end of class declaration
|
1911 |
|
1912 |
class slimstat_widget extends WP_Widget {
|
1913 |
-
|
1914 |
/**
|
1915 |
* Sets up the widgets name etc
|
1916 |
*/
|
3 |
Plugin Name: Slimstat Analytics
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
+
Version: 4.8.8.1
|
7 |
Author: Jason Crouse
|
8 |
Author URI: https://www.wp-slimstat.com/
|
9 |
Text Domain: wp-slimstat
|
15 |
}
|
16 |
|
17 |
class wp_slimstat {
|
18 |
+
public static $version = '4.8.8.1';
|
19 |
public static $settings = array();
|
20 |
|
21 |
public static $wpdb = '';
|
209 |
}
|
210 |
|
211 |
// Is this a download? If it is, add a new record to the database
|
212 |
+
if ( !empty( $parsed_resource[ 'path' ] ) && in_array( pathinfo( $parsed_resource[ 'path' ], PATHINFO_EXTENSION ), self::string_to_array( self::$settings[ 'extensions_to_track' ] ) ) ) {
|
213 |
+
self::$stat[ 'resource' ] = $parsed_resource[ 'path' ] . ( !empty( $parsed_resource[ 'query' ] ) ? '?' . $parsed_resource[ 'query' ] : '' );
|
214 |
self::$stat[ 'content_type' ] = 'download';
|
215 |
|
216 |
if ( !empty( self::$data_js[ 'fh' ] ) ) {
|
844 |
break;
|
845 |
|
846 |
case 'hostname':
|
847 |
+
$output[ $result_idx ][ $a_column ] .= self::gethostbyaddr( $a_result[ 'ip' ] );
|
848 |
break;
|
849 |
|
850 |
case 'language':
|
1365 |
return $_links;
|
1366 |
}
|
1367 |
|
1368 |
+
/**
|
1369 |
+
* Resolves a given IP address, by keeping a local cache of hostnames to avoid multiple requests to the DNS server
|
1370 |
+
*/
|
1371 |
+
public static function gethostbyaddr( $_ip = '' ) {
|
1372 |
+
$hostname = get_transient( 'slimstat_' . $_ip );
|
1373 |
+
|
1374 |
+
if ( empty( $hostname ) ) {
|
1375 |
+
$hostname = gethostbyaddr( $_ip );
|
1376 |
+
set_transient( 'slimstat_' . $_ip, $hostname, HOUR_IN_SECONDS );
|
1377 |
+
}
|
1378 |
+
|
1379 |
+
return $hostname;
|
1380 |
+
}
|
1381 |
+
// end gethostbyaddr
|
1382 |
+
|
1383 |
/**
|
1384 |
* Registers the Slimstat widget
|
1385 |
*/
|
1418 |
self::$stat[ 'content_type' ] = 'redirect:' . intval( $_status );
|
1419 |
self::_update_row( self::$stat );
|
1420 |
}
|
1421 |
+
|
1422 |
+
return $_status;
|
1423 |
}
|
1424 |
// end update_content_type
|
1425 |
|
1561 |
}
|
1562 |
|
1563 |
foreach ( $search_engines[ $sek ][ 'params' ] as $a_param ) {
|
1564 |
+
if ( !empty( $parsed_url[ 'query' ] ) ) {
|
1565 |
+
$searchterms = self::_get_param_from_query_string( $parsed_url[ 'query' ], $a_param );
|
1566 |
+
if ( !empty( $searchterms ) ) {
|
1567 |
+
break;
|
1568 |
+
}
|
1569 |
}
|
1570 |
}
|
1571 |
|
1745 |
if ( !empty( $_data_js[ 'pp' ] ) && $_data_js[ 'pp' ] > 0 && $_data_js[ 'pp' ] < 60000 ) {
|
1746 |
$_stat[ 'page_performance' ] = intval( $_data_js[ 'pp' ] );
|
1747 |
}
|
1748 |
+
if ( !empty( $_data_js[ 'fh' ] ) && self::$settings[ 'anonymize_ip' ] != 'on' ) {
|
1749 |
$_stat[ 'fingerprint' ] = sanitize_text_field( $_data_js[ 'fh' ] );
|
1750 |
}
|
1751 |
if ( !empty( $_data_js[ 'tz' ] ) ) {
|
1867 |
* Determines if this is a new visitor, meaning that we've never seen this fingerprint before
|
1868 |
*/
|
1869 |
protected static function _is_new_visitor( $_fingerprint = '' ) {
|
1870 |
+
// If the privacy option is enabled, all visitors would be considered "new"...
|
1871 |
+
if ( self::$settings[ 'anonymize_ip' ] == 'on' ) {
|
1872 |
+
return false;
|
1873 |
+
}
|
1874 |
+
|
1875 |
$count_fingerprint = self::$wpdb->get_var( self::$wpdb->prepare( "
|
1876 |
SELECT COUNT( id )
|
1877 |
FROM {$GLOBALS[ 'wpdb' ]->prefix}slim_stats
|
1934 |
// end of class declaration
|
1935 |
|
1936 |
class slimstat_widget extends WP_Widget {
|
|
|
1937 |
/**
|
1938 |
* Sets up the widgets name etc
|
1939 |
*/
|