Version Description
Download this release
Release Info
Developer | matomoteam |
Plugin | Matomo Analytics – Ethical Stats. Powerful Insights. |
Version | 4.1.0 |
Comparing to | |
See all releases |
Code changes from version 4.0.4 to 4.1.0
- app/config/global.ini.php +5 -0
- app/core/ArchiveProcessor/Loader.php +0 -30
- app/core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php +1 -1
- app/core/CliMulti.php +1 -1
- app/core/CliMulti/Process.php +19 -1
- app/core/CliMulti/RequestCommand.php +4 -4
- app/core/CliMulti/RequestParser.php +8 -2
- app/core/Columns/Dimension.php +20 -2
- app/core/CronArchive.php +10 -4
- app/core/CronArchive/FixedSiteIds.php +8 -0
- app/core/CronArchive/QueueConsumer.php +40 -6
- app/core/CronArchive/SharedSiteIds.php +36 -11
- app/core/DataAccess/RawLogDao.php +0 -6
- app/core/DataFiles/cacert.pem +0 -3441
- app/core/DataTable.php +1 -1
- app/core/DataTable/Filter/CalculateEvolutionFilter.php +13 -5
- app/core/Date.php +58 -1
- app/core/ErrorHandler.php +15 -0
- app/core/Filechecks.php +39 -8
- app/core/Http.php +31 -7
- app/core/Period/Factory.php +3 -8
- app/core/Period/Range.php +2 -2
- app/core/Plugin/ThemeStyles.php +1 -1
- app/core/SettingsServer.php +4 -1
- app/core/Tracker.php +0 -5
- app/core/Tracker/Visit.php +0 -11
- app/core/Tracker/VisitExcluded.php +1 -1
- app/core/Updates/4.0.0-b1.php +120 -44
- app/core/Updates/4.0.0-b3.php +60 -0
- app/core/Updates/4.0.0-rc3.php +44 -0
- app/core/Updates/4.0.0-rc4.php +68 -0
- app/core/Updates/4.0.1-b1.php +56 -0
- app/core/Updates/4.0.4-b1.php +64 -0
- app/core/Version.php +1 -1
- app/lang/el.json +6 -0
- app/lang/en.json +5 -0
- app/lang/pt.json +17 -1
- app/lang/sq.json +5 -0
- app/lang/tr.json +5 -0
- app/libs/Zend/Session/Exception.php +2 -2
- app/plugins/API/Filter/DataComparisonFilter.php +1 -6
- app/plugins/API/RowEvolution.php +2 -2
- app/plugins/CoreAdminHome/Controller.php +1 -0
- app/plugins/CoreAdminHome/templates/generalSettings.twig +4 -1
- app/plugins/CoreHome/CoreHome.php +1 -0
- app/plugins/CoreUpdater/SystemSettings.php +5 -4
- app/plugins/CoreUpdater/templates/newVersionAvailable.twig +1 -1
- app/plugins/DevicePlugins/DevicePlugins.php +6 -2
- app/plugins/GeoIp2/Controller.php +2 -2
- app/plugins/GeoIp2/GeoIP2AutoUpdater.php +17 -10
- app/plugins/GeoIp2/LocationProvider/GeoIp2.php +1 -1
- app/plugins/GeoIp2/LocationProvider/GeoIp2/ServerModule.php +10 -0
- app/plugins/Goals/Goals.php +1 -1
- app/plugins/PrivacyManager/Controller.php +8 -1
- app/plugins/PrivacyManager/Model/DataSubjects.php +4 -4
- app/plugins/PrivacyManager/ReportsPurger.php +6 -1
- app/plugins/Referrers/API.php +4 -4
- app/plugins/Referrers/Referrers.php +2 -0
- app/plugins/Referrers/angularjs/campaign-builder/campaign-builder.directive.html +7 -0
- app/plugins/SEO/Metric/Alexa.php +3 -1
- app/plugins/SEO/Metric/Bing.php +3 -2
- app/plugins/SEO/Metric/DomainAge.php +1 -1
- app/plugins/SEO/Metric/Google.php +3 -2
- app/plugins/ScheduledReports/templates/_addReport.twig +6 -6
- app/plugins/SitesManager/templates/_trackingCodeEmail.twig +1 -0
- app/plugins/SitesManager/templates/siteWithoutData.twig +1 -0
- app/plugins/TagManager/Dao/TagsDao.php +7 -1
- app/plugins/Transitions/API.php +1 -1
- app/plugins/UserCountry/Columns/Provider.php +0 -58
- app/plugins/UserCountry/Controller.php +30 -0
- app/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php +30 -23
- app/plugins/UserCountry/LocationProvider.php +11 -0
- app/plugins/UserCountry/LocationProvider/DefaultProvider.php +10 -0
- app/plugins/UsersManager/Model.php +11 -0
- app/vendor/autoload.php +1 -1
- app/vendor/bin/lessc +191 -0
- app/vendor/composer/InstalledVersions.php +15 -15
- app/vendor/composer/autoload_classmap.php +60 -6
- app/vendor/composer/autoload_namespaces.php +1 -0
- app/vendor/composer/autoload_real.php +7 -7
- app/vendor/composer/autoload_static.php +73 -12
- app/vendor/composer/installed.json +72 -37
- app/vendor/composer/installed.php +15 -15
- app/vendor/leafo/lessphp/LICENSE +0 -660
- app/vendor/leafo/lessphp/Makefile +0 -7
- app/vendor/leafo/lessphp/README.md +0 -96
- app/vendor/leafo/lessphp/lessc.inc.php +0 -3768
- app/vendor/leafo/lessphp/lessify +0 -23
- app/vendor/leafo/lessphp/lessify.inc.php +0 -447
- app/vendor/leafo/lessphp/plessc +0 -250
- app/vendor/wikimedia/less.php/CHANGES.md +70 -0
- app/vendor/wikimedia/less.php/LICENSE +178 -0
- app/vendor/wikimedia/less.php/README.md +315 -0
- app/vendor/wikimedia/less.php/bin/lessc +191 -0
- app/vendor/wikimedia/less.php/lessc.inc.php +274 -0
- app/vendor/wikimedia/less.php/lib/Less/.easymin/ignore_prefixes +2 -0
- app/vendor/wikimedia/less.php/lib/Less/Autoloader.php +77 -0
- app/vendor/wikimedia/less.php/lib/Less/Cache.php +293 -0
- app/vendor/wikimedia/less.php/lib/Less/Colors.php +169 -0
- app/vendor/wikimedia/less.php/lib/Less/Configurable.php +66 -0
- app/vendor/wikimedia/less.php/lib/Less/Environment.php +157 -0
- app/vendor/wikimedia/less.php/lib/Less/Exception/Chunk.php +203 -0
- app/vendor/wikimedia/less.php/lib/Less/Exception/Compiler.php +11 -0
- app/vendor/wikimedia/less.php/lib/Less/Exception/Parser.php +116 -0
- app/vendor/wikimedia/less.php/lib/Less/Functions.php +1186 -0
- app/vendor/wikimedia/less.php/lib/Less/Less.php.combine +17 -0
- app/vendor/wikimedia/less.php/lib/Less/Mime.php +41 -0
- app/vendor/wikimedia/less.php/lib/Less/Output.php +48 -0
- app/vendor/wikimedia/less.php/lib/Less/Output/Mapped.php +119 -0
- app/vendor/wikimedia/less.php/lib/Less/Parser.php +2691 -0
- app/vendor/wikimedia/less.php/lib/Less/SourceMap/Base64VLQ.php +187 -0
- app/vendor/wikimedia/less.php/lib/Less/SourceMap/Generator.php +354 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree.php +84 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Alpha.php +48 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Anonymous.php +58 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Assignment.php +39 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Attribute.php +53 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Call.php +117 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Color.php +230 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Comment.php +51 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Condition.php +72 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/DefaultFunc.php +34 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/DetachedRuleset.php +39 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Dimension.php +198 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Directive.php +96 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Element.php +70 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Expression.php +95 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Extend.php +80 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Import.php +291 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Javascript.php +30 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Keyword.php +43 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Media.php +173 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Mixin/Call.php +193 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php +233 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/NameValue.php +49 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Negative.php +37 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Operation.php +68 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Paren.php +35 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Quoted.php +79 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Rule.php +112 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php +621 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/RulesetCall.php +26 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Selector.php +165 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/UnicodeDescriptor.php +28 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Unit.php +142 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/UnitConversions.php +35 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Url.php +76 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Value.php +47 -0
- app/vendor/wikimedia/less.php/lib/Less/Tree/Variable.php +51 -0
- app/vendor/wikimedia/less.php/lib/Less/Version.php +15 -0
- app/vendor/wikimedia/less.php/lib/Less/Visitor.php +46 -0
- app/vendor/wikimedia/less.php/lib/Less/Visitor/extendFinder.php +109 -0
- app/vendor/wikimedia/less.php/lib/Less/Visitor/import.php +137 -0
- app/vendor/wikimedia/less.php/lib/Less/Visitor/joinSelector.php +68 -0
- app/vendor/wikimedia/less.php/lib/Less/Visitor/processExtends.php +441 -0
- app/vendor/wikimedia/less.php/lib/Less/Visitor/toCSS.php +280 -0
- app/vendor/wikimedia/less.php/lib/Less/VisitorReplacing.php +70 -0
- assets/js/asset_manager_core_js.js +34 -26
- classes/WpMatomo.php +22 -4
- classes/WpMatomo/Admin/SystemReport.php +7 -0
- classes/WpMatomo/AjaxTracker.php +4 -2
- matomo.php +7 -1
- readme.txt +1 -1
app/config/global.ini.php
CHANGED
@@ -569,6 +569,7 @@ assume_secure_protocol = 0
|
|
569 |
; load balanced environment, if you have configured failover or if you're just using multiple servers in general.
|
570 |
; By enabling this flag we will for example not allow the installation of a plugin via the UI as a plugin would be only
|
571 |
; installed on one server or a config one change would be only made on one server instead of all servers.
|
|
|
572 |
multi_server_environment = 0
|
573 |
|
574 |
; List of proxy headers for client IP addresses
|
@@ -719,6 +720,10 @@ enable_auto_update = 1
|
|
719 |
; If set to 0 it also disables the "sent plugin update emails" feature in general and the related setting in the UI.
|
720 |
enable_update_communication = 1
|
721 |
|
|
|
|
|
|
|
|
|
722 |
; Comma separated list of plugin names for which console commands should be loaded (applies when Matomo is not installed yet)
|
723 |
always_load_commands_from_plugin=
|
724 |
|
569 |
; load balanced environment, if you have configured failover or if you're just using multiple servers in general.
|
570 |
; By enabling this flag we will for example not allow the installation of a plugin via the UI as a plugin would be only
|
571 |
; installed on one server or a config one change would be only made on one server instead of all servers.
|
572 |
+
; This flag doesn't need to be enabled when the config file is on a shared filesystem such as NFS or EFS.
|
573 |
multi_server_environment = 0
|
574 |
|
575 |
; List of proxy headers for client IP addresses
|
720 |
; If set to 0 it also disables the "sent plugin update emails" feature in general and the related setting in the UI.
|
721 |
enable_update_communication = 1
|
722 |
|
723 |
+
; This option defines the protocols Matomo's Http class is allowed to open.
|
724 |
+
; If you may need to download GeoIP updates or other stuff using other protocols like ftp you may need to extend this list.
|
725 |
+
allowed_outgoing_protocols = 'http,https'
|
726 |
+
|
727 |
; Comma separated list of plugin names for which console commands should be loaded (applies when Matomo is not installed yet)
|
728 |
always_load_commands_from_plugin=
|
729 |
|
app/core/ArchiveProcessor/Loader.php
CHANGED
@@ -31,8 +31,6 @@ use Psr\Log\LoggerInterface;
|
|
31 |
*/
|
32 |
class Loader
|
33 |
{
|
34 |
-
const MIN_VISIT_TIME_TTL = 3600;
|
35 |
-
|
36 |
/**
|
37 |
* @var Parameters
|
38 |
*/
|
@@ -410,40 +408,12 @@ class Loader
|
|
410 |
|
411 |
private function hasSiteVisitsBetweenTimeframe($idSite, Period $period)
|
412 |
{
|
413 |
-
$minVisitTimesPerSite = $this->getMinVisitTimesPerSite($idSite);
|
414 |
-
if (empty($minVisitTimesPerSite)) {
|
415 |
-
return false;
|
416 |
-
}
|
417 |
-
|
418 |
$timezone = Site::getTimezoneFor($idSite);
|
419 |
list($date1, $date2) = $period->getBoundsInTimezone($timezone);
|
420 |
-
if ($date2->isEarlier($minVisitTimesPerSite)) {
|
421 |
-
return false;
|
422 |
-
}
|
423 |
|
424 |
return $this->rawLogDao->hasSiteVisitsBetweenTimeframe($date1->getDatetime(), $date2->getDatetime(), $idSite);
|
425 |
}
|
426 |
|
427 |
-
private function getMinVisitTimesPerSite($idSite)
|
428 |
-
{
|
429 |
-
$cache = Cache::getLazyCache();
|
430 |
-
$cacheKey = 'Archiving.minVisitTime.' . $idSite;
|
431 |
-
|
432 |
-
$value = $cache->fetch($cacheKey);
|
433 |
-
if ($value === false) {
|
434 |
-
$value = $this->rawLogDao->getMinimumVisitTimeForSite($idSite);
|
435 |
-
if (!empty($value)) {
|
436 |
-
$cache->save($cacheKey, $value, $ttl = self::MIN_VISIT_TIME_TTL);
|
437 |
-
}
|
438 |
-
}
|
439 |
-
|
440 |
-
if (!empty($value)) {
|
441 |
-
$value = Date::factory($value);
|
442 |
-
}
|
443 |
-
|
444 |
-
return $value;
|
445 |
-
}
|
446 |
-
|
447 |
public static function invalidateMinVisitTimeCache($idSite)
|
448 |
{
|
449 |
$cache = Cache::getLazyCache();
|
31 |
*/
|
32 |
class Loader
|
33 |
{
|
|
|
|
|
34 |
/**
|
35 |
* @var Parameters
|
36 |
*/
|
408 |
|
409 |
private function hasSiteVisitsBetweenTimeframe($idSite, Period $period)
|
410 |
{
|
|
|
|
|
|
|
|
|
|
|
411 |
$timezone = Site::getTimezoneFor($idSite);
|
412 |
list($date1, $date2) = $period->getBoundsInTimezone($timezone);
|
|
|
|
|
|
|
413 |
|
414 |
return $this->rawLogDao->hasSiteVisitsBetweenTimeframe($date1->getDatetime(), $date2->getDatetime(), $idSite);
|
415 |
}
|
416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
public static function invalidateMinVisitTimeCache($idSite)
|
418 |
{
|
419 |
$cache = Cache::getLazyCache();
|
app/core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php
CHANGED
@@ -68,7 +68,7 @@ class StylesheetUIAssetMerger extends UIAssetMerger
|
|
68 |
|
69 |
private function getCssStatementForReplacement($path)
|
70 |
{
|
71 |
-
return
|
72 |
}
|
73 |
|
74 |
protected function concatenateAssets()
|
68 |
|
69 |
private function getCssStatementForReplacement($path)
|
70 |
{
|
71 |
+
return ".nonExistingSelectorOnlyForReplacementOfCssFiles {\n display: \"" . $path . "\";\n}";
|
72 |
}
|
73 |
|
74 |
protected function concatenateAssets()
|
app/core/CliMulti.php
CHANGED
@@ -231,7 +231,7 @@ class CliMulti
|
|
231 |
foreach ($this->outputs as $output) {
|
232 |
if ($output->getOutputId() === $pid && $output->isAbnormal()) {
|
233 |
$process->finishProcess();
|
234 |
-
|
235 |
}
|
236 |
}
|
237 |
|
231 |
foreach ($this->outputs as $output) {
|
232 |
if ($output->getOutputId() === $pid && $output->isAbnormal()) {
|
233 |
$process->finishProcess();
|
234 |
+
continue;
|
235 |
}
|
236 |
}
|
237 |
|
app/core/CliMulti/Process.php
CHANGED
@@ -21,10 +21,12 @@ use Piwik\SettingsServer;
|
|
21 |
*/
|
22 |
class Process
|
23 |
{
|
|
|
24 |
private $pidFile = '';
|
25 |
private $timeCreation = null;
|
26 |
private $isSupported = null;
|
27 |
private $pid = null;
|
|
|
28 |
|
29 |
public function __construct($pid)
|
30 |
{
|
@@ -60,6 +62,16 @@ class Process
|
|
60 |
}
|
61 |
|
62 |
public function hasStarted($content = null)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
{
|
64 |
if (is_null($content)) {
|
65 |
$content = $this->getPidFileContent();
|
@@ -81,6 +93,10 @@ class Process
|
|
81 |
|
82 |
public function hasFinished()
|
83 |
{
|
|
|
|
|
|
|
|
|
84 |
$content = $this->getPidFileContent();
|
85 |
|
86 |
return !$this->doesPidFileExist($content);
|
@@ -129,6 +145,7 @@ class Process
|
|
129 |
|
130 |
public function finishProcess()
|
131 |
{
|
|
|
132 |
Filesystem::deleteFileIfExists($this->pidFile);
|
133 |
}
|
134 |
|
@@ -181,7 +198,8 @@ class Process
|
|
181 |
return false;
|
182 |
}
|
183 |
|
184 |
-
|
|
|
185 |
return false;
|
186 |
}
|
187 |
|
21 |
*/
|
22 |
class Process
|
23 |
{
|
24 |
+
private $finished = null;
|
25 |
private $pidFile = '';
|
26 |
private $timeCreation = null;
|
27 |
private $isSupported = null;
|
28 |
private $pid = null;
|
29 |
+
private $started = null;
|
30 |
|
31 |
public function __construct($pid)
|
32 |
{
|
62 |
}
|
63 |
|
64 |
public function hasStarted($content = null)
|
65 |
+
{
|
66 |
+
if (!$this->started) {
|
67 |
+
$this->started = $this->checkPidIfHasStarted($content);
|
68 |
+
}
|
69 |
+
// PID will be deleted when process has finished so we want to remember this process started at some point. Otherwise we might return false here once the process finished.
|
70 |
+
// therefore we want to "cache" a successful start
|
71 |
+
return $this->started;
|
72 |
+
}
|
73 |
+
|
74 |
+
private function checkPidIfHasStarted($content = null)
|
75 |
{
|
76 |
if (is_null($content)) {
|
77 |
$content = $this->getPidFileContent();
|
93 |
|
94 |
public function hasFinished()
|
95 |
{
|
96 |
+
if ($this->finished) {
|
97 |
+
return true;
|
98 |
+
}
|
99 |
+
|
100 |
$content = $this->getPidFileContent();
|
101 |
|
102 |
return !$this->doesPidFileExist($content);
|
145 |
|
146 |
public function finishProcess()
|
147 |
{
|
148 |
+
$this->finished = true;
|
149 |
Filesystem::deleteFileIfExists($this->pidFile);
|
150 |
}
|
151 |
|
198 |
return false;
|
199 |
}
|
200 |
|
201 |
+
$pid = @getmypid();
|
202 |
+
if (empty($pid) || !in_array($pid, self::getRunningProcesses())) {
|
203 |
return false;
|
204 |
}
|
205 |
|
app/core/CliMulti/RequestCommand.php
CHANGED
@@ -78,13 +78,13 @@ class RequestCommand extends ConsoleCommand
|
|
78 |
|
79 |
require_once PIWIK_INCLUDE_PATH . $indexFile;
|
80 |
|
81 |
-
if (!empty($process)) {
|
82 |
-
$process->finishProcess();
|
83 |
-
}
|
84 |
-
|
85 |
while (ob_get_level()) {
|
86 |
echo ob_get_clean();
|
87 |
}
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
private function isTestModeEnabled()
|
78 |
|
79 |
require_once PIWIK_INCLUDE_PATH . $indexFile;
|
80 |
|
|
|
|
|
|
|
|
|
81 |
while (ob_get_level()) {
|
82 |
echo ob_get_clean();
|
83 |
}
|
84 |
+
|
85 |
+
if (!empty($process)) {
|
86 |
+
$process->finishProcess();
|
87 |
+
}
|
88 |
}
|
89 |
|
90 |
private function isTestModeEnabled()
|
app/core/CliMulti/RequestParser.php
CHANGED
@@ -9,6 +9,8 @@
|
|
9 |
|
10 |
namespace Piwik\CliMulti;
|
11 |
|
|
|
|
|
12 |
class RequestParser
|
13 |
{
|
14 |
private $supportsAsync;
|
@@ -62,9 +64,13 @@ class RequestParser
|
|
62 |
|
63 |
private function getPsLinesWithCliMulti(string $psOutput)
|
64 |
{
|
|
|
65 |
$lines = explode("\n", $psOutput);
|
66 |
$lines = array_map('trim', $lines);
|
67 |
-
$lines = array_filter($lines, function ($line) {
|
|
|
|
|
|
|
68 |
return strpos($line, 'climulti:request') !== false
|
69 |
&& (
|
70 |
strpos($line, 'console') !== false || strpos($line, 'php') !== false
|
@@ -103,4 +109,4 @@ class RequestParser
|
|
103 |
|
104 |
return `ps aux`;
|
105 |
}
|
106 |
-
}
|
9 |
|
10 |
namespace Piwik\CliMulti;
|
11 |
|
12 |
+
use Piwik\SettingsPiwik;
|
13 |
+
|
14 |
class RequestParser
|
15 |
{
|
16 |
private $supportsAsync;
|
64 |
|
65 |
private function getPsLinesWithCliMulti(string $psOutput)
|
66 |
{
|
67 |
+
$instanceId = SettingsPiwik::getPiwikInstanceId();
|
68 |
$lines = explode("\n", $psOutput);
|
69 |
$lines = array_map('trim', $lines);
|
70 |
+
$lines = array_filter($lines, function ($line) use ($instanceId) {
|
71 |
+
if (!empty($instanceId) && strpos($line, 'matomo-domain=' . $instanceId) === false) {
|
72 |
+
return false;
|
73 |
+
}
|
74 |
return strpos($line, 'climulti:request') !== false
|
75 |
&& (
|
76 |
strpos($line, 'console') !== false || strpos($line, 'php') !== false
|
109 |
|
110 |
return `ps aux`;
|
111 |
}
|
112 |
+
}
|
app/core/Columns/Dimension.php
CHANGED
@@ -757,14 +757,32 @@ abstract class Dimension
|
|
757 |
{
|
758 |
$columns = $plugin->findMultipleComponents('Columns', '\\Piwik\\Columns\\Dimension');
|
759 |
$instances = array();
|
|
|
760 |
|
761 |
-
foreach ($columns as $
|
762 |
-
$
|
|
|
|
|
763 |
}
|
764 |
|
765 |
return $instances;
|
766 |
}
|
767 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
768 |
/**
|
769 |
* Returns the name of the plugin that contains this Dimension.
|
770 |
*
|
757 |
{
|
758 |
$columns = $plugin->findMultipleComponents('Columns', '\\Piwik\\Columns\\Dimension');
|
759 |
$instances = array();
|
760 |
+
$removedDimensions = self::getRemovedDimensions();
|
761 |
|
762 |
+
foreach ($columns as $column) {
|
763 |
+
if (!in_array($column, $removedDimensions)) {
|
764 |
+
$instances[] = new $column();
|
765 |
+
}
|
766 |
}
|
767 |
|
768 |
return $instances;
|
769 |
}
|
770 |
|
771 |
+
/**
|
772 |
+
* Returns a list of dimension class names that have been removed from core over time
|
773 |
+
*
|
774 |
+
* @return string[]
|
775 |
+
*/
|
776 |
+
public static function getRemovedDimensions()
|
777 |
+
{
|
778 |
+
return [
|
779 |
+
// dimensions removed in Matomo 4.0.0
|
780 |
+
'Piwik\Plugins\DevicePlugins\Columns\PluginDirector',
|
781 |
+
'Piwik\Plugins\DevicePlugins\Columns\PluginGears',
|
782 |
+
'Piwik\Plugins\VisitorInterest\Columns\VisitsByDaysSinceLastVisit',
|
783 |
+
];
|
784 |
+
}
|
785 |
+
|
786 |
/**
|
787 |
* Returns the name of the plugin that contains this Dimension.
|
788 |
*
|
app/core/CronArchive.php
CHANGED
@@ -303,6 +303,12 @@ class CronArchive
|
|
303 |
$this->allWebsites = $websitesIds;
|
304 |
$this->websiteIdArchiveList = $this->makeWebsiteIdArchiveList($websitesIds);
|
305 |
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
if ($this->archiveFilter) {
|
307 |
$this->archiveFilter->logFilterInfo($this->logger);
|
308 |
}
|
@@ -336,7 +342,6 @@ class CronArchive
|
|
336 |
return;
|
337 |
}
|
338 |
|
339 |
-
|
340 |
$this->logger->debug("Applying queued rearchiving...");
|
341 |
$this->invalidator->applyScheduledReArchiving();
|
342 |
|
@@ -556,7 +561,7 @@ class CronArchive
|
|
556 |
$visits = (int) $visits;
|
557 |
|
558 |
$this->logger->info("Archived website id {$params['idSite']}, period = {$params['period']}, date = "
|
559 |
-
. "{$params['date']}, segment = '" . (isset($params['segment']) ? $params['segment'] : '') . "', "
|
560 |
. ($plugin ? "plugin = $plugin, " : "") . ($report ? "report = $report, " : "") . "$visits visits found. $timer");
|
561 |
}
|
562 |
|
@@ -649,7 +654,7 @@ class CronArchive
|
|
649 |
{
|
650 |
$request = "?module=API&method=CoreAdminHome.archiveReports&idSite=$idSite&period=$period&date=" . $date . "&format=json";
|
651 |
if ($segment) {
|
652 |
-
$request .= '&segment=' . urlencode($segment);
|
653 |
}
|
654 |
if (!empty($plugin)) {
|
655 |
$request .= "&plugin=" . $plugin;
|
@@ -1274,7 +1279,8 @@ class CronArchive
|
|
1274 |
$instanceId = SettingsPiwik::getPiwikInstanceId();
|
1275 |
|
1276 |
foreach ($processes as $process) {
|
1277 |
-
if (strpos($process, '
|
|
|
1278 |
(!$instanceId
|
1279 |
|| strpos($process, '--matomo-domain=' . $instanceId) !== false
|
1280 |
|| strpos($process, '--matomo-domain="' . $instanceId . '"') !== false
|
303 |
$this->allWebsites = $websitesIds;
|
304 |
$this->websiteIdArchiveList = $this->makeWebsiteIdArchiveList($websitesIds);
|
305 |
|
306 |
+
if (method_exists($this->websiteIdArchiveList, 'isContinuingPreviousRun') &&
|
307 |
+
$this->websiteIdArchiveList->isContinuingPreviousRun()
|
308 |
+
) {
|
309 |
+
$this->logger->info("- Continuing ongoing archiving run by pulling from shared idSite queue.");
|
310 |
+
}
|
311 |
+
|
312 |
if ($this->archiveFilter) {
|
313 |
$this->archiveFilter->logFilterInfo($this->logger);
|
314 |
}
|
342 |
return;
|
343 |
}
|
344 |
|
|
|
345 |
$this->logger->debug("Applying queued rearchiving...");
|
346 |
$this->invalidator->applyScheduledReArchiving();
|
347 |
|
561 |
$visits = (int) $visits;
|
562 |
|
563 |
$this->logger->info("Archived website id {$params['idSite']}, period = {$params['period']}, date = "
|
564 |
+
. "{$params['date']}, segment = '" . (isset($params['segment']) ? urldecode($params['segment']) : '') . "', "
|
565 |
. ($plugin ? "plugin = $plugin, " : "") . ($report ? "report = $report, " : "") . "$visits visits found. $timer");
|
566 |
}
|
567 |
|
654 |
{
|
655 |
$request = "?module=API&method=CoreAdminHome.archiveReports&idSite=$idSite&period=$period&date=" . $date . "&format=json";
|
656 |
if ($segment) {
|
657 |
+
$request .= '&segment=' . urlencode(urlencode($segment));
|
658 |
}
|
659 |
if (!empty($plugin)) {
|
660 |
$request .= "&plugin=" . $plugin;
|
1279 |
$instanceId = SettingsPiwik::getPiwikInstanceId();
|
1280 |
|
1281 |
foreach ($processes as $process) {
|
1282 |
+
if (strpos($process, ' core:archive') !== false &&
|
1283 |
+
strpos($process, 'console ') !== false &&
|
1284 |
(!$instanceId
|
1285 |
|| strpos($process, '--matomo-domain=' . $instanceId) !== false
|
1286 |
|| strpos($process, '--matomo-domain="' . $instanceId . '"') !== false
|
app/core/CronArchive/FixedSiteIds.php
CHANGED
@@ -62,4 +62,12 @@ class FixedSiteIds
|
|
62 |
|
63 |
return null;
|
64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
62 |
|
63 |
return null;
|
64 |
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* @return bool
|
68 |
+
*/
|
69 |
+
public function isContinuingPreviousRun(): bool
|
70 |
+
{
|
71 |
+
return false;
|
72 |
+
}
|
73 |
}
|
app/core/CronArchive/QueueConsumer.php
CHANGED
@@ -215,7 +215,7 @@ class QueueConsumer
|
|
215 |
continue;
|
216 |
}
|
217 |
|
218 |
-
if (
|
219 |
$this->logger->debug("Found archive with intersecting period with others in concurrent batch, skipping until next batch: $invalidationDesc");
|
220 |
|
221 |
$idinvalidation = $invalidatedArchive['idinvalidation'];
|
@@ -260,7 +260,6 @@ class QueueConsumer
|
|
260 |
continue;
|
261 |
}
|
262 |
|
263 |
-
// TODO: should use descriptive string instead of just invalidation ID
|
264 |
$reason = $this->shouldSkipArchiveBecauseLowerPeriodOrSegmentIsInProgress($invalidatedArchive);
|
265 |
if ($reason) {
|
266 |
$this->logger->debug("Skipping invalidated archive, $reason: $invalidationDesc");
|
@@ -398,10 +397,25 @@ class QueueConsumer
|
|
398 |
continue;
|
399 |
}
|
400 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
$archiveBeingProcessed['periodObj'] = PeriodFactory::build($archiveBeingProcessed['period'], $archiveBeingProcessed['date']);
|
402 |
|
403 |
if ($this->isArchiveOfLowerPeriod($archiveToProcess, $archiveBeingProcessed)) {
|
404 |
-
return "lower period in progress (period = {$archiveBeingProcessed['period']}, date = {$archiveBeingProcessed['date']})";
|
405 |
}
|
406 |
|
407 |
if ($this->isArchiveNonSegmentAndInProgressArchiveSegment($archiveToProcess, $archiveBeingProcessed)) {
|
@@ -447,13 +461,32 @@ class QueueConsumer
|
|
447 |
$archive['plugin'] = $this->getPluginNameForArchiveIfAny($archive);
|
448 |
}
|
449 |
|
450 |
-
|
|
|
451 |
{
|
452 |
if (empty($archivesToProcess)) {
|
453 |
return false;
|
454 |
}
|
455 |
|
456 |
foreach ($archivesToProcess as $archive) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
if ($archive['periodObj']->isPeriodIntersectingWith($invalidatedArchive['periodObj'])) {
|
458 |
return true;
|
459 |
}
|
@@ -517,13 +550,14 @@ class QueueConsumer
|
|
517 |
|
518 |
private function getInvalidationDescription(array $invalidatedArchive)
|
519 |
{
|
520 |
-
return sprintf("[idinvalidation = %s, idsite = %s, period = %s(%s - %s), name = %s]",
|
521 |
$invalidatedArchive['idinvalidation'],
|
522 |
$invalidatedArchive['idsite'],
|
523 |
$this->periodIdsToLabels[$invalidatedArchive['period']],
|
524 |
$invalidatedArchive['date1'],
|
525 |
$invalidatedArchive['date2'],
|
526 |
-
$invalidatedArchive['name']
|
|
|
527 |
);
|
528 |
}
|
529 |
|
215 |
continue;
|
216 |
}
|
217 |
|
218 |
+
if (self::hasIntersectingPeriod($archivesToProcess, $invalidatedArchive)) {
|
219 |
$this->logger->debug("Found archive with intersecting period with others in concurrent batch, skipping until next batch: $invalidationDesc");
|
220 |
|
221 |
$idinvalidation = $invalidatedArchive['idinvalidation'];
|
260 |
continue;
|
261 |
}
|
262 |
|
|
|
263 |
$reason = $this->shouldSkipArchiveBecauseLowerPeriodOrSegmentIsInProgress($invalidatedArchive);
|
264 |
if ($reason) {
|
265 |
$this->logger->debug("Skipping invalidated archive, $reason: $invalidationDesc");
|
397 |
continue;
|
398 |
}
|
399 |
|
400 |
+
if (empty($archiveBeingProcessed['idSite'])
|
401 |
+
|| $archiveBeingProcessed['idSite'] != $archiveToProcess['idsite']
|
402 |
+
) {
|
403 |
+
continue; // different site
|
404 |
+
}
|
405 |
+
|
406 |
+
// we don't care about lower periods being concurrent if they are for different segments (that are not "all visits")
|
407 |
+
if (!empty($archiveBeingProcessed['segment'])
|
408 |
+
&& !empty($archiveToProcess['segment'])
|
409 |
+
&& $archiveBeingProcessed['segment'] != $archiveToProcess['segment']
|
410 |
+
&& urldecode($archiveBeingProcessed['segment']) != $archiveToProcess['segment']
|
411 |
+
) {
|
412 |
+
continue;
|
413 |
+
}
|
414 |
+
|
415 |
$archiveBeingProcessed['periodObj'] = PeriodFactory::build($archiveBeingProcessed['period'], $archiveBeingProcessed['date']);
|
416 |
|
417 |
if ($this->isArchiveOfLowerPeriod($archiveToProcess, $archiveBeingProcessed)) {
|
418 |
+
return "lower or same period in progress in another local climulti process (period = {$archiveBeingProcessed['period']}, date = {$archiveBeingProcessed['date']})";
|
419 |
}
|
420 |
|
421 |
if ($this->isArchiveNonSegmentAndInProgressArchiveSegment($archiveToProcess, $archiveBeingProcessed)) {
|
461 |
$archive['plugin'] = $this->getPluginNameForArchiveIfAny($archive);
|
462 |
}
|
463 |
|
464 |
+
// static so it can be unit tested
|
465 |
+
public static function hasIntersectingPeriod(array $archivesToProcess, $invalidatedArchive)
|
466 |
{
|
467 |
if (empty($archivesToProcess)) {
|
468 |
return false;
|
469 |
}
|
470 |
|
471 |
foreach ($archivesToProcess as $archive) {
|
472 |
+
$isSamePeriod = $archive['period'] == $invalidatedArchive['period']
|
473 |
+
&& $archive['date1'] == $invalidatedArchive['date1']
|
474 |
+
&& $archive['date2'] == $invalidatedArchive['date2'];
|
475 |
+
|
476 |
+
// don't do the check for $archvie, if we have the same period and segment as $invalidatedArchive
|
477 |
+
// we only want to to do the intersecting periods check if there are different periods or one of the
|
478 |
+
// invalidations is for an "all visits" archive.
|
479 |
+
//
|
480 |
+
// it's allowed to archive the same period concurrently for different segments, where neither is
|
481 |
+
// "All Visits"
|
482 |
+
if (!empty($archive['segment'])
|
483 |
+
&& !empty($invalidatedArchive['segment'])
|
484 |
+
&& $archive['segment'] != $invalidatedArchive['segment']
|
485 |
+
&& $isSamePeriod
|
486 |
+
) {
|
487 |
+
continue;
|
488 |
+
}
|
489 |
+
|
490 |
if ($archive['periodObj']->isPeriodIntersectingWith($invalidatedArchive['periodObj'])) {
|
491 |
return true;
|
492 |
}
|
550 |
|
551 |
private function getInvalidationDescription(array $invalidatedArchive)
|
552 |
{
|
553 |
+
return sprintf("[idinvalidation = %s, idsite = %s, period = %s(%s - %s), name = %s, segment = %s]",
|
554 |
$invalidatedArchive['idinvalidation'],
|
555 |
$invalidatedArchive['idsite'],
|
556 |
$this->periodIdsToLabels[$invalidatedArchive['period']],
|
557 |
$invalidatedArchive['date1'],
|
558 |
$invalidatedArchive['date2'],
|
559 |
+
$invalidatedArchive['name'],
|
560 |
+
$invalidatedArchive['segment'] ?? ''
|
561 |
);
|
562 |
}
|
563 |
|
app/core/CronArchive/SharedSiteIds.php
CHANGED
@@ -10,6 +10,7 @@ namespace Piwik\CronArchive;
|
|
10 |
|
11 |
use Exception;
|
12 |
use Piwik\CliMulti\Process;
|
|
|
13 |
use Piwik\Option;
|
14 |
|
15 |
/**
|
@@ -20,6 +21,7 @@ class SharedSiteIds
|
|
20 |
{
|
21 |
const OPTION_DEFAULT = 'SharedSiteIdsToArchive';
|
22 |
const OPTION_ALL_WEBSITES = 'SharedSiteIdsToArchive_AllWebsites';
|
|
|
23 |
|
24 |
/**
|
25 |
* @var string
|
@@ -29,7 +31,8 @@ class SharedSiteIds
|
|
29 |
private $siteIds = array();
|
30 |
private $currentSiteId;
|
31 |
private $done = false;
|
32 |
-
private $
|
|
|
33 |
|
34 |
public function __construct($websiteIds, $optionName = self::OPTION_DEFAULT)
|
35 |
{
|
@@ -46,14 +49,28 @@ class SharedSiteIds
|
|
46 |
$existingWebsiteIds = $self->getAllSiteIdsToArchive();
|
47 |
|
48 |
if (!empty($existingWebsiteIds)) {
|
|
|
49 |
return $existingWebsiteIds;
|
50 |
}
|
51 |
|
|
|
52 |
$self->setSiteIdsToArchive($websiteIds);
|
53 |
|
54 |
return $websiteIds;
|
55 |
});
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
58 |
|
59 |
public function getInitialSiteIds()
|
@@ -162,6 +179,14 @@ class SharedSiteIds
|
|
162 |
return null;
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
$self = $this;
|
166 |
|
167 |
$this->currentSiteId = $this->runExclusive(function () use ($self) {
|
@@ -173,15 +198,8 @@ class SharedSiteIds
|
|
173 |
return null;
|
174 |
}
|
175 |
|
176 |
-
if (count($siteIds) > $self->numWebsitesLeftToProcess) {
|
177 |
-
// done... the number of siteIds in SharedSiteIds is larger than it was initially... therefore it must have
|
178 |
-
// been reset at some point.
|
179 |
-
return null;
|
180 |
-
}
|
181 |
-
|
182 |
-
$self->numWebsitesLeftToProcess = count($siteIds);
|
183 |
-
|
184 |
$nextSiteId = array_shift($siteIds);
|
|
|
185 |
$self->setSiteIdsToArchive($siteIds);
|
186 |
|
187 |
return $nextSiteId;
|
@@ -189,7 +207,6 @@ class SharedSiteIds
|
|
189 |
|
190 |
if (is_null($this->currentSiteId)) {
|
191 |
$this->done = true;
|
192 |
-
$this->numWebsitesLeftToProcess = 0;
|
193 |
}
|
194 |
|
195 |
return $this->currentSiteId;
|
@@ -199,4 +216,12 @@ class SharedSiteIds
|
|
199 |
{
|
200 |
return Process::isSupported();
|
201 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
}
|
10 |
|
11 |
use Exception;
|
12 |
use Piwik\CliMulti\Process;
|
13 |
+
use Piwik\Log;
|
14 |
use Piwik\Option;
|
15 |
|
16 |
/**
|
21 |
{
|
22 |
const OPTION_DEFAULT = 'SharedSiteIdsToArchive';
|
23 |
const OPTION_ALL_WEBSITES = 'SharedSiteIdsToArchive_AllWebsites';
|
24 |
+
const KEY_TIMESTAMP = '_ResetQueueTime';
|
25 |
|
26 |
/**
|
27 |
* @var string
|
31 |
private $siteIds = array();
|
32 |
private $currentSiteId;
|
33 |
private $done = false;
|
34 |
+
private $initialResetQueueTime = null;
|
35 |
+
private $isContinuingPreviousRun = false;
|
36 |
|
37 |
public function __construct($websiteIds, $optionName = self::OPTION_DEFAULT)
|
38 |
{
|
49 |
$existingWebsiteIds = $self->getAllSiteIdsToArchive();
|
50 |
|
51 |
if (!empty($existingWebsiteIds)) {
|
52 |
+
$this->isContinuingPreviousRun = true;
|
53 |
return $existingWebsiteIds;
|
54 |
}
|
55 |
|
56 |
+
$self->setQueueWasReset();
|
57 |
$self->setSiteIdsToArchive($websiteIds);
|
58 |
|
59 |
return $websiteIds;
|
60 |
});
|
61 |
+
|
62 |
+
$this->initialResetQueueTime = $this->getResetQueueTime();
|
63 |
+
}
|
64 |
+
|
65 |
+
public function setQueueWasReset()
|
66 |
+
{
|
67 |
+
Option::set($this->optionName . self::KEY_TIMESTAMP, floor(microtime(true) * 1000));
|
68 |
+
}
|
69 |
+
|
70 |
+
private function getResetQueueTime()
|
71 |
+
{
|
72 |
+
Option::clearCachedOption($this->optionName . self::KEY_TIMESTAMP);
|
73 |
+
return (int) Option::get($this->optionName . self::KEY_TIMESTAMP);
|
74 |
}
|
75 |
|
76 |
public function getInitialSiteIds()
|
179 |
return null;
|
180 |
}
|
181 |
|
182 |
+
if ($this->initialResetQueueTime !== $this->getResetQueueTime()) {
|
183 |
+
// queue was reset/finished by some other process
|
184 |
+
$this->currentSiteId = null;
|
185 |
+
$this->done = true;
|
186 |
+
Log::debug('The shared site ID queue was reset, stopping.');
|
187 |
+
return null;
|
188 |
+
}
|
189 |
+
|
190 |
$self = $this;
|
191 |
|
192 |
$this->currentSiteId = $this->runExclusive(function () use ($self) {
|
198 |
return null;
|
199 |
}
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
$nextSiteId = array_shift($siteIds);
|
202 |
+
|
203 |
$self->setSiteIdsToArchive($siteIds);
|
204 |
|
205 |
return $nextSiteId;
|
207 |
|
208 |
if (is_null($this->currentSiteId)) {
|
209 |
$this->done = true;
|
|
|
210 |
}
|
211 |
|
212 |
return $this->currentSiteId;
|
216 |
{
|
217 |
return Process::isSupported();
|
218 |
}
|
219 |
+
|
220 |
+
/**
|
221 |
+
* @return bool
|
222 |
+
*/
|
223 |
+
public function isContinuingPreviousRun(): bool
|
224 |
+
{
|
225 |
+
return $this->isContinuingPreviousRun;
|
226 |
+
}
|
227 |
}
|
app/core/DataAccess/RawLogDao.php
CHANGED
@@ -452,10 +452,4 @@ class RawLogDao
|
|
452 |
|
453 |
return $columns;
|
454 |
}
|
455 |
-
|
456 |
-
public function getMinimumVisitTimeForSite($idSite)
|
457 |
-
{
|
458 |
-
$sql = "SELECT MIN(visit_last_action_time) FROM " . Common::prefixTable('log_visit') . ' WHERE idsite = ?';
|
459 |
-
return Db::fetchOne($sql, [$idSite]);
|
460 |
-
}
|
461 |
}
|
452 |
|
453 |
return $columns;
|
454 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
}
|
app/core/DataFiles/cacert.pem
DELETED
@@ -1,3441 +0,0 @@
|
|
1 |
-
## How to update this file
|
2 |
-
## - download latest from https://curl.haxx.se/ca/cacert.pem
|
3 |
-
## - Paste the content below this comment
|
4 |
-
##-------------------------------------------------------------------------------------
|
5 |
-
|
6 |
-
|
7 |
-
##
|
8 |
-
## Bundle of CA Root Certificates
|
9 |
-
##
|
10 |
-
## Certificate data from Mozilla as of: Wed Oct 14 03:12:15 2020 GMT
|
11 |
-
##
|
12 |
-
## This is a bundle of X.509 certificates of public Certificate Authorities
|
13 |
-
## (CA). These were automatically extracted from Mozilla's root certificates
|
14 |
-
## file (certdata.txt). This file can be found in the mozilla source tree:
|
15 |
-
## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
|
16 |
-
##
|
17 |
-
## It contains the certificates in PEM format and therefore
|
18 |
-
## can be directly used with curl / libcurl / php_curl, or with
|
19 |
-
## an Apache+mod_ssl webserver for SSL client authentication.
|
20 |
-
## Just configure this file as the SSLCACertificateFile.
|
21 |
-
##
|
22 |
-
## Conversion done with mk-ca-bundle.pl version 1.28.
|
23 |
-
## SHA256: a831d3bc63ba1f65478afe28038742b7150c0c2efd243ac342b64792a75d2038
|
24 |
-
##
|
25 |
-
|
26 |
-
|
27 |
-
GlobalSign Root CA
|
28 |
-
==================
|
29 |
-
-----BEGIN CERTIFICATE-----
|
30 |
-
MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx
|
31 |
-
GTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds
|
32 |
-
b2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAwMDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNV
|
33 |
-
BAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYD
|
34 |
-
VQQDExJHbG9iYWxTaWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDa
|
35 |
-
DuaZjc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavpxy0Sy6sc
|
36 |
-
THAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp1Wrjsok6Vjk4bwY8iGlb
|
37 |
-
Kk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdGsnUOhugZitVtbNV4FpWi6cgKOOvyJBNP
|
38 |
-
c1STE4U6G7weNLWLBYy5d4ux2x8gkasJU26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrX
|
39 |
-
gzT/LCrBbBlDSgeF59N89iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV
|
40 |
-
HRMBAf8EBTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0BAQUF
|
41 |
-
AAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOzyj1hTdNGCbM+w6Dj
|
42 |
-
Y1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE38NflNUVyRRBnMRddWQVDf9VMOyG
|
43 |
-
j/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymPAbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhH
|
44 |
-
hm4qxFYxldBniYUr+WymXUadDKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveC
|
45 |
-
X4XSQRjbgbMEHMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==
|
46 |
-
-----END CERTIFICATE-----
|
47 |
-
|
48 |
-
GlobalSign Root CA - R2
|
49 |
-
=======================
|
50 |
-
-----BEGIN CERTIFICATE-----
|
51 |
-
MIIDujCCAqKgAwIBAgILBAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4GA1UECxMXR2xv
|
52 |
-
YmFsU2lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
|
53 |
-
bFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjExMjE1MDgwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
|
54 |
-
aWduIFJvb3QgQ0EgLSBSMjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
|
55 |
-
bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKbPJA6+Lm8omUVCxKs+IVSbC9N/hHD6
|
56 |
-
ErPLv4dfxn+G07IwXNb9rfF73OX4YJYJkhD10FPe+3t+c4isUoh7SqbKSaZeqKeMWhG8eoLrvozp
|
57 |
-
s6yWJQeXSpkqBy+0Hne/ig+1AnwblrjFuTosvNYSuetZfeLQBoZfXklqtTleiDTsvHgMCJiEbKjN
|
58 |
-
S7SgfQx5TfC4LcshytVsW33hoCmEofnTlEnLJGKRILzdC9XZzPnqJworc5HGnRusyMvo4KD0L5CL
|
59 |
-
TfuwNhv2GXqF4G3yYROIXJ/gkwpRl4pazq+r1feqCapgvdzZX99yqWATXgAByUr6P6TqBwMhAo6C
|
60 |
-
ygPCm48CAwEAAaOBnDCBmTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
|
61 |
-
FgQUm+IHV2ccHsBqBt5ZtJot39wZhi4wNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL2NybC5nbG9i
|
62 |
-
YWxzaWduLm5ldC9yb290LXIyLmNybDAfBgNVHSMEGDAWgBSb4gdXZxwewGoG3lm0mi3f3BmGLjAN
|
63 |
-
BgkqhkiG9w0BAQUFAAOCAQEAmYFThxxol4aR7OBKuEQLq4GsJ0/WwbgcQ3izDJr86iw8bmEbTUsp
|
64 |
-
9Z8FHSbBuOmDAGJFtqkIk7mpM0sYmsL4h4hO291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu
|
65 |
-
01yiPqFbQfXf5WRDLenVOavSot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG7
|
66 |
-
9G+dwfCMNYxdAfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7
|
67 |
-
TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==
|
68 |
-
-----END CERTIFICATE-----
|
69 |
-
|
70 |
-
Entrust.net Premium 2048 Secure Server CA
|
71 |
-
=========================================
|
72 |
-
-----BEGIN CERTIFICATE-----
|
73 |
-
MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChMLRW50cnVzdC5u
|
74 |
-
ZXQxQDA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QUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJ
|
87 |
-
KoZIhvcNAQEFBQADggEBADubj1abMOdTmXx6eadNl9cZlZD7Bh/KM3xGY4+WZiT6QBshJ8rmcnPy
|
88 |
-
T/4xmf3IDExoU8aAghOY+rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7mhpElesYT6Yf
|
89 |
-
zX1XEC+bBAlahLVu2B064dae0Wx5XnkcFMXj0EyTO2U87d89vqbllRrDtRnDvV5bu/8j72gZyxKT
|
90 |
-
J1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBCbJPKVt7+bYQLCIt+jerXmCHG8+c8eS9e
|
91 |
-
nNFMFY3h7CI3zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzURZVE=
|
92 |
-
-----END CERTIFICATE-----
|
93 |
-
|
94 |
-
Baltimore CyberTrust Root
|
95 |
-
=========================
|
96 |
-
-----BEGIN CERTIFICATE-----
|
97 |
-
MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJRTESMBAGA1UE
|
98 |
-
ChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3li
|
99 |
-
ZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoXDTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMC
|
100 |
-
SUUxEjAQBgNVBAoTCUJhbHRpbW9yZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFs
|
101 |
-
dGltb3JlIEN5YmVyVHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKME
|
102 |
-
uyKrmD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjrIZ3AQSsB
|
103 |
-
UnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeKmpYcqWe4PwzV9/lSEy/C
|
104 |
-
G9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSuXmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9
|
105 |
-
XbIGevOF6uvUA65ehD5f/xXtabz5OTZydc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjpr
|
106 |
-
l3RjM71oGDHweI12v/yejl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoI
|
107 |
-
VDaGezq1BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEB
|
108 |
-
BQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT929hkTI7gQCvlYpNRh
|
109 |
-
cL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3WgxjkzSswF07r51XgdIGn9w/xZchMB5
|
110 |
-
hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsa
|
111 |
-
Y71k5h+3zvDyny67G7fyUIhzksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9H
|
112 |
-
RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
|
113 |
-
-----END CERTIFICATE-----
|
114 |
-
|
115 |
-
Entrust Root Certification Authority
|
116 |
-
====================================
|
117 |
-
-----BEGIN CERTIFICATE-----
|
118 |
-
MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV
|
119 |
-
BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw
|
120 |
-
b3JhdGVkIG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DvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDviS2Aelet
|
150 |
-
8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU1XupGc1V3sjs0l44U+Vc
|
151 |
-
T4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+bw8HHa8sHo9gOeL6NlMTOdReJivbPagU
|
152 |
-
vTLrGAMoUgRx5aszPeE4uwc2hGKceeoWMPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTAD
|
153 |
-
AQH/MB0GA1UdDgQWBBTAephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVk
|
154 |
-
DBF9qn1luMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKInZ57Q
|
155 |
-
zxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfStQWVYrmm3ok9Nns4
|
156 |
-
d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcFPseKUgzbFbS9bZvlxrFUaKnjaZC2
|
157 |
-
mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Unhw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6p
|
158 |
-
XE0zX5IJL4hmXXeXxx12E6nV5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvm
|
159 |
-
Mw==
|
160 |
-
-----END CERTIFICATE-----
|
161 |
-
|
162 |
-
GeoTrust Universal CA
|
163 |
-
=====================
|
164 |
-
-----BEGIN CERTIFICATE-----
|
165 |
-
MIIFaDCCA1CgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
|
166 |
-
R2VvVHJ1c3QgSW5jLjEeMBwGA1UEAxMVR2VvVHJ1c3QgVW5pdmVy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8GA1UdIwQYMBaAFNq7LqqwDLiIJlF0XG0D08DYj3rWMA4GA1UdDwEB/wQEAwIB
|
180 |
-
hjANBgkqhkiG9w0BAQUFAAOCAgEAMXjmx7XfuJRAyXHEqDXsRh3ChfMoWIawC/yOsjmPRFWrZIRc
|
181 |
-
aanQmjg8+uUfNeVE44B5lGiku8SfPeE0zTBGi1QrlaXv9z+ZhP015s8xxtxqv6fXIwjhmF7DWgh2
|
182 |
-
qaavdy+3YL1ERmrvl/9zlcGO6JP7/TG37FcREUWbMPEaiDnBTzynANXH/KttgCJwpQzgXQQpAvvL
|
183 |
-
oJHRfNbDflDVnVi+QTjruXU8FdmbyUqDWcDaU/0zuzYYm4UPFd3uLax2k7nZAY1IEKj79TiG8dsK
|
184 |
-
xr2EoyNB3tZ3b4XUhRxQ4K5RirqNPnbiucon8l+f725ZDQbYKxek0nxru18UGkiPGkzns0ccjkxF
|
185 |
-
KyDuSN/n3QmOGKjaQI2SJhFTYXNd673nxE0pN2HrrDktZy4W1vUAg4WhzH92xH3kt0tm7wNFYGm2
|
186 |
-
DFKWkoRepqO1pD4r2czYG0eq8kTaT/kD6PAUyz/zg97QwVTjt+gKN02LIFkDMBmhLMi9ER/frslK
|
187 |
-
xfMnZmaGrGiR/9nmUxwPi1xpZQomyB40w11Re9epnAahNt3ViZS82eQtDF4JbAiXfKM9fJP/P6EU
|
188 |
-
p8+1Xevb2xzEdt+Iub1FBZUbrvxGakyvSOPOrg/SfuvmbJxPgWp6ZKy7PtXny3YuxadIwVyQD8vI
|
189 |
-
P/rmMuGNG2+k5o7Y+SlIis5z/iw=
|
190 |
-
-----END CERTIFICATE-----
|
191 |
-
|
192 |
-
GeoTrust Universal CA 2
|
193 |
-
=======================
|
194 |
-
-----BEGIN CERTIFICATE-----
|
195 |
-
MIIFbDCCA1SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
|
196 |
-
R2VvVHJ1c3QgSW5jLjEgM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DgQWBBR281Xh+qQ2
|
209 |
-
+/CfXGJx7Tz0RzgQKzAfBgNVHSMEGDAWgBR281Xh+qQ2+/CfXGJx7Tz0RzgQKzAOBgNVHQ8BAf8E
|
210 |
-
BAMCAYYwDQYJKoZIhvcNAQEFBQADggIBAGbBxiPz2eAubl/oz66wsCVNK/g7WJtAJDday6sWSf+z
|
211 |
-
dXkzoS9tcBc0kf5nfo/sm+VegqlVHy/c1FEHEv6sFj4sNcZj/NwQ6w2jqtB8zNHQL1EuxBRa3ugZ
|
212 |
-
4T7GzKQp5y6EqgYweHZUcyiYWTjgAA1i00J9IZ+uPTqM1fp3DRgrFg5fNuH8KrUwJM/gYwx7WBr+
|
213 |
-
mbpCErGR9Hxo4sjoryzqyX6uuyo9DRXcNJW2GHSoag/HtPQTxORb7QrSpJdMKu0vbBKJPfEncKpq
|
214 |
-
A1Ihn0CoZ1Dy81of398j9tx4TuaYT1U6U+Pv8vSfx3zYWK8pIpe44L2RLrB27FcRz+8pRPPphXpg
|
215 |
-
Y+RdM4kX2TGq2tbzGDVyz4crL2MjhF2EjD9XoIj8mZEoJmmZ1I+XRL6O1UixpCgp8RW04eWe3fiP
|
216 |
-
pm8m1wk8OhwRDqZsN/etRIcsKMfYdIKz0G9KV7s1KSegi+ghp4dkNl3M2Basx7InQJJVOCiNUW7d
|
217 |
-
FGdTbHFcJoRNdVq2fmBWqU2t+5sel/MN2dKXVHfaPRK34B7vCAas+YWH6aLcr34YEoP9VhdBLtUp
|
218 |
-
gn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwXQMAJKOSLakhT2+zNVVXxxvjpoixMptEm
|
219 |
-
X36vWkzaH6byHCx+rgIW0lbQL1dTR+iS
|
220 |
-
-----END CERTIFICATE-----
|
221 |
-
|
222 |
-
Comodo AAA Services root
|
223 |
-
========================
|
224 |
-
-----BEGIN CERTIFICATE-----
|
225 |
-
MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDV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y5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29tb2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2Vz
|
239 |
-
LmNybDANBgkqhkiG9w0BAQUFAAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm
|
240 |
-
7l3sAg9g1o1QGE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz
|
241 |
-
Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2G9w84FoVxp7Z
|
242 |
-
8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsil2D4kF501KKaU73yqWjgom7C
|
243 |
-
12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg==
|
244 |
-
-----END CERTIFICATE-----
|
245 |
-
|
246 |
-
QuoVadis Root CA
|
247 |
-
================
|
248 |
-
-----BEGIN CERTIFICATE-----
|
249 |
-
MIIF0DCCBLigAwIBAgIEOrZQizANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJCTTEZMBcGA1UE
|
250 |
-
ChMQUXVvVmFkaXMgTGltaXRlZDElMCMGA1UECxMcUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
|
251 |
-
eTEuMCwGA1UEAxMlUXVvVmFkaXMgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wMTAz
|
252 |
-
MTkxODMzMzNaFw0yMTAzMTcxODMzMzNaMH8xCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRp
|
253 |
-
cyBMaW1pdGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MS4wLAYDVQQD
|
254 |
-
EyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG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EgaYwgaOAFItLbe3TKbkGGew5Oanwl4Rqy+/foYGEpIGBMH8xCzAJBgNVBAYTAkJNMRkw
|
268 |
-
FwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0
|
269 |
-
aG9yaXR5MS4wLAYDVQQDEyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggQ6
|
270 |
-
tlCLMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAitQUtf70mpKnGdSkfnIYj9lo
|
271 |
-
fFIk3WdvOXrEql494liwTXCYhGHoG+NpGA7O+0dQoE7/8CQfvbLO9Sf87C9TqnN7Az10buYWnuul
|
272 |
-
LsS/VidQK2K6vkscPFVcQR0kvoIgR13VRH56FmjffU1RcHhXHTMe/QKZnAzNCgVPx7uOpHX6Sm2x
|
273 |
-
gI4JVrmcGmD+XcHXetwReNDWXcG31a0ymQM6isxUJTkxgXsTIlG6Rmyhu576BGxJJnSP0nPrzDCi
|
274 |
-
5upZIof4l/UO/erMkqQWxFIY6iHOsfHmhIHluqmGKPJDWl0Snawe2ajlCmqnf6CHKc/yiU3U7MXi
|
275 |
-
5nrQNiOKSnQ2+Q==
|
276 |
-
-----END CERTIFICATE-----
|
277 |
-
|
278 |
-
QuoVadis Root CA 2
|
279 |
-
==================
|
280 |
-
-----BEGIN CERTIFICATE-----
|
281 |
-
MIIFtzCCA5+gAwIBAgICBQkwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
|
282 |
-
EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMjAeFw0wNjExMjQx
|
283 |
-
ODI3MDBaFw0zMTExMjQxODIzMzNaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM
|
284 |
-
aW1pdGVkMRswGQYDVQQDExJRd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 |
-
ElF1b1ZhZGlzIFJvb3QgQ0EgMoICBQkwDQYJKoZIhvcNAQEFBQADggIBAD4KFk2fBluornFdLwUv
|
298 |
-
Z+YTRYPENvbzwCYMDbVHZF34tHLJRqUDGCdViXh9duqWNIAXINzng/iN/Ae42l9NLmeyhP3ZRPx3
|
299 |
-
UIHmfLTJDQtyU/h2BwdBR5YM++CCJpNVjP4iH2BlfF/nJrP3MpCYUNQ3cVX2kiF495V5+vgtJodm
|
300 |
-
VjB3pjd4M1IQWK4/YY7yarHvGH5KWWPKjaJW1acvvFYfzznB4vsKqBUsfU16Y8Zsl0Q80m/DShcK
|
301 |
-
+JDSV6IZUaUtl0HaB0+pUNqQjZRG4T7wlP0QADj1O+hA4bRuVhogzG9Yje0uRY/W6ZM/57Es3zrW
|
302 |
-
IozchLsib9D45MY56QSIPMO661V6bYCZJPVsAfv4l7CUW+v90m/xd2gNNWQjrLhVoQPRTUIZ3Ph1
|
303 |
-
WVaj+ahJefivDrkRoHy3au000LYmYjgahwz46P0u05B/B5EqHdZ+XIWDmbA4CD/pXvk1B+TJYm5X
|
304 |
-
f6dQlfe6yJvmjqIBxdZmv3lh8zwc4bmCXF2gw+nYSL0ZohEUGW6yhhtoPkg3Goi3XZZenMfvJ2II
|
305 |
-
4pEZXNLxId26F0KCl3GBUzGpn/Z9Yr9y4aOTHcyKJloJONDO1w2AFrR4pTqHTI2KpdVGl/IsELm8
|
306 |
-
VCLAAVBpQ570su9t+Oza8eOx79+Rj1QqCyXBJhnEUhAFZdWCEOrCMc0u
|
307 |
-
-----END CERTIFICATE-----
|
308 |
-
|
309 |
-
QuoVadis Root CA 3
|
310 |
-
==================
|
311 |
-
-----BEGIN CERTIFICATE-----
|
312 |
-
MIIGnTCCBIWgAwIBAgICBcYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
|
313 |
-
EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJv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J6szHXu
|
339 |
-
g/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0jWy10QJLZYxkNc91p
|
340 |
-
vGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeTmJlglFwjz1onl14LBQaTNx47aTbr
|
341 |
-
qZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK4SVhM7JZG+Ju1zdXtg2pEto=
|
342 |
-
-----END CERTIFICATE-----
|
343 |
-
|
344 |
-
Security Communication Root CA
|
345 |
-
==============================
|
346 |
-
-----BEGIN CERTIFICATE-----
|
347 |
-
MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
|
348 |
-
U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
|
349 |
-
HhcNMDMwOTMwMDQyMDQ5WhcNMjMwOTMwMDQyMDQ5WjBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
|
350 |
-
U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
|
351 |
-
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzs/5/022x7xZ8V6UMbXaKL0u/ZPtM7orw
|
352 |
-
8yl89f/uKuDp6bpbZCKamm8sOiZpUQWZJtzVHGpxxpp9Hp3dfGzGjGdnSj74cbAZJ6kJDKaVv0uM
|
353 |
-
DPpVmDvY6CKhS3E4eayXkmmziX7qIWgGmBSWh9JhNrxtJ1aeV+7AwFb9Ms+k2Y7CI9eNqPPYJayX
|
354 |
-
5HA49LY6tJ07lyZDo6G8SVlyTCMwhwFY9k6+HGhWZq/NQV3Is00qVUarH9oe4kA92819uZKAnDfd
|
355 |
-
DJZkndwi92SL32HeFZRSFaB9UslLqCHJxrHty8OVYNEP8Ktw+N/LTX7s1vqr2b1/VPKl6Xn62dZ2
|
356 |
-
JChzAgMBAAGjPzA9MB0GA1UdDgQWBBSgc0mZaNyFW2XjmygvV5+9M7wHSDALBgNVHQ8EBAMCAQYw
|
357 |
-
DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAaECpqLvkT115swW1F7NgE+vGkl3g
|
358 |
-
0dNq/vu+m22/xwVtWSDEHPC32oRYAmP6SBbvT6UL90qY8j+eG61Ha2POCEfrUj94nK9NrvjVT8+a
|
359 |
-
mCoQQTlSxN3Zmw7vkwGusi7KaEIkQmywszo+zenaSMQVy+n5Bw+SUEmK3TGXX8npN6o7WWWXlDLJ
|
360 |
-
s58+OmJYxUmtYg5xpTKqL8aJdkNAExNnPaJUJRDL8Try2frbSVa7pv6nQTXD4IhhyYjH3zYQIphZ
|
361 |
-
6rBK+1YWc26sTfcioU+tHXotRSflMMFe8toTyyVCUZVHA4xsIcx0Qu1T/zOLjw9XARYvz6buyXAi
|
362 |
-
FL39vmwLAw==
|
363 |
-
-----END CERTIFICATE-----
|
364 |
-
|
365 |
-
Sonera Class 2 Root CA
|
366 |
-
======================
|
367 |
-
-----BEGIN CERTIFICATE-----
|
368 |
-
MIIDIDCCAgigAwIBAgIBHTANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEPMA0GA1UEChMG
|
369 |
-
U29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MyIENBMB4XDTAxMDQwNjA3Mjk0MFoXDTIxMDQw
|
370 |
-
NjA3Mjk0MFowOTELMAkGA1UEBhMCRkkxDzANBgNVBAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJh
|
371 |
-
IENsYXNzMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJAXSjWdyvANlsdE+hY3
|
372 |
-
/Ei9vX+ALTU74W+oZ6m/AxxNjG8yR9VBaKQTBME1DJqEQ/xcHf+Js+gXGM2RX/uJ4+q/Tl18GybT
|
373 |
-
dXnt5oTjV+WtKcT0OijnpXuENmmz/V52vaMtmdOQTiMofRhj8VQ7Jp12W5dCsv+u8E7s3TmVToMG
|
374 |
-
f+dJQMjFAbJUWmYdPfz56TwKnoG4cPABi+QjVHzIrviQHgCWctRUz2EjvOr7nQKV0ba5cTppCD8P
|
375 |
-
tOFCx4j1P5iop7oc4HFx71hXgVB6XGt0Rg6DA5jDjqhu8nYybieDwnPz3BjotJPqdURrBGAgcVeH
|
376 |
-
nfO+oJAjPYok4doh28MCAwEAAaMzMDEwDwYDVR0TAQH/BAUwAwEB/zARBgNVHQ4ECgQISqCqWITT
|
377 |
-
XjwwCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBazof5FnIVV0sd2ZvnoiYw7JNn39Yt
|
378 |
-
0jSv9zilzqsWuasvfDXLrNAPtEwr/IDva4yRXzZ299uzGxnq9LIR/WFxRL8oszodv7ND6J+/3DEI
|
379 |
-
cbCdjdY0RzKQxmUk96BKfARzjzlvF4xytb1LyHr4e4PDKE6cCepnP7JnBBvDFNr450kkkdAdavph
|
380 |
-
Oe9r5yF1BgfYErQhIHBCcYHaPJo2vqZbDWpsmh+Re/n570K6Tk6ezAyNlNzZRZxe7EJQY670XcSx
|
381 |
-
EtzKO6gunRRaBXW37Ndj4ro1tgQIkejanZz2ZrUYrAqmVCY0M9IbwdR/GjqOC6oybtv8TyWf2TLH
|
382 |
-
llpwrN9M
|
383 |
-
-----END CERTIFICATE-----
|
384 |
-
|
385 |
-
XRamp Global CA Root
|
386 |
-
====================
|
387 |
-
-----BEGIN CERTIFICATE-----
|
388 |
-
MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UE
|
389 |
-
BhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2Vj
|
390 |
-
dXJp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7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc
|
403 |
-
/Kh4ZzXxHfARvbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt
|
404 |
-
qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLaIR9NmXmd4c8n
|
405 |
-
nxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSyi6mx5O+aGtA9aZnuqCij4Tyz
|
406 |
-
8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQO+7ETPTsJ3xCwnR8gooJybQDJbw=
|
407 |
-
-----END CERTIFICATE-----
|
408 |
-
|
409 |
-
Go Daddy Class 2 CA
|
410 |
-
===================
|
411 |
-
-----BEGIN CERTIFICATE-----
|
412 |
-
MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMY
|
413 |
-
VGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRp
|
414 |
-
ZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkG
|
415 |
-
A1UEBhMCVVMxITAfBgNVBAoTGFRoZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28g
|
416 |
-
RGFkZHkgQ2xhc3MgMiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQAD
|
417 |
-
ggENADCCAQgCggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCAPVYYYwhv
|
418 |
-
2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6wwdhFJ2+qN1j3hybX2C32
|
419 |
-
qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXiEqITLdiOr18SPaAIBQi2XKVlOARFmR6j
|
420 |
-
YGB0xUGlcmIbYsUfb18aQr4CUWWoriMYavx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmY
|
421 |
-
vLEHZ6IVDd2gWMZEewo+YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0O
|
422 |
-
BBYEFNLEsNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h/t2o
|
423 |
-
atTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5IEdyb3VwLCBJbmMu
|
424 |
-
MTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwG
|
425 |
-
A1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wim
|
426 |
-
PQoZ+YeAEW5p5JYXMP80kWNyOO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKt
|
427 |
-
I3lpjbi2Tc7PTMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ
|
428 |
-
HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mERdEr/VxqHD3VI
|
429 |
-
Ls9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5CufReYNnyicsbkqWletNw+vHX/b
|
430 |
-
vZ8=
|
431 |
-
-----END CERTIFICATE-----
|
432 |
-
|
433 |
-
Starfield Class 2 CA
|
434 |
-
====================
|
435 |
-
-----BEGIN CERTIFICATE-----
|
436 |
-
MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9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yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGs
|
450 |
-
afPzWdqbAYcaT1epoXkJKtv3L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLM
|
451 |
-
PUxA2IGvd56Deruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl
|
452 |
-
xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynpVSJYACPq4xJD
|
453 |
-
KVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEYWQPJIrSPnNVeKtelttQKbfi3
|
454 |
-
QBFGmh95DmK/D5fs4C8fF5Q=
|
455 |
-
-----END CERTIFICATE-----
|
456 |
-
|
457 |
-
DigiCert Assured ID Root CA
|
458 |
-
===========================
|
459 |
-
-----BEGIN CERTIFICATE-----
|
460 |
-
MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQG
|
461 |
-
EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
|
462 |
-
IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzEx
|
463 |
-
MTEwMDAwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
|
464 |
-
ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0Ew
|
465 |
-
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7cJpSIqvTO
|
466 |
-
9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYPmDI2dsze3Tyoou9q+yHy
|
467 |
-
UmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW
|
468 |
-
/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpy
|
469 |
-
oeb6pNnVFzF1roV9Iq4/AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whf
|
470 |
-
GHdPAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRF
|
471 |
-
66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYunpyGd823IDzANBgkq
|
472 |
-
hkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRCdWKuh+vy1dneVrOfzM4UKLkNl2Bc
|
473 |
-
EkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTffwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38Fn
|
474 |
-
SbNd67IJKusm7Xi+fT8r87cmNW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i
|
475 |
-
8b5QZ7dsvfPxH2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe
|
476 |
-
+o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g==
|
477 |
-
-----END CERTIFICATE-----
|
478 |
-
|
479 |
-
DigiCert Global Root CA
|
480 |
-
=======================
|
481 |
-
-----BEGIN CERTIFICATE-----
|
482 |
-
MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQG
|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06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIt
|
496 |
-
tep3Sp+dWOIrWcBAI+0tKIJFPnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886
|
497 |
-
UAb3LujEV0lsYSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk
|
498 |
-
CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=
|
499 |
-
-----END CERTIFICATE-----
|
500 |
-
|
501 |
-
DigiCert High Assurance EV Root CA
|
502 |
-
==================================
|
503 |
-
-----BEGIN CERTIFICATE-----
|
504 |
-
MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQG
|
505 |
-
EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSsw
|
506 |
-
KQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAw
|
507 |
-
MFoXDTMxMTExMDAwMDAwMFowbDELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZ
|
508 |
-
MBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFu
|
509 |
-
Y2UgRVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm+9S75S0t
|
510 |
-
Mqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTWPNt0OKRKzE0lgvdKpVMS
|
511 |
-
OO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEMxChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3
|
512 |
-
MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFBIk5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQ
|
513 |
-
NAQTXKFx01p8VdteZOE3hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUe
|
514 |
-
h10aUAsgEsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMB
|
515 |
-
Af8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaAFLE+w2kD+L9HAdSY
|
516 |
-
JhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3NecnzyIZgYIVyHbIUf4KmeqvxgydkAQ
|
517 |
-
V8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6zeM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFp
|
518 |
-
myPInngiK3BD41VHMWEZ71jFhS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkK
|
519 |
-
mNEVX58Svnw2Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe
|
520 |
-
vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep+OkuE6N36B9K
|
521 |
-
-----END CERTIFICATE-----
|
522 |
-
|
523 |
-
DST Root CA X3
|
524 |
-
==============
|
525 |
-
-----BEGIN CERTIFICATE-----
|
526 |
-
MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/MSQwIgYDVQQK
|
527 |
-
ExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMTDkRTVCBSb290IENBIFgzMB4X
|
528 |
-
DTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVowPzEkMCIGA1U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 |
-
SwissSign Gold CA - G2
|
544 |
-
======================
|
545 |
-
-----BEGIN CERTIFICATE-----
|
546 |
-
MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNVBAYTAkNIMRUw
|
547 |
-
EwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3aXNzU2lnbiBHb2xkIENBIC0gRzIwHhcN
|
548 |
-
MDYxMDI1MDgzMDM1WhcNMzYxMDI1MDgzMDM1WjBFMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dp
|
549 |
-
c3NTaWduIEFHMR8wHQYDVQQDExZTd2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG9w0B
|
550 |
-
AQEFAAOCAg8AMIICCgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUq
|
551 |
-
t2/876LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+bbqBHH5C
|
552 |
-
jCA12UNNhPqE21Is8w4ndwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c6bM8K8vzARO/Ws/BtQpg
|
553 |
-
vd21mWRTuKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqEemA8atufK+ze3gE/bk3lUIbLtK/tREDF
|
554 |
-
ylqM2tIrfKjuvqblCqoOpd8FUrdVxyJdMmqXl2MT28nbeTZ7hTpKxVKJ+STnnXepgv9VHKVxaSvR
|
555 |
-
AiTysybUa9oEVeXBCsdtMDeQKuSeFDNeFhdVxVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuend
|
556 |
-
jIj3o02yMszYF9rNt85mndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69yFGkO
|
557 |
-
peUDDniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPiaG59je883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ZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6Lqj
|
571 |
-
viOvrv1vA+ACOzB2+httQc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ
|
572 |
-
-----END CERTIFICATE-----
|
573 |
-
|
574 |
-
SwissSign Silver CA - G2
|
575 |
-
========================
|
576 |
-
-----BEGIN CERTIFICATE-----
|
577 |
-
MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCQ0gxFTAT
|
578 |
-
BgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMB4X
|
579 |
-
DTA2MTAyNTA4MzI0NloXDTM2MTAyNTA4MzI0NlowRzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3
|
580 |
-
aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkqhkiG
|
581 |
-
9w0BAQEFAAOCAg8AMIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dOcbpLj6VzHVxumK4DV644
|
582 |
-
N0MvFz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gREpzn5/ASLHvGiTSf5YXu6t+WiE7brYT7QbNHm
|
583 |
-
+/pe7R20nqA1W6GSy/BJkv6FCgU+5tkL4k+73JU3/JHpMjUi0R86TieFnbAVlDLaYQ1HTWBCrpJH
|
584 |
-
6INaUFjpiou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH6ATK72oxh9TAtvmUcXtnZLi2kUpCe2Uu
|
585 |
-
MGoM9ZDulebyzYLs2aFK7PayS+VFheZteJMELpyCbTapxDFkH4aDCyr0NQp4yVXPQbBH6TCfmb5h
|
586 |
-
qAaEuSh6XzjZG6k4sIN/c8HDO0gqgg8hm7jMqDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5
|
587 |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dQRdAtq/gsD/KNVV4n+Ssuu
|
600 |
-
WxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJ
|
601 |
-
DIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ub
|
602 |
-
DgEj8Z+7fNzcbBGXJbLytGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u
|
603 |
-
-----END CERTIFICATE-----
|
604 |
-
|
605 |
-
GeoTrust Primary Certification Authority
|
606 |
-
========================================
|
607 |
-
-----BEGIN CERTIFICATE-----
|
608 |
-
MIIDfDCCAmSgAwIBAgIQGKy1av1pthU6Y2yv2vrEoTANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQG
|
609 |
-
EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjExMC8GA1UEAxMoR2VvVHJ1c3QgUHJpbWFyeSBD
|
610 |
-
ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjExMjcwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMFgx
|
611 |
-
CzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTEwLwYDVQQDEyhHZW9UcnVzdCBQ
|
612 |
-
cmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
|
613 |
-
CgKCAQEAvrgVe//UfH1nrYNke8hCUy3f9oQIIGHWAVlqnEQRr+92/ZV+zmEwu3qDXwK9AWbK7hWN
|
614 |
-
b6EwnL2hhZ6UOvNWiAAxz9juapYC2e0DjPt1befquFUWBRaa9OBesYjAZIVcFU2Ix7e64HXprQU9
|
615 |
-
nceJSOC7KMgD4TCTZF5SwFlwIjVXiIrxlQqD17wxcwE07e9GceBrAqg1cmuXm2bgyxx5X9gaBGge
|
616 |
-
RwLmnWDiNpcB3841kt++Z8dtd1k7j53WkBWUvEI0EME5+bEnPn7WinXFsq+W06Lem+SYvn3h6YGt
|
617 |
-
tm/81w7a4DSwDRp35+MImO9Y+pyEtzavwt+s0vQQBnBxNQIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
|
618 |
-
AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQULNVQQZcVi/CPNmFbSvtr2ZnJM5IwDQYJKoZI
|
619 |
-
hvcNAQEFBQADggEBAFpwfyzdtzRP9YZRqSa+S7iq8XEN3GHHoOo0Hnp3DwQ16CePbJC/kRYkRj5K
|
620 |
-
Ts4rFtULUh38H2eiAkUxT87z+gOneZ1TatnaYzr4gNfTmeGl4b7UVXGYNTq+k+qurUKykG/g/CFN
|
621 |
-
NWMziUnWm07Kx+dOCQD32sfvmWKZd7aVIl6KoKv0uHiYyjgZmclynnjNS6yvGaBzEi38wkG6gZHa
|
622 |
-
Floxt/m0cYASSJlyc1pZU8FjUjPtp8nSOQJw+uCxQmYpqptR7TBUIhRf2asdweSU8Pj1K/fqynhG
|
623 |
-
1riR/aYNKxoUAT6A8EKglQdebc3MS6RFjasS6LPeWuWgfOgPIh1a6Vk=
|
624 |
-
-----END CERTIFICATE-----
|
625 |
-
|
626 |
-
thawte Primary Root CA
|
627 |
-
======================
|
628 |
-
-----BEGIN CERTIFICATE-----
|
629 |
-
MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/ON9srbTANBgkqhkiG9w0BAQUFADCBqTELMAkGA1UE
|
630 |
-
BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
|
631 |
-
aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
|
632 |
-
cml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3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YcvnIc3zfFi8VqT79aie2oetaupgf1eNNZAqdE8hhuvU5HIe6uL17In/2/qxAeeWsEG89
|
646 |
-
jxt5dovEN7MhGITlNgDrYyCZuen+MwS7QcjBAvlEYyCegc5C09Y/LHbTY5xZ3Y+m4Q6gLkH3LpVH
|
647 |
-
z7z9M/P2C2F+fpErgUfCJzDupxBdN49cOSvkBPB7jVaMaA==
|
648 |
-
-----END CERTIFICATE-----
|
649 |
-
|
650 |
-
VeriSign Class 3 Public Primary Certification Authority - G5
|
651 |
-
============================================================
|
652 |
-
-----BEGIN CERTIFICATE-----
|
653 |
-
MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCByjELMAkGA1UE
|
654 |
-
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
|
655 |
-
ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
|
656 |
-
IHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRp
|
657 |
-
ZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCB
|
658 |
-
yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2ln
|
659 |
-
biBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBh
|
660 |
-
dXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmlt
|
661 |
-
YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwggEiMA0GCSqGSIb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Hr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq
|
675 |
-
-----END CERTIFICATE-----
|
676 |
-
|
677 |
-
SecureTrust CA
|
678 |
-
==============
|
679 |
-
-----BEGIN CERTIFICATE-----
|
680 |
-
MIIDuDCCAqCgAwIBAgIQDPCOXAgWpa1Cf/DrJxhZ0DANBgkqhkiG9w0BAQUFADBIMQswCQYDVQQG
|
681 |
-
EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xFzAVBgNVBAMTDlNlY3VyZVRy
|
682 |
-
dXN0IENBMB4XDTA2MTEwNzE5MzExOFoXDTI5MTIzMTE5NDA1NVowSDELMAkGA1UEBhMCVVMxIDAe
|
683 |
-
BgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9uMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTCC
|
684 |
-
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKukgeWVzfX2FI7CT8rU4niVWJxB4Q2ZQCQX
|
685 |
-
OZEzZum+4YOvYlyJ0fwkW2Gz4BERQRwdbvC4u/jep4G6pkjGnx29vo6pQT64lO0pGtSO0gMdA+9t
|
686 |
-
DWccV9cGrcrI9f4Or2YlSASWC12juhbDCE/RRvgUXPLIXgGZbf2IzIaowW8xQmxSPmjL8xk037uH
|
687 |
-
GFaAJsTQ3MBv396gwpEWoGQRS0S8Hvbn+mPeZqx2pHGj7DaUaHp3pLHnDi+BeuK1cobvomuL8A/b
|
688 |
-
01k/unK8RCSc43Oz969XL0Imnal0ugBS8kvNU3xHCzaFDmapCJcWNFfBZveA4+1wVMeT4C4oFVmH
|
689 |
-
ursCAwEAAaOBnTCBmjATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/
|
690 |
-
BAUwAwEB/zAdBgNVHQ4EFgQUQjK2FvoE/f5dS3rD/fdMQB1aQ68wNAYDVR0fBC0wKzApo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oC6zFh1ykzTM7HfAo3fg+6MpjhHZevj8fcyTiW89sa/FHtaMbQ
|
708 |
-
bqR8JNGuQsiWUGMu4P51/pinX0kuleM5M2SOHqRfkNJnPLLZ/kG5VacJjnIFHovdRIWCQtBJwB1g
|
709 |
-
8NEXLJXr9qXBkqPFwqcIYA1gBBCWeZ4WNOaptvolRTnIHmX5k/Wq8VLcmZg9pYYaDDUz+kulBAYV
|
710 |
-
HDGA76oYa8J719rO+TMg1fW9ajMtgQT7sFzUnKPiXB3jqUJ1XnvUd+85VLrJChgbEplJL4hL/VBi
|
711 |
-
0XPnj3pDAgMBAAGjgZ0wgZowEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud
|
712 |
-
EwEB/wQFMAMBAf8wHQYDVR0OBBYEFK9EBMJBfkiD2045AuzshHrmzsmkMDQGA1UdHwQtMCswKaAn
|
713 |
-
oCWGI2h0dHA6Ly9jcmwuc2VjdXJldHJ1c3QuY29tL1NHQ0EuY3JsMBAGCSsGAQQBgjcVAQQDAgEA
|
714 |
-
MA0GCSqGSIb3DQEBBQUAA4IBAQBjGghAfaReUw132HquHw0LURYD7xh8yOOvaliTFGCRsoTciE6+
|
715 |
-
OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXOH0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cn
|
716 |
-
CDpOGR86p1hcF895P4vkp9MmI50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/5
|
717 |
-
3CYNv6ZHdAbYiNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc
|
718 |
-
f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW
|
719 |
-
-----END CERTIFICATE-----
|
720 |
-
|
721 |
-
COMODO Certification Authority
|
722 |
-
==============================
|
723 |
-
-----BEGIN CERTIFICATE-----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BJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLmNvbW9k
|
737 |
-
b2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOC
|
738 |
-
AQEAPpiem/Yb6dc5t3iuHXIYSdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CP
|
739 |
-
OGEIqB6BCsAvIC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/
|
740 |
-
RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4zJVSk/BwJVmc
|
741 |
-
IGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5ddBA6+C4OmF4O5MBKgxTMVBbkN
|
742 |
-
+8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IBZQ==
|
743 |
-
-----END CERTIFICATE-----
|
744 |
-
|
745 |
-
Network Solutions Certificate Authority
|
746 |
-
=======================================
|
747 |
-
-----BEGIN CERTIFICATE-----
|
748 |
-
MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4DANBgkqhkiG9w0BAQUFADBiMQswCQYDVQQG
|
749 |
-
EwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMuMTAwLgYDVQQDEydOZXR3b3Jr
|
750 |
-
IFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDYxMjAxMDAwMDAwWhcNMjkxMjMx
|
751 |
-
MjM1OTU5WjBiMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMu
|
752 |
-
MTAwLgYDVQQDEydOZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEiMA0G
|
753 |
-
CSqGS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
|
766 |
-
-----END CERTIFICATE-----
|
767 |
-
|
768 |
-
COMODO ECC Certification Authority
|
769 |
-
==================================
|
770 |
-
-----BEGIN CERTIFICATE-----
|
771 |
-
MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC
|
772 |
-
R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
|
773 |
-
ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB
|
774 |
-
dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix
|
775 |
-
GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
|
776 |
-
Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo
|
777 |
-
b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X
|
778 |
-
4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni
|
779 |
-
wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E
|
780 |
-
BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VG
|
781 |
-
FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA
|
782 |
-
U/7dIOA1mjbRx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YDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzANBgkqhkiG9w0BAQUFAAOCAQEA
|
800 |
-
hQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8hbV6lUmPOEvjvKtpv6zf+EwLHyzs+
|
801 |
-
ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFncfca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1klu
|
802 |
-
PBS1xp81HlDQwY9qcEQCYsuuHWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY
|
803 |
-
1gkIl2PlwS6wt0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw
|
804 |
-
WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg==
|
805 |
-
-----END CERTIFICATE-----
|
806 |
-
|
807 |
-
Cybertrust Global Root
|
808 |
-
======================
|
809 |
-
-----BEGIN CERTIFICATE-----
|
810 |
-
MIIDoTCCAomgAwIBAgILBAAAAAABD4WqLUgwDQYJKoZIhvcNAQEFBQAwOzEYMBYGA1UEChMPQ3li
|
811 |
-
ZXJ0cnVzdCwgSW5jMR8wHQYDVQQDExZDeWJlcnRydXN0IEdsb2JhbCBSb290MB4XDTA2MTIxNTA4
|
812 |
-
MDAwMFoXDTIxMTIxNTA4MDAwMFowOzEYMBYGA1UEChMPQ3liZXJ0cnVzdCwgSW5jMR8wHQYDVQQD
|
813 |
-
ExZDeWJlcnRydXN0IEdsb2JhbCBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
|
814 |
-
+Mi8vRRQZhP/8NN57CPytxrHjoXxEnOmGaoQ25yiZXRadz5RfVb23CO21O1fWLE3TdVJDm71aofW
|
815 |
-
0ozSJ8bi/zafmGWgE07GKmSb1ZASzxQG9Dvj1Ci+6A74q05IlG2OlTEQXO2iLb3VOm2yHLtgwEZL
|
816 |
-
AfVJrn5GitB0jaEMAs7u/OePuGtm839EAL9mJRQr3RAwHQeWP032a7iPt3sMpTjr3kfb1V05/Iin
|
817 |
-
89cqdPHoWqI7n1C6poxFNcJQZZXcY4Lv3b93TZxiyWNzFtApD0mpSPCzqrdsxacwOUBdrsTiXSZT
|
818 |
-
8M4cIwhhqJQZugRiQOwfOHB3EgZxpzAYXSUnpQIDAQABo4GlMIGiMA4GA1UdDwEB/wQEAwIBBjAP
|
819 |
-
BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBS2CHsNesysIEyGVjJez6tuhS1wVzA/BgNVHR8EODA2
|
820 |
-
MDSgMqAwhi5odHRwOi8vd3d3Mi5wdWJsaWMtdHJ1c3QuY29tL2NybC9jdC9jdHJvb3QuY3JsMB8G
|
821 |
-
A1UdIwQYMBaAFLYIew16zKwgTIZWMl7Pq26FLXBXMA0GCSqGSIb3DQEBBQUAA4IBAQBW7wojoFRO
|
822 |
-
lZfJ+InaRcHUowAl9B8Tq7ejhVhpwjCt2BWKLePJzYFa+HMjWqd8BfP9IjsO0QbE2zZMcwSO5bAi
|
823 |
-
5MXzLqXZI+O4Tkogp24CJJ8iYGd7ix1yCcUxXOl5n4BHPa2hCwcUPUf/A2kaDAtE52Mlp3+yybh2
|
824 |
-
hO0j9n0Hq0V+09+zv+mKts2oomcrUtW3ZfA5TGOgkXmTUg9U3YO7n9GPp1Nzw8v/MOx8BLjYRB+T
|
825 |
-
X3EJIrduPuocA06dGiBh+4E37F78CkWr1+cXVdCg6mCbpvbjjFspwgZgFJ0tl0ypkxWdYcQBX0jW
|
826 |
-
WL1WMRJOEcgh4LMRkWXbtKaIOM5V
|
827 |
-
-----END CERTIFICATE-----
|
828 |
-
|
829 |
-
ePKI Root Certification Authority
|
830 |
-
=================================
|
831 |
-
-----BEGIN CERTIFICATE-----
|
832 |
-
MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQY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B5bc0hH88vLbwZ44gx+FkagQnIl6Z0
|
875 |
-
x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6IJd1hJyMctTEHBDa0GpC9oHRxUIlt
|
876 |
-
vBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNwi/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7Nz
|
877 |
-
TogVZ96edhBiIL5VaZVDADlN9u6wWk5JRFRYX0KD
|
878 |
-
-----END CERTIFICATE-----
|
879 |
-
|
880 |
-
GeoTrust Primary Certification Authority - G3
|
881 |
-
=============================================
|
882 |
-
-----BEGIN CERTIFICATE-----
|
883 |
-
MIID/jCCAuagAwIBAgIQFaxulBmyeUtB9iepwxgPHzANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UE
|
884 |
-
BhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA4IEdlb1RydXN0
|
885 |
-
IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFy
|
886 |
-
eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEczMB4XDTA4MDQwMjAwMDAwMFoXDTM3MTIwMTIz
|
887 |
-
NTk1OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAo
|
888 |
-
YykgMjAwOCBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMT
|
889 |
-
LUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZI
|
890 |
-
hvcNAQEBBQADggEPADCCAQoCggEBANziXmJYHTNXOTIz+uvLh4yn1ErdBojqZI4xmKU4kB6Yzy5j
|
891 |
-
K/BGvESyiaHAKAxJcCGVn2TAppMSAmUmhsalifD614SgcK9PGpc/BkTVyetyEH3kMSj7HGHmKAdE
|
892 |
-
c5IiaacDiGydY8hS2pgn5whMcD60yRLBxWeDXTPzAxHsatBT4tG6NmCUgLthY2xbF37fQJQeqw3C
|
893 |
-
IShwiP/WJmxsYAQlTlV+fe+/lEjetx3dcI0FX4ilm/LC7urRQEFtYjgdVgbFA0dRIBn8exALDmKu
|
894 |
-
dlW/X3e+PkkBUz2YJQN2JFodtNuJ6nnltrM7P7pMKEF/BqxqjsHQ9gUdfeZChuOl1UcCAwEAAaNC
|
895 |
-
MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMR5yo6hTgMdHNxr
|
896 |
-
2zFblD4/MH8tMA0GCSqGSIb3DQEBCwUAA4IBAQAtxRPPVoB7eni9n64smefv2t+UXglpp+duaIy9
|
897 |
-
cr5HqQ6XErhK8WTTOd8lNNTBzU6B8A8ExCSzNJbGpqow32hhc9f5joWJ7w5elShKKiePEI4ufIbE
|
898 |
-
Ap7aDHdlDkQNkv39sxY2+hENHYwOB4lqKVb3cvTdFZx3NWZXqxNT2I7BQMXXExZacse3aQHEerGD
|
899 |
-
AWh9jUGhlBjBJVz88P6DAod8DQ3PLghcSkANPuyBYeYk28rgDi0Hsj5W3I31QYUHSJsMC8tJP33s
|
900 |
-
t/3LjWeJGqvtux6jAAgIFyqCXDFdRootD4abdNlF+9RAsXqqaC2Gspki4cErx5z481+oghLrGREt
|
901 |
-
-----END CERTIFICATE-----
|
902 |
-
|
903 |
-
thawte Primary Root CA - G2
|
904 |
-
===========================
|
905 |
-
-----BEGIN CERTIFICATE-----
|
906 |
-
MIICiDCCAg2gAwIBAgIQNfwmXNmET8k9Jj1Xm67XVjAKBggqhkjOPQQDAzCBhDELMAkGA1UEBhMC
|
907 |
-
VVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjE4MDYGA1UECxMvKGMpIDIwMDcgdGhhd3RlLCBJbmMu
|
908 |
-
IC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3Qg
|
909 |
-
Q0EgLSBHMjAeFw0wNzExMDUwMDAwMDBaFw0zODAxMTgyMzU5NTlaMIGEMQswCQYDVQQGEwJVUzEV
|
910 |
-
MBMGA1UEChMMdGhhd3RlLCBJbmMuMTgwNgYDVQQLEy8oYykgMjAwNyB0aGF3dGUsIEluYy4gLSBG
|
911 |
-
b3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAt
|
912 |
-
IEcyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEotWcgnuVnfFSeIf+iha/BebfowJPDQfGAFG6DAJS
|
913 |
-
LSKkQjnE/o/qycG+1E3/n3qe4rF8mq2nhglzh9HnmuN6papu+7qzcMBniKI11KOasf2twu8x+qi5
|
914 |
-
8/sIxpHR+ymVo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU
|
915 |
-
mtgAMADna3+FGO6Lts6KDPgR4bswCgYIKoZIzj0EAwMDaQAwZgIxAN344FdHW6fmCsO99YCKlzUN
|
916 |
-
G4k8VIZ3KMqh9HneteY4sPBlcIx/AlTCv//YoT7ZzwIxAMSNlPzcU9LcnXgWHxUzI1NS41oxXZ3K
|
917 |
-
rr0TKUQNJ1uo52icEvdYPy5yAlejj6EULg==
|
918 |
-
-----END CERTIFICATE-----
|
919 |
-
|
920 |
-
thawte Primary Root CA - G3
|
921 |
-
===========================
|
922 |
-
-----BEGIN CERTIFICATE-----
|
923 |
-
MIIEKjCCAxKgAwIBAgIQYAGXt0an6rS0mtZLL/eQ+zANBgkqhkiG9w0BAQsFADCBrjELMAkGA1UE
|
924 |
-
BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdG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AQELBQADggEBABpA2JVlrAmSicY59BDlqQ5mU1143vokkbvnRFHfxhY0Cu9qRFHqKweK
|
938 |
-
A3rD6z8KLFIWoCtDuSWQP3CpMyVtRRooOyfPqsMpQhvfO0zAMzRbQYi/aytlryjvsvXDqmbOe1bu
|
939 |
-
t8jLZ8HJnBoYuMTDSQPxYA5QzUbF83d597YV4Djbxy8ooAw/dyZ02SUS2jHaGh7cKUGRIjxpp7sC
|
940 |
-
8rZcJwOJ9Abqm+RyguOhCcHpABnTPtRwa7pxpqpYrvS76Wy274fMm7v/OeZWYdMKp8RcTGB7BXcm
|
941 |
-
er/YB1IsYvdwY9k5vG8cwnncdimvzsUsZAReiDZuMdRAGmI0Nj81Aa6sY6A=
|
942 |
-
-----END CERTIFICATE-----
|
943 |
-
|
944 |
-
GeoTrust Primary Certification Authority - G2
|
945 |
-
=============================================
|
946 |
-
-----BEGIN CERTIFICATE-----
|
947 |
-
MIICrjCCAjWgAwIBAgIQPLL0SAoA4v7rJDteYD7DazAKBggqhkjOPQQDAzCBmDELMAkGA1UEBhMC
|
948 |
-
VVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA3IEdlb1RydXN0IElu
|
949 |
-
Yy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBD
|
950 |
-
ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMB4XDTA3MTEwNTAwMDAwMFoXDTM4MDExODIzNTk1
|
951 |
-
OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykg
|
952 |
-
MjAwNyBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMTLUdl
|
953 |
-
b1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMjB2MBAGByqGSM49AgEG
|
954 |
-
BSuBBAAiA2IABBWx6P0DFUPlrOuHNxFi79KDNlJ9RVcLSo17VDs6bl8VAsBQps8lL33KSLjHUGMc
|
955 |
-
KiEIfJo22Av+0SbFWDEwKCXzXV2juLaltJLtbCyf691DiaI8S0iRHVDsJt/WYC69IaNCMEAwDwYD
|
956 |
-
VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+
|
957 |
-
EVXVMAoGCCqGSM49BAMDA2cAMGQCMGSWWaboCd6LuvpaiIjwH5HTRqjySkwCY/tsXzjbLkGTqQ7m
|
958 |
-
ndwxHLKgpxgceeHHNgIwOlavmnRs9vuD4DPTCF+hnMJbn0bWtsuRBmOiBuczrD6ogRLQy7rQkgu2
|
959 |
-
npaqBA+K
|
960 |
-
-----END CERTIFICATE-----
|
961 |
-
|
962 |
-
VeriSign Universal Root Certification Authority
|
963 |
-
===============================================
|
964 |
-
-----BEGIN CERTIFICATE-----
|
965 |
-
MIIEuTCCA6GgAwIBAgIQQBrEZCGzEyEDDrvkEhrFHTANBgkqhkiG9w0BAQsFADCBvTELMAkGA1UE
|
966 |
-
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
|
967 |
-
ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwOCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
|
968 |
-
IHVzZSBvbmx5MTgwNgYDVQQDEy9WZXJpU2lnbiBVbml2ZXJzYWwgUm9vdCBDZXJ0aWZpY2F0aW9u
|
969 |
-
IEF1dGhvcml0eTAeFw0wODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIG9MQswCQYDVQQGEwJV
|
970 |
-
UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFR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BYoH1quEPuBUDgMbMzxPcP1Y+Oz4yHJJDnp/RVmRvQbEdBNc6N9Rvk97ahfYtTx
|
984 |
-
P/jgdFcrGJ2BtMQo2pSXpXDrrB2+BxHw1dvd5Yzw1TKwg+ZX4o+/vqGqvz0dtdQ46tewXDpPaj+P
|
985 |
-
wGZsY6rp2aQW9IHRlRQOfc2VNNnSj3BzgXucfr2YYdhFh5iQxeuGMMY1v/D/w1WIg0vvBZIGcfK4
|
986 |
-
mJO37M2CYfE45k+XmCpajQ==
|
987 |
-
-----END CERTIFICATE-----
|
988 |
-
|
989 |
-
VeriSign Class 3 Public Primary Certification Authority - G4
|
990 |
-
============================================================
|
991 |
-
-----BEGIN CERTIFICATE-----
|
992 |
-
MIIDhDCCAwqgAwIBAgIQL4D+I4wOIg9IZxIokYesszAKBggqhkjOPQQDAzCByjELMAkGA1UEBhMC
|
993 |
-
VVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3
|
994 |
-
b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVz
|
995 |
-
ZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmlj
|
996 |
-
YXRpb24gQXV0aG9yaXR5IC0gRzQwHhcNMDcxMTA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCByjEL
|
997 |
-
MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBU
|
998 |
-
cnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRo
|
999 |
-
b3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5
|
1000 |
-
IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASnVnp8
|
1001 |
-
Utpkmw4tXNherJI9/gHmGUo9FANL+mAnINmDiWn6VMaaGF5VKmTeBvaNSjutEDxlPZCIBIngMGGz
|
1002 |
-
rl0Bp3vefLK+ymVhAIau2o970ImtTR1ZmkGxvEeA3J5iw/mjgbIwga8wDwYDVR0TAQH/BAUwAwEB
|
1003 |
-
/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2UvZ2lmMCEw
|
1004 |
-
HzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVyaXNpZ24u
|
1005 |
-
Y29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFLMWkf3upm7ktS5Jj4d4gYDs5bG1MAoGCCqGSM49BAMD
|
1006 |
-
A2gAMGUCMGYhDBgmYFo4e1ZC4Kf8NoRRkSAsdk1DPcQdhCPQrNZ8NQbOzWm9kA3bbEhCHQ6qQgIx
|
1007 |
-
AJw9SDkjOVgaFRJZap7v1VmyHVIsmXHNxynfGyphe3HR3vPA5Q06Sqotp9iGKt0uEA==
|
1008 |
-
-----END CERTIFICATE-----
|
1009 |
-
|
1010 |
-
NetLock Arany (Class Gold) Főtanúsítvány
|
1011 |
-
========================================
|
1012 |
-
-----BEGIN CERTIFICATE-----
|
1013 |
-
MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G
|
1014 |
-
A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610
|
1015 |
-
dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB
|
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2C+C8lcLIhJsFyUR+MLMOEkMNaj7rP9KdlpeuY0fsFskZ1FSNqb4VjMIDw1Z4fKRzC
|
1029 |
-
bLBQWV2QWzuoDTDPv31/zvGdg73JRm4gpvlhUbohL3u+pRVjodSVh/GeufOJ8z2FuLjbvrW5Kfna
|
1030 |
-
NwUASZQDhETnv0Mxz3WLJdH0pmT1kvarBes96aULNmLazAZfNou2XjG4Kvte9nHfRCaexOYNkbQu
|
1031 |
-
dZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E=
|
1032 |
-
-----END CERTIFICATE-----
|
1033 |
-
|
1034 |
-
Hongkong Post Root CA 1
|
1035 |
-
=======================
|
1036 |
-
-----BEGIN CERTIFICATE-----
|
1037 |
-
MIIDMDCCAhigAwIBAgICA+gwDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoT
|
1038 |
-
DUhvbmdrb25nIFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMB4XDTAzMDUx
|
1039 |
-
NTA1MTMxNFoXDTIzMDUxNTA0NTIyOVowRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoTDUhvbmdrb25n
|
1040 |
-
IFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMIIBIjANBgkqhkiG9w0BAQEF
|
1041 |
-
AAOCAQ8AMIIBCgKCAQEArP84tulmAknjorThkPlAj3n54r15/gK97iSSHSL22oVyaf7XPwnU3ZG1
|
1042 |
-
ApzQjVrhVcNQhrkpJsLj2aDxaQMoIIBFIi1WpztUlVYiWR8o3x8gPW2iNr4joLFutbEnPzlTCeqr
|
1043 |
-
auh0ssJlXI6/fMN4hM2eFvz1Lk8gKgifd/PFHsSaUmYeSF7jEAaPIpjhZY4bXSNmO7ilMlHIhqqh
|
1044 |
-
qZ5/dpTCpmy3QfDVyAY45tQM4vM7TG1QjMSDJ8EThFk9nnV0ttgCXjqQesBCNnLsak3c78QA3xMY
|
1045 |
-
V18meMjWCnl3v/evt3a5pQuEF10Q6m/hq5URX208o1xNg1vysxmKgIsLhwIDAQABoyYwJDASBgNV
|
1046 |
-
HRMBAf8ECDAGAQH/AgEDMA4GA1UdDwEB/wQEAwIBxjANBgkqhkiG9w0BAQUFAAOCAQEADkbVPK7i
|
1047 |
-
h9legYsCmEEIjEy82tvuJxuC52pF7BaLT4Wg87JwvVqWuspube5Gi27nKi6Wsxkz67SfqLI37pio
|
1048 |
-
l7Yutmcn1KZJ/RyTZXaeQi/cImyaT/JaFTmxcdcrUehtHJjA2Sr0oYJ71clBoiMBdDhViw+5Lmei
|
1049 |
-
IAQ32pwL0xch4I+XeTRvhEgCIDMb5jREn5Fw9IBehEPCKdJsEhTkYY2sEJCehFC78JZvRZ+K88ps
|
1050 |
-
T/oROhUVRsPNH4NbLUES7VBnQRM9IauUiqpOfMGx+6fWtScvl6tu4B3i0RwsH0Ti/L6RoZz71ilT
|
1051 |
-
c4afU9hDDl3WY4JxHYB0yvbiAmvZWg==
|
1052 |
-
-----END CERTIFICATE-----
|
1053 |
-
|
1054 |
-
SecureSign RootCA11
|
1055 |
-
===================
|
1056 |
-
-----BEGIN CERTIFICATE-----
|
1057 |
-
MIIDbTCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQGEwJKUDErMCkGA1UEChMi
|
1058 |
-
SmFwYW4gQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcywgSW5jLjEcMBoGA1UEAxMTU2VjdXJlU2lnbiBS
|
1059 |
-
b290Q0ExMTAeFw0wOTA0MDgwNDU2NDdaFw0yOTA0MDgwNDU2NDdaMFgxCzAJBgNVBAYTAkpQMSsw
|
1060 |
-
KQYDVQQKEyJKYXBhbiBDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzLCBJbmMuMRwwGgYDVQQDExNTZWN1
|
1061 |
-
cmVTaWduIFJvb3RDQTExMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA/XeqpRyQBTvL
|
1062 |
-
TJszi1oURaTnkBbR31fSIRCkF/3frNYfp+TbfPfs37gD2pRY/V1yfIw/XwFndBWW4wI8h9uuywGO
|
1063 |
-
wvNmxoVF9ALGOrVisq/6nL+k5tSAMJjzDbaTj6nU2DbysPyKyiyhFTOVMdrAG/LuYpmGYz+/3ZMq
|
1064 |
-
g6h2uRMft85OQoWPIucuGvKVCbIFtUROd6EgvanyTgp9UK31BQ1FT0Zx/Sg+U/sE2C3XZR1KG/rP
|
1065 |
-
O7AxmjVuyIsG0wCR8pQIZUyxNAYAeoni8McDWc/V1uinMrPmmECGxc0nEovMe863ETxiYAcjPitA
|
1066 |
-
bpSACW22s293bzUIUPsCh8U+iQIDAQABo0IwQDAdBgNVHQ4EFgQUW/hNT7KlhtQ60vFjmqC+CfZX
|
1067 |
-
t94wDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAKCh
|
1068 |
-
OBZmLqdWHyGcBvod7bkixTgm2E5P7KN/ed5GIaGHd48HCJqypMWvDzKYC3xmKbabfSVSSUOrTC4r
|
1069 |
-
bnpwrxYO4wJs+0LmGJ1F2FXI6Dvd5+H0LgscNFxsWEr7jIhQX5Ucv+2rIrVls4W6ng+4reV6G4pQ
|
1070 |
-
Oh29Dbx7VFALuUKvVaAYga1lme++5Jy/xIWrQbJUb9wlze144o4MjQlJ3WN7WmmWAiGovVJZ6X01
|
1071 |
-
y8hSyn+B/tlr0/cR7SXf+Of5pPpyl4RTDaXQMhhRdlkUbA/r7F+AjHVDg8OFmP9Mni0N5HeDk061
|
1072 |
-
lgeLKBObjBmNQSdJQO7e5iNEOdyhIta6A/I=
|
1073 |
-
-----END CERTIFICATE-----
|
1074 |
-
|
1075 |
-
Microsec e-Szigno Root CA 2009
|
1076 |
-
==============================
|
1077 |
-
-----BEGIN CERTIFICATE-----
|
1078 |
-
MIIECjCCAvKgAwIBAgIJAMJ+QwRORz8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bfQkPMPcu1SCOhGnqmKrs0aDAbBgNVHREE
|
1091 |
-
FDASgRBpbmZvQGUtc3ppZ25vLmh1MA0GCSqGSIb3DQEBCwUAA4IBAQDJ0Q5eLtXMs3w+y/w9/w0o
|
1092 |
-
lZMEyL/azXm4Q5DwpL7v8u8hmLzU1F0G9u5C7DBsoKqpyvGvivo/C3NqPuouQH4frlRheesuCDfX
|
1093 |
-
I/OMn74dseGkddug4lQUsbocKaQY9hK6ohQU4zE1yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775
|
1094 |
-
tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c2Pm2G2JwCz02
|
1095 |
-
yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5tHMN1Rq41Bab2XD0h7lbwyYIi
|
1096 |
-
LXpUq3DDfSJlgnCW
|
1097 |
-
-----END CERTIFICATE-----
|
1098 |
-
|
1099 |
-
GlobalSign Root CA - R3
|
1100 |
-
=======================
|
1101 |
-
-----BEGIN CERTIFICATE-----
|
1102 |
-
MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UECxMXR2xv
|
1103 |
-
YmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
|
1104 |
-
bFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
|
1105 |
-
aWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
|
1106 |
-
bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWt
|
1107 |
-
iHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsTgHeMCOFJ
|
1108 |
-
0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmmKPZpO/bLyCiR5Z2KYVc3
|
1109 |
-
rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjl
|
1110 |
-
OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2
|
1111 |
-
xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
|
1112 |
-
FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7
|
1113 |
-
lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8
|
1114 |
-
EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E
|
1115 |
-
bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18
|
1116 |
-
YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r
|
1117 |
-
kpeDMdmztcpHWD9f
|
1118 |
-
-----END CERTIFICATE-----
|
1119 |
-
|
1120 |
-
Autoridad de Certificacion Firmaprofesional CIF A62634068
|
1121 |
-
=========================================================
|
1122 |
-
-----BEGIN CERTIFICATE-----
|
1123 |
-
MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCRVMxQjBA
|
1124 |
-
BgNVBAMMOUF1dG9yaWRhZCBkZSBDZ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pLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQBjLMi
|
1150 |
-
6Et8Vcad+qMUu2WFbm5PEn4KPJ2V
|
1151 |
-
-----END CERTIFICATE-----
|
1152 |
-
|
1153 |
-
Izenpe.com
|
1154 |
-
==========
|
1155 |
-
-----BEGIN CERTIFICATE-----
|
1156 |
-
MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4MQswCQYDVQQG
|
1157 |
-
EwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wHhcNMDcxMjEz
|
1158 |
-
MTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMu
|
1159 |
-
QS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ
|
1160 |
-
03rKDx6sp4boFmVqscIbRTJxldn+EFvMr+eleQGPicPK8lVx93e+d5TzcqQsRNiekpsUOqHnJJAK
|
1161 |
-
ClaOxdgmlOHZSOEtPtoKct2jmRXagaKH9HtuJneJWK3W6wyyQXpzbm3benhB6QiIEn6HLmYRY2xU
|
1162 |
-
+zydcsC8Lv/Ct90NduM61/e0aL6i9eOBbsFGb12N4E3GVFWJGjMxCrFXuaOKmMPsOzTFlUFpfnXC
|
1163 |
-
PCDFYbpRR6AgkJOhkEvzTnyFRVSa0QUmQbC1TR0zvsQDyCV8wXDbO/QJLVQnSKwv4cSsPsjLkkxT
|
1164 |
-
OTcj7NMB+eAJRE1NZMDhDVqHIrytG6P+JrUV86f8hBnp7KGItERphIPzidF0BqnMC9bC3ieFUCbK
|
1165 |
-
F7jJeodWLBoBHmy+E60QrLUk9TiRodZL2vG70t5HtfG8gfZZa88ZU+mNFctKy6lvROUbQc/hhqfK
|
1166 |
-
0GqfvEyNBjNaooXlkDWgYl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ekGkLhObNA5me0mrZJfQRsN5
|
1179 |
-
nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC
|
1180 |
-
ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo
|
1181 |
-
Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z
|
1182 |
-
WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw==
|
1183 |
-
-----END CERTIFICATE-----
|
1184 |
-
|
1185 |
-
Chambers of Commerce Root - 2008
|
1186 |
-
================================
|
1187 |
-
-----BEGIN CERTIFICATE-----
|
1188 |
-
MIIHTzCCBTegAwIBAgIJAKPaQn6ksa7aMA0GCSqGSIb3DQEBBQUAMIGuMQswCQYDVQQGEwJFVTFD
|
1189 |
-
MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
|
1190 |
-
bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
|
1191 |
-
QS4xKTAnBgNVBAMTIENoYW1iZXJzIG9mIENvbW1lcmNlIFJvb3QgLSAyMDA4MB4XDTA4MDgwMTEy
|
1192 |
-
Mjk1MFoXDTM4MDczMTEyMjk1MFowga4xCzAJBgNVBAYTAkVVMUMwQQYDVQQHEzpNYWRyaWQgKHNl
|
1193 |
-
ZSBjdXJyZW50IGFkZHJlc3MgYXQgd3d3LmNhbWVyZmlybWEuY29tL2FkZHJlc3MpMRIwEAYDVQQF
|
1194 |
-
EwlBODI3NDMyODcxGzAZBgNVBAoTEkFDIENhbWVyZmlybWEgUy5BLjEpMCcGA1UEAxMgQ2hhbWJl
|
1195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K5r7VXNM21+9AUiRg
|
1220 |
-
OGcEMeyP84LG3rlV8zsxkVrctQgVrXYlCg17LofiDKYGvCYQbTed7N14jHyAxfDZd0jQ
|
1221 |
-
-----END CERTIFICATE-----
|
1222 |
-
|
1223 |
-
Global Chambersign Root - 2008
|
1224 |
-
==============================
|
1225 |
-
-----BEGIN CERTIFICATE-----
|
1226 |
-
MIIHSTCCBTGgAwIBAgIJAMnN0+nVfSPOMA0GCSqGSIb3DQEBBQUAMIGsMQswCQYDVQQGEwJFVTFD
|
1227 |
-
MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
|
1228 |
-
bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
|
1229 |
-
QS4xJzAlBgNVBAMTHkdsb2JhbCBDaGFtYmVyc2lnbiBSb290IC0gMjAwODAeFw0wODA4MDExMjMx
|
1230 |
-
NDBaFw0zODA3MzExMjMxNDBaMIGsMQswCQYDVQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUg
|
1231 |
-
Y3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAGA1UEBRMJ
|
1232 |
-
QTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xJzAlBgNVBAMTHkdsb2JhbCBD
|
1233 |
-
aGFtYmVyc2lnbiBSb290IC0gMjAwODCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMDf
|
1234 |
-
VtPkOpt2RbQT2//BthmLN0EYlVJH6xedKYiONWwGMi5HYvNJBL99RDaxccy9Wglz1dmFRP+RVyXf
|
1235 |
-
XjaOcNFccUMd2drvXNL7G706tcuto8xEpw2uIRU/uXpbknXYpBI4iRmKt4DS4jJvVpyR1ogQC7N0
|
1236 |
-
ZJJ0YP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wPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUHAgEWHGh0
|
1249 |
-
dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZIhvcNAQEFBQADggIBAICIf3DekijZBZRG
|
1250 |
-
/5BXqfEv3xoNa/p8DhxJJHkn2EaqbylZUohwEurdPfWbU1Rv4WCiqAm57OtZfMY18dwY6fFn5a+6
|
1251 |
-
ReAJ3spED8IXDneRRXozX1+WLGiLwUePmJs9wOzL9dWCkoQ10b42OFZyMVtHLaoXpGNR6woBrX/s
|
1252 |
-
dZ7LoR/xfxKxueRkf2fWIyr0uDldmOghp+G9PUIadJpwr2hsUF1Jz//7Dl3mLEfXgTpZALVza2Mg
|
1253 |
-
9jFFCDkO9HB+QHBaP9BrQql0PSgvAm11cpUJjUhjxsYjV5KTXjXBjfkK9yydYhz2rXzdpjEetrHH
|
1254 |
-
foUm+qRqtdpjMNHvkzeyZi99Bffnt0uYlDXA2TopwZ2yUDMdSqlapskD7+3056huirRXhOukP9Du
|
1255 |
-
qqqHW2Pok+JrqNS4cnhrG+055F3Lm6qH1U9OAP7Zap88MQ8oAgF9mOinsKJknnn4SPIVqczmyETr
|
1256 |
-
P3iZ8ntxPjzxmKfFGBI/5rsoM0LpRQp8bfKGeS/Fghl9CYl8slR2iK7ewfPM4W7bMdaTrpmg7yVq
|
1257 |
-
c5iJWzouE4gev8CSlDQb4ye3ix5vQv/n6TebUB0tovkC7stYWDpxvGjjqsGvHCgfotwjZT+B6q6Z
|
1258 |
-
09gwzxMNTxXJhLynSC34MCN32EZLeW32jO06f2ARePTpm67VVMB0gNELQp/B
|
1259 |
-
-----END CERTIFICATE-----
|
1260 |
-
|
1261 |
-
Go Daddy Root Certificate Authority - G2
|
1262 |
-
========================================
|
1263 |
-
-----BEGIN CERTIFICATE-----
|
1264 |
-
MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT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lsdeu9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r
|
1278 |
-
5N9ss4UXnT3ZJE95kTXWXwTrgIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYV
|
1279 |
-
N8Gb5DKj7Tjo2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO
|
1280 |
-
LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI4uJEvlz36hz1
|
1281 |
-
-----END CERTIFICATE-----
|
1282 |
-
|
1283 |
-
Starfield Root Certificate Authority - G2
|
1284 |
-
=========================================
|
1285 |
-
-----BEGIN CERTIFICATE-----
|
1286 |
-
MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
|
1287 |
-
B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
|
1288 |
-
b2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVsZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0
|
1289 |
-
eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAw
|
1290 |
-
DgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQg
|
1291 |
-
VGVjaG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZpY2F0ZSBB
|
1292 |
-
dXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3twQP89o/8ArFv
|
1293 |
-
W59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMgnLRJdzIpVv257IzdIvpy3Cdhl+72WoTs
|
1294 |
-
bhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNk
|
1295 |
-
N3mSwOxGXn/hbVNMYq/NHwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7Nf
|
1296 |
-
ZTD4p7dNdloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0HZbU
|
1297 |
-
JtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
|
1298 |
-
AQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0GCSqGSIb3DQEBCwUAA4IBAQARWfol
|
1299 |
-
TwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjUsHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx
|
1300 |
-
4mcujJUDJi5DnUox9g61DLu34jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUw
|
1301 |
-
F5okxBDgBPfg8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K
|
1302 |
-
pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ
|
1303 |
-
c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0
|
1304 |
-
-----END CERTIFICATE-----
|
1305 |
-
|
1306 |
-
Starfield Services Root Certificate Authority - G2
|
1307 |
-
==================================================
|
1308 |
-
-----BEGIN CERTIFICATE-----
|
1309 |
-
MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
|
1310 |
-
B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2Rh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obhiCPP
|
1323 |
-
E95Dz+I0swSdHynVv/heyNXBve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTy
|
1324 |
-
xQGjhdByPq1zqwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd
|
1325 |
-
iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn0q23KXB56jza
|
1326 |
-
YyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCNsSi6
|
1327 |
-
-----END CERTIFICATE-----
|
1328 |
-
|
1329 |
-
AffirmTrust Commercial
|
1330 |
-
======================
|
1331 |
-
-----BEGIN CERTIFICATE-----
|
1332 |
-
MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UEBhMCVVMxFDAS
|
1333 |
-
BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMB4XDTEw
|
1334 |
-
MDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
|
1335 |
-
bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEF
|
1336 |
-
AAOCAQ8AMIIBCgKCAQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6Eqdb
|
1337 |
-
DuKPHx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yrba0F8PrV
|
1338 |
-
C8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPALMeIrJmqbTFeurCA+ukV6
|
1339 |
-
BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1yHp52UKqK39c/s4mT6NmgTWvRLpUHhww
|
1340 |
-
MmWd5jyTXlBOeuM61G7MGvv50jeuJCqrVwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNV
|
1341 |
-
HQ4EFgQUnZPGU4teyq8/nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
|
1342 |
-
AQYwDQYJKoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYGXUPG
|
1343 |
-
hi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNjvbz4YYCanrHOQnDi
|
1344 |
-
qX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivtZ8SOyUOyXGsViQK8YvxO8rUzqrJv
|
1345 |
-
0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9gN53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0kh
|
1346 |
-
sUlHRUe072o0EclNmsxZt9YCnlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8=
|
1347 |
-
-----END CERTIFICATE-----
|
1348 |
-
|
1349 |
-
AffirmTrust Networking
|
1350 |
-
======================
|
1351 |
-
-----BEGIN CERTIFICATE-----
|
1352 |
-
MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UEBhMCVVMxFDAS
|
1353 |
-
BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMB4XDTEw
|
1354 |
-
MDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
|
1355 |
-
bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEF
|
1356 |
-
AAOCAQ8AMIIBCgKCAQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SE
|
1357 |
-
Hi3yYJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbuakCNrmreI
|
1358 |
-
dIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRLQESxG9fhwoXA3hA/Pe24
|
1359 |
-
/PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gb
|
1360 |
-
h+0t+nvujArjqWaJGctB+d1ENmHP4ndGyH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNV
|
1361 |
-
HQ4EFgQUBx/S55zawm6iQLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
|
1362 |
-
AQYwDQYJKoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfOtDIu
|
1363 |
-
UFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzuQY0x2+c06lkh1QF6
|
1364 |
-
12S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZLgo/bNjR9eUJtGxUAArgFU2HdW23
|
1365 |
-
WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4uolu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9
|
1366 |
-
/ZFvgrG+CJPbFEfxojfHRZ48x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s=
|
1367 |
-
-----END CERTIFICATE-----
|
1368 |
-
|
1369 |
-
AffirmTrust Premium
|
1370 |
-
===================
|
1371 |
-
-----BEGIN CERTIFICATE-----
|
1372 |
-
MIIFRjCCA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31FOQeE4tGv2Bb0TXOwF0lkLgAOIua+rF7nKsu7/+6qqo
|
1385 |
-
+Nz2snmKtmcCAwEAAaNCMEAwHQYDVR0OBBYEFJ3AZ6YMItkm9UWrpmVSESfYRaxjMA8GA1UdEwEB
|
1386 |
-
/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByv
|
1387 |
-
MiPIs0laUZx2KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg
|
1388 |
-
Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B8OWycvpEgjNC
|
1389 |
-
6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQMKSOyARiqcTtNd56l+0OOF6S
|
1390 |
-
L5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK
|
1391 |
-
+4w1IX2COPKpVJEZNZOUbWo6xbLQu4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmV
|
1392 |
-
BtWVyuEklut89pMFu+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFg
|
1393 |
-
IxpHYoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8GKa1qF60
|
1394 |
-
g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaORtGdFNrHF+QFlozEJLUb
|
1395 |
-
zxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6eKeC2uAloGRwYQw==
|
1396 |
-
-----END CERTIFICATE-----
|
1397 |
-
|
1398 |
-
AffirmTrust Premium ECC
|
1399 |
-
=======================
|
1400 |
-
-----BEGIN CERTIFICATE-----
|
1401 |
-
MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMCVVMxFDASBgNV
|
1402 |
-
BAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQcmVtaXVtIEVDQzAeFw0xMDAx
|
1403 |
-
MjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJBgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1U
|
1404 |
-
cnVzdDEgMB4GA1UEAwwXQWZmaXJtVHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQA
|
1405 |
-
IgNiAAQNMF4bFZ0D0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQ
|
1406 |
-
N8O9ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0GA1UdDgQW
|
1407 |
-
BBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAK
|
1408 |
-
BggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/VsaobgxCd05DhT1wV/GzTjxi+zygk8N53X
|
1409 |
-
57hG8f2h4nECMEJZh0PUUd+60wkyWs6Iflc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKM
|
1410 |
-
eQ==
|
1411 |
-
-----END CERTIFICATE-----
|
1412 |
-
|
1413 |
-
Certum Trusted Network CA
|
1414 |
-
=========================
|
1415 |
-
-----BEGIN CERTIFICATE-----
|
1416 |
-
MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQK
|
1417 |
-
ExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNh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dAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj
|
1431 |
-
Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI
|
1432 |
-
03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw=
|
1433 |
-
-----END CERTIFICATE-----
|
1434 |
-
|
1435 |
-
TWCA Root Certification Authority
|
1436 |
-
=================================
|
1437 |
-
-----BEGIN CERTIFICATE-----
|
1438 |
-
MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ
|
1439 |
-
VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh
|
1440 |
-
dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG
|
1441 |
-
EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB
|
1442 |
-
IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
|
1443 |
-
AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx
|
1444 |
-
QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC
|
1445 |
-
oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP
|
1446 |
-
4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r
|
1447 |
-
y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB
|
1448 |
-
BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG
|
1449 |
-
9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC
|
1450 |
-
mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW
|
1451 |
-
QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY
|
1452 |
-
T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny
|
1453 |
-
Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw==
|
1454 |
-
-----END CERTIFICATE-----
|
1455 |
-
|
1456 |
-
Security Communication RootCA2
|
1457 |
-
==============================
|
1458 |
-
-----BEGIN CERTIFICATE-----
|
1459 |
-
MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UEChMc
|
1460 |
-
U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMeU2VjdXJpdHkgQ29tbXVuaWNh
|
1461 |
-
dGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoXDTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMC
|
1462 |
-
SlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3Vy
|
1463 |
-
aXR5IENvbW11bmljYXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
|
1464 |
-
ANAVOVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGrzbl+dp++
|
1465 |
-
+T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVMVAX3NuRFg3sUZdbcDE3R
|
1466 |
-
3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQhNBqyjoGADdH5H5XTz+L62e4iKrFvlNV
|
1467 |
-
spHEfbmwhRkGeC7bYRr6hfVKkaHnFtWOojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1K
|
1468 |
-
EOtOghY6rCcMU/Gt1SSwawNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8
|
1469 |
-
QIH4D5csOPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEB
|
1470 |
-
CwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpFcoJxDjrSzG+ntKEj
|
1471 |
-
u/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXcokgfGT+Ok+vx+hfuzU7jBBJV1uXk
|
1472 |
-
3fs+BXziHV7Gp7yXT2g69ekuCkO2r1dcYmh8t/2jioSgrGK+KwmHNPBqAbubKVY8/gA3zyNs8U6q
|
1473 |
-
tnRGEmyR7jTV7JqR50S+kDFy1UkC9gLl9B/rfNmWVan/7Ir5mUf/NVoCqgTLiluHcSmRvaS0eg29
|
1474 |
-
mvVXIwAHIRc/SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03
|
1475 |
-
-----END CERTIFICATE-----
|
1476 |
-
|
1477 |
-
EC-ACC
|
1478 |
-
======
|
1479 |
-
-----BEGIN CERTIFICATE-----
|
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|
-
|
1507 |
-
Hellenic Academic and Research Institutions RootCA 2011
|
1508 |
-
=======================================================
|
1509 |
-
-----BEGIN CERTIFICATE-----
|
1510 |
-
MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1IxRDBCBgNVBAoT
|
1511 |
-
O0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9y
|
1512 |
-
aXR5MUAwPgYDVQQDEzdIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
|
1513 |
-
IFJvb3RDQSAyMDExMB4XDTExMTIwNjEzNDk1MloXDTMxMTIwMTEzNDk1MlowgZUxCzAJBgNVBAYT
|
1514 |
-
AkdSMUQwQgYDVQQKEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
|
1515 |
-
IENlcnQuIEF1dGhvcml0eTFAMD4GA1UEAxM3SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNo
|
1516 |
-
IEluc3RpdHV0aW9ucyBSb290Q0EgMjAxMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
|
1517 |
-
AKlTAOMupvaO+mDYLZU++CwqVE7NuYRhlFhPjz2L5EPzdYmNUeTDN9KKiE15HrcS3UN4SoqS5tdI
|
1518 |
-
1Q+kOilENbgH9mgdVc04UfCMJDGFr4PJfel3r+0ae50X+bOdOFAPplp5kYCvN66m0zH7tSYJnTxa
|
1519 |
-
71HFK9+WXesyHgLacEnsbgzImjeN9/E2YEsmLIKe0HjzDQ9jpFEw4fkrJxIH2Oq9GGKYsFk3fb7u
|
1520 |
-
8yBRQlqD75O6aRXxYp2fmTmCobd0LovUxQt7L/DICto9eQqakxylKHJzkUOap9FNhYS5qXSPFEDH
|
1521 |
-
3N6sQWRstBmbAmNtJGSPRLIl6s5ddAxjMlyNh+UCAwEAAaOBiTCBhjAPBgNVHRMBAf8EBTADAQH/
|
1522 |
-
MAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQUppFC/RNhSiOeCKQp5dgTBCPuQSUwRwYDVR0eBEAwPqA8
|
1523 |
-
MAWCAy5ncjAFggMuZXUwBoIELmVkdTAGggQub3JnMAWBAy5ncjAFgQMuZXUwBoEELmVkdTAGgQQu
|
1524 |
-
b3JnMA0GCSqGSIb3DQEBBQUAA4IBAQAf73lB4XtuP7KMhjdCSk4cNx6NZrokgclPEg8hwAOXhiVt
|
1525 |
-
XdMiKahsog2p6z0GW5k6x8zDmjR/qw7IThzh+uTczQ2+vyT+bOdrwg3IBp5OjWEopmr95fZi6hg8
|
1526 |
-
TqBTnbI6nOulnJEWtk2C4AwFSKls9cz4y51JtPACpf1wA+2KIaWuE4ZJwzNzvoc7dIsXRSZMFpGD
|
1527 |
-
/md9zU1jZ/rzAxKWeAaNsWftjj++n08C9bMJL/NMh98qy5V8AcysNnq/onN694/BtZqhFLKPM58N
|
1528 |
-
7yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXIl7WdmplNsDz4SgCbZN2fOUvRJ9e4
|
1529 |
-
-----END CERTIFICATE-----
|
1530 |
-
|
1531 |
-
Actalis Authentication Root CA
|
1532 |
-
==============================
|
1533 |
-
-----BEGIN CERTIFICATE-----
|
1534 |
-
MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UEBhMCSVQxDjAM
|
1535 |
-
BgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UE
|
1536 |
-
AwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDky
|
1537 |
-
MjExMjIwMlowazELMAkGA1UEBhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3R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R0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQALe3KHwGCmSUyI
|
1551 |
-
WOYdiPcUZEim2FgKDk8TNd81HdTtBjHIgT5q1d07GjLukD0R0i70jsNjLiNmsGe+b7bAEzlgqqI0
|
1552 |
-
JZN1Ut6nna0Oh4lScWoWPBkdg/iaKWW+9D+a2fDzWochcYBNy+A4mz+7+uAwTc+G02UQGRjRlwKx
|
1553 |
-
K3JCaKygvU5a2hi/a5iB0P2avl4VSM0RFbnAKVy06Ij3Pjaut2L9HmLecHgQHEhb2rykOLpn7VU+
|
1554 |
-
Xlff1ANATIGk0k9jpwlCCRT8AKnCgHNPLsBA2RF7SOp6AsDT6ygBJlh0wcBzIm2Tlf05fbsq4/aC
|
1555 |
-
4yyXX04fkZT6/iyj2HYauE2yOE+b+h1IYHkm4vP9qdCa6HCPSXrW5b0KDtst842/6+OkfcvHlXHo
|
1556 |
-
2qN8xcL4dJIEG4aspCJTQLas/kx2z/uUMsA1n3Y/buWQbqCmJqK4LL7RK4X9p2jIugErsWx0Hbhz
|
1557 |
-
lefut8cl8ABMALJ+tguLHPPAUJ4lueAI3jZm/zel0btUZCzJJ7VLkn5l/9Mt4blOvH+kQSGQQXem
|
1558 |
-
OR/qnuOf0GZvBeyqdn6/axag67XH/JJULysRJyU3eExRarDzzFhdFPFqSBX/wge2sY0PjlxQRrM9
|
1559 |
-
vwGYT7JZVEc+NHt4bVaTLnPqZih4zR0Uv6CPLy64Lo7yFIrM6bV8+2ydDKXhlg==
|
1560 |
-
-----END CERTIFICATE-----
|
1561 |
-
|
1562 |
-
Trustis FPS Root CA
|
1563 |
-
===================
|
1564 |
-
-----BEGIN CERTIFICATE-----
|
1565 |
-
MIIDZzCCAk+gAwIBAgIQGx+ttiD5JNM2a/fH8YygWTANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQG
|
1566 |
-
EwJHQjEYMBYGA1UEChMPVHJ1c3RpcyBMaW1pdGVkMRwwGgYDVQQLExNUcnVz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S3B2l0pKoU/rGXuhg8FjZBf3+6f9L/uHfuY5H+QK4R4EA5sSVPvFVtlRkpdr7r7OnIdzfYl
|
1580 |
-
iB6XzCGcKQENZetX2fNXlrtIzYE=
|
1581 |
-
-----END CERTIFICATE-----
|
1582 |
-
|
1583 |
-
Buypass Class 2 Root CA
|
1584 |
-
=======================
|
1585 |
-
-----BEGIN CERTIFICATE-----
|
1586 |
-
MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
|
1587 |
-
QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMiBSb290IENBMB4X
|
1588 |
-
DTEwMTAyNjA4MzgwM1oXDTQwMTAyNjA4MzgwM1owTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1
|
1589 |
-
eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDIgUm9vdCBDQTCCAiIw
|
1590 |
-
DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANfHXvfBB9R3+0Mh9PT1aeTuMgHbo4Yf5FkNuud1
|
1591 |
-
g1Lr6hxhFUi7HQfKjK6w3Jad6sNgkoaCKHOcVgb/S2TwDCo3SbXlzwx87vFKu3MwZfPVL4O2fuPn
|
1592 |
-
9Z6rYPnT8Z2SdIrkHJasW4DptfQxh6NR/Md+oW+OU3fUl8FVM5I+GC911K2GScuVr1QGbNgGE41b
|
1593 |
-
/+EmGVnAJLqBcXmQRFBoJJRfuLMR8SlBYaNByyM21cHxMlAQTn/0hpPshNOOvEu/XAFOBz3cFIqU
|
1594 |
-
CqTqc/sLUegTBxj6DvEr0VQVfTzh97QZQmdiXnfgolXsttlpF9U6r0TtSsWe5HonfOV116rLJeff
|
1595 |
-
awrbD02TTqigzXsu8lkBarcNuAeBfos4GzjmCleZPe4h6KP1DBbdi+w0jpwqHAAVF41og9Jwnx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RV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h3PFaTWwyI0PurKju7koS
|
1609 |
-
CTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPzY11aWOIv4x3kqdbQCtCev9eBCfHJxyYN
|
1610 |
-
rJgWVqA=
|
1611 |
-
-----END CERTIFICATE-----
|
1612 |
-
|
1613 |
-
Buypass Class 3 Root CA
|
1614 |
-
=======================
|
1615 |
-
-----BEGIN CERTIFICATE-----
|
1616 |
-
MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
|
1617 |
-
QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMyBSb290IENBMB4X
|
1618 |
-
DTEwMTAyNjA4Mjg1OFoXDTQwMTAyNjA4Mjg1OFowTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1
|
1619 |
-
eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDMgUm9vdCBDQTCCAiIw
|
1620 |
-
DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKXaCpUWUOOV8l6ddjEGMnqb8RB2uACatVI2zSRH
|
1621 |
-
sJ8YZLya9vrVediQYkwiL944PdbgqOkcLNt4EemOaFEVcsfzM4fkoF0LXOBXByow9c3EN3coTRiR
|
1622 |
-
5r/VUv1xLXA+58bEiuPwKAv0dpihi4dVsjoT/Lc+JzeOIuOoTyrvYLs9tznDDgFHmV0ST9tD+leh
|
1623 |
-
7fmdvhFHJlsTmKtdFoqwNxxXnUX/iJY2v7vKB3tvh2PX0DJq1l1sDPGzbjniazEuOQAnFN44wOwZ
|
1624 |
-
ZoYS6J1yFhNkUsepNxz9gjDthBgd9K5c/3ATAOux9TN6S9ZV+AWNS2mw9bMoNlwUxFFzTWsL8TQH
|
1625 |
-
2xc519woe2v1n/MuwU8XKhDzzMro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QNtg413OEMXbug
|
1638 |
-
UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe
|
1639 |
-
eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi
|
1640 |
-
Cp/HuZc=
|
1641 |
-
-----END CERTIFICATE-----
|
1642 |
-
|
1643 |
-
T-TeleSec GlobalRoot Class 3
|
1644 |
-
============================
|
1645 |
-
-----BEGIN CERTIFICATE-----
|
1646 |
-
MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
|
1647 |
-
IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
|
1648 |
-
cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx
|
1649 |
-
MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz
|
1650 |
-
dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD
|
1651 |
-
ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0GCSqGSIb3
|
1652 |
-
DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN8ELg63iIVl6bmlQdTQyK
|
1653 |
-
9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/RLyTPWGrTs0NvvAgJ1gORH8EGoel15YU
|
1654 |
-
NpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZF
|
1655 |
-
iP0Zf3WHHx+xGwpzJFu5ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W
|
1656 |
-
0eDrXltMEnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGjQjBA
|
1657 |
-
MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1A/d2O2GCahKqGFPr
|
1658 |
-
AyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOyWL6ukK2YJ5f+AbGwUgC4TeQbIXQb
|
1659 |
-
fsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzT
|
1660 |
-
ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h
|
1661 |
-
P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml
|
1662 |
-
e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw==
|
1663 |
-
-----END CERTIFICATE-----
|
1664 |
-
|
1665 |
-
D-TRUST Root Class 3 CA 2 2009
|
1666 |
-
==============================
|
1667 |
-
-----BEGIN CERTIFICATE-----
|
1668 |
-
MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQK
|
1669 |
-
DAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTAe
|
1670 |
-
Fw0wOTExMDUwODM1NThaFw0yOTExMDUwODM1NThaME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQKDA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gFYbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0
|
1684 |
-
o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4KzCUqNQT4YJEV
|
1685 |
-
dT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8PIWmawomDeCTmGCufsYkl4ph
|
1686 |
-
X5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3YJohw1+qRzT65ysCQblrGXnRl11z+o+I=
|
1687 |
-
-----END CERTIFICATE-----
|
1688 |
-
|
1689 |
-
D-TRUST Root Class 3 CA 2 EV 2009
|
1690 |
-
=================================
|
1691 |
-
-----BEGIN CERTIFICATE-----
|
1692 |
-
MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
|
1693 |
-
DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
|
1694 |
-
OTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUwNDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
|
1695 |
-
DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
|
1696 |
-
OTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfS
|
1697 |
-
egpnljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM03TP1YtHh
|
1698 |
-
zRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6ZqQTMFexgaDbtCHu39b+T
|
1699 |
-
7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0N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
E-Tugra Certification Authority
|
1844 |
-
===============================
|
1845 |
-
-----BEGIN CERTIFICATE-----
|
1846 |
-
MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNAQELBQAwgbIxCzAJBgNVBAYTAlRSMQ8w
|
1847 |
-
DQYDVQQHDAZBbmthcmExQDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamls
|
1848 |
-
ZXJpIHZlIEhpem1ldGxlcmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBN
|
1849 |
-
ZXJrZXppMSgwJgYDVQQDDB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTEzMDMw
|
1850 |
-
NTEyMDk0OFoXDTIzMDMwMzEyMDk0OFowgbIxCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmEx
|
1851 |
-
QDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhpem1ldGxl
|
1852 |
-
cmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBNZXJrZXppMSgwJgYDVQQD
|
1853 |
-
DB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
|
1854 |
-
MIICCgKCAgEA4vU/kwVRHoViVF56C/UYB4Oufq9899SKa6VjQzm5S/fDxmSJPZQuVIBSOTkHS0vd
|
1855 |
-
hQd2h8y/L5VMzH2nPbxHD5hw+IyFHnSOkm0bQNGZDbt1bsipa5rAhDGvykPL6ys06I+XawGb1Q5K
|
1856 |
-
CKpbknSFQ9OArqGIW66z6l7LFpp3RMih9lRozt6Plyu6W0ACDGQXwLWTzeHxE2bODHnv0ZEoq1+g
|
1857 |
-
ElIwcxmOj+GMB6LDu0rw6h8VqO4lzKRG+Bsi77MOQ7osJLjFL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c
|
1870 |
-
dlqMQ1DujjByTd//SffGqWfZbawCEeI6FiWnWAjLb1NBnEg4R2gz0dfHj9R0IdTDBZB6/86WiLEV
|
1871 |
-
KV0jq9BgoRJP3vQXzTLlyb/IQ639Lo7xr+L0mPoSHyDYwKcMhcWQ9DstliaxLL5Mq+ux0orJ23gT
|
1872 |
-
Dx4JnW2PAJ8C2sH6H3p6CcRK5ogql5+Ji/03X186zjhZhkuvcQu02PJwT58yE+Owp1fl2tpDy4Q0
|
1873 |
-
8ijE6m30Ku/Ba3ba+367hTzSU8JNvnHhRdH9I2cNE3X7z2VnIp2usAnRCf8dNL/+I5c30jn6PQ0G
|
1874 |
-
C7TbO6Orb1wdtn7os4I07QZcJA==
|
1875 |
-
-----END CERTIFICATE-----
|
1876 |
-
|
1877 |
-
T-TeleSec GlobalRoot Class 2
|
1878 |
-
============================
|
1879 |
-
-----BEGIN CERTIFICATE-----
|
1880 |
-
MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
|
1881 |
-
IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
|
1882 |
-
cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgx
|
1883 |
-
MDAxMTA0MDE0WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz
|
1884 |
-
dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD
|
1885 |
-
ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwggEiMA0GCSqGSIb3
|
1886 |
-
DQEBAQUAA4IBDwAwggEKAoIBAQCqX9obX+hzkeXaXPSi5kfl82hVYAUdAqSzm1nzHoqvNK38DcLZ
|
1887 |
-
SBnuaY/JIPwhqgcZ7bBcrGXHX+0CfHt8LRvWurmAwhiCFoT6ZrAIxlQjgeTNuUk/9k9uN0goOA/F
|
1888 |
-
vudocP05l03Sx5iRUKrERLMjfTlH6VJi1hKTXrcxlkIF+3anHqP1wvzpesVsqXFP6st4vGCvx970
|
1889 |
-
2cu+fjOlbpSD8DT6IavqjnKgP6TeMFvvhk1qlVtDRKgQFRzlAVfFmPHmBiiRqiDFt1MmUUOyCxGV
|
1890 |
-
WOHAD3bZwI18gfNycJ5v/hqO2V81xrJvNHy+SE/iWjnX2J14np+GPgNeGYtEotXHAgMBAAGjQjBA
|
1891 |
-
MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS/WSA2AHmgoCJrjNXy
|
1892 |
-
YdK4LMuCSjANBgkqhkiG9w0BAQsFAAOCAQEAMQOiYQsfdOhyNsZt+U2e+iKo4YFWz827n+qrkRk4
|
1893 |
-
r6p8FU3ztqONpfSO9kSpp+ghla0+AGIWiPACuvxhI+YzmzB6azZie60EI4RYZeLbK4rnJVM3YlNf
|
1894 |
-
vNoBYimipidx5joifsFvHZVwIEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR
|
1895 |
-
3p1m0IvVVGb6g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN
|
1896 |
-
9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlPBSeOE6Fuwg==
|
1897 |
-
-----END CERTIFICATE-----
|
1898 |
-
|
1899 |
-
Atos TrustedRoot 2011
|
1900 |
-
=====================
|
1901 |
-
-----BEGIN CERTIFICATE-----
|
1902 |
-
MIIDdzCCAl+gAwIBAgIIXDPLYixfszIwDQYJKoZIhvcNAQELBQAwPDEeMBwGA1UEAwwVQXRvcyBU
|
1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Nwlz6bb65pcmaHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a9
|
1916 |
-
61qn8FYiqTxlVMYVqL2Gns2Dlmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G
|
1917 |
-
3mB/ufNPRJLvKrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed
|
1918 |
-
-----END CERTIFICATE-----
|
1919 |
-
|
1920 |
-
QuoVadis Root CA 1 G3
|
1921 |
-
=====================
|
1922 |
-
-----BEGIN CERTIFICATE-----
|
1923 |
-
MIIFYDCCA0igAwIBAgIUeFhfLq0sGUvjNwc1NBMotZbUZZMwDQYJKoZIhvcNAQELBQAwSDELMAkG
|
1924 |
-
A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
|
1925 |
-
b3QgQ0EgMSBHMzAeFw0xMjAxMTIxNzI3NDRaFw00MjAxMTIxNzI3NDRaMEgxCzAJBgNVBAYTAkJN
|
1926 |
-
MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDEg
|
1927 |
-
RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCgvlAQjunybEC0BJyFuTHK3C3kEakE
|
1928 |
-
PBtVwedYMB0ktMPvhd6MLOHBPd+C5k+tR4ds7FtJwUrVu4/sh6x/gpqG7D0DmVIB0jWerNrwU8lm
|
1929 |
-
PNSsAgHaJNM7qAJGr6Qc4/hzWHa39g6QDbXwz8z6+cZM5cOGMAqNF34168Xfuw6cwI2H44g4hWf6
|
1930 |
-
Pser4BOcBRiYz5P1sZK0/CPTz9XEJ0ngnjybCKOLXSoh4Pw5qlPafX7PGglTvF0FBM+hSo+LdoIN
|
1931 |
-
ofjSxxR3W5A2B4GbPgb6Ul5jxaYA/qXpUhtStZI5cgMJYr2wYBZupt0lwgNm3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TR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNjZgKAvQU6
|
1945 |
-
O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhpq1467HxpvMc7hU6eFbm0
|
1946 |
-
FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFtnh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOV
|
1947 |
-
hMJKzRwuJIczYOXD
|
1948 |
-
-----END CERTIFICATE-----
|
1949 |
-
|
1950 |
-
QuoVadis Root CA 2 G3
|
1951 |
-
=====================
|
1952 |
-
-----BEGIN CERTIFICATE-----
|
1953 |
-
MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQELBQAwSDELMAkG
|
1954 |
-
A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
|
1955 |
-
b3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJaFw00MjAxMTIxODU5MzJaMEgxCzAJBgNVBAYTAkJN
|
1956 |
-
MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDIg
|
1957 |
-
RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQChriWyARjcV4g/Ruv5r+LrI3HimtFh
|
1958 |
-
ZiFfqq8nUeVuGxbULX1QsFN3vXg6YOJkApt8hpvWGo6t/x8Vf9WVHhLL5hSEBMHfNrMWn4rjyduY
|
1959 |
-
NM7YMxcoRvynyfDStNVNCXJJ+fKH46nafaF9a7I6JaltUkSs+L5u+9ymc5GQYaYDFCDy54ejiK2t
|
1960 |
-
oIz/pgslUiXnFgHVy7g1gQyjO/Dh4fxaXc6AcW34Sas+O7q414AB+6XrW7PFXmAqMaCvN+ggOp+o
|
1961 |
-
MiwMzA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lMVerugOXou/983g7aEOGzPuVBj+D77vfoRrQ+Nw
|
1974 |
-
mNtddbINWQeFFSM51vHfqSYP1kjHs6Yi9TM3WpVHn3u6GBVv/9YUZINJ0gpnIdsPNWNgKCLjsZWD
|
1975 |
-
zYWm3S8P52dSbrsvhXz1SnPnxT7AvSESBT/8twNJAlvIJebiVDj1eYeMHVOyToV7BjjHLPj4sHKN
|
1976 |
-
JeV3UvQDHEimUF+IIDBu8oJDqz2XhOdT+yHBTw8imoa4WSr2Rz0ZiC3oheGe7IUIarFsNMkd7Egr
|
1977 |
-
O3jtZsSOeWmD3n+M
|
1978 |
-
-----END CERTIFICATE-----
|
1979 |
-
|
1980 |
-
QuoVadis Root CA 3 G3
|
1981 |
-
=====================
|
1982 |
-
-----BEGIN CERTIFICATE-----
|
1983 |
-
MIIFYDCCA0igAwIBAgIULvWbAiin23r/1aOp7r0DoM8Sah0wDQYJKoZIhvcNAQELBQAwSDELMAkG
|
1984 |
-
A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
|
1985 |
-
b3QgQ0EgMyBHMzAeFw0xMjAxMTIyMDI2MzJaFw00MjAxMTIyMDI2MzJaMEgxCzAJBgNVBAYTAkJN
|
1986 |
-
MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDMg
|
1987 |
-
RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCzyw4QZ47qFJenMioKVjZ/aEzHs286
|
1988 |
-
IxSR/xl/pcqs7rN2nXrpixurazHb+gtTTK/FpRp5PIpM/6zfJd5O2YIyC0TeytuMrKNuFoM7pmRL
|
1989 |
-
Mon7FhY4futD4tN0SsJiCnMK3UmzV9KwCoWdcTzeo8vAMvMBOSBDGzXRU7Ox7sWTaYI+FrUoRqHe
|
1990 |
-
6okJ7UO4BUaKhvVZR74bbwEhEL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bKh4yE8/nxoGib
|
2003 |
-
Ih6BJpsQBJFxwAYf3KDTuVan45gtf4Od34wrnDKOMpTwATwiKp9Dwi7DmDkHOHv8XgBCH/MyJnmD
|
2004 |
-
hPbl8MFREsALHgQjDFSlTC9JxUrRtm5gDWv8a4uFJGS3iQ6rJUdbPM9+Sb3H6QrG2vd+DhcI00iX
|
2005 |
-
0HGS8A85PjRqHH3Y8iKuu2n0M7SmSFXRDw4m6Oy2Cy2nhTXN/VnIn9HNPlopNLk9hM6xZdRZkZFW
|
2006 |
-
dSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/ywaZWWDYWGWVjUTR939+J399roD1B0y2
|
2007 |
-
PpxxVJkES/1Y+Zj0
|
2008 |
-
-----END CERTIFICATE-----
|
2009 |
-
|
2010 |
-
DigiCert Assured ID Root G2
|
2011 |
-
===========================
|
2012 |
-
-----BEGIN CERTIFICATE-----
|
2013 |
-
MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQG
|
2014 |
-
EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
|
2015 |
-
IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgw
|
2016 |
-
MTE1MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
|
2017 |
-
ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIw
|
2018 |
-
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSAn61UQbVH
|
2019 |
-
35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4HteccbiJVMWWXvdMX0h5i89vq
|
2020 |
-
bFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9HpEgjAALAcKxHad3A2m67OeYfcgnDmCXRw
|
2021 |
-
VWmvo2ifv922ebPynXApVfSr/5Vh88lAbx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OP
|
2022 |
-
YLfykqGxvYmJHzDNw6YuYjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+Rn
|
2023 |
-
lTGNAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTO
|
2024 |
-
w0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPIQW5pJ6d1Ee88hjZv
|
2025 |
-
0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I0jJmwYrA8y8678Dj1JGG0VDjA9tz
|
2026 |
-
d29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4GnilmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAW
|
2027 |
-
hsI6yLETcDbYz+70CjTVW0z9B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0M
|
2028 |
-
jomZmWzwPDCvON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo
|
2029 |
-
IhNzbM8m9Yop5w==
|
2030 |
-
-----END CERTIFICATE-----
|
2031 |
-
|
2032 |
-
DigiCert Assured ID Root G3
|
2033 |
-
===========================
|
2034 |
-
-----BEGIN CERTIFICATE-----
|
2035 |
-
MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV
|
2036 |
-
UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYD
|
2037 |
-
VQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
|
2038 |
-
MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
|
2039 |
-
d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQ
|
2040 |
-
BgcqhkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJfZn4f5dwb
|
2041 |
-
RXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17QRSAPWXYQ1qAk8C3eNvJs
|
2042 |
-
KTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgF
|
2043 |
-
UaFNN6KDec6NHSrkhDAKBggqhkjOPQQDAwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5Fy
|
2044 |
-
YZ5eEJJZVrmDxxDnOOlYJjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy
|
2045 |
-
1vUhZscv6pZjamVFkpUBtA==
|
2046 |
-
-----END CERTIFICATE-----
|
2047 |
-
|
2048 |
-
DigiCert Global Root G2
|
2049 |
-
=======================
|
2050 |
-
-----BEGIN CERTIFICATE-----
|
2051 |
-
MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBhMQswCQYDVQQG
|
2052 |
-
EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw
|
2053 |
-
HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwg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h5Uykw7+U0b6LJ3/
|
2066 |
-
iyK5S9kJRaTepLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl
|
2067 |
-
MrY=
|
2068 |
-
-----END CERTIFICATE-----
|
2069 |
-
|
2070 |
-
DigiCert Global Root G3
|
2071 |
-
=======================
|
2072 |
-
-----BEGIN CERTIFICATE-----
|
2073 |
-
MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQswCQYDVQQGEwJV
|
2074 |
-
UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAwHgYD
|
2075 |
-
VQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAw
|
2076 |
-
MDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5k
|
2077 |
-
aWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0C
|
2078 |
-
AQYFK4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FGfp4tn+6O
|
2079 |
-
YwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPOZ9wj/wMco+I+o0IwQDAP
|
2080 |
-
BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNp
|
2081 |
-
Yim8S8YwCgYIKoZIzj0EAwMDaAAwZQIxAK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y
|
2082 |
-
3maTD/HMsQmP3Wyr+mt/oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34
|
2083 |
-
VOKa5Vt8sycX
|
2084 |
-
-----END CERTIFICATE-----
|
2085 |
-
|
2086 |
-
DigiCert Trusted Root G4
|
2087 |
-
========================
|
2088 |
-
-----BEGIN CERTIFICATE-----
|
2089 |
-
MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQG
|
2090 |
-
EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSEw
|
2091 |
-
HwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
|
2092 |
-
MTIwMDAwWjBiMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
|
2093 |
-
d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0G
|
2094 |
-
CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz7MKnJS7JIT3yithZwuEp
|
2095 |
-
pz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS5F/WBTxSD1Ifxp4VpX6+n6lXFllVcq9o
|
2096 |
-
k3DCsrp1mWpzMpTREEQQLt+C8weE5nQ7bXHiLQwb7iDVySAdYyktzuxeTsiT+CFhmzTrBcZe7Fsa
|
2097 |
-
vOvJz82sNEBfsXpm7nfISKhmV1efVFiODCu3T6cw2Vbuyntd463JT17lNecxy9qTXtyOj4DatpGY
|
2098 |
-
QJB5w3jHtrHEtWoYOAMQjdjUN6QuBX2I9YI+EJFwq1WCQTLX2wRzKm6RAXwhTNS8rhsDdV14Ztk6
|
2099 |
-
MUSaM0C/CNdaSaTC5qmgZ92kJ7yhTzm1EVgX9yRcRo9k98FpiHaYdj1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a
|
2112 |
-
5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tK
|
2113 |
-
G48BtieVU+i2iW1bvGjUI+iLUaJW+fCmgKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP
|
2114 |
-
82Z+
|
2115 |
-
-----END CERTIFICATE-----
|
2116 |
-
|
2117 |
-
COMODO RSA Certification Authority
|
2118 |
-
==================================
|
2119 |
-
-----BEGIN CERTIFICATE-----
|
2120 |
-
MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCBhTELMAkGA1UE
|
2121 |
-
BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
|
2122 |
-
A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlv
|
2123 |
-
biBBdXRob3JpdHkwHhcNMTAwMTE5MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMC
|
2124 |
-
R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
|
2125 |
-
ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBB
|
2126 |
-
dXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCR6FSS0gpWsawNJN3Fz0Rn
|
2127 |
-
dJkrN6N9I3AAcbxT38T6KhKPS38QVr2fcHK3YX/JSw8Xpz3jsARh7v8Rl8f0hj4K+j5c+ZPmNHrZ
|
2128 |
-
FGvnnLOFoIJ6dq9xkNfs/Q36nGz637CC9BR++b7Epi9Pf5l/tfxnQ3K9DADWietrL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hTLJK7oQkYdQxlqHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiKboHGhfKp
|
2142 |
-
pC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmckejkk9u+UJueBPSZI9FoJA
|
2143 |
-
zMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yLS0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHq
|
2144 |
-
ZJx64SIDqZxubw5lT2yHh17zbqD5daWbQOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk52
|
2145 |
-
7RH89elWsn2/x20Kk4yl0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7I
|
2146 |
-
LaZRfyHBNVOFBkpdn627G190
|
2147 |
-
-----END CERTIFICATE-----
|
2148 |
-
|
2149 |
-
USERTrust RSA Certification Authority
|
2150 |
-
=====================================
|
2151 |
-
-----BEGIN CERTIFICATE-----
|
2152 |
-
MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCBiDELMAkGA1UE
|
2153 |
-
BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK
|
2154 |
-
ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh
|
2155 |
-
dGlvbiBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UE
|
2156 |
-
BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK
|
2157 |
-
ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh
|
2158 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xmtOuowhT6KOVWKR82kV2LyI48SqC/3vqOlLVSoGIG1VeCkZ
|
2171 |
-
7l8wXEskEVX/JJpuXior7gtNn3/3ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQ
|
2172 |
-
Eg9zKC7F4iRO/Fjs8PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM
|
2173 |
-
8WcRiQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYzeSf7dNXGi
|
2174 |
-
FSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZXHlKYC6SQK5MNyosycdi
|
2175 |
-
yA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9c
|
2176 |
-
J2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRBVXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGw
|
2177 |
-
sAvgnEzDHNb842m1R0aBL6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gx
|
2178 |
-
Q+6IHdfGjjxDah2nGN59PRbxYvnKkKj9
|
2179 |
-
-----END CERTIFICATE-----
|
2180 |
-
|
2181 |
-
USERTrust ECC Certification Authority
|
2182 |
-
=====================================
|
2183 |
-
-----BEGIN CERTIFICATE-----
|
2184 |
-
MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDELMAkGA1UEBhMC
|
2185 |
-
VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
|
2186 |
-
aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
|
2187 |
-
biBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMC
|
2188 |
-
VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
|
2189 |
-
aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
|
2190 |
-
biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqfloI+d61SRvU8Za2EurxtW2
|
2191 |
-
0eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinngo4N+LZfQYcTxmdwlkWOrfzCjtHDix6Ez
|
2192 |
-
nPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0GA1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNV
|
2193 |
-
HQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBB
|
2194 |
-
HU6+4WMBzzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbWRNZu
|
2195 |
-
9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg=
|
2196 |
-
-----END CERTIFICATE-----
|
2197 |
-
|
2198 |
-
GlobalSign ECC Root CA - R4
|
2199 |
-
===========================
|
2200 |
-
-----BEGIN CERTIFICATE-----
|
2201 |
-
MIIB4TCCAYegAwIBAgIRKjikHJYKBN5CsiilC+g0mAIwCgYIKoZIzj0EAwIwUDEkMCIGA1UECxMb
|
2202 |
-
R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
|
2203 |
-
EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb
|
2204 |
-
R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
|
2205 |
-
EwpHbG9iYWxTaWduMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuMZ5049sJQ6fLjkZHAOkrprl
|
2206 |
-
OQcJFspjsbmG+IpXwVfOQvpzofdlQv8ewQCybnMO/8ch5RikqtlxP6jUuc6MHaNCMEAwDgYDVR0P
|
2207 |
-
AQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFFSwe61FuOJAf/sKbvu+M8k8o4TV
|
2208 |
-
MAoGCCqGSM49BAMCA0gAMEUCIQDckqGgE6bPA7DmxCGXkPoUVy0D7O48027KqGx2vKLeuwIgJ6iF
|
2209 |
-
JzWbVsaj8kfSt24bAgAXqmemFZHe+pTsewv4n4Q=
|
2210 |
-
-----END CERTIFICATE-----
|
2211 |
-
|
2212 |
-
GlobalSign ECC Root CA - R5
|
2213 |
-
===========================
|
2214 |
-
-----BEGIN CERTIFICATE-----
|
2215 |
-
MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEkMCIGA1UECxMb
|
2216 |
-
R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
|
2217 |
-
EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb
|
2218 |
-
R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
|
2219 |
-
EwpHbG9iYWxTaWduMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6
|
2220 |
-
SFkc8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8kehOvRnkmS
|
2221 |
-
h5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd
|
2222 |
-
BgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYIKoZIzj0EAwMDaAAwZQIxAOVpEslu28Yx
|
2223 |
-
uglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7
|
2224 |
-
yFz9SO8NdCKoCOJuxUnOxwy8p2Fp8fc74SrL+SvzZpA3
|
2225 |
-
-----END CERTIFICATE-----
|
2226 |
-
|
2227 |
-
Staat der Nederlanden Root CA - G3
|
2228 |
-
==================================
|
2229 |
-
-----BEGIN CERTIFICATE-----
|
2230 |
-
MIIFdDCCA1ygAwIBAgIEAJiiOTANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
|
2231 |
-
CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
|
2232 |
-
Um9vdCBDQSAtIEczMB4XDTEzMTExNDExMjg0MloXDTI4MTExMzIzMDAwMFowWjELMAkGA1UEBhMC
|
2233 |
-
TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
|
2234 |
-
ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAL4y
|
2235 |
-
olQPcPssXFnrbMSkUeiFKrPMSjTysF/zDsccPVMeiAho2G89rcKezIJnByeHaHE6n3WWIkYFsO2t
|
2236 |
-
x1ueKt6c/DrGlaf1F2cY5y9JCAxcz+bMNO14+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vRtTA
|
2249 |
-
8KCWAg8zxXHzniN9lLf9OtMJgwYh/WA9rjLA0u6NpvDntIJ8CsxwyXmA+P5M9zWEGYox+wrZ13+b
|
2250 |
-
8KKaa8MFSu1BYBQw0aoRQm7TIwIEC8Zl3d1Sd9qBa7Ko+gE4uZbqKmxnl4mUnrzhVNXkanjvSr0r
|
2251 |
-
mj1AfsbAddJu+2gw7OyLnflJNZoaLNmzlTnVHpL3prllL+U9bTpITAjc5CgSKL59NVzq4BZ+Extq
|
2252 |
-
1z7XnvwtdbLBFNUjA9tbbws+eC8N3jONFrdI54OagQ97wUNNVQQXOEpR1VmiiXTTn74eS9fGbbeI
|
2253 |
-
JG9gkaSChVtWQbzQRKtqE77RLFi3EjNYsjdj3BP1lB0/QFH1T/U67cjF68IeHRaVesd+QnGTbksV
|
2254 |
-
tzDfqu1XhUisHWrdOWnk4Xl4vs4Fv6EM94B7IWcnMFk=
|
2255 |
-
-----END CERTIFICATE-----
|
2256 |
-
|
2257 |
-
Staat der Nederlanden EV Root CA
|
2258 |
-
================================
|
2259 |
-
-----BEGIN CERTIFICATE-----
|
2260 |
-
MIIFcDCCA1igAwIBAgIEAJiWjTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJOTDEeMBwGA1UE
|
2261 |
-
CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSkwJwYDVQQDDCBTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
|
2262 |
-
RVYgUm9vdCBDQTAeFw0xMDEyMDgxMTE5MjlaFw0yMjEyMDgxMTEwMjhaMFgxCzAJBgNVBAYTAk5M
|
2263 |
-
MR4wHAYDVQQKDBVTdGFhdCBkZXIgTmVkZXJsYW5kZW4xKTAnBgNVBAMMIFN0YWF0IGRlciBOZWRl
|
2264 |
-
cmxhbmRlbiBFViBSb290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA48d+ifkk
|
2265 |
-
SzrSM4M1LGns3Amk41GoJSt5uAg94JG6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4ilf0X8rLiltTMMgsT7B/Zq
|
2278 |
-
5SWEXwbKwYY5EdtYzXc7LMJMD16a4/CrPmEbUCTCwPTxGfARKbalGAKb12NMcIxHowNDXLldRqAN
|
2279 |
-
b/9Zjr7dn3LDWyvfjFvO5QxGbJKyCqNMVEIYFRIYvdr8unRu/8G2oGTYqV9Vrp9canaW2HNnh/tN
|
2280 |
-
f1zuacpzEPuKqf2evTY4SUmH9A4U8OmHuD+nT3pajnnUk+S7aFKErGzp85hwVXIy+TSrK0m1zSBi
|
2281 |
-
5Dp6Z2Orltxtrpfs/J92VoguZs9btsmksNcFuuEnL5O7Jiqik7Ab846+HUCjuTaPPoIaGl6I6lD4
|
2282 |
-
WeKDRikL40Rc4ZW2aZCaFG+XroHPaO+Zmr615+F/+PoTRxZMzG0IQOeLeG9QgkRQP2YGiqtDhFZK
|
2283 |
-
DyAthg710tvSeopLzaXoTvFeJiUBWSOgftL2fiFX1ye8FVdMpEbB4IMeDExNH08GGeL5qPQ6gqGy
|
2284 |
-
eUN51q1veieQA6TqJIc/2b3Z6fJfUEkc7uzXLg==
|
2285 |
-
-----END CERTIFICATE-----
|
2286 |
-
|
2287 |
-
IdenTrust Commercial Root CA 1
|
2288 |
-
==============================
|
2289 |
-
-----BEGIN CERTIFICATE-----
|
2290 |
-
MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBKMQswCQYDVQQG
|
2291 |
-
EwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBS
|
2292 |
-
b290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQwMTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzES
|
2293 |
-
MBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENB
|
2294 |
-
IDEwggIiMA0GCSqGSIb3DQEBAQUAA4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RvM7Kqas6pg
|
2307 |
-
ghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh93nAbowacYXVKV7cndJZ5t+qnt
|
2308 |
-
ozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU3+wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmV
|
2309 |
-
YjzlVYA211QC//G5Xc7UI2/YRYRKW2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUX
|
2310 |
-
feu+h1sXIFRRk0pTAwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/ro
|
2311 |
-
kTLql1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG4iZZRHUe
|
2312 |
-
2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZmUlO+KWA2yUPHGNiiskz
|
2313 |
-
Z2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7R
|
2314 |
-
cGzM7vRX+Bi6hG6H
|
2315 |
-
-----END CERTIFICATE-----
|
2316 |
-
|
2317 |
-
IdenTrust Public Sector Root CA 1
|
2318 |
-
=================================
|
2319 |
-
-----BEGIN CERTIFICATE-----
|
2320 |
-
MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBNMQswCQYDVQQG
|
2321 |
-
EwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3Rv
|
2322 |
-
ciBSb290IENBIDEwHhcNMTQwMTE2MTc1MzMyWhcNMzQwMTE2MTc1MzMyWjBNMQswCQYDVQQGEwJV
|
2323 |
-
UzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1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AWJBF9MJ23XLblSQdf4an4EKwt3X9wnQW3IV5B4Jaj0z8yGa5hV+rVHVDRDtfULAj+7A
|
2337 |
-
mgjVQdZcDiFpboBhDhXAuM/FSRJSzL46zNQuOAXeNf0fb7iAaJg9TaDKQGXSc3z1i9kKlT/YPyNt
|
2338 |
-
GtEqJBnZhbMX73huqVjRI9PHE+1yJX9dsXNw0H8GlwmEKYBhHfpe/3OsoOOJuBxxFcbeMX8S3OFt
|
2339 |
-
m6/n6J91eEyrRjuazr8FGF1NFTwWmhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMx
|
2340 |
-
NRF4eKLg6TCMf4DfWN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4
|
2341 |
-
Mhn5+bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJtshquDDI
|
2342 |
-
ajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhAGaQdp/lLQzfcaFpPz+vC
|
2343 |
-
ZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ
|
2344 |
-
3Wl9af0AVqW3rLatt8o+Ae+c
|
2345 |
-
-----END CERTIFICATE-----
|
2346 |
-
|
2347 |
-
Entrust Root Certification Authority - G2
|
2348 |
-
=========================================
|
2349 |
-
-----BEGIN CERTIFICATE-----
|
2350 |
-
MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMCVVMxFjAUBgNV
|
2351 |
-
BAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVy
|
2352 |
-
bXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
|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F8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ
|
2366 |
-
Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v1fN2D807iDgi
|
2367 |
-
nWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4RnAuknZoh8/CbCzB428Hch0P+
|
2368 |
-
vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmHVHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xO
|
2369 |
-
e4pIb4tF9g==
|
2370 |
-
-----END CERTIFICATE-----
|
2371 |
-
|
2372 |
-
Entrust Root Certification Authority - EC1
|
2373 |
-
==========================================
|
2374 |
-
-----BEGIN CERTIFICATE-----
|
2375 |
-
MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkGA1UEBhMCVVMx
|
2376 |
-
FjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVn
|
2377 |
-
YWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXpl
|
2378 |
-
ZCB1c2Ugb25seTEzMDEGA1UEAxMqRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
|
2379 |
-
IC0gRUMxMB4XDTEyMTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYw
|
2380 |
-
FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2Fs
|
2381 |
-
LXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhvcml6ZWQg
|
2382 |
-
dXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAt
|
2383 |
-
IEVDMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHy
|
2384 |
-
AsWfoPZb1YsGGYZPUxBtByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef
|
2385 |
-
9eNi1KlHBz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
|
2386 |
-
FLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMGF52OVCR98crlOZF7ZvHH3h
|
2387 |
-
vxGU0QOIdeSNiaSKd0bebWHvAvX7td/M/k7//qnmpwIwW5nXhTcGtXsI/esni0qU+eH6p44mCOh8
|
2388 |
-
kmhtc9hvJqwhAriZtyZBWyVgrtBIGu4G
|
2389 |
-
-----END CERTIFICATE-----
|
2390 |
-
|
2391 |
-
CFCA EV ROOT
|
2392 |
-
============
|
2393 |
-
-----BEGIN CERTIFICATE-----
|
2394 |
-
MIIFjTCCA3WgAwIBAgIEGErM1jANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJDTjEwMC4GA1UE
|
2395 |
-
CgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQDDAxDRkNB
|
2396 |
-
IEVWIFJPT1QwHhcNMTIwODA4MDMwNzAxWhcNMjkxMjMxMDMwNzAxWjBWMQswCQYDVQQGEwJDTjEw
|
2397 |
-
MC4GA1UECgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQD
|
2398 |
-
DAxDRkNBIEVWIFJPT1QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXXWvNED8fBVnV
|
2399 |
-
BU03sQ7smC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ztUmCypAbqTuv0axn96/Ua
|
2412 |
-
4CUqmtzHQTb3yHQFhDmVOdYLO6Qn+gjYXB74BGBSESgoA//vU2YApUo0FmZ8/Qmkrp5nGm9BC2sG
|
2413 |
-
E5uPhnEFtC+NiWYzKXZUmhH4J/qyP5Hgzg0b8zAarb8iXRvTvyUFTeGSGn+ZnzxEk8rUQElsgIfX
|
2414 |
-
BDrDMlI1Dlb4pd19xIsNER9Tyx6yF7Zod1rg1MvIB671Oi6ON7fQAUtDKXeMOZePglr4UeWJoBjn
|
2415 |
-
aH9dCi77o0cOPaYjesYBx4/IXr9tgFa+iiS6M+qf4TIRnvHST4D2G0CvOJ4RUHlzEhLN5mydLIhy
|
2416 |
-
PDCBBpEi6lmt2hkuIsKNuYyH4Ga8cyNfIWRjgEj1oDwYPZTISEEdQLpe/v5WOaHIz16eGWRGENoX
|
2417 |
-
kbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+ZAAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3C
|
2418 |
-
ekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su
|
2419 |
-
-----END CERTIFICATE-----
|
2420 |
-
|
2421 |
-
OISTE WISeKey Global Root GB CA
|
2422 |
-
===============================
|
2423 |
-
-----BEGIN CERTIFICATE-----
|
2424 |
-
MIIDtTCCAp2gAwIBAgIQdrEgUnTwhYdGs/gjGvbCwDANBgkqhkiG9w0BAQsFADBtMQswCQYDVQQG
|
2425 |
-
EwJDSDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNl
|
2426 |
-
ZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQiBDQTAeFw0xNDEyMDExNTAw
|
2427 |
-
MzJaFw0zOTEyMDExNTEwMzFaMG0xCzAJBgNVBAYTAkNIMRAwDgYD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XLzPVvUPMjX/hd56zwyDANBgkqhkiG9w0BAQsFAAOC
|
2457 |
-
AQEAtXP4A9xZWx126aMqe5Aosk3AM0+qmrHUuOQn/6mWmc5G4G18TKI4pAZw8PRBEew/R40/cof5
|
2458 |
-
O/2kbytTAOD/OblqBw7rHRz2onKQy4I9EYKL0rufKq8h5mOGnXkZ7/e7DDWQw4rtTw/1zBLZpD67
|
2459 |
-
oPwglV9PJi8RI4NOdQcPv5vRtB3pEAT+ymCPoky4rc/hkA/NrgrHXXu3UNLUYfrVFdvXn4dRVOul
|
2460 |
-
4+vJhaAlIDf7js4MNIThPIGyd05DpYhfhmehPea0XGG2Ptv+tyjFogeutcrKjSoS75ftwjCkySp6
|
2461 |
-
+/NNIxuZMzSgLvWpCz/UXeHPhJ/iGcJfitYgHuNztw==
|
2462 |
-
-----END CERTIFICATE-----
|
2463 |
-
|
2464 |
-
Certum Trusted Network CA 2
|
2465 |
-
===========================
|
2466 |
-
-----BEGIN CERTIFICATE-----
|
2467 |
-
MIIF0jCCA7qgAwIBAgIQIdbQSk8lD8kyN/yqXhKN6TANBgkqhkiG9w0BAQ0FADCBgDELMAkGA1UE
|
2468 |
-
BhMCUEwxIjAgBgNVBAoTGVVuaXpldG8gVGVjaG5vbG9naWVzIFMuQS4xJzAlBgNVBAsTHkNlcnR1
|
2469 |
-
bSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEkMCIGA1UEAxMbQ2VydHVtIFRydXN0ZWQgTmV0d29y
|
2470 |
-
ayBDQSAyMCIYDzIwMTExMDA2MDgzOTU2WhgPMjA0NjEwMDYwODM5NTZaMIGAMQswCQYDVQQGEwJQ
|
2471 |
-
TDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENl
|
2472 |
-
cnRpZmljYXRpb24gQXV0aG9yaXR5MSQwIgYDVQQDExtDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENB
|
2473 |
-
IDI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n0W3cLN+mLIMb4Ck4uWBzrM9DPhmDJ2vuA
|
2486 |
-
L55MYIR4PSFk1vtBHxgP58l1cb29XN40hz5BsA72udY/CROWFC/emh1auVbONTqwX3BNXuMp8SMo
|
2487 |
-
clm2q8KMZiYcdywmdjWLKKdpoPk79SPdhRB0yZADVpHnr7pH1BKXESLjokmUbOe3lEu6LaTaM4tM
|
2488 |
-
pkT/WjzGHWTYtTHkpjx6qFcL2+1hGsvxznN3Y6SHb0xRONbkX8eftoEq5IVIeVheO/jbAoJnwTnb
|
2489 |
-
w3RLPTYe+SmTiGhbqEQZIfCn6IENLOiTNrQ3ssqwGyZ6miUfmpqAnksqP/ujmv5zMnHCnsZy4Ypo
|
2490 |
-
J/HkD7TETKVhk/iXEAcqMCWpuchxuO9ozC1+9eB+D4Kob7a6bINDd82Kkhehnlt4Fj1F4jNy3eFm
|
2491 |
-
ypnTycUm/Q1oBEauttmbjL4ZvrHG8hnjXALKLNhvSgfZyTXaQHXyxKcZb55CEJh15pWLYLztxRLX
|
2492 |
-
is7VmFxWlgPF7ncGNf/P5O4/E2Hu29othfDNrp2yGAlFw5Khchf8R7agCyzxxN5DaAhqXzvwdmP7
|
2493 |
-
zAYspsbiDrW5viSP
|
2494 |
-
-----END CERTIFICATE-----
|
2495 |
-
|
2496 |
-
Hellenic Academic and Research Institutions RootCA 2015
|
2497 |
-
=======================================================
|
2498 |
-
-----BEGIN CERTIFICATE-----
|
2499 |
-
MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcT
|
2500 |
-
BkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0
|
2501 |
-
aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl
|
2502 |
-
YXJjaCBJbnN0aXR1dGlvbnMgUm9vdEN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ZSRm2Ekax+0VVFqmjZayc
|
2515 |
-
Bw/qa9wfLgZy7IaIEuQt218FL+TwA9MmM+eAws1CoRc0CwIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
|
2516 |
-
AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUcRVnyMjJvXVdctA4GGqd83EkVAswDQYJKoZI
|
2517 |
-
hvcNAQELBQADggIBAHW7bVRLqhBYRjTyYtcWNl0IXtVsyIe9tC5G8jH4fOpCtZMWVdyhDBKg2mF+
|
2518 |
-
D1hYc2Ryx+hFjtyp8iY/xnmMsVMIM4GwVhO+5lFc2JsKT0ucVlMC6U/2DWDqTUJV6HwbISHTGzrM
|
2519 |
-
d/K4kPFox/la/vot9L/J9UUbzjgQKjeKeaO04wlshYaT/4mWJ3iBj2fjRnRUjtkNaeJK9E10A/+y
|
2520 |
-
d+2VZ5fkscWrv2oj6NSU4kQoYsRL4vDY4ilrGnB+JGGTe08DMiUNRSQrlrRGar9KC/eaj8GsGsVn
|
2521 |
-
82800vpzY4zvFrCopEYq+OsS7HK07/grfoxSwIuEVPkvPuNVqNxmsdnhX9izjFk0WaSrT2y7Hxjb
|
2522 |
-
davYy5LNlDhhDgcGH0tGEPEVvo2FXDtKK4F5D7Rpn0lQl033DlZdwJVqwjbDG2jJ9SrcR5q+ss7F
|
2523 |
-
Jej6A7na+RZukYT1HCjI/CbM1xyQVqdfbzoEvM14iQuODy+jqk+iGxI9FghAD/FGTNeqewjBCvVt
|
2524 |
-
J94Cj8rDtSvK6evIIVM4pcw72Hc3MKJP2W/R8kCtQXoXxdZKNYm3QdV8hn9VTYNKpXMgwDqvkPGa
|
2525 |
-
JI7ZjnHKe7iG2rKPmT4dEw0SEe7Uq/DpFXYC5ODfqiAeW2GFZECpkJcNrVPSWh2HagCXZWK0vm9q
|
2526 |
-
p/UsQu0yrbYhnr68
|
2527 |
-
-----END CERTIFICATE-----
|
2528 |
-
|
2529 |
-
Hellenic Academic and Research Institutions ECC RootCA 2015
|
2530 |
-
===========================================================
|
2531 |
-
-----BEGIN CERTIFICATE-----
|
2532 |
-
MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0
|
2533 |
-
aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u
|
2534 |
-
cyBDZXJ0LiBBdXRob3JpdHkxRDBCBgNVBAMTO0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJj
|
2535 |
-
aCBJbnN0aXR1dGlvbnMgRUNDIFJvb3RDQSAyMDE1MB4XDTE1MDcwNzEwMzcxMloXDTQwMDYzMDEw
|
2536 |
-
MzcxMlowgaoxCzAJBgNVBAYTAkdSMQ8wDQYDVQQHEwZBdGhlbnMxRDBCBgNVBAoTO0hlbGxlbmlj
|
2537 |
-
IEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9yaXR5MUQwQgYD
|
2538 |
-
VQQDEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25zIEVDQyBSb290
|
2539 |
-
Q0EgMjAxNTB2MBAGByqGSM49AgEGBSuBBAAiA2IABJKgQehLgoRc4vgxEZmGZE4JJS+dQS8KrjVP
|
2540 |
-
dJWyUWRrjWvmP3CV8AVER6ZyOFB2lQJajq4onvktTpnvLEhvTCUp6NFxW98dwXU3tNf6e3pCnGoK
|
2541 |
-
Vlp8aQuqgAkkbH7BRqNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O
|
2542 |
-
BBYEFLQiC4KZJAEOnLvkDv2/+5cgk5kqMAoGCCqGSM49BAMCA2cAMGQCMGfOFmI4oqxiRaeplSTA
|
2543 |
-
GiecMjvAwNW6qef4BENThe5SId6d9SWDPp5YSy/XZxMOIQIwBeF1Ad5o7SofTUwJCA3sS61kFyjn
|
2544 |
-
dc5FZXIhF8siQQ6ME5g4mlRtm8rifOoCWCKR
|
2545 |
-
-----END CERTIFICATE-----
|
2546 |
-
|
2547 |
-
ISRG Root X1
|
2548 |
-
============
|
2549 |
-
-----BEGIN CERTIFICATE-----
|
2550 |
-
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAwTzELMAkGA1UE
|
2551 |
-
BhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2VhcmNoIEdyb3VwMRUwEwYDVQQD
|
2552 |
-
EwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQG
|
2553 |
-
EwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMT
|
2554 |
-
DElTUkcgUm9vdCBYMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54r
|
2555 |
-
Vygch77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+0TM8ukj1
|
2556 |
-
3Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6UA5/TR5d8mUgjU+g4rk8K
|
2557 |
-
b4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sWT8KOEUt+zwvo/7V3LvSye0rgTBIlDHCN
|
2558 |
-
Aymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyHB5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ
|
2559 |
-
4Q7e2RCOFvu396j3x+UCB5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf
|
2560 |
-
1b0SHzUvKBds0pjBqAlkd25HN7r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mRGunUHBcnWEvgJBQl9n
|
2573 |
-
JEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57demyPxgcYxn/eR44/KJ4EBs+lVDR3veyJ
|
2574 |
-
m+kXQ99b21/+jh5Xos1AnX5iItreGCc=
|
2575 |
-
-----END CERTIFICATE-----
|
2576 |
-
|
2577 |
-
AC RAIZ FNMT-RCM
|
2578 |
-
================
|
2579 |
-
-----BEGIN CERTIFICATE-----
|
2580 |
-
MIIFgzCCA2ugAwIBAgIPXZONMGc2yAYdGsdUhGkHMA0GCSqGSIb3DQEBCwUAMDsxCzAJBgNVBAYT
|
2581 |
-
AkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJWiBGTk1ULVJDTTAeFw0wODEw
|
2582 |
-
MjkxNTU5NTZaFw0zMDAxMDEwMDAwMDBaMDsxCzAJBgNVBAYTAkVTMREwDwYDVQQKDAhGTk1ULVJD
|
2583 |
-
TTEZMBcGA1UECwwQQUMgUkFJWiBGTk1ULVJDTTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
|
2584 |
-
ggIBALpxgHpMhm5/yBNtwMZ9HACXjywMI7sQmkCpGreHiPibVmr75nuOi5KOpyVdWRHbNi63URcf
|
2585 |
-
qQgfBBckWKo3Shjf5TnUV/3XwSyRAZHiItQDwFj8d0fsjz50Q7qsNI1NOHZnjrDIbzAzWHFctPVr
|
2586 |
-
btQBULgTfmxKo0nRIBnuvMApGGWn3v7v3QqQIecaZ5JCEJhfTzC8PhxFtBDXaEAUwED653cXeuYL
|
2587 |
-
j2VbPNmaUtu1vZ5Gzz3rkQUCwJaydkxNEJY7kvqcfw+Z374jNUUeAlz+taibmSXaXvMiwzn15Cou
|
2588 |
-
08YfxGyqxRxqAQVKL9LFwag0Jl1mpdICIfkYtwb1TplvqKtMUejPUBjFd8g5CSxJkjKZqLsXF3mw
|
2589 |
-
WsXmo8RZZUc1g16p6DULmbvkzSDGm0oGObVo/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+mWj2zs3gyLp1txyM/1d
|
2602 |
-
8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B9kiABdcPUXmsEKvU7ANm
|
2603 |
-
5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wokRqEIr9baRRmW1FMdW4R58MD3R++Lj8UG
|
2604 |
-
rp1MYp3/RgT408m2ECVAdf4WqslKYIYvuu8wd+RU4riEmViAqhOLUTpPSPaLtrM=
|
2605 |
-
-----END CERTIFICATE-----
|
2606 |
-
|
2607 |
-
Amazon Root CA 1
|
2608 |
-
================
|
2609 |
-
-----BEGIN CERTIFICATE-----
|
2610 |
-
MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsFADA5MQswCQYD
|
2611 |
-
VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAxMB4XDTE1
|
2612 |
-
MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv
|
2613 |
-
bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
2614 |
-
ggEBALJ4gHHKeNXjca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgH
|
2615 |
-
FzZM9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qwIFAGbHrQ
|
2616 |
-
gLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6VOujw5H5SNz/0egwLX0t
|
2617 |
-
dHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L93FcXmn/6pUCyziKrlA4b9v7LWIbxcce
|
2618 |
-
VOF34GfID5yHI9Y/QCB/IIDEgEw+OyQmjgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB
|
2619 |
-
/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3
|
2620 |
-
DQEBCwUAA4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDIU5PM
|
2621 |
-
CCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUsN+gDS63pYaACbvXy
|
2622 |
-
8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vvo/ufQJVtMVT8QtPHRh8jrdkPSHCa
|
2623 |
-
2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2
|
2624 |
-
xJNDd2ZhwLnoQdeXeGADbkpyrqXRfboQnoZsG4q5WTP468SQvvG5
|
2625 |
-
-----END CERTIFICATE-----
|
2626 |
-
|
2627 |
-
Amazon Root CA 2
|
2628 |
-
================
|
2629 |
-
-----BEGIN CERTIFICATE-----
|
2630 |
-
MIIFQTCCAymgAwIBAgITBmyf0pY1hp8KD+WGePhbJruKNzANBgkqhkiG9w0BAQwFADA5MQswCQYD
|
2631 |
-
VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAyMB4XDTE1
|
2632 |
-
MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv
|
2633 |
-
bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
|
2634 |
-
ggIBAK2Wny2cSkxKgXlRmeyKy2tgURO8TW0G/LAIjd0ZEGrHJgw12MBvIITplLGbhQPDW9tK6Mj4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ZY7attN6a+yb3ACfAXVU3dJnJUH/jWS5E4ywl7uxMMne0nxrpS10gxdr9HIcW
|
2648 |
-
xkPo1LsmmkVwXqkLN1PiRnsn/eBG8om3zEK2yygmbtmlyTrIQRNg91CMFa6ybRoVGld45pIq2WWQ
|
2649 |
-
gj9sAq+uEjonljYE1x2igGOpm/HlurR8FLBOybEfdF849lHqm/osohHUqS0nGkWxr7JOcQ3AWEbW
|
2650 |
-
aQbLU8uz/mtBzUF+fUwPfHJ5elnNXkoOrJupmHN5fLT0zLm4BwyydFy4x2+IoZCn9Kr5v2c69BoV
|
2651 |
-
Yh63n749sSmvZ6ES8lgQGVMDMBu4Gon2nL2XA46jCfMdiyHxtN/kHNGfZQIG6lzWE7OE76KlXIx3
|
2652 |
-
KadowGuuQNKotOrN8I1LOJwZmhsoVLiJkO/KdYE+HvJkJMcYr07/R54H9jVlpNMKVv/1F2Rs76gi
|
2653 |
-
JUmTtt8AF9pYfl3uxRuw0dFfIRDH+fO6AgonB8Xx1sfT4PsJYGw=
|
2654 |
-
-----END CERTIFICATE-----
|
2655 |
-
|
2656 |
-
Amazon Root CA 3
|
2657 |
-
================
|
2658 |
-
-----BEGIN CERTIFICATE-----
|
2659 |
-
MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5MQswCQYDVQQG
|
2660 |
-
EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAzMB4XDTE1MDUy
|
2661 |
-
NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
|
2662 |
-
MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZB
|
2663 |
-
f8ANm+gBG1bG8lKlui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjr
|
2664 |
-
Zt6jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSrttvXBp43
|
2665 |
-
rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkrBqWTrBqYaGFy+uGh0Psc
|
2666 |
-
eGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteMYyRIHN8wfdVoOw==
|
2667 |
-
-----END CERTIFICATE-----
|
2668 |
-
|
2669 |
-
Amazon Root CA 4
|
2670 |
-
================
|
2671 |
-
-----BEGIN CERTIFICATE-----
|
2672 |
-
MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5MQswCQYDVQQG
|
2673 |
-
EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSA0MB4XDTE1MDUy
|
2674 |
-
NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
|
2675 |
-
MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgNDB2MBAGByqGSM49AgEGBSuBBAAiA2IABNKrijdPo1MN
|
2676 |
-
/sGKe0uoe0ZLY7Bi9i0b2whxIdIA6GO9mif78DluXeo9pcmBqqNbIJhFXRbb/egQbeOc4OO9X4Ri
|
2677 |
-
83BkM6DLJC9wuoihKqB1+IGuYgbEgds5bimwHvouXKNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV
|
2678 |
-
HQ8BAf8EBAMCAYYwHQYDVR0OBBYEFNPsxzplbszh2naaVvuc84ZtV+WBMAoGCCqGSM49BAMDA2gA
|
2679 |
-
MGUCMDqLIfG9fhGt0O9Yli/W651+kI0rz2ZVwyzjKKlwCkcO8DdZEv8tmZQoTipPNU0zWgIxAOp1
|
2680 |
-
AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA==
|
2681 |
-
-----END CERTIFICATE-----
|
2682 |
-
|
2683 |
-
TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1
|
2684 |
-
=============================================
|
2685 |
-
-----BEGIN CERTIFICATE-----
|
2686 |
-
MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIxGDAWBgNVBAcT
|
2687 |
-
D0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxpbXNlbCB2ZSBUZWtub2xvamlr
|
2688 |
-
IEFyYXN0aXJtYSBLdXJ1bXUgLSBUVUJJVEFLMS0wKwYDVQQLEyRLYW11IFNlcnRpZmlrYXN5b24g
|
2689 |
-
TWVya2V6aSAtIEthbXUgU00xNjA0BgNVBAMTLVRVQklUQUsgS2FtdSBTTSBTU0wgS29rIFNlcnRp
|
2690 |
-
ZmlrYXNpIC0gU3VydW0gMTAeFw0xMzExMjUwODI1NTVaFw00MzEwMjUwODI1NTVaMIHSMQswCQYD
|
2691 |
-
VQQGEwJUUjEYMBYGA1UEBxMPR2ViemUgLSBLb2NhZWxpMUIwQAYDVQQKEzlUdXJraXllIEJpbGlt
|
2692 |
-
c2VsIHZlIFRla25vbG9qaWsgQXJhc3Rpcm1hIEt1cnVtdSAtIFRVQklUQUsxLTArBgNVBAsTJEth
|
2693 |
-
bXUgU2VydGlmaWthc3lvbiBNZXJrZXppIC0gS2FtdSBTTTE2MDQGA1UEAxMtVFVCSVRBSyBLYW11
|
2694 |
-
IFNNIFNTTCBLb2sgU2VydGlmaWthc2kgLSBTdXJ1bSAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
|
2695 |
-
MIIBCgKCAQEAr3UwM6q7a9OZLBI3hNmNe5eA027n/5tQlT6QlVZC1xl8JoSNkvoBHToP4mQ4t4y8
|
2696 |
-
6Ij5iySrLqP1N+RAjhgleYN1Hzv/bKjFxlb4tO2KRKOrbEz8HdDc72i9z+SqzvBV96I01INrN3wc
|
2697 |
-
wv61A+xXzry0tcXtAA9TNypN9E8Mg/uGz8v+jE69h/mniyFXnHrfA2eJLJ2XYacQuFWQfw4tJzh0
|
2698 |
-
3+f92k4S400VIgLI4OD8D62K18lUUMw7D8oWgITQUVbDjlZ/iSIzL+aFCr2lqBs23tPcLG07xxO9
|
2699 |
-
WSMs5uWk99gL7eqQQESolbuT1dCANLZGeA4fAJNG4e7p+exPFwIDAQABo0IwQDAdBgNVHQ4EFgQU
|
2700 |
-
ZT/HiobGPN08VFw1+DrtUgxHV8gwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJ
|
2701 |
-
KoZIhvcNAQELBQADggEBACo/4fEyjq7hmFxLXs9rHmoJ0iKpEsdeV31zVmSAhHqT5Am5EM2fKifh
|
2702 |
-
AHe+SMg1qIGf5LgsyX8OsNJLN13qudULXjS99HMpw+0mFZx+CFOKWI3QSyjfwbPfIPP54+M638yc
|
2703 |
-
lNhOT8NrF7f3cuitZjO1JVOr4PhMqZ398g26rrnZqsZr+ZO7rqu4lzwDGrpDxpa5RXI4s6ehlj2R
|
2704 |
-
e37AIVNMh+3yC1SVUZPVIqUNivGTDj5UDrDYyU7c8jEyVupk+eq1nRZmQnLzf9OxMUP8pI4X8W0j
|
2705 |
-
q5Rm+K37DwhuJi1/FwcJsoz7UMCflo3Ptv0AnVoUmr8CRPXBwp8iXqIPoeM=
|
2706 |
-
-----END CERTIFICATE-----
|
2707 |
-
|
2708 |
-
GDCA TrustAUTH R5 ROOT
|
2709 |
-
======================
|
2710 |
-
-----BEGIN CERTIFICATE-----
|
2711 |
-
MIIFiDCCA3CgAwIBAgIIfQmX/vBH6nowDQYJKoZIhvcNAQELBQAwYjELMAkGA1UEBhMCQ04xMjAw
|
2712 |
-
BgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZIENPLixMVEQuMR8wHQYDVQQD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wEAAaNCMEAwHQYDVR0OBBYEFOLJQJ9NzuiaoXzPDj9lxSmIahlR
|
2726 |
-
MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQDRSVfg
|
2727 |
-
p8xoWLoBDysZzY2wYUWsEe1jUGn4H3++Fo/9nesLqjJHdtJnJO29fDMylyrHBYZmDRd9FBUb1Ov9
|
2728 |
-
H5r2XpdptxolpAqzkT9fNqyL7FeoPueBihhXOYV0GkLH6VsTX4/5COmSdI31R9KrO9b7eGZONn35
|
2729 |
-
6ZLpBN79SWP8bfsUcZNnL0dKt7n/HipzcEYwv1ryL3ml4Y0M2fmyYzeMN2WFcGpcWwlyua1jPLHd
|
2730 |
-
+PwyvzeG5LuOmCd+uh8W4XAR8gPfJWIyJyYYMoSf/wA6E7qaTfRPuBRwIrHKK5DOKcFw9C+df/KQ
|
2731 |
-
HtZa37dG/OaG+svgIHZ6uqbL9XzeYqWxi+7egmaKTjowHz+Ay60nugxe19CxVsp3cbK1daFQqUBD
|
2732 |
-
F8Io2c9Si1vIY9RCPqAzekYu9wogRlR+ak8x8YF+QnQ4ZXMn7sZ8uI7XpTrXmKGcjBBV09tL7ECQ
|
2733 |
-
8s1uV9JiDnxXk7Gnbc2dg7sq5+W2O3FYrf3RRbxake5TFW/TRQl1brqQXR4EzzffHqhmsYzmIGrv
|
2734 |
-
/EhOdJhCrylvLmrH+33RZjEizIYAfmaDDEL0vTSSwxrqT8p+ck0LcIymSLumoRT2+1hEmRSuqguT
|
2735 |
-
aaApJUqlyyvdimYHFngVV3Eb7PVHhPOeMTd61X8kreS8/f3MboPoDKi3QWwH3b08hpcv0g==
|
2736 |
-
-----END CERTIFICATE-----
|
2737 |
-
|
2738 |
-
TrustCor RootCert CA-1
|
2739 |
-
======================
|
2740 |
-
-----BEGIN CERTIFICATE-----
|
2741 |
-
MIIEMDCCAxigAwIBAgIJANqb7HHzA7AZMA0GCSqGSIb3DQEB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OcwHwYDVR0j
|
2754 |
-
BBgwFoAU7mtJPHo/DeOxCbeKyKsZn3MzUOcwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
|
2755 |
-
AYYwDQYJKoZIhvcNAQELBQADggEBACUY1JGPE+6PHh0RU9otRCkZoB5rMZ5NDp6tPVxBb5UrJKF5
|
2756 |
-
mDo4Nvu7Zp5I/5CQ7z3UuJu0h3U/IJvOcs+hVcFNZKIZBqEHMwwLKeXx6quj7LUKdJDHfXLy11yf
|
2757 |
-
ke+Ri7fc7Waiz45mO7yfOgLgJ90WmMCV1Aqk5IGadZQ1nJBfiDcGrVmVCrDRZ9MZyonnMlo2HD6C
|
2758 |
-
qFqTvsbQZJG2z9m2GM/bftJlo6bEjhcxwft+dtvTheNYsnd6djtsL1Ac59v2Z3kf9YKVmgenFK+P
|
2759 |
-
3CghZwnS1k1aHBkcjndcw5QkPTJrS37UeJSDvjdNzl/HHk484IkzlQsPpTLWPFp5LBk=
|
2760 |
-
-----END CERTIFICATE-----
|
2761 |
-
|
2762 |
-
TrustCor RootCert CA-2
|
2763 |
-
======================
|
2764 |
-
-----BEGIN CERTIFICATE-----
|
2765 |
-
MIIGLzCCBBegAwIBAgIIJaHfyjPLWQIwDQYJKoZIhvcNAQELBQAwgaQxCzAJBgNVBAYTAlBBMQ8w
|
2766 |
-
DQYDVQQIDAZQYW5hbWExFDASBgNVBAcMC1BhbmFtYSBDaXR5MSQwIgYDVQQKDBtUcnVzdENvciBT
|
2767 |
-
eXN0ZW1zIFMuIGRlIFIuTC4xJzAlBgNVBAsMHlRydXN0Q29yIENlcnRpZmljYXRlIEF1dGhvcml0
|
2768 |
-
eTEfMB0GA1UEAwwWVHJ1c3RDb3IgUm9vdENlcnQgQ0EtMjAeFw0xNjAyMDQxMjMyMjNaFw0zNDEy
|
2769 |
-
MzExNzI2MzlaMIGkMQswCQYDVQQGEwJQQTEPMA0GA1UECAwGUGFuYW1hMRQwEgYDVQQHDAtQYW5h
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REnkj1zG1I1KBL
|
2811 |
-
f/5ZJC+Dl5mahjAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsF
|
2812 |
-
AAOCAQEABT41XBVwm8nHc2FvcivUwo/yQ10CzsSUuZQRg2dd4mdsdXa/uwyqNsatR5Nj3B5+1t4u
|
2813 |
-
/ukZMjgDfxT2AHMsWbEhBuH7rBiVDKP/mZb3Kyeb1STMHd3BOuCYRLDE5D53sXOpZCz2HAF8P11F
|
2814 |
-
hcCF5yWPldwX8zyfGm6wyuMdKulMY/okYWLW2n62HGz1Ah3UKt1VkOsqEUc8Ll50soIipX1TH0Xs
|
2815 |
-
J5F95yIW6MBoNtjG8U+ARDL54dHRHareqKucBK+tIA5kmE2la8BIWJZpTdwHjFGTot+fDz2LYLSC
|
2816 |
-
jaoITmJF4PkL0uDgPFveXHEnJcLmA4GLEFPjx1WitJ/X5g==
|
2817 |
-
-----END CERTIFICATE-----
|
2818 |
-
|
2819 |
-
SSL.com Root Certification Authority RSA
|
2820 |
-
========================================
|
2821 |
-
-----BEGIN CERTIFICATE-----
|
2822 |
-
MIIF3TCCA8WgAwIBAgIIeyyb0xaAMpkwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxDjAM
|
2823 |
-
BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24x
|
2824 |
-
MTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBSU0EwHhcNMTYw
|
2825 |
-
MjEyMTczOTM5WhcNNDEwMjEyMTczOTM5WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
|
2826 |
-
EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NM
|
2827 |
-
LmNvbSBSb290IENlcn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EAIBgRlCn7Jp0cHh5wYfGVcpNxJK1ok1iOMq8bs3AD/CUr
|
2840 |
-
dIWQPXhq9LmLpZc7tRiRux6n+UBbkflVma8eEdBcHadm47GUBwwyOabqG7B52B2ccETjit3E+ZUf
|
2841 |
-
ijhDPwGFpUenPUayvOUiaPd7nNgsPgohyC0zrL/FgZkxdMF1ccW+sfAjRfSda/wZY52jvATGGAsl
|
2842 |
-
u1OJD7OAUN5F7kR/q5R4ZJjT9ijdh9hwZXT7DrkT66cPYakylszeu+1jTBi7qUD3oFRuIIhxdRjq
|
2843 |
-
erQ0cuAjJ3dctpDqhiVAq+8zD8ufgr6iIPv2tS0a5sKFsXQP+8hlAqRSAUfdSSLBv9jra6x+3uxj
|
2844 |
-
MxW3IwiPxg+NQVrdjsW5j+VFP3jbutIbQLH+cU0/4IGiul607BXgk90IH37hVZkLId6Tngr75qNJ
|
2845 |
-
vTYw/ud3sqB1l7UtgYgXZSD32pAAn8lSzDLKNXz1PQ/YK9f1JmzJBjSWFupwWRoyeXkLtoh/D1JI
|
2846 |
-
Pb9s2KJELtFOt3JY04kTlf5Eq/jXixtunLwsoFvVagCvXzfh1foQC5ichucmj87w7G6KVwuA406y
|
2847 |
-
wKBjYZC6VWg3dGq2ktufoYYitmUnDuy2n0Jg5GfCtdpBC8TTi2EbvPofkSvXRAdeuims2cXp71NI
|
2848 |
-
WuuA8ShYIc2wBlX7Jz9TkHCpBB5XJ7k=
|
2849 |
-
-----END CERTIFICATE-----
|
2850 |
-
|
2851 |
-
SSL.com Root Certification Authority ECC
|
2852 |
-
========================================
|
2853 |
-
-----BEGIN CERTIFICATE-----
|
2854 |
-
MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMCVVMxDjAMBgNV
|
2855 |
-
BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xMTAv
|
2856 |
-
BgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEy
|
2857 |
-
MTgxNDAzWhcNNDEwMjEyMTgxNDAzWjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAO
|
2858 |
-
BgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNv
|
2859 |
-
bSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuBBAAiA2IA
|
2860 |
-
BEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI7Z4INcgn64mMU1jrYor+
|
2861 |
-
8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPgCemB+vNH06NjMGEwHQYDVR0OBBYEFILR
|
2862 |
-
hXMw5zUE044CkvvlpNHEIejNMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTT
|
2863 |
-
jgKS++Wk0cQh6M0wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCW
|
2864 |
-
e+0F+S8Tkdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+gA0z
|
2865 |
-
5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl
|
2866 |
-
-----END CERTIFICATE-----
|
2867 |
-
|
2868 |
-
SSL.com EV Root Certification Authority RSA R2
|
2869 |
-
==============================================
|
2870 |
-
-----BEGIN CERTIFICATE-----
|
2871 |
-
MIIF6zCCA9OgAwIBAgIIVrYpzTS8ePYwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYTAlVTMQ4w
|
2872 |
-
DAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYG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Y6GsdqnC+w==
|
2898 |
-
-----END CERTIFICATE-----
|
2899 |
-
|
2900 |
-
SSL.com EV Root Certification Authority ECC
|
2901 |
-
===========================================
|
2902 |
-
-----BEGIN CERTIFICATE-----
|
2903 |
-
MIIClDCCAhqgAwIBAgIILCmcWxbtBZUwCgYIKoZIzj0EAwIwfzELMAkGA1UEBhMCVVMxDjAMBgNV
|
2904 |
-
BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xNDAy
|
2905 |
-
BgNVBAMMK1NTTC5jb20gRVYgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYw
|
2906 |
-
MjEyMTgxNTIzWhcNNDEwMjEyMTgxNTIzWjB/MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
|
2907 |
-
EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjE0MDIGA1UEAwwrU1NM
|
2908 |
-
LmNvbSBFViBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuB
|
2909 |
-
BAAiA2IABKoSR5CYG/vvw0AHgyBO8TCCogbR8pKGYfL2IWjKAMTH6kMAVIbc/R/fALhBYlzccBYy
|
2910 |
-
3h+Z1MzFB8gIH2EWB1E9fVwHU+M1OIzfzZ/ZLg1KthkuWnBaBu2+8KGwytAJKaNjMGEwHQYDVR0O
|
2911 |
-
BBYEFFvKXuXe0oGqzagtZFG22XKbl+ZPMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUW8pe
|
2912 |
-
5d7SgarNqC1kUbbZcpuX5k8wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2gAMGUCMQCK5kCJ
|
2913 |
-
N+vp1RPZytRrJPOwPYdGWBrssd9v+1a6cGvHOMzosYxPD/fxZ3YOg9AeUY8CMD32IygmTMZgh5Mm
|
2914 |
-
m7I1HrrW9zzRHM76JTymGoEVW/MSD2zuZYrJh6j5B+BimoxcSg==
|
2915 |
-
-----END CERTIFICATE-----
|
2916 |
-
|
2917 |
-
GlobalSign Root CA - R6
|
2918 |
-
=======================
|
2919 |
-
-----BEGIN CERTIFICATE-----
|
2920 |
-
MIIFgzCCA2ugAwIBAgIORea7A4Mzw4VlSOb/RVEwDQYJKoZIhvcNAQEMBQAwTDEgMB4GA1UECxMX
|
2921 |
-
R2xvYmFsU2lnbiBSb290IENBIC0gUjYxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds
|
2922 |
-
b2JhbFNpZ24wHhcNMTQxMjEwMDAwMDAwWhcNMzQxMjEwMDAwMDAwWjBMMSAwHgYDVQQLExdHbG9i
|
2923 |
-
YWxTaWduIFJvb3QgQ0EgLSBSNjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFs
|
2924 |
-
U2lnbjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJUH6HPKZvnsFMp7PPcNCPG0RQss
|
2925 |
-
grRIxutbPK6DuEGSMxSkb3/pKszGsIhrxbaJ0cay/xTOURQh7ErdG1rG1ofuTToVBu1kZguSgMpE
|
2926 |
-
3nOUTvOniX9PeGMIyBJQbUJmL025eShNUhqKGoC3GYEOfsSKvGRMIRxDaNc9PIrFsmbVkJq3MQbF
|
2927 |
-
vuJtMgamHvm566qjuL++gmNQ0PAYid/kD3n16qIfKtJwLnvnvJO7bVPiSHyMEAc4/2ayd2F+4OqM
|
2928 |
-
PKq0pPbzlUoSB239jLKJz9CgYXfIWHSw1CM69106yqLbnQneXUQtkPGBzVeS+n68UARjNN9rkxi+
|
2929 |
-
azayOeSsJDa38O+2HBNXk7besvjihbdzorg1qkXy4J02oW9UivFyVm4uiMVRQkQVlO6jxTiWm05O
|
2930 |
-
WgtH8wY2SXcwvHE35absIQh1/OZhFj931dmRl4QKbNQCT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
oZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+t
|
2944 |
-
JDfLRVpOoERIyNiwmcUVhAn21klJwGW45hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA=
|
2945 |
-
-----END CERTIFICATE-----
|
2946 |
-
|
2947 |
-
OISTE WISeKey Global Root GC CA
|
2948 |
-
===============================
|
2949 |
-
-----BEGIN CERTIFICATE-----
|
2950 |
-
MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQswCQYDVQQGEwJD
|
2951 |
-
SDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEo
|
2952 |
-
MCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRa
|
2953 |
-
Fw00MjA1MDkwOTU4MzNaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQL
|
2954 |
-
ExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh
|
2955 |
-
bCBSb290IEdDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4nieUqjFqdr
|
2956 |
-
VCTbUf/q9Akkwwsin8tqJ4KBDdLArzHkdIJuyiXZjHWd8dvQmqJLIX4Wp2OQ0jnUsYd4XxiWD1Ab
|
2957 |
-
NTcPasbc2RNNpI6QN+a9WzGRo1QwUjAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd
|
2958 |
-
BgNVHQ4EFgQUSIcUrOPDnpBgOtfKie7TrYy0UGYwEAYJKwYBBAGCNxUBBAMCAQAwCgYIKoZIzj0E
|
2959 |
-
AwMDaAAwZQIwJsdpW9z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wMCeKpSwughQtiue+hMZL77/ZRBIls6Kl0obsXs7X9SQ98POyDGCBDTtWTurQ0
|
2989 |
-
sR8WNh8M5mQ5Fkzc4P4dyKliPUDqysU0ArSuiYgzNdwsE3PYJ/HQcu51OyLemGhmW/HGY0dVHLql
|
2990 |
-
CFF1pkgl
|
2991 |
-
-----END CERTIFICATE-----
|
2992 |
-
|
2993 |
-
GTS Root R2
|
2994 |
-
===========
|
2995 |
-
-----BEGIN CERTIFICATE-----
|
2996 |
-
MIIFWjCCA0KgAwIBAgIQbkepxlqz5yDFMJo/aFLybzANBgkqhkiG9w0BAQwFADBHMQswCQYDVQQG
|
2997 |
-
EwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJv
|
2998 |
-
b3QgUjIwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAG
|
2999 |
-
A1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjIwggIi
|
3000 |
-
MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDO3v2m++zsFDQ8BwZabFn3GTXd98GdVarTzTuk
|
3001 |
-
k3LvCvptnfbwhYBboUhSnznFt+4orO/LdmgUud+tAWyZH8QiHZ/+cnfgLFuv5AS/T3KgGjSY6Dlo
|
3002 |
-
7JUle3ah5mm5hRm9iYz+re026nO8/4Piy33B0s5Ks40FnotJk9/BW9BuXvAuMC6C/Pq8tBcKSOWI
|
3003 |
-
m8Wba96wyrQD8Nr0kLhlZPdcTK3ofmZemde4wj7I0BOdre7kRXuJVfeKH2JShBKzwkCX44ofR5Gm
|
3004 |
-
dFrS+LFjKBC4swm4VndAoiaYecb+3yXuPuWgf9RhD1FLPD+M2uFwdNjCaKH5wQzpoeJ/u1U8dgbu
|
3005 |
-
ak7MkogwTZq9TwtImoS1mKPV+3P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y8l27OyCbvWFGFPouOOa
|
3035 |
-
KaqW04MjyaR7YbPMAuhd
|
3036 |
-
-----END CERTIFICATE-----
|
3037 |
-
|
3038 |
-
GTS Root R4
|
3039 |
-
===========
|
3040 |
-
-----BEGIN CERTIFICATE-----
|
3041 |
-
MIICCjCCAZGgAwIBAgIQbkepyIuUtui7OyrYorLBmTAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJV
|
3042 |
-
UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg
|
3043 |
-
UjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE
|
3044 |
-
ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcq
|
3045 |
-
hkjOPQIBBgUrgQQAIgNiAATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa
|
3046 |
-
6zzuhXyiQHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvRHYqj
|
3047 |
-
QjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSATNbrdP9JNqPV
|
3048 |
-
2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNnADBkAjBqUFJ0CMRw3J5QdCHojXohw0+WbhXRIjVhLfoI
|
3049 |
-
N+4Zba3bssx9BzT1YBkstTTZbyACMANxsbqjYAuG7ZoIapVon+Kz4ZNkfF6Tpt95LY2F45TPI11x
|
3050 |
-
zPKwTdb+mciUqXWi4w==
|
3051 |
-
-----END CERTIFICATE-----
|
3052 |
-
|
3053 |
-
UCA Global G2 Root
|
3054 |
-
==================
|
3055 |
-
-----BEGIN CERTIFICATE-----
|
3056 |
-
MIIFRjCCAy6gAwIBA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d5Ei9Hxeepl2n8pndntd97
|
3069 |
-
8XplFeRhVmUCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O
|
3070 |
-
BBYEFIHEjMz15DD/pQwIX4wVZyF0Ad/fMA0GCSqGSIb3DQEBCwUAA4ICAQATZSL1jiutROTL/7lo
|
3071 |
-
5sOASD0Ee/ojL3rtNtqyzm325p7lX1iPyzcyochltq44PTUbPrw7tgTQvPlJ9Zv3hcU2tsu8+Mg5
|
3072 |
-
1eRfB70VVJd0ysrtT7q6ZHafgbiERUlMjW+i67HM0cOU2kTC5uLqGOiiHycFutfl1qnN3e92mI0A
|
3073 |
-
Ds0b+gO3joBYDic/UvuUospeZcnWhNq5NXHzJsBPd+aBJ9J3O5oUb3n09tDh05S60FdRvScFDcH9
|
3074 |
-
yBIw7m+NESsIndTUv4BFFJqIRNow6rSn4+7vW4LVPtateJLbXDzz2K36uGt/xDYotgIVilQsnLAX
|
3075 |
-
c47QN6MUPJiVAAwpBVueSUmxX8fjy88nZY41F7dXyDDZQVu5FLbowg+UMaeUmMxq67XhJ/UQqAHo
|
3076 |
-
jhJi6IjMtX9Gl8CbEGY4GjZGXyJoPd/JxhMnq1MGrKI8hgZlb7F+sSlEmqO6SWkoaY/X5V+tBIZk
|
3077 |
-
bxqgDMUIYs6Ao9Dz7GjevjPHF1t/gMRMTLGmhIrDO7gJzRSBuhjjVFc2/tsvfEehOjPI+Vg7RE+x
|
3078 |
-
ygKJBJYoaMVLuCaJu9YzL1DV/pqJuhgyklTGW+Cd+V7lDSKb9triyCGyYiGqhkCyLmTTX8jjfhFn
|
3079 |
-
RR8F/uOi77Oos/N9j/gMHyIfLXC0uAE0djAA5SN4p1bXUB+K+wb1whnw0A==
|
3080 |
-
-----END CERTIFICATE-----
|
3081 |
-
|
3082 |
-
UCA Extended Validation Root
|
3083 |
-
============================
|
3084 |
-
-----BEGIN CERTIFICATE-----
|
3085 |
-
MIIFWjCC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4xxvvq0OKmOZK8l+hfZx6AYDlf7ej0gcWtSS
|
3140 |
-
6Cvu5zHbugRqh5jnxV/vfaci9wHYTfmJ0A6aBVmknpjZbyvKcL5kwlWj9Omvw5Ip3IgWJJk8jSaY
|
3141 |
-
tlu3zM63Nwf9JtmYhST/WSMDmu2dnajkXjjO11INb9I/bbEFa0nOipFGc/T2L/Coc3cOZayhjWZS
|
3142 |
-
aX5LaAzHHjcng6WMxwLkFM1JAbBzs/3GkDpv0mztO+7skb6iQ12LAEpmJURw3kAP+HwV96LOPNde
|
3143 |
-
E4yBFxgX0b3xdxA61GU5wSesVywlVP+i2k+KYTlerj1KjL0=
|
3144 |
-
-----END CERTIFICATE-----
|
3145 |
-
|
3146 |
-
emSign Root CA - G1
|
3147 |
-
===================
|
3148 |
-
-----BEGIN CERTIFICATE-----
|
3149 |
-
MIIDlDCCAnygAwIBAgIKMfXkYgxsWO3W2DANBgkqhkiG9w0BAQsFADBnMQswCQYDVQQGEwJJTjET
|
3150 |
-
MBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRl
|
3151 |
-
ZDEcMBoGA1UEAxMTZW1TaWduIFJvb3QgQ0EgLSBHMTAeFw0xODAyMTgxODMwMDBaFw00MzAyMTgx
|
3152 |
-
ODMwMDBaMGcxCzAJBgNVBAYTAklOMRMwEQYDVQQLEwplbVNpZ24gUEtJMSUwIwYDVQQKExxlTXVk
|
3153 |
-
aHJhIFRlY2hub2xvZ2llcyBMaW1pdGVkMRwwGgYDVQQDExNlbVNpZ24gUm9vdCBDQSAtIEcxMIIB
|
3154 |
-
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk0u76WaK7p1b1TST0Bsew+eeuGQzf2N4aLTN
|
3155 |
-
LnF115sgxk0pvLZoYIr3IZpWNVrzdr3YzZr/k1ZLpVkGoZM0Kd0WNHVO8oG0x5ZOrRkVUkr+PHB1
|
3156 |
-
cM2vK6sVmjM8qrOLqs1D/fXqcP/tzxE7lM5OMhbTI0Aqd7OvPAEsbO2ZLIvZTmmYsvePQbAyeGHW
|
3157 |
-
DV/D+qJAkh1cF+ZwPjXnorfCYuKrpDhMtTk1b+oDafo6VGiFbdbyL0NVHpENDtjVaqSW0RM8LHhQ
|
3158 |
-
6DqS0hdW5TUaQBw+jSztOd9C4INBdN+jzcKGYEho42kLVACL5HZpIQ15TjQIXhTCzLG3rdd8cIrH
|
3159 |
-
hQIDAQABo0IwQDAdBgNVHQ4EFgQU++8Nhp6w492pufEhF38+/PB3KxowDgYDVR0PAQH/BAQDAgEG
|
3160 |
-
MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFn/8oz1h31xPaOfG1vR2vjTnGs2
|
3161 |
-
vZupYeveFix0PZ7mddrXuqe8QhfnPZHr5X3dPpzxz5KsbEjMwiI/aTvFthUvozXGaCocV685743Q
|
3162 |
-
NcMYDHsAVhzNixl03r4PEuDQqqE/AjSxcM6dGNYIAwlG7mDgfrbESQRRfXBgvKqy/3lyeqYdPV8q
|
3163 |
-
+Mri/Tm3R7nrft8EI6/6nAYH6ftjk4BAtcZsCjEozgyfz7MjNYBBjWzEN3uBL4ChQEKF6dk4jeih
|
3164 |
-
U80Bv2noWgbyRQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx
|
3165 |
-
iN66zB+Afko=
|
3166 |
-
-----END CERTIFICATE-----
|
3167 |
-
|
3168 |
-
emSign ECC Root CA - G3
|
3169 |
-
=======================
|
3170 |
-
-----BEGIN CERTIFICATE-----
|
3171 |
-
MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQGEwJJTjETMBEG
|
3172 |
-
A1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEg
|
3173 |
-
MB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4
|
3174 |
-
MTgzMDAwWjBrMQswCQYDVQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11
|
3175 |
-
ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g
|
3176 |
-
RzMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0WXTsuwYc
|
3177 |
-
58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xySfvalY8L1X44uT6EYGQIr
|
3178 |
-
MgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuBzhccLikenEhjQjAOBgNVHQ8BAf8EBAMC
|
3179 |
-
AQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+D
|
3180 |
-
CBeQyh+KTOgNG3qxrdWBCUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnvI+GDZjVGLVTv7
|
3181 |
-
jHvrZQnD+JbNR6iC8hZVdyR+EhCVBCyj
|
3182 |
-
-----END CERTIFICATE-----
|
3183 |
-
|
3184 |
-
emSign Root CA - C1
|
3185 |
-
===================
|
3186 |
-
-----BEGIN CERTIFICATE-----
|
3187 |
-
MIIDczCCAlugAwIBAgILAK7PALrEzzL4Q7IwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCVVMx
|
3188 |
-
EzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQDExNlbVNp
|
3189 |
-
Z24gUm9vdCBDQSAtIEMxMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowVjELMAkGA1UE
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D/piq1JM4fHfyr6DDUI=
|
3203 |
-
-----END CERTIFICATE-----
|
3204 |
-
|
3205 |
-
emSign ECC Root CA - C3
|
3206 |
-
=======================
|
3207 |
-
-----BEGIN CERTIFICATE-----
|
3208 |
-
MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQGEwJVUzETMBEG
|
3209 |
-
A1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMxIDAeBgNVBAMTF2VtU2lnbiBF
|
3210 |
-
Q0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UE
|
3211 |
-
BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQD
|
3212 |
-
ExdlbVNpZ24gRUNDIFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd
|
3213 |
-
6bciMK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4OjavtisIGJAnB9
|
3214 |
-
SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0OBBYEFPtaSNCAIEDyqOkA
|
3215 |
-
B2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gA
|
3216 |
-
MGUCMQC02C8Cif22TGK6Q04ThHK1rt0c3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwU
|
3217 |
-
ZOR8loMRnLDRWmFLpg9J0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ==
|
3218 |
-
-----END CERTIFICATE-----
|
3219 |
-
|
3220 |
-
Hongkong Post Root CA 3
|
3221 |
-
=======================
|
3222 |
-
-----BEGIN CERTIFICATE-----
|
3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248 |
-
60PZ2Pierc+xYw5F9KBaLJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fq
|
3249 |
-
dBb9HxEGmpv0
|
3250 |
-
-----END CERTIFICATE-----
|
3251 |
-
|
3252 |
-
Entrust Root Certification Authority - G4
|
3253 |
-
=========================================
|
3254 |
-
-----BEGIN CERTIFICATE-----
|
3255 |
-
MIIGSzCCBDOgAwIBAgIRANm1Q3+vqTkPAAAAAFVlrVgwDQYJKoZIhvcNAQELBQAwgb4xCzAJBgNV
|
3256 |
-
BAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3Qu
|
3257 |
-
bmV0L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0gZm9yIGF1
|
3258 |
-
dGhvcml6ZWQgdXNlIG9ubHkxMjAwBgNVBAMTKUVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1
|
3259 |
-
dGhvcml0eSAtIEc0MB4XDTE1MDUyNzExMTExNloXDTM3MTIyNzExNDExNlowgb4xCzAJBgNVBAYT
|
3260 |
-
AlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0
|
3261 |
-
L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhv
|
3262 |
-
cml6ZWQgdXNlIG9ubHkxMjAwBgNVBAMTKUVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhv
|
3263 |
-
cml0eSAtIEc0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsewsQu7i0TD/pZJH4i3D
|
3264 |
-
umSXbcr3DbVZwbPLqGgZ2K+EbTBwXX7zLtJTmeH+H17ZSK9dE43b/2MzTdMAAr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85BK4FqLoUWlFPUa19yIqtRLULVAJyZv967lDtX/Zr1hstWO1uIAeV8KEsD+UmDfLJ/fOPt
|
3278 |
-
jqF/YFOOVZ1QNBIPt5d7bIdKROf1beyAN/BYGW5KaHbwH5Lk6rWS02FREAutp9lfx1/cH6NcjKF+
|
3279 |
-
m7ee01ZvZl4HliDtC3T7Zk6LERXpgUl+b7DUUH8i119lAg2m9IUe2K4GS0qn0jFmwvjO5QimpAKW
|
3280 |
-
RGhXxNUzzxkvFMSUHHuk2fCfDrGA4tGeEWSpiBE6doLlYsKA2KSD7ZPvfC+QsDJMlhVoSFLUmQjA
|
3281 |
-
JOgc47OlIQ6SwJAfzyBfyjs4x7dtOvPmRLgOMWuIjnDrnBdSqEGULoe256YSxXXfW8AKbnuk5F6G
|
3282 |
-
+TaU33fD6Q3AOfF5u0aOq0NZJ7cguyPpVkAh7DE9ZapD8j3fcEThuk0mEDuYn/PIjhs4ViFqUZPT
|
3283 |
-
kcpG2om3PVODLAgfi49T3f+sHw==
|
3284 |
-
-----END CERTIFICATE-----
|
3285 |
-
|
3286 |
-
Microsoft ECC Root Certificate Authority 2017
|
3287 |
-
=============================================
|
3288 |
-
-----BEGIN CERTIFICATE-----
|
3289 |
-
MIICWTCCAd+gAwIBAgIQZvI9r4fei7FK6gxXMQHC7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV
|
3290 |
-
UzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNyb3NvZnQgRUND
|
3291 |
-
IFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwHhcNMTkxMjE4MjMwNjQ1WhcNNDIwNzE4
|
3292 |
-
MjMxNjA0WjBlMQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYw
|
3293 |
-
NAYDVQQDEy1NaWNyb3NvZnQgRUNDIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwdjAQ
|
3294 |
-
BgcqhkjOPQIBBgUrgQQAIgNiAATUvD0CQnVBEyPNgASGAlEvaqiBYgtlzPbKnR5vSmZRogPZnZH6
|
3295 |
-
thaxjG7efM3beaYvzrvOcS/lpaso7GMEZpn4+vKTEAXhgShC48Zo9OYbhGBKia/teQ87zvH2RPUB
|
3296 |
-
eMCjVDBSMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTIy5lycFIM
|
3297 |
-
+Oa+sgRXKSrPQhDtNTAQBgkrBgEEAYI3FQEEAwIBADAKBggqhkjOPQQDAwNoADBlAjBY8k3qDPlf
|
3298 |
-
Xu5gKcs68tvWMoQZP3zVL8KxzJOuULsJMsbG7X7JNpQS5GiFBqIb0C8CMQCZ6Ra0DvpWSNSkMBaR
|
3299 |
-
eNtUjGUBiudQZsIxtzm6uBoiB078a1QWIP8rtedMDE2mT3M=
|
3300 |
-
-----END CERTIFICATE-----
|
3301 |
-
|
3302 |
-
Microsoft RSA Root Certificate Authority 2017
|
3303 |
-
=============================================
|
3304 |
-
-----BEGIN CERTIFICATE-----
|
3305 |
-
MIIFqDCCA5CgAwIBAgIQHtOXCV/YtLNHcB6qvn9FszANBgkqhkiG9w0BAQwFADBlMQswCQYDVQQG
|
3306 |
-
EwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNyb3NvZnQg
|
3307 |
-
UlNBIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwHhcNMTkxMjE4MjI1MTIyWhcNNDIw
|
3308 |
-
NzE4MjMwMDIzWjBlMQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9u
|
3309 |
-
MTYwNAYDVQQDEy1NaWNyb3NvZnQgUlNBIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcw
|
3310 |
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PAJtSzVXNUzltYkyLDVt8LkS/gxCP81OCgMNPOsduET/m4xaRhPtthH80
|
3323 |
-
dK2Jp86519efhGSSvpWhrQlTM93uCupKUY5vVau6tZRGrox/2KJQJWVggEbbMwSubLWYdFQl3JPk
|
3324 |
-
+ONVFT24bcMKpBLBaYVu32TxU5nhSnUgnZUP5NbcA/FZGOhHibJXWpS2qdgXKxdJ5XbLwVaZOjex
|
3325 |
-
/2kskZGT4d9Mozd2TaGf+G0eHdP67Pv0RR0Tbc/3WeUiJ3IrhvNXuzDtJE3cfVa7o7P4NHmJweDy
|
3326 |
-
AmH3pvwPuxwXC65B2Xy9J6P9LjrRk5Sxcx0ki69bIImtt2dmefU6xqaWM/5TkshGsRGRxpl/j8nW
|
3327 |
-
ZjEgQRCHLQzWwa80mMpkg/sTV9HB8Dx6jKXB/ZUhoHHBk2dxEuqPiAppGWSZI1b7rCoucL5mxAyE
|
3328 |
-
7+WL85MB+GqQk2dLsmijtWKP6T+MejteD+eMuMZ87zf9dOLITzNy4ZQ5bb0Sr74MTnB8G2+NszKT
|
3329 |
-
c0QWbej09+CVgI+WXTik9KveCjCHk9hNAHFiRSdLOkKEW39lt2c0Ui2cFmuqqNh7o0JMcccMyj6D
|
3330 |
-
5KbvtwEwXlGjefVwaaZBRA+GsCyRxj3qrg+E
|
3331 |
-
-----END CERTIFICATE-----
|
3332 |
-
|
3333 |
-
e-Szigno Root CA 2017
|
3334 |
-
=====================
|
3335 |
-
-----BEGIN CERTIFICATE-----
|
3336 |
-
MIICQDCCAeWgAwIBAgIMAVRI7yH9l1kN9QQKMAoGCCqGSM49BAMCMHExCzAJBgNVBAYTAkhVMREw
|
3337 |
-
DwYDVQQHDAhCdWRhcGVzdDEWMBQGA1UECgwNTWljcm9zZWMgTHRkLjEXMBUGA1UEYQwOVkFUSFUt
|
3338 |
-
MjM1ODQ0OTcxHjAcBgNVBAMMFWUtU3ppZ25vIFJvb3QgQ0EgMjAxNzAeFw0xNzA4MjIxMjA3MDZa
|
3339 |
-
Fw00MjA4MjIxMjA3MDZaMHExCzAJBgNVBAYTAkhVMREwDwYDVQQHDAhCdWRhcGVzdDEWMBQGA1UE
|
3340 |
-
CgwNTWljcm9zZWMgTHRkLjEXMBUGA1UEYQwOVkFUSFUtMjM1ODQ0OTcxHjAcBgNVBAMMFWUtU3pp
|
3341 |
-
Z25vIFJvb3QgQ0EgMjAxNzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJbcPYrYsHtvxie+RJCx
|
3342 |
-
s1YVe45DJH0ahFnuY2iyxl6H0BVIHqiQrb1TotreOpCmYF9oMrWGQd+HWyx7xf58etqjYzBhMA8G
|
3343 |
-
A1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSHERUI0arBeAyxr87GyZDv
|
3344 |
-
vzAEwDAfBgNVHSMEGDAWgBSHERUI0arBeAyxr87GyZDvvzAEwDAKBggqhkjOPQQDAgNJADBGAiEA
|
3345 |
-
tVfd14pVCzbhhkT61NlojbjcI4qKDdQvfepz7L9NbKgCIQDLpbQS+ue16M9+k/zzNY9vTlp8tLxO
|
3346 |
-
svxyqltZ+efcMQ==
|
3347 |
-
-----END CERTIFICATE-----
|
3348 |
-
|
3349 |
-
certSIGN Root CA G2
|
3350 |
-
===================
|
3351 |
-
-----BEGIN CERTIFICATE-----
|
3352 |
-
MIIFRzCCAy+gAwIBAgIJEQA0tk7GNi02MA0GCSqGSIb3DQEBCwUAMEExCzAJBgNVBAYTAlJPMRQw
|
3353 |
-
EgYDVQQKEwtDRVJUU0lHTiBTQTEcMBoGA1UECxMTY2VydFNJR04gUk9PVCBDQSBHMjAeFw0xNzAy
|
3354 |
-
MDYwOTI3MzVaFw00MjAyMDYwOTI3MzVaMEExCzAJBgNVBAYTAlJPMRQwEgYDVQQKEwtDRVJUU0lH
|
3355 |
-
TiBTQTEcMBoGA1UECxMTY2VydFNJR04gUk9PVCBDQSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggI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R3rYzpMzXjWR91M08KCy0mpbqTfXERMQlqiCA2ClV9+BB
|
3369 |
-
/AYm/7k29UMUA2Z44RGx2iBfRgB4ACGlHgAoYXhvqAEBj500mv/0OJD7uNGzcgbJceaBxXntC6Z5
|
3370 |
-
8hMLnPddDnskk7RI24Zf3lCGeOdA5jGokHZwYa+cNywRtYK3qq4kNFtyDGkNzVmf9nGvnAvRCjj5
|
3371 |
-
BiKDUyUM/FHE5r7iOZULJK2v0ZXkltd0ZGtxTgI8qoXzIKNDOXZbbFD+mpwUHmUUihW9o4JFWklW
|
3372 |
-
atKcsWMy5WHgUyIOpwpJ6st+H6jiYoD2EEVSmAYY3qXNL3+q1Ok+CHLsIwMCPKaq2LxndD0UF/tU
|
3373 |
-
Sxfj03k9bWtJySgOLnRQvwzZRjoQhsmnP+mg7H/rpXdYaXHmgwo38oZJar55CJD2AhZkPuXaTH4M
|
3374 |
-
NMn5X7azKFGnpyuqSfqNZSlO42sTp5SjLVFteAxEy9/eCG/Oo2Sr05WE1LlSVHJ7liXMvGnjSG4N
|
3375 |
-
0MedJ5qq+BOS3R7fY581qRY27Iy4g/Q9iY/NtBde17MXQRBdJ3NghVdJIgc=
|
3376 |
-
-----END CERTIFICATE-----
|
3377 |
-
|
3378 |
-
Trustwave Global Certification Authority
|
3379 |
-
========================================
|
3380 |
-
-----BEGIN CERTIFICATE-----
|
3381 |
-
MIIF2jCCA8KgAwIBAgIMBfcOhtpJ80Y1LrqyMA0GCSqGSIb3DQEBCwUAMIGIMQswCQYDVQQGEwJV
|
3382 |
-
UzERMA8GA1UECAwISWxsaW5vaXMxEDAOBgNVBAcMB0NoaWNhZ28xITAfBgNVBAoMGFRydXN0d2F2
|
3383 |
-
ZSBIb2xkaW5ncywgSW5jLjExMC8GA1UEAwwoVHJ1c3R3YXZlIEdsb2JhbCBDZXJ0aWZpY2F0aW9u
|
3384 |
-
IEF1dGhvcml0eTAeFw0xNzA4MjMxOTM0MTJaFw00MjA4MjMxOTM0MTJaMIG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BBYEFJngGWcNYtt2s9o9uFvo/ULSMQ6HMA4GA1UdDwEB/wQEAwIB
|
3398 |
-
BjANBgkqhkiG9w0BAQsFAAOCAgEAmHNw4rDT7TnsTGDZqRKGFx6W0OhUKDtkLSGm+J1WE2pIPU/H
|
3399 |
-
PinbbViDVD2HfSMF1OQc3Og4ZYbFdada2zUFvXfeuyk3QAUHw5RSn8pk3fEbK9xGChACMf1KaA0H
|
3400 |
-
ZJDmHvUqoai7PF35owgLEQzxPy0QlG/+4jSHg9bP5Rs1bdID4bANqKCqRieCNqcVtgimQlRXtpla
|
3401 |
-
4gt5kNdXElE1GYhBaCXUNxeEFfsBctyV3lImIJgm4nb1J2/6ADtKYdkNy1GTKv0WBpanI5ojSP5R
|
3402 |
-
vbbEsLFUzt5sQa0WZ37b/TjNuThOssFgy50X31ieemKyJo90lZvkWx3SD92YHJtZuSPTMaCm/zjd
|
3403 |
-
zyBP6VhWOmfD0faZmZ26NraAL4hHT4a/RDqA5Dccprrql5gR0IRiR2Qequ5AvzSxnI9O4fKSTx+O
|
3404 |
-
856X3vOmeWqJcU9LJxdI/uz0UA9PSX3MReO9ekDFQdxhVicGaeVyQYHTtgGJoC86cnn+OjC/QezH
|
3405 |
-
Yj6RS8fZMXZC+fc8Y+wmjHMMfRod6qh8h6jCJ3zhM0EPz8/8AKAigJ5Kp28AsEFFtyLKaEjFQqKu
|
3406 |
-
3R3y4G5OBVixwJAWKqQ9EEC+j2Jjg6mcgn0tAumDMHzLJ8n9HmYAsC7TIS+OMxZsmO0QqAfWzJPP
|
3407 |
-
29FpHOTKyeC2nOnOcXHebD8WpHk=
|
3408 |
-
-----END CERTIFICATE-----
|
3409 |
-
|
3410 |
-
Trustwave Global ECC P256 Certification Authority
|
3411 |
-
=================================================
|
3412 |
-
-----BEGIN CERTIFICATE-----
|
3413 |
-
MIICYDCCAgegAwIBAgIMDWpfCD8oXD5Rld9dMAoGCCqGSM49BAMCMIGRMQswCQYDVQQGEwJVUzER
|
3414 |
-
MA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBI
|
3415 |
-
b2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDI1NiBDZXJ0aWZp
|
3416 |
-
Y2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MjMxOTM1MTBaFw00MjA4MjMxOTM1MTBaMIGRMQswCQYD
|
3417 |
-
VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRy
|
3418 |
-
dXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDI1
|
3419 |
-
NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABH77bOYj
|
3420 |
-
43MyCMpg5lOcunSNGLB4kFKA3TjASh3RqMyTpJcGOMoNFWLGjgEqZZ2q3zSRLoHB5DOSMcT9CTqm
|
3421 |
-
P62jQzBBMA8GA1UdEwEB/wQFMAMBAf8wDwYDVR0PAQH/BAUDAwcGADAdBgNVHQ4EFgQUo0EGrJBt
|
3422 |
-
0UrrdaVKEJmzsaGLSvcwCgYIKoZIzj0EAwIDRwAwRAIgB+ZU2g6gWrKuEZ+Hxbb/ad4lvvigtwjz
|
3423 |
-
RM4q3wghDDcCIC0mA6AFvWvR9lz4ZcyGbbOcNEhjhAnFjXca4syc4XR7
|
3424 |
-
-----END CERTIFICATE-----
|
3425 |
-
|
3426 |
-
Trustwave Global ECC P384 Certification Authority
|
3427 |
-
=================================================
|
3428 |
-
-----BEGIN CERTIFICATE-----
|
3429 |
-
MIICnTCCAiSgAwIBAgIMCL2Fl2yZJ6SAaEc7MAoGCCqGSM49BAMDMIGRMQswCQYDVQQGEwJVUzER
|
3430 |
-
MA8GA1UECBM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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/core/DataTable.php
CHANGED
@@ -1522,7 +1522,7 @@ class DataTable implements DataTableInterface, \IteratorAggregate, \ArrayAccess
|
|
1522 |
}
|
1523 |
if ($thisIsNotThatSimple === false) {
|
1524 |
// case when the array is indexed by the default numeric index
|
1525 |
-
if (array_keys($array)
|
1526 |
foreach ($array as $row) {
|
1527 |
$this->addRow(new Row(array(Row::COLUMNS => array($row))));
|
1528 |
}
|
1522 |
}
|
1523 |
if ($thisIsNotThatSimple === false) {
|
1524 |
// case when the array is indexed by the default numeric index
|
1525 |
+
if (array_keys($array) === array_keys(array_fill(0, count($array), true))) {
|
1526 |
foreach ($array as $row) {
|
1527 |
$this->addRow(new Row(array(Row::COLUMNS => array($row))));
|
1528 |
}
|
app/core/DataTable/Filter/CalculateEvolutionFilter.php
CHANGED
@@ -12,6 +12,7 @@ use Piwik\Common;
|
|
12 |
use Piwik\DataTable;
|
13 |
use Piwik\DataTable\Row;
|
14 |
use Piwik\NumberFormatter;
|
|
|
15 |
use Piwik\Site;
|
16 |
|
17 |
/**
|
@@ -151,17 +152,24 @@ class CalculateEvolutionFilter extends ColumnCallbackAddColumnPercentage
|
|
151 |
* from this value to $currentValue.
|
152 |
* @param float|int $quotientPrecision The quotient precision to round to.
|
153 |
* @param bool $appendPercentSign Whether to append a '%' sign to the end of the number or not.
|
|
|
154 |
*
|
155 |
* @return string The evolution percent, eg `'15%'`.
|
156 |
*/
|
157 |
-
public static function calculate($currentValue, $pastValue, $quotientPrecision = 0, $appendPercentSign = true)
|
158 |
{
|
159 |
$number = self::getPercentageValue($currentValue - $pastValue, $pastValue, $quotientPrecision);
|
160 |
if ($appendPercentSign) {
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
163 |
|
164 |
-
return
|
165 |
}
|
166 |
|
167 |
public static function appendPercentSign($number)
|
@@ -171,8 +179,8 @@ class CalculateEvolutionFilter extends ColumnCallbackAddColumnPercentage
|
|
171 |
|
172 |
public static function prependPlusSignToNumber($number)
|
173 |
{
|
174 |
-
if ($number > 0) {
|
175 |
-
|
176 |
}
|
177 |
|
178 |
return $number;
|
12 |
use Piwik\DataTable;
|
13 |
use Piwik\DataTable\Row;
|
14 |
use Piwik\NumberFormatter;
|
15 |
+
use Piwik\Piwik;
|
16 |
use Piwik\Site;
|
17 |
|
18 |
/**
|
152 |
* from this value to $currentValue.
|
153 |
* @param float|int $quotientPrecision The quotient precision to round to.
|
154 |
* @param bool $appendPercentSign Whether to append a '%' sign to the end of the number or not.
|
155 |
+
* @param bool $prependPlusSignWhenPositive Whether to prepend a '+' sign before the number if it's not negative.
|
156 |
*
|
157 |
* @return string The evolution percent, eg `'15%'`.
|
158 |
*/
|
159 |
+
public static function calculate($currentValue, $pastValue, $quotientPrecision = 0, $appendPercentSign = true, $prependPlusSignWhenPositive = false)
|
160 |
{
|
161 |
$number = self::getPercentageValue($currentValue - $pastValue, $pastValue, $quotientPrecision);
|
162 |
if ($appendPercentSign) {
|
163 |
+
$formatted = NumberFormatter::getInstance()->formatPercent($number, $quotientPrecision);
|
164 |
+
} else {
|
165 |
+
$formatted = NumberFormatter::getInstance()->format($number, $quotientPrecision);
|
166 |
+
}
|
167 |
+
|
168 |
+
if ($prependPlusSignWhenPositive && $number >= 0) {
|
169 |
+
$formatted = Piwik::translate('Intl_NumberSymbolPlus') . $formatted;
|
170 |
}
|
171 |
|
172 |
+
return $formatted;
|
173 |
}
|
174 |
|
175 |
public static function appendPercentSign($number)
|
179 |
|
180 |
public static function prependPlusSignToNumber($number)
|
181 |
{
|
182 |
+
if ((float) $number > 0) {
|
183 |
+
return '+' . $number;
|
184 |
}
|
185 |
|
186 |
return $number;
|
app/core/Date.php
CHANGED
@@ -135,6 +135,12 @@ class Date
|
|
135 |
$date = self::yesterday();
|
136 |
} elseif ($dateString === 'yesterdaySameTime') {
|
137 |
$date = self::yesterdaySameTime();
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
} elseif (!is_int($dateString)
|
139 |
&& (
|
140 |
// strtotime returns the timestamp for April 1st for a date like 2011-04-01,today
|
@@ -187,6 +193,12 @@ class Date
|
|
187 |
return self::yesterdayInTimezone($timezone);
|
188 |
} else if ($dateString === 'yesterdaySameTime') {
|
189 |
return self::yesterdaySameTimeInTimezone($timezone);
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
} else {
|
191 |
throw new \Exception("Date::factoryInTimezone() should not be used with $dateString.");
|
192 |
}
|
@@ -214,6 +226,21 @@ class Date
|
|
214 |
return self::nowInTimezone($timezone)->subDay(1);
|
215 |
}
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
/**
|
218 |
* Returns the current timestamp as a string with the following format: `'YYYY-MM-DD HH:MM:SS'`.
|
219 |
*
|
@@ -586,7 +613,37 @@ class Date
|
|
586 |
*/
|
587 |
public static function yesterdaySameTime()
|
588 |
{
|
589 |
-
return new Date(strtotime("yesterday " . date('H:i:s'), self::getNowTimestamp()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
590 |
}
|
591 |
|
592 |
/**
|
135 |
$date = self::yesterday();
|
136 |
} elseif ($dateString === 'yesterdaySameTime') {
|
137 |
$date = self::yesterdaySameTime();
|
138 |
+
} else if (preg_match('/last[ -]?week/i', urldecode($dateString))) {
|
139 |
+
$date = self::lastWeek();
|
140 |
+
} else if (preg_match('/last[ -]?month/i', urldecode($dateString))) {
|
141 |
+
$date = self::lastMonth();
|
142 |
+
} else if (preg_match('/last[ -]?year/i', urldecode($dateString))) {
|
143 |
+
$date = self::lastYear();
|
144 |
} elseif (!is_int($dateString)
|
145 |
&& (
|
146 |
// strtotime returns the timestamp for April 1st for a date like 2011-04-01,today
|
193 |
return self::yesterdayInTimezone($timezone);
|
194 |
} else if ($dateString === 'yesterdaySameTime') {
|
195 |
return self::yesterdaySameTimeInTimezone($timezone);
|
196 |
+
} else if (preg_match('/last[ -]?week/i', urldecode($dateString))) {
|
197 |
+
return self::lastWeekInTimezone($timezone);
|
198 |
+
} else if (preg_match('/last[ -]?month/i', urldecode($dateString))) {
|
199 |
+
return self::lastMonthInTimezone($timezone);
|
200 |
+
} else if (preg_match('/last[ -]?year/i', urldecode($dateString))) {
|
201 |
+
return self::lastYearInTimezone($timezone);
|
202 |
} else {
|
203 |
throw new \Exception("Date::factoryInTimezone() should not be used with $dateString.");
|
204 |
}
|
226 |
return self::nowInTimezone($timezone)->subDay(1);
|
227 |
}
|
228 |
|
229 |
+
private static function lastWeekInTimezone($timezone)
|
230 |
+
{
|
231 |
+
return new Date(strtotime('-1week', self::todayInTimezone($timezone)->getTimestamp()));
|
232 |
+
}
|
233 |
+
|
234 |
+
private static function lastMonthInTimezone($timezone)
|
235 |
+
{
|
236 |
+
return new Date(strtotime('-1month', self::todayInTimezone($timezone)->getTimestamp()));
|
237 |
+
}
|
238 |
+
|
239 |
+
private static function lastYearInTimezone($timezone)
|
240 |
+
{
|
241 |
+
return new Date(strtotime('-1year', self::todayInTimezone($timezone)->getTimestamp()));
|
242 |
+
}
|
243 |
+
|
244 |
/**
|
245 |
* Returns the current timestamp as a string with the following format: `'YYYY-MM-DD HH:MM:SS'`.
|
246 |
*
|
613 |
*/
|
614 |
public static function yesterdaySameTime()
|
615 |
{
|
616 |
+
return new Date(strtotime("yesterday " . date('H:i:s', self::getNowTimestamp()), self::getNowTimestamp()));
|
617 |
+
}
|
618 |
+
|
619 |
+
/**
|
620 |
+
* Returns a date object set to the day a week ago at midnight in UTC.
|
621 |
+
*
|
622 |
+
* @return \Piwik\Date
|
623 |
+
*/
|
624 |
+
public static function lastWeek()
|
625 |
+
{
|
626 |
+
return new Date(strtotime("-1week 00:00:00", self::getNowTimestamp()));
|
627 |
+
}
|
628 |
+
|
629 |
+
/**
|
630 |
+
* Returns a date object set to the day a month ago at midnight in UTC.
|
631 |
+
*
|
632 |
+
* @return \Piwik\Date
|
633 |
+
*/
|
634 |
+
public static function lastMonth()
|
635 |
+
{
|
636 |
+
return new Date(strtotime("-1month 00:00:00", self::getNowTimestamp()));
|
637 |
+
}
|
638 |
+
|
639 |
+
/**
|
640 |
+
* Returns a date object set to the day a year ago at midnight in UTC.
|
641 |
+
*
|
642 |
+
* @return \Piwik\Date
|
643 |
+
*/
|
644 |
+
public static function lastYear()
|
645 |
+
{
|
646 |
+
return new Date(strtotime("-1year 00:00:00", self::getNowTimestamp()));
|
647 |
}
|
648 |
|
649 |
/**
|
app/core/ErrorHandler.php
CHANGED
@@ -19,6 +19,8 @@ class ErrorHandler
|
|
19 |
{
|
20 |
private static $fatalErrorStackTrace = [];
|
21 |
|
|
|
|
|
22 |
/**
|
23 |
* Fatal errors in PHP do not leave behind backtraces, which can make it impossible to determine
|
24 |
* the exact cause of one. We can, however, save a partial stack trace by remembering certain execution
|
@@ -132,6 +134,8 @@ class ErrorHandler
|
|
132 |
|
133 |
public static function errorHandler($errno, $errstr, $errfile, $errline)
|
134 |
{
|
|
|
|
|
135 |
// if the error has been suppressed by the @ we don't handle the error
|
136 |
if (!(error_reporting() & $errno)) {
|
137 |
return;
|
@@ -174,6 +178,17 @@ class ErrorHandler
|
|
174 |
}
|
175 |
}
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
private static function createLogMessage($errno, $errstr, $errfile, $errline)
|
178 |
{
|
179 |
return sprintf(
|
19 |
{
|
20 |
private static $fatalErrorStackTrace = [];
|
21 |
|
22 |
+
private static $lastError = '';
|
23 |
+
|
24 |
/**
|
25 |
* Fatal errors in PHP do not leave behind backtraces, which can make it impossible to determine
|
26 |
* the exact cause of one. We can, however, save a partial stack trace by remembering certain execution
|
134 |
|
135 |
public static function errorHandler($errno, $errstr, $errfile, $errline)
|
136 |
{
|
137 |
+
self::$lastError = self::createLogMessage($errno, $errstr, $errfile, $errline);
|
138 |
+
|
139 |
// if the error has been suppressed by the @ we don't handle the error
|
140 |
if (!(error_reporting() & $errno)) {
|
141 |
return;
|
178 |
}
|
179 |
}
|
180 |
|
181 |
+
public static function getLastError()
|
182 |
+
{
|
183 |
+
$lastError = error_get_last();
|
184 |
+
|
185 |
+
if (!empty($lastError['message'])) {
|
186 |
+
return $lastError['message'];
|
187 |
+
}
|
188 |
+
|
189 |
+
return self::$lastError;
|
190 |
+
}
|
191 |
+
|
192 |
private static function createLogMessage($errno, $errstr, $errfile, $errline)
|
193 |
{
|
194 |
return sprintf(
|
app/core/Filechecks.php
CHANGED
@@ -148,9 +148,21 @@ class Filechecks
|
|
148 |
|
149 |
$group = trim(shell_exec('groups '. $user .' | cut -f3 -d" "'));
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
if (empty($group)) {
|
152 |
$group = 'www-data';
|
153 |
}
|
|
|
154 |
return $user . ':' . $group;
|
155 |
}
|
156 |
|
@@ -161,11 +173,23 @@ class Filechecks
|
|
161 |
}
|
162 |
|
163 |
$currentUser = get_current_user();
|
164 |
-
|
165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
}
|
167 |
|
168 |
-
|
|
|
|
|
|
|
|
|
169 |
}
|
170 |
|
171 |
/**
|
@@ -196,26 +220,33 @@ class Filechecks
|
|
196 |
{
|
197 |
$index = Filesystem::realpath(PIWIK_INCLUDE_PATH . '/index.php');
|
198 |
$stat = stat($index);
|
199 |
-
if(!$stat) {
|
200 |
return '';
|
201 |
}
|
202 |
|
203 |
if (function_exists('posix_getgrgid')) {
|
204 |
$group = posix_getgrgid($stat[5]);
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
206 |
} else {
|
207 |
return '';
|
208 |
}
|
209 |
|
210 |
if (function_exists('posix_getpwuid')) {
|
211 |
$user = posix_getpwuid($stat[4]);
|
212 |
-
|
|
|
|
|
|
|
|
|
213 |
} else {
|
214 |
return '';
|
215 |
}
|
216 |
|
217 |
return "$user:$group";
|
218 |
}
|
219 |
-
|
220 |
-
|
221 |
}
|
148 |
|
149 |
$group = trim(shell_exec('groups '. $user .' | cut -f3 -d" "'));
|
150 |
|
151 |
+
if (empty($group) && function_exists('posix_getegid') && function_exists('posix_getgrgid')) {
|
152 |
+
$currentGroupId = posix_getegid();
|
153 |
+
|
154 |
+
$group = posix_getpwuid($currentGroupId);
|
155 |
+
if (!empty($group['name'])) {
|
156 |
+
$group = $group['name'];
|
157 |
+
} else {
|
158 |
+
$group = $currentGroupId;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
if (empty($group)) {
|
163 |
$group = 'www-data';
|
164 |
}
|
165 |
+
|
166 |
return $user . ':' . $group;
|
167 |
}
|
168 |
|
173 |
}
|
174 |
|
175 |
$currentUser = get_current_user();
|
176 |
+
|
177 |
+
if (empty($currentUser) && function_exists('posix_geteuid') && function_exists('posix_getpwuid')) {
|
178 |
+
$currentUserId = posix_geteuid();
|
179 |
+
|
180 |
+
$user = posix_getpwuid($currentUserId);
|
181 |
+
if (!empty($user['name'])) {
|
182 |
+
$currentUser = $user['name'];
|
183 |
+
} else {
|
184 |
+
$currentUser = $currentUserId;
|
185 |
+
}
|
186 |
}
|
187 |
|
188 |
+
if (empty($currentUser)) {
|
189 |
+
$currentUser = 'www-data';
|
190 |
+
}
|
191 |
+
|
192 |
+
return $currentUser;
|
193 |
}
|
194 |
|
195 |
/**
|
220 |
{
|
221 |
$index = Filesystem::realpath(PIWIK_INCLUDE_PATH . '/index.php');
|
222 |
$stat = stat($index);
|
223 |
+
if (!$stat) {
|
224 |
return '';
|
225 |
}
|
226 |
|
227 |
if (function_exists('posix_getgrgid')) {
|
228 |
$group = posix_getgrgid($stat[5]);
|
229 |
+
|
230 |
+
if (!empty($group['name'])) {
|
231 |
+
$group = $group['name'];
|
232 |
+
} else {
|
233 |
+
$group = $stat[5];
|
234 |
+
}
|
235 |
} else {
|
236 |
return '';
|
237 |
}
|
238 |
|
239 |
if (function_exists('posix_getpwuid')) {
|
240 |
$user = posix_getpwuid($stat[4]);
|
241 |
+
if (!empty($user['name'])) {
|
242 |
+
$user = $user['name'];
|
243 |
+
} else {
|
244 |
+
$user = $stat[4];
|
245 |
+
}
|
246 |
} else {
|
247 |
return '';
|
248 |
}
|
249 |
|
250 |
return "$user:$group";
|
251 |
}
|
|
|
|
|
252 |
}
|
app/core/Http.php
CHANGED
@@ -8,6 +8,7 @@
|
|
8 |
*/
|
9 |
namespace Piwik;
|
10 |
|
|
|
11 |
use Exception;
|
12 |
|
13 |
/**
|
@@ -161,6 +162,31 @@ class Http
|
|
161 |
throw new Exception('Too many redirects (' . $followDepth . ')');
|
162 |
}
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
$contentLength = 0;
|
165 |
$fileLength = 0;
|
166 |
|
@@ -194,8 +220,6 @@ class Http
|
|
194 |
|
195 |
list($proxyHost, $proxyPort, $proxyUser, $proxyPassword) = self::getProxyConfiguration($aUrl);
|
196 |
|
197 |
-
$aUrl = trim($aUrl);
|
198 |
-
|
199 |
// other result data
|
200 |
$status = null;
|
201 |
$headers = array();
|
@@ -246,7 +270,7 @@ class Http
|
|
246 |
* @ignore
|
247 |
*/
|
248 |
Piwik::postEvent('Http.sendHttpRequest.end', array($aUrl, $httpEventParams, &$response, &$status, &$headers));
|
249 |
-
|
250 |
if ($destinationPath && file_exists($destinationPath)) {
|
251 |
return true;
|
252 |
}
|
@@ -533,10 +557,10 @@ class Http
|
|
533 |
if (isset($http_response_header) && preg_match('~^HTTP/(\d\.\d)\s+(\d+)(\s*.*)?~', implode("\n", $http_response_header), $m)) {
|
534 |
$status = (int)$m[2];
|
535 |
}
|
536 |
-
|
537 |
if (!$status && $response === false) {
|
538 |
-
$error =
|
539 |
-
throw new \Exception($error
|
540 |
}
|
541 |
$fileLength = strlen($response);
|
542 |
}
|
@@ -889,7 +913,7 @@ class Http
|
|
889 |
if (!empty($general['custom_cacert_pem'])) {
|
890 |
$cacertPath = $general['custom_cacert_pem'];
|
891 |
} else {
|
892 |
-
$cacertPath =
|
893 |
}
|
894 |
@curl_setopt($ch, CURLOPT_CAINFO, $cacertPath);
|
895 |
}
|
8 |
*/
|
9 |
namespace Piwik;
|
10 |
|
11 |
+
use Composer\CaBundle\CaBundle;
|
12 |
use Exception;
|
13 |
|
14 |
/**
|
162 |
throw new Exception('Too many redirects (' . $followDepth . ')');
|
163 |
}
|
164 |
|
165 |
+
$aUrl = trim($aUrl);
|
166 |
+
$parsedUrl = @parse_url($aUrl);
|
167 |
+
|
168 |
+
if (empty($parsedUrl['scheme'])) {
|
169 |
+
throw new Exception('Missing scheme in given url');
|
170 |
+
}
|
171 |
+
|
172 |
+
$allowedProtocols = Config::getInstance()->General['allowed_outgoing_protocols'];
|
173 |
+
$isAllowed = false;
|
174 |
+
|
175 |
+
foreach (explode(',', $allowedProtocols) as $protocol) {
|
176 |
+
if (strtolower($parsedUrl['scheme']) === strtolower(trim($protocol))) {
|
177 |
+
$isAllowed = true;
|
178 |
+
break;
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
if (!$isAllowed) {
|
183 |
+
throw new Exception(sprintf(
|
184 |
+
'Protocol %s not in list of allowed protocols: %s',
|
185 |
+
$parsedUrl['scheme'],
|
186 |
+
$allowedProtocols
|
187 |
+
));
|
188 |
+
}
|
189 |
+
|
190 |
$contentLength = 0;
|
191 |
$fileLength = 0;
|
192 |
|
220 |
|
221 |
list($proxyHost, $proxyPort, $proxyUser, $proxyPassword) = self::getProxyConfiguration($aUrl);
|
222 |
|
|
|
|
|
223 |
// other result data
|
224 |
$status = null;
|
225 |
$headers = array();
|
270 |
* @ignore
|
271 |
*/
|
272 |
Piwik::postEvent('Http.sendHttpRequest.end', array($aUrl, $httpEventParams, &$response, &$status, &$headers));
|
273 |
+
|
274 |
if ($destinationPath && file_exists($destinationPath)) {
|
275 |
return true;
|
276 |
}
|
557 |
if (isset($http_response_header) && preg_match('~^HTTP/(\d\.\d)\s+(\d+)(\s*.*)?~', implode("\n", $http_response_header), $m)) {
|
558 |
$status = (int)$m[2];
|
559 |
}
|
560 |
+
|
561 |
if (!$status && $response === false) {
|
562 |
+
$error = ErrorHandler::getLastError();
|
563 |
+
throw new \Exception($error);
|
564 |
}
|
565 |
$fileLength = strlen($response);
|
566 |
}
|
913 |
if (!empty($general['custom_cacert_pem'])) {
|
914 |
$cacertPath = $general['custom_cacert_pem'];
|
915 |
} else {
|
916 |
+
$cacertPath = CaBundle::getBundledCaBundlePath();
|
917 |
}
|
918 |
@curl_setopt($ch, CURLOPT_CAINFO, $cacertPath);
|
919 |
}
|
app/core/Period/Factory.php
CHANGED
@@ -74,7 +74,7 @@ abstract class Factory
|
|
74 |
self::checkPeriodIsEnabled($period);
|
75 |
|
76 |
if (is_string($date)) {
|
77 |
-
|
78 |
if (Period::isMultiplePeriod($date, $period)
|
79 |
|| $period == 'range'
|
80 |
) {
|
@@ -160,19 +160,14 @@ abstract class Factory
|
|
160 |
$timezone = 'UTC';
|
161 |
}
|
162 |
|
163 |
-
|
164 |
|
165 |
if ($period == 'range') {
|
166 |
self::checkPeriodIsEnabled('range');
|
167 |
$oPeriod = new Range('range', $date, $timezone, Date::factory('today', $timezone));
|
168 |
} else {
|
169 |
if (!($date instanceof Date)) {
|
170 |
-
|
171 |
-
$date = date('Y-m-d', Date::factory('now', $timezone)->getTimestamp());
|
172 |
-
} elseif ($date == 'yesterday' || $date == 'yesterdaySameTime') {
|
173 |
-
$date = date('Y-m-d', Date::factory('now', $timezone)->subDay(1)->getTimestamp());
|
174 |
-
}
|
175 |
-
$date = Date::factory($date);
|
176 |
}
|
177 |
$oPeriod = Factory::build($period, $date);
|
178 |
}
|
74 |
self::checkPeriodIsEnabled($period);
|
75 |
|
76 |
if (is_string($date)) {
|
77 |
+
[$period, $date] = self::convertRangeToDateIfNeeded($period, $date);
|
78 |
if (Period::isMultiplePeriod($date, $period)
|
79 |
|| $period == 'range'
|
80 |
) {
|
160 |
$timezone = 'UTC';
|
161 |
}
|
162 |
|
163 |
+
[$period, $date] = self::convertRangeToDateIfNeeded($period, $date);
|
164 |
|
165 |
if ($period == 'range') {
|
166 |
self::checkPeriodIsEnabled('range');
|
167 |
$oPeriod = new Range('range', $date, $timezone, Date::factory('today', $timezone));
|
168 |
} else {
|
169 |
if (!($date instanceof Date)) {
|
170 |
+
$date = Date::factory($date, $timezone);
|
|
|
|
|
|
|
|
|
|
|
171 |
}
|
172 |
$oPeriod = Factory::build($period, $date);
|
173 |
}
|
app/core/Period/Range.php
CHANGED
@@ -220,7 +220,7 @@ class Range extends Period
|
|
220 |
|
221 |
parent::generate();
|
222 |
|
223 |
-
if (preg_match('
|
224 |
$lastN = $regs[2];
|
225 |
$lastOrPrevious = $regs[1];
|
226 |
if (!is_null($this->defaultEndDate)) {
|
@@ -290,7 +290,7 @@ class Range extends Period
|
|
290 |
*/
|
291 |
public static function parseDateRange($dateString)
|
292 |
{
|
293 |
-
$matched = preg_match('/^([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}),(([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|today|now|yesterday)$/
|
294 |
|
295 |
if (empty($matched)) {
|
296 |
return false;
|
220 |
|
221 |
parent::generate();
|
222 |
|
223 |
+
if (preg_match('/^(last|previous)([0-9]*)$/', $this->strDate, $regs)) {
|
224 |
$lastN = $regs[2];
|
225 |
$lastOrPrevious = $regs[1];
|
226 |
if (!is_null($this->defaultEndDate)) {
|
290 |
*/
|
291 |
public static function parseDateRange($dateString)
|
292 |
{
|
293 |
+
$matched = preg_match('/^((?:[0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|last[ -]?(?:week|month|year)),((?:[0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|today|now|yesterday|last[ -]?(?:week|month|year))$/Di', trim($dateString), $regs);
|
294 |
|
295 |
if (empty($matched)) {
|
296 |
return false;
|
app/core/Plugin/ThemeStyles.php
CHANGED
@@ -224,7 +224,7 @@ class ThemeStyles
|
|
224 |
$result = '';
|
225 |
foreach (get_object_vars($this) as $name => $value) {
|
226 |
$varName = isset(self::$propertyNamesToLessVariableNames[$name]) ? self::$propertyNamesToLessVariableNames[$name] : $this->getGenericThemeVarName($name);
|
227 |
-
$result .= "@$varName
|
228 |
}
|
229 |
return $result;
|
230 |
}
|
224 |
$result = '';
|
225 |
foreach (get_object_vars($this) as $name => $value) {
|
226 |
$varName = isset(self::$propertyNamesToLessVariableNames[$name]) ? self::$propertyNamesToLessVariableNames[$name] : $this->getGenericThemeVarName($name);
|
227 |
+
$result .= "@$varName: $value;\n";
|
228 |
}
|
229 |
return $result;
|
230 |
}
|
app/core/SettingsServer.php
CHANGED
@@ -91,7 +91,10 @@ class SettingsServer
|
|
91 |
*/
|
92 |
public static function isWindows()
|
93 |
{
|
94 |
-
|
|
|
|
|
|
|
95 |
}
|
96 |
|
97 |
/**
|
91 |
*/
|
92 |
public static function isWindows()
|
93 |
{
|
94 |
+
if (PHP_OS_FAMILY == "Unknown") {
|
95 |
+
return DIRECTORY_SEPARATOR === '\\';
|
96 |
+
}
|
97 |
+
return PHP_OS_FAMILY === "Windows";
|
98 |
}
|
99 |
|
100 |
/**
|
app/core/Tracker.php
CHANGED
@@ -308,11 +308,6 @@ class Tracker
|
|
308 |
\Piwik\Tracker\Cache::deleteTrackerCache();
|
309 |
Filesystem::clearPhpCaches();
|
310 |
}
|
311 |
-
|
312 |
-
$pluginsDisabled = array('Provider');
|
313 |
-
|
314 |
-
// Disable provider plugin, because it is so slow to do many reverse ip lookups
|
315 |
-
PluginManager::getInstance()->setTrackerPluginsNotToLoad($pluginsDisabled);
|
316 |
}
|
317 |
|
318 |
protected function loadTrackerPlugins()
|
308 |
\Piwik\Tracker\Cache::deleteTrackerCache();
|
309 |
Filesystem::clearPhpCaches();
|
310 |
}
|
|
|
|
|
|
|
|
|
|
|
311 |
}
|
312 |
|
313 |
protected function loadTrackerPlugins()
|
app/core/Tracker/Visit.php
CHANGED
@@ -582,17 +582,6 @@ class Visit implements VisitInterface
|
|
582 |
}
|
583 |
}
|
584 |
|
585 |
-
if (TrackerConfig::getConfigValue('enable_userid_overwrites_visitorid')) {
|
586 |
-
// User ID takes precedence and overwrites idvisitor value
|
587 |
-
$userId = $this->request->getForcedUserId();
|
588 |
-
if ($userId) {
|
589 |
-
$userIdHash = $this->request->getUserIdHashed($userId);
|
590 |
-
$binIdVisitor = Common::hex2bin($userIdHash);
|
591 |
-
$this->visitProperties->setProperty('idvisitor', $binIdVisitor);
|
592 |
-
$valuesToUpdate['idvisitor'] = $binIdVisitor;
|
593 |
-
}
|
594 |
-
}
|
595 |
-
|
596 |
return $valuesToUpdate;
|
597 |
}
|
598 |
|
582 |
}
|
583 |
}
|
584 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
return $valuesToUpdate;
|
586 |
}
|
587 |
|
app/core/Tracker/VisitExcluded.php
CHANGED
@@ -218,7 +218,7 @@ class VisitExcluded
|
|
218 |
return $isInRanges;
|
219 |
}
|
220 |
|
221 |
-
|
222 |
{
|
223 |
// see https://github.com/piwik/piwik/issues/7733
|
224 |
return !empty($_SERVER['HTTP_VIA'])
|
218 |
return $isInRanges;
|
219 |
}
|
220 |
|
221 |
+
public function isChromeDataSaverUsed(IP $ip)
|
222 |
{
|
223 |
// see https://github.com/piwik/piwik/issues/7733
|
224 |
return !empty($_SERVER['HTTP_VIA'])
|
app/core/Updates/4.0.0-b1.php
CHANGED
@@ -10,9 +10,11 @@
|
|
10 |
namespace Piwik\Updates;
|
11 |
|
12 |
use Piwik\DataAccess\TableMetadata;
|
13 |
-
use Piwik\
|
|
|
14 |
use Piwik\DbHelper;
|
15 |
use Piwik\Plugin\Manager;
|
|
|
16 |
use Piwik\Plugins\CoreHome\Columns\Profilable;
|
17 |
use Piwik\Plugins\CoreHome\Columns\VisitorSecondsSinceFirst;
|
18 |
use Piwik\Plugins\CoreHome\Columns\VisitorSecondsSinceOrder;
|
@@ -28,6 +30,7 @@ use Piwik\Common;
|
|
28 |
use Piwik\Config;
|
29 |
use Piwik\Plugins\UserCountry\LocationProvider;
|
30 |
use Piwik\Plugins\VisitorInterest\Columns\VisitorSecondsSinceLast;
|
|
|
31 |
use Piwik\Updater;
|
32 |
use Piwik\Updates as PiwikUpdates;
|
33 |
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
@@ -55,35 +58,12 @@ class Updates_4_0_0_b1 extends PiwikUpdates
|
|
55 |
|
56 |
$migrations = [];
|
57 |
|
58 |
-
|
59 |
-
$
|
60 |
-
|
61 |
-
|
62 |
-
'description' => 'VARCHAR('.Model::MAX_LENGTH_TOKEN_DESCRIPTION.') NOT NULL',
|
63 |
-
'password' => 'VARCHAR(191) NOT NULL',
|
64 |
-
'system_token' => 'TINYINT(1) NOT NULL DEFAULT 0',
|
65 |
-
'hash_algo' => 'VARCHAR(30) NOT NULL',
|
66 |
-
'last_used' => 'DATETIME NULL',
|
67 |
-
'date_created' => ' DATETIME NOT NULL',
|
68 |
-
'date_expired' => ' DATETIME NULL',
|
69 |
-
), 'idusertokenauth');
|
70 |
-
$migrations[] = $this->migration->db->addUniqueKey('user_token_auth', 'password', 'uniq_password');
|
71 |
-
|
72 |
-
$migrations[] = $this->migration->db->dropIndex('user', 'uniq_keytoken');
|
73 |
-
|
74 |
-
$userModel = new Model();
|
75 |
-
foreach ($userModel->getUsers(array()) as $user) {
|
76 |
-
if (!empty($user['token_auth'])) {
|
77 |
-
$migrations[] = $this->migration->db->insert('user_token_auth', array(
|
78 |
-
'login' => $user['login'],
|
79 |
-
'description' => 'Created by Matomo 4 migration',
|
80 |
-
'password' => $userModel->hashTokenAuth($user['token_auth']),
|
81 |
-
'date_created' => Date::now()->getDatetime()
|
82 |
-
));
|
83 |
-
}
|
84 |
-
}
|
85 |
|
86 |
-
|
87 |
|
88 |
// invalidations table
|
89 |
$migrations[] = $this->migration->db->createTable('archive_invalidations', [
|
@@ -95,7 +75,6 @@ class Updates_4_0_0_b1 extends PiwikUpdates
|
|
95 |
'date2' => 'DATE NOT NULL',
|
96 |
'period' => 'TINYINT UNSIGNED NOT NULL',
|
97 |
'ts_invalidated' => 'DATETIME NOT NULL',
|
98 |
-
'ts_started' => 'DATETIME NULL',
|
99 |
'status' => 'TINYINT(1) UNSIGNED DEFAULT 0',
|
100 |
'report' => 'VARCHAR(255) NULL',
|
101 |
], ['idinvalidation']);
|
@@ -103,13 +82,41 @@ class Updates_4_0_0_b1 extends PiwikUpdates
|
|
103 |
$migrations[] = $this->migration->db->addIndex('archive_invalidations', ['idsite', 'date1', 'period'], 'index_idsite_dates_period_name');
|
104 |
|
105 |
$migrations[] = $this->migration->db->dropColumn('user', 'alias');
|
106 |
-
$migrations[] = $this->migration->db->dropColumn('user', 'token_auth');
|
107 |
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
110 |
|
|
|
|
|
111 |
$migrations[] = $this->migration->db->changeColumn('log_link_visit_action', 'interaction_position', 'pageview_position', 'MEDIUMINT UNSIGNED DEFAULT NULL');
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
// Move the site search fields of log_visit out of custom variables into their own fields
|
114 |
$columnsToAdd['log_link_visit_action']['search_cat'] = 'VARCHAR(200) NULL';
|
115 |
$columnsToAdd['log_link_visit_action']['search_count'] = 'INTEGER(10) UNSIGNED NULL';
|
@@ -152,6 +159,19 @@ class Updates_4_0_0_b1 extends PiwikUpdates
|
|
152 |
}
|
153 |
}
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
// init seconds_to_... columns
|
156 |
$logVisitColumns = $tableMetadata->getColumns(Common::prefixTable('log_visit'));
|
157 |
$hasDaysColumnInVisit = in_array('visitor_days_since_first', $logVisitColumns);
|
@@ -172,11 +192,6 @@ class Updates_4_0_0_b1 extends PiwikUpdates
|
|
172 |
visitor_seconds_since_order = visitor_days_since_order * 86400");
|
173 |
}
|
174 |
|
175 |
-
if (Manager::getInstance()->isPluginInstalled('CustomVariables')) {
|
176 |
-
$visitActionTable = Common::prefixTable('log_link_visit_action');
|
177 |
-
$migrations[] = $this->migration->db->sql("UPDATE $visitActionTable SET search_cat = if(custom_var_k4 = '_pk_scat', custom_var_v4, search_cat), search_count = if(custom_var_k5 = '_pk_scount', custom_var_v5, search_count) WHERE custom_var_k4 = '_pk_scat' or custom_var_k5 = '_pk_scount'");
|
178 |
-
}
|
179 |
-
|
180 |
// remove old days_to_... columns
|
181 |
$migrations[] = $this->migration->db->dropColumns('log_visit', [
|
182 |
'config_gears',
|
@@ -196,6 +211,9 @@ class Updates_4_0_0_b1 extends PiwikUpdates
|
|
196 |
$migrations[] = $this->migration->config->set('mail', 'type', 'Cram-md5');
|
197 |
}
|
198 |
|
|
|
|
|
|
|
199 |
$migrations[] = $this->migration->plugin->activate('PagePerformance');
|
200 |
if (!Manager::getInstance()->isPluginActivated('CustomDimensions')) {
|
201 |
$migrations[] = $this->migration->plugin->activate('CustomDimensions');
|
@@ -211,18 +229,76 @@ class Updates_4_0_0_b1 extends PiwikUpdates
|
|
211 |
$migrations[] = $this->migration->config->set('General', 'datatable_archiving_maximum_rows_subtable_custom_dimensions', $configSubTableLimit);
|
212 |
}
|
213 |
|
214 |
-
$migrations[] = $this->migration->db->changeColumnType('session', 'id', 'VARCHAR(191)');
|
215 |
-
$migrations[] = $this->migration->db->changeColumnType('site_url', 'url', 'VARCHAR(190)');
|
216 |
-
$migrations[] = $this->migration->db->changeColumnType('option', 'option_name', 'VARCHAR(191)');
|
217 |
-
|
218 |
-
$migrations[] = $this->migration->db->changeColumnType('log_action', 'name', 'VARCHAR(4096)');
|
219 |
-
$migrations[] = $this->migration->db->changeColumnType('log_conversion', 'url', 'VARCHAR(4096)');
|
220 |
return $migrations;
|
221 |
}
|
222 |
|
223 |
public function doUpdate(Updater $updater)
|
224 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
}
|
227 |
|
228 |
protected function usesGeoIpLegacyLocationProvider()
|
10 |
namespace Piwik\Updates;
|
11 |
|
12 |
use Piwik\DataAccess\TableMetadata;
|
13 |
+
use Piwik\Updater\Migration\Custom as CustomMigration;
|
14 |
+
use Piwik\Db;
|
15 |
use Piwik\DbHelper;
|
16 |
use Piwik\Plugin\Manager;
|
17 |
+
use Piwik\Plugins\CoreAdminHome\Commands\MigrateTokenAuths;
|
18 |
use Piwik\Plugins\CoreHome\Columns\Profilable;
|
19 |
use Piwik\Plugins\CoreHome\Columns\VisitorSecondsSinceFirst;
|
20 |
use Piwik\Plugins\CoreHome\Columns\VisitorSecondsSinceOrder;
|
30 |
use Piwik\Config;
|
31 |
use Piwik\Plugins\UserCountry\LocationProvider;
|
32 |
use Piwik\Plugins\VisitorInterest\Columns\VisitorSecondsSinceLast;
|
33 |
+
use Piwik\SettingsPiwik;
|
34 |
use Piwik\Updater;
|
35 |
use Piwik\Updates as PiwikUpdates;
|
36 |
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
58 |
|
59 |
$migrations = [];
|
60 |
|
61 |
+
$domain = Config::getLocalConfigPath() === Config::getDefaultLocalConfigPath() ? '' : Config::getHostname();
|
62 |
+
$domainArg = !empty($domain) ? "--matomo-domain=". escapeshellarg($domain) . " " : '';
|
63 |
+
$toString = sprintf('./console %score:matomo4-migrate-token-auths', $domainArg);
|
64 |
+
$custom = new CustomMigration(array(MigrateTokenAuths::class, 'migrate'), $toString);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
+
$migrations[] = $custom;
|
67 |
|
68 |
// invalidations table
|
69 |
$migrations[] = $this->migration->db->createTable('archive_invalidations', [
|
75 |
'date2' => 'DATE NOT NULL',
|
76 |
'period' => 'TINYINT UNSIGNED NOT NULL',
|
77 |
'ts_invalidated' => 'DATETIME NOT NULL',
|
|
|
78 |
'status' => 'TINYINT(1) UNSIGNED DEFAULT 0',
|
79 |
'report' => 'VARCHAR(255) NULL',
|
80 |
], ['idinvalidation']);
|
82 |
$migrations[] = $this->migration->db->addIndex('archive_invalidations', ['idsite', 'date1', 'period'], 'index_idsite_dates_period_name');
|
83 |
|
84 |
$migrations[] = $this->migration->db->dropColumn('user', 'alias');
|
|
|
85 |
|
86 |
+
// prevent possible duplicates when shorting session id
|
87 |
+
$migrations[] = $this->migration->db->sql('DELETE FROM `' . Common::prefixTable('session') . '` WHERE length(id) > 190');
|
88 |
+
|
89 |
+
$migrations[] = $this->migration->db->changeColumnType('session', 'id', 'VARCHAR(191)');
|
90 |
+
$migrations[] = $this->migration->db->changeColumnType('site_url', 'url', 'VARCHAR(190)');
|
91 |
+
$migrations[] = $this->migration->db->changeColumnType('option', 'option_name', 'VARCHAR(191)');
|
92 |
|
93 |
+
$migrations[] = $this->migration->db->changeColumnType('log_action', 'name', 'VARCHAR(4096)');
|
94 |
+
$migrations[] = $this->migration->db->changeColumnType('log_conversion', 'url', 'VARCHAR(4096)');
|
95 |
$migrations[] = $this->migration->db->changeColumn('log_link_visit_action', 'interaction_position', 'pageview_position', 'MEDIUMINT UNSIGNED DEFAULT NULL');
|
96 |
|
97 |
+
$customTrackerPluginActive = false;
|
98 |
+
if (in_array('CustomPiwikJs', Config::getInstance()->Plugins['Plugins'])) {
|
99 |
+
$customTrackerPluginActive = true;
|
100 |
+
}
|
101 |
+
|
102 |
+
$migrations[] = $this->migration->plugin->activate('BulkTracking');
|
103 |
+
$migrations[] = $this->migration->plugin->deactivate('CustomPiwikJs');
|
104 |
+
$migrations[] = $this->migration->plugin->uninstall('CustomPiwikJs');
|
105 |
+
|
106 |
+
if ($customTrackerPluginActive) {
|
107 |
+
$migrations[] = $this->migration->plugin->activate('CustomJsTracker');
|
108 |
+
}
|
109 |
+
|
110 |
+
// Prepare all installed tables for utf8mb4 conversions. e.g. make some indexed fields smaller so they don't exceed the maximum key length
|
111 |
+
$allTables = DbHelper::getTablesInstalled();
|
112 |
+
|
113 |
+
foreach ($allTables as $table) {
|
114 |
+
if (preg_match('/archive_/', $table) == 1) {
|
115 |
+
$tableNameUnprefixed = Common::unprefixTable($table);
|
116 |
+
$migrations[] = $this->migration->db->changeColumnType($tableNameUnprefixed, 'name', 'VARCHAR(190)');
|
117 |
+
}
|
118 |
+
}
|
119 |
+
|
120 |
// Move the site search fields of log_visit out of custom variables into their own fields
|
121 |
$columnsToAdd['log_link_visit_action']['search_cat'] = 'VARCHAR(200) NULL';
|
122 |
$columnsToAdd['log_link_visit_action']['search_count'] = 'INTEGER(10) UNSIGNED NULL';
|
159 |
}
|
160 |
}
|
161 |
|
162 |
+
if (Manager::getInstance()->isPluginInstalled('CustomVariables')) {
|
163 |
+
$visitActionTable = Common::prefixTable('log_link_visit_action');
|
164 |
+
$migrations[] = $this->migration->db->sql("UPDATE $visitActionTable SET search_cat = if(custom_var_k4 = '_pk_scat', custom_var_v4, search_cat), search_count = if(custom_var_k5 = '_pk_scount', custom_var_v5, search_count) WHERE custom_var_k4 = '_pk_scat' or custom_var_k5 = '_pk_scount'");
|
165 |
+
}
|
166 |
+
|
167 |
+
if ($this->usesGeoIpLegacyLocationProvider()) {
|
168 |
+
// activate GeoIp2 plugin for users still using GeoIp2 Legacy (others might have it disabled on purpose)
|
169 |
+
$migrations[] = $this->migration->plugin->activate('GeoIp2');
|
170 |
+
}
|
171 |
+
|
172 |
+
// remove old options
|
173 |
+
$migrations[] = $this->migration->db->sql('DELETE FROM `' . Common::prefixTable('option') . '` WHERE option_name IN ("geoip.updater_period", "geoip.loc_db_url", "geoip.isp_db_url", "geoip.org_db_url")');
|
174 |
+
|
175 |
// init seconds_to_... columns
|
176 |
$logVisitColumns = $tableMetadata->getColumns(Common::prefixTable('log_visit'));
|
177 |
$hasDaysColumnInVisit = in_array('visitor_days_since_first', $logVisitColumns);
|
192 |
visitor_seconds_since_order = visitor_days_since_order * 86400");
|
193 |
}
|
194 |
|
|
|
|
|
|
|
|
|
|
|
195 |
// remove old days_to_... columns
|
196 |
$migrations[] = $this->migration->db->dropColumns('log_visit', [
|
197 |
'config_gears',
|
211 |
$migrations[] = $this->migration->config->set('mail', 'type', 'Cram-md5');
|
212 |
}
|
213 |
|
214 |
+
// keep piwik_ignore for existing installs
|
215 |
+
$migrations[] = $this->migration->config->set('Tracker', 'ignore_visits_cookie_name', 'piwik_ignore');
|
216 |
+
|
217 |
$migrations[] = $this->migration->plugin->activate('PagePerformance');
|
218 |
if (!Manager::getInstance()->isPluginActivated('CustomDimensions')) {
|
219 |
$migrations[] = $this->migration->plugin->activate('CustomDimensions');
|
229 |
$migrations[] = $this->migration->config->set('General', 'datatable_archiving_maximum_rows_subtable_custom_dimensions', $configSubTableLimit);
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
return $migrations;
|
233 |
}
|
234 |
|
235 |
public function doUpdate(Updater $updater)
|
236 |
{
|
237 |
+
$salt = SettingsPiwik::getSalt();
|
238 |
+
$sessions = Db::fetchAll('SELECT id from ' . Common::prefixTable('session'));
|
239 |
+
|
240 |
+
foreach ($sessions as $session) {
|
241 |
+
if (!empty($session['id']) && Common::mb_strlen($session['id']) != 128) {
|
242 |
+
$bind = [ hash('sha512', $session['id'] . $salt), $session['id'] ];
|
243 |
+
try {
|
244 |
+
Db::query(sprintf('UPDATE %s SET id = ? WHERE id = ?', Common::prefixTable('session')), $bind);
|
245 |
+
} catch (\Exception $e) {
|
246 |
+
// ignore possible duplicate key errors
|
247 |
+
}
|
248 |
+
}
|
249 |
+
}
|
250 |
+
|
251 |
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
252 |
+
|
253 |
+
if ($this->usesGeoIpLegacyLocationProvider()) {
|
254 |
+
// switch to default provider if GeoIp Legacy was still in use
|
255 |
+
LocationProvider::setCurrentProvider(LocationProvider\DefaultProvider::ID);
|
256 |
+
}
|
257 |
+
|
258 |
+
// eg the case when not updating from most recent Matomo 3.X and when not using the UI updater
|
259 |
+
// afterwards the should receive a notification that the plugins are outdated
|
260 |
+
self::ensureCorePluginsThatWereMovedToMarketplaceCanBeUpdated();
|
261 |
+
ServerFilesGenerator::createFilesForSecurity();
|
262 |
+
}
|
263 |
+
|
264 |
+
public static function ensureCorePluginsThatWereMovedToMarketplaceCanBeUpdated()
|
265 |
+
{
|
266 |
+
$plugins = ['Provider', 'CustomVariables'];
|
267 |
+
$pluginManager = Manager::getInstance();
|
268 |
+
foreach ($plugins as $plugin) {
|
269 |
+
if ($pluginManager->isPluginThirdPartyAndBogus($plugin)) {
|
270 |
+
$pluginDir = Manager::getPluginDirectory($plugin);
|
271 |
+
|
272 |
+
if (is_dir($pluginDir) &&
|
273 |
+
file_exists($pluginDir . '/' . $plugin . '.php')
|
274 |
+
&& !file_exists($pluginDir . '/plugin.json')
|
275 |
+
&& is_writable($pluginDir)) {
|
276 |
+
file_put_contents($pluginDir . '/plugin.json', '{
|
277 |
+
"name": "'.$plugin.'",
|
278 |
+
"description": "'.$plugin.'",
|
279 |
+
"version": "3.14.1",
|
280 |
+
"theme": false,
|
281 |
+
"require": {
|
282 |
+
"piwik": ">=3.0.0,<4.0.0-b1"
|
283 |
+
},
|
284 |
+
"authors": [
|
285 |
+
{
|
286 |
+
"name": "Matomo",
|
287 |
+
"email": "hello@matomo.org",
|
288 |
+
"homepage": "https:\/\/matomo.org"
|
289 |
+
}
|
290 |
+
],
|
291 |
+
"homepage": "https:\/\/matomo.org",
|
292 |
+
"license": "GPL v3+",
|
293 |
+
"keywords": ["'.$plugin.'"]
|
294 |
+
}');
|
295 |
+
// otherwise cached information might be used and it won't be loaded otherwise within same request
|
296 |
+
$pluginObj = $pluginManager->loadPlugin($plugin);
|
297 |
+
$pluginObj->reloadPluginInformation();
|
298 |
+
$pluginManager->unloadPlugin($pluginObj); // prevent any events being posted to it somehow
|
299 |
+
}
|
300 |
+
}
|
301 |
+
}
|
302 |
}
|
303 |
|
304 |
protected function usesGeoIpLegacyLocationProvider()
|
app/core/Updates/4.0.0-b3.php
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Matomo - free/libre analytics platform
|
4 |
+
*
|
5 |
+
* @link https://matomo.org
|
6 |
+
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
|
10 |
+
namespace Piwik\Updates;
|
11 |
+
|
12 |
+
use Piwik\Config;
|
13 |
+
use Piwik\Updater;
|
14 |
+
use Piwik\Updates as PiwikUpdates;
|
15 |
+
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Update for version 4.0.0-b3.
|
19 |
+
*/
|
20 |
+
class Updates_4_0_0_b3 extends PiwikUpdates
|
21 |
+
{
|
22 |
+
/**
|
23 |
+
* @var MigrationFactory
|
24 |
+
*/
|
25 |
+
private $migration;
|
26 |
+
|
27 |
+
public function __construct(MigrationFactory $factory)
|
28 |
+
{
|
29 |
+
$this->migration = $factory;
|
30 |
+
}
|
31 |
+
|
32 |
+
public function getMigrations(Updater $updater)
|
33 |
+
{
|
34 |
+
$migrations = [];
|
35 |
+
|
36 |
+
$config = Config::getInstance();
|
37 |
+
$general = $config->General;
|
38 |
+
if (empty($general['login_whitelist_apply_to_reporting_api_requests'])) {
|
39 |
+
$migrations[] = $this->migration->config->set('General', 'login_allowlist_apply_to_reporting_api_requests', '0');
|
40 |
+
}
|
41 |
+
|
42 |
+
return $migrations;
|
43 |
+
}
|
44 |
+
|
45 |
+
public function doUpdate(Updater $updater)
|
46 |
+
{
|
47 |
+
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
48 |
+
|
49 |
+
$config = Config::getInstance();
|
50 |
+
$general = $config->General;
|
51 |
+
if (!empty($general['login_whitelist_ip'])) {
|
52 |
+
// the migration->config->set does not support arrays yet so we do it here.
|
53 |
+
$general['login_allowlist_ip'] = $general['login_whitelist_ip'];
|
54 |
+
$config->General = $general;
|
55 |
+
$config->forceSave();
|
56 |
+
}
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
}
|
app/core/Updates/4.0.0-rc3.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Matomo - free/libre analytics platform
|
4 |
+
*
|
5 |
+
* @link https://matomo.org
|
6 |
+
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
|
10 |
+
namespace Piwik\Updates;
|
11 |
+
|
12 |
+
use Piwik\Config;
|
13 |
+
use Piwik\Updater;
|
14 |
+
use Piwik\Updates as PiwikUpdates;
|
15 |
+
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Update for version 4.0.0-b3.
|
19 |
+
*/
|
20 |
+
class Updates_4_0_0_rc3 extends PiwikUpdates
|
21 |
+
{
|
22 |
+
/**
|
23 |
+
* @var MigrationFactory
|
24 |
+
*/
|
25 |
+
private $migration;
|
26 |
+
|
27 |
+
public function __construct(MigrationFactory $factory)
|
28 |
+
{
|
29 |
+
$this->migration = $factory;
|
30 |
+
}
|
31 |
+
|
32 |
+
public function getMigrations(Updater $updater)
|
33 |
+
{
|
34 |
+
$migrations = [];
|
35 |
+
$migrations[] = $this->migration->db->addColumn('archive_invalidations', 'ts_started', 'DATETIME NULL');
|
36 |
+
return $migrations;
|
37 |
+
}
|
38 |
+
|
39 |
+
public function doUpdate(Updater $updater)
|
40 |
+
{
|
41 |
+
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
42 |
+
}
|
43 |
+
|
44 |
+
}
|
app/core/Updates/4.0.0-rc4.php
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Matomo - free/libre analytics platform
|
4 |
+
*
|
5 |
+
* @link https://matomo.org
|
6 |
+
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
|
10 |
+
namespace Piwik\Updates;
|
11 |
+
|
12 |
+
use Piwik\Config;
|
13 |
+
use Piwik\Container\StaticContainer;
|
14 |
+
use Piwik\DataAccess\ArchiveTableCreator;
|
15 |
+
use Piwik\Date;
|
16 |
+
use Piwik\DbHelper;
|
17 |
+
use Piwik\Plugin\ReleaseChannels;
|
18 |
+
use Piwik\Updater;
|
19 |
+
use Piwik\Updates as PiwikUpdates;
|
20 |
+
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Update for version 4.0.0-rc4.
|
24 |
+
*/
|
25 |
+
class Updates_4_0_0_rc4 extends PiwikUpdates
|
26 |
+
{
|
27 |
+
/**
|
28 |
+
* @var MigrationFactory
|
29 |
+
*/
|
30 |
+
private $migration;
|
31 |
+
|
32 |
+
public function __construct(MigrationFactory $factory)
|
33 |
+
{
|
34 |
+
$this->migration = $factory;
|
35 |
+
}
|
36 |
+
|
37 |
+
public function getMigrations(Updater $updater)
|
38 |
+
{
|
39 |
+
$migrations = [];
|
40 |
+
|
41 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleTheme');
|
42 |
+
|
43 |
+
$channel = StaticContainer::get(ReleaseChannels::class)->getActiveReleaseChannel()->getId();
|
44 |
+
$isBeta = stripos($channel, 'beta') !== false;
|
45 |
+
|
46 |
+
if ($isBeta) {
|
47 |
+
$dates = ['2020-01-01', '2020-11-01', '2020-10-01'];
|
48 |
+
foreach ($dates as $date) {
|
49 |
+
$date = Date::factory($date);
|
50 |
+
$numericTable = ArchiveTableCreator::getBlobTable($date);
|
51 |
+
$blobTable = ArchiveTableCreator::getNumericTable($date);
|
52 |
+
|
53 |
+
if (DbHelper::tableExists($blobTable) && DbHelper::tableExists($numericTable)) {
|
54 |
+
$migrations[] = $this->migration->db->sql(
|
55 |
+
"DELETE FROM `$blobTable` WHERE idarchive NOT IN (SELECT idarchive FROM `$numericTable`)", []);
|
56 |
+
}
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
return $migrations;
|
61 |
+
}
|
62 |
+
|
63 |
+
public function doUpdate(Updater $updater)
|
64 |
+
{
|
65 |
+
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
app/core/Updates/4.0.1-b1.php
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Matomo - free/libre analytics platform
|
4 |
+
*
|
5 |
+
* @link https://matomo.org
|
6 |
+
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
|
10 |
+
namespace Piwik\Updates;
|
11 |
+
|
12 |
+
use Piwik\Common;
|
13 |
+
use Piwik\Config;
|
14 |
+
use Piwik\Container\StaticContainer;
|
15 |
+
use Piwik\DataAccess\ArchiveTableCreator;
|
16 |
+
use Piwik\Date;
|
17 |
+
use Piwik\DbHelper;
|
18 |
+
use Piwik\Plugin\ReleaseChannels;
|
19 |
+
use Piwik\SettingsPiwik;
|
20 |
+
use Piwik\Updater;
|
21 |
+
use Piwik\Updates as PiwikUpdates;
|
22 |
+
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
23 |
+
|
24 |
+
class Updates_4_0_1_b1 extends PiwikUpdates
|
25 |
+
{
|
26 |
+
/**
|
27 |
+
* @var MigrationFactory
|
28 |
+
*/
|
29 |
+
private $migration;
|
30 |
+
|
31 |
+
public function __construct(MigrationFactory $factory)
|
32 |
+
{
|
33 |
+
$this->migration = $factory;
|
34 |
+
}
|
35 |
+
|
36 |
+
public function getMigrations(Updater $updater)
|
37 |
+
{
|
38 |
+
$migrations = [];
|
39 |
+
|
40 |
+
$table = Common::prefixTable('user_token_auth');
|
41 |
+
$migrations[] = $this->migration->db->sql('UPDATE ' . $table . ' SET hash_algo = "sha512" where hash_algo is null or hash_algo = "" ');
|
42 |
+
|
43 |
+
if (SettingsPiwik::isGitDeployment()) {
|
44 |
+
return $migrations;
|
45 |
+
}
|
46 |
+
|
47 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleTheme');
|
48 |
+
return $migrations;
|
49 |
+
}
|
50 |
+
|
51 |
+
public function doUpdate(Updater $updater)
|
52 |
+
{
|
53 |
+
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
54 |
+
}
|
55 |
+
|
56 |
+
}
|
app/core/Updates/4.0.4-b1.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Matomo - free/libre analytics platform
|
4 |
+
*
|
5 |
+
* @link https://matomo.org
|
6 |
+
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
|
10 |
+
namespace Piwik\Updates;
|
11 |
+
|
12 |
+
use Piwik\SettingsPiwik;
|
13 |
+
use Piwik\Updater;
|
14 |
+
use Piwik\Updates as PiwikUpdates;
|
15 |
+
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
16 |
+
|
17 |
+
class Updates_4_0_4_b1 extends PiwikUpdates
|
18 |
+
{
|
19 |
+
/**
|
20 |
+
* @var MigrationFactory
|
21 |
+
*/
|
22 |
+
private $migration;
|
23 |
+
|
24 |
+
public function __construct(MigrationFactory $factory)
|
25 |
+
{
|
26 |
+
$this->migration = $factory;
|
27 |
+
}
|
28 |
+
|
29 |
+
public function getMigrations(Updater $updater)
|
30 |
+
{
|
31 |
+
$migrations = [];
|
32 |
+
|
33 |
+
if (SettingsPiwik::isGitDeployment()) {
|
34 |
+
return $migrations;
|
35 |
+
}
|
36 |
+
|
37 |
+
$migrations[] = $this->migration->plugin->deactivate('ExamplePlugin');
|
38 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleLogTables');
|
39 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleUI');
|
40 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleReport');
|
41 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleAPI');
|
42 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleCommand');
|
43 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleSettingsPlugin');
|
44 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleTracker');
|
45 |
+
$migrations[] = $this->migration->plugin->deactivate('ExampleVisualization');
|
46 |
+
|
47 |
+
$migrations[] = $this->migration->plugin->uninstall('ExamplePlugin');
|
48 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleLogTables');
|
49 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleUI');
|
50 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleReport');
|
51 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleAPI');
|
52 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleCommand');
|
53 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleSettingsPlugin');
|
54 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleTracker');
|
55 |
+
$migrations[] = $this->migration->plugin->uninstall('ExampleVisualization');
|
56 |
+
return $migrations;
|
57 |
+
}
|
58 |
+
|
59 |
+
public function doUpdate(Updater $updater)
|
60 |
+
{
|
61 |
+
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
62 |
+
}
|
63 |
+
|
64 |
+
}
|
app/core/Version.php
CHANGED
@@ -20,7 +20,7 @@ final class Version
|
|
20 |
* The current Matomo version.
|
21 |
* @var string
|
22 |
*/
|
23 |
-
const VERSION = '4.0
|
24 |
const MAJOR_VERSION = 4;
|
25 |
|
26 |
public function isStableVersion($version)
|
20 |
* The current Matomo version.
|
21 |
* @var string
|
22 |
*/
|
23 |
+
const VERSION = '4.1.0';
|
24 |
const MAJOR_VERSION = 4;
|
25 |
|
26 |
public function isStableVersion($version)
|
app/lang/el.json
CHANGED
@@ -909,6 +909,7 @@
|
|
909 |
"DataTableHowToSearch": "Πατήστε Enter ή κάντε κλικ στο εικονίδιο της αναζήτησης για αναζήτηση",
|
910 |
"DataTableShowDimensions": "Οι διαστάσεις συνδυάζονται %s Εμφάνιση των διαστάσεων ξεχωριστά",
|
911 |
"DataTableCombineDimensions": "Οι διαστάσεις εμφανίζονται ξεχωριστά %s Εμφάνιση των διαστάσεων συνδυασμένα",
|
|
|
912 |
"Default": "προεπιλογή",
|
913 |
"DonateCall1": "Το Matomo θα είναι πάντα δωρεάν, αλλά αυτό δεν σημαίνει ότι δεν κοστίζει τίποτα για να φτιαχτεί.",
|
914 |
"DonateCall2": "Το Matomo χρειάζεται τη συνεχή υποστήριξή σας για να αναπτυχθεί και να ευδοκιμήσει.",
|
@@ -1349,6 +1350,7 @@
|
|
1349 |
"GenericDevice": "Γενικό %s",
|
1350 |
"MobileDevice": "Συσκευή κινητής",
|
1351 |
"Tablet": "Ταμπλέτα",
|
|
|
1352 |
"Phablet": "Phablet",
|
1353 |
"TV": "Τηλεόραση",
|
1354 |
"UserAgent": "Πρόγραμμα πελάτη χρήστη",
|
@@ -3488,6 +3490,8 @@
|
|
3488 |
"CampaignGroupHelp": "Η παράμετρος χρησιμοποιείται για την ιχνηλάτηση μιας Ομάδας Καμπάνιας για την αναγνώριση μιας ομάδας ή κοινού. Οι ομάδες καμπάνιας είναι χρήσιμες για την ιχνηλάτηση της συνολικής απόδοσης πολλαπλών καμπανιών με παρόμοιους στόχους.",
|
3489 |
"CampaignPlacement": "Τοποθέτηση Καμπάνιας",
|
3490 |
"CampaignPlacementHelp": "Χρησιμοποιείται για να περιγράψει την τοποθέτηση ή θέση μιας διαφήμισης, για παράδειγμα σε ένα ολόκληρο ιστοτόπο, σε συγκεκριμένες σελίδες του ιστοτόπου, μια καθορισμένη μονάδα διαφήμισης τοποθετημένη σε μια μοναδική σελίδα, βίντεο, εφαρμογή για κινητά και άλλα.",
|
|
|
|
|
3491 |
"ColumnSearchEngine": "Μηχανή Αναζήτησης",
|
3492 |
"ColumnSocial": "Κοινωνικό δίκτυο",
|
3493 |
"ColumnWebsite": "Ιστοσελίδα",
|
@@ -4502,6 +4506,8 @@
|
|
4502 |
"GeoIPDocumentationSuffix": "Για για να δείτε τα δεδομένα για αυτή την αναφορά, θα πρέπει να ρυθμίσετε το GeoIP στην καρτέλα διαχειριστή Geolocation. Οι εμπορικές %1$sMaxmind%2$s βάσεις δεδομένων GeoIP είναι πιο ακριβείς από τις ελεύθερες. Για να δείτε πόσο ακριβείς είναι, κάντε κλικ στο %3$shere%4$s.",
|
4503 |
"Geolocation": "Γεωτοποθεσία",
|
4504 |
"GeolocationPageDesc": "Σε αυτή τη σελίδα μπορείτε να αλλάξετε τον τρόπο που το Matomo καθορίζει τις τοποθεσίες των επισκεπτών.",
|
|
|
|
|
4505 |
"getCityDocumentation": "Η παρούσα αναφορά παρουσιάζει τις πόλεις στις οποίες οι επισκέπτες σας βρίσκονταν όταν επισκεύθηκαν την ιστοσελίδα σας.",
|
4506 |
"getContinentDocumentation": "Η παρούσα αναφορά δείχνει σε ποια ήπειρο βρίσκονταν οι επισκέπτες σας ήταν όταν επισκεύθηκαν την ιστοσελίδα σας.",
|
4507 |
"getCountryDocumentation": "Αυτή η αναφορά δείχνει σε ποιά χώρα ήταν οι επισκέπτες σας όταν επισκεύθηκαν την ιστοσελίδα σας.",
|
909 |
"DataTableHowToSearch": "Πατήστε Enter ή κάντε κλικ στο εικονίδιο της αναζήτησης για αναζήτηση",
|
910 |
"DataTableShowDimensions": "Οι διαστάσεις συνδυάζονται %s Εμφάνιση των διαστάσεων ξεχωριστά",
|
911 |
"DataTableCombineDimensions": "Οι διαστάσεις εμφανίζονται ξεχωριστά %s Εμφάνιση των διαστάσεων συνδυασμένα",
|
912 |
+
"DateInvalid": "Ο δοθέν συνδυασμός ημερομηνίας και περιόδου είναι μη έγκυρος. Επιλέξτε μια έγκυρη ημερομηνία στον πλαίσιο επιλογής ημερομηνίας.",
|
913 |
"Default": "προεπιλογή",
|
914 |
"DonateCall1": "Το Matomo θα είναι πάντα δωρεάν, αλλά αυτό δεν σημαίνει ότι δεν κοστίζει τίποτα για να φτιαχτεί.",
|
915 |
"DonateCall2": "Το Matomo χρειάζεται τη συνεχή υποστήριξή σας για να αναπτυχθεί και να ευδοκιμήσει.",
|
1350 |
"GenericDevice": "Γενικό %s",
|
1351 |
"MobileDevice": "Συσκευή κινητής",
|
1352 |
"Tablet": "Ταμπλέτα",
|
1353 |
+
"Peripheral": "Περιφερειακά",
|
1354 |
"Phablet": "Phablet",
|
1355 |
"TV": "Τηλεόραση",
|
1356 |
"UserAgent": "Πρόγραμμα πελάτη χρήστη",
|
3490 |
"CampaignGroupHelp": "Η παράμετρος χρησιμοποιείται για την ιχνηλάτηση μιας Ομάδας Καμπάνιας για την αναγνώριση μιας ομάδας ή κοινού. Οι ομάδες καμπάνιας είναι χρήσιμες για την ιχνηλάτηση της συνολικής απόδοσης πολλαπλών καμπανιών με παρόμοιους στόχους.",
|
3491 |
"CampaignPlacement": "Τοποθέτηση Καμπάνιας",
|
3492 |
"CampaignPlacementHelp": "Χρησιμοποιείται για να περιγράψει την τοποθέτηση ή θέση μιας διαφήμισης, για παράδειγμα σε ένα ολόκληρο ιστοτόπο, σε συγκεκριμένες σελίδες του ιστοτόπου, μια καθορισμένη μονάδα διαφήμισης τοποθετημένη σε μια μοναδική σελίδα, βίντεο, εφαρμογή για κινητά και άλλα.",
|
3493 |
+
"CampaignId": "Αναγνωριστικό καμπάνιας",
|
3494 |
+
"CampaignIdHelp": "Η παράμετρος χρησιμοποιείται για την ιχνηλάτηση του αναγνωριστικού της καμπάνιας: ένας μοναδικός αριθμός αναγνώρισης της καμπάνιας, αποτελούμενος από 100 αριθμούς, γράμματα ή σύμβολα.",
|
3495 |
"ColumnSearchEngine": "Μηχανή Αναζήτησης",
|
3496 |
"ColumnSocial": "Κοινωνικό δίκτυο",
|
3497 |
"ColumnWebsite": "Ιστοσελίδα",
|
4506 |
"GeoIPDocumentationSuffix": "Για για να δείτε τα δεδομένα για αυτή την αναφορά, θα πρέπει να ρυθμίσετε το GeoIP στην καρτέλα διαχειριστή Geolocation. Οι εμπορικές %1$sMaxmind%2$s βάσεις δεδομένων GeoIP είναι πιο ακριβείς από τις ελεύθερες. Για να δείτε πόσο ακριβείς είναι, κάντε κλικ στο %3$shere%4$s.",
|
4507 |
"Geolocation": "Γεωτοποθεσία",
|
4508 |
"GeolocationPageDesc": "Σε αυτή τη σελίδα μπορείτε να αλλάξετε τον τρόπο που το Matomo καθορίζει τις τοποθεσίες των επισκεπτών.",
|
4509 |
+
"GeolocationProviderBroken": "Ο παραμετροποιημένος πάροχος γεωτοποθεσίας %1$s είναι προβληματικός. Διορθώστε τον πάροχο ή ρυθμίστε παρακάτω ένα διαφορετικό για να λειτουργεί και πάλι η γεωτοποθεσία.",
|
4510 |
+
"GeolocationProviderUnavailable": "Ο παραμετροποιημένος πάροχος γεωτοποθεσίας %1$s δεν είναι πλέον διαθέσιμος, ρυθμίστε παρακάτω ένα διαφορετικό.",
|
4511 |
"getCityDocumentation": "Η παρούσα αναφορά παρουσιάζει τις πόλεις στις οποίες οι επισκέπτες σας βρίσκονταν όταν επισκεύθηκαν την ιστοσελίδα σας.",
|
4512 |
"getContinentDocumentation": "Η παρούσα αναφορά δείχνει σε ποια ήπειρο βρίσκονταν οι επισκέπτες σας ήταν όταν επισκεύθηκαν την ιστοσελίδα σας.",
|
4513 |
"getCountryDocumentation": "Αυτή η αναφορά δείχνει σε ποιά χώρα ήταν οι επισκέπτες σας όταν επισκεύθηκαν την ιστοσελίδα σας.",
|
app/lang/en.json
CHANGED
@@ -909,6 +909,7 @@
|
|
909 |
"DataTableHowToSearch": "Press enter or click the search icon to search",
|
910 |
"DataTableShowDimensions": "Dimensions are combined %s Show dimensions separately",
|
911 |
"DataTableCombineDimensions": "Dimensions are shown separately %s Show dimensions combined",
|
|
|
912 |
"Default": "default",
|
913 |
"DonateCall1": "Matomo will always cost you nothing to use, but that doesn't mean it costs us nothing to make.",
|
914 |
"DonateCall2": "Matomo needs your continued support to grow and thrive.",
|
@@ -3528,6 +3529,8 @@
|
|
3528 |
"CampaignGroupHelp": "This parameter is used to track a Campaign Group to identify a group or audience. Campaign groups are helpful for tracking the overall performance of multiple campaigns with similar goals.",
|
3529 |
"CampaignPlacement": "Campaign Placement",
|
3530 |
"CampaignPlacementHelp": "Used to describe the advertising placement or position, for example an entire website, specific pages from a website, an individual ad unit positioned on a single page, a video, a mobile phone app, and more.",
|
|
|
|
|
3531 |
"ColumnSearchEngine": "Search Engine",
|
3532 |
"ColumnSocial": "Social network",
|
3533 |
"ColumnWebsite": "Website",
|
@@ -4551,6 +4554,8 @@
|
|
4551 |
"GeoIPDocumentationSuffix": "In order to see data for this report, you must setup GeoIP in the Geolocation admin tab. The commercial %1$sMaxmind%2$s GeoIP databases are more accurate than the free ones. To see how accurate they are, click %3$shere%4$s.",
|
4552 |
"Geolocation": "Geolocation",
|
4553 |
"GeolocationPageDesc": "On this page you can change how Matomo determines visitor locations.",
|
|
|
|
|
4554 |
"getCityDocumentation": "This report shows the cities your visitors were in when they accessed your website.",
|
4555 |
"getContinentDocumentation": "This report shows which continent your visitors were in when they accessed your website.",
|
4556 |
"getCountryDocumentation": "This report shows which country your visitors were in when they accessed your website.",
|
909 |
"DataTableHowToSearch": "Press enter or click the search icon to search",
|
910 |
"DataTableShowDimensions": "Dimensions are combined %s Show dimensions separately",
|
911 |
"DataTableCombineDimensions": "Dimensions are shown separately %s Show dimensions combined",
|
912 |
+
"DateInvalid": "The given date and period combination is invalid. Please choose a valid date in the date selector.",
|
913 |
"Default": "default",
|
914 |
"DonateCall1": "Matomo will always cost you nothing to use, but that doesn't mean it costs us nothing to make.",
|
915 |
"DonateCall2": "Matomo needs your continued support to grow and thrive.",
|
3529 |
"CampaignGroupHelp": "This parameter is used to track a Campaign Group to identify a group or audience. Campaign groups are helpful for tracking the overall performance of multiple campaigns with similar goals.",
|
3530 |
"CampaignPlacement": "Campaign Placement",
|
3531 |
"CampaignPlacementHelp": "Used to describe the advertising placement or position, for example an entire website, specific pages from a website, an individual ad unit positioned on a single page, a video, a mobile phone app, and more.",
|
3532 |
+
"CampaignId": "Campaign ID",
|
3533 |
+
"CampaignIdHelp": "This parameter is used to track a Campaign ID: a unique identifier for the campaign consisting of at most 100 numbers, letters or symbols.",
|
3534 |
"ColumnSearchEngine": "Search Engine",
|
3535 |
"ColumnSocial": "Social network",
|
3536 |
"ColumnWebsite": "Website",
|
4554 |
"GeoIPDocumentationSuffix": "In order to see data for this report, you must setup GeoIP in the Geolocation admin tab. The commercial %1$sMaxmind%2$s GeoIP databases are more accurate than the free ones. To see how accurate they are, click %3$shere%4$s.",
|
4555 |
"Geolocation": "Geolocation",
|
4556 |
"GeolocationPageDesc": "On this page you can change how Matomo determines visitor locations.",
|
4557 |
+
"GeolocationProviderBroken": "The configured geolocation provider %1$s is broken. Please fix the provider or configure another one to get geolocation working again.",
|
4558 |
+
"GeolocationProviderUnavailable": "The configured geolocation provider %1$s is not available anymore, please configure another one.",
|
4559 |
"getCityDocumentation": "This report shows the cities your visitors were in when they accessed your website.",
|
4560 |
"getContinentDocumentation": "This report shows which continent your visitors were in when they accessed your website.",
|
4561 |
"getCountryDocumentation": "This report shows which country your visitors were in when they accessed your website.",
|
app/lang/pt.json
CHANGED
@@ -908,6 +908,7 @@
|
|
908 |
"DataTableHowToSearch": "Pressione enter ou clique no ícone de pesquisa para pesquisar",
|
909 |
"DataTableShowDimensions": "As dimensões estão combinadas %s Mostrar dimensões em separado",
|
910 |
"DataTableCombineDimensions": "As dimensões estão separadas %s Mostrar dimensões combinadas",
|
|
|
911 |
"Default": "predefinido",
|
912 |
"DonateCall1": "O Matomo nunca lhe custará nada para usar, mas isso não quer dizer que não nos custe nada para o criar.",
|
913 |
"DonateCall2": "O Matomo precisa do seu apoio contínuo para crescer e prosperar.",
|
@@ -915,6 +916,7 @@
|
|
915 |
"EndShortcut": "Fim",
|
916 |
"EnterZenMode": "Entre no modo Zen (oculte os menus)",
|
917 |
"ExitZenMode": "Sair do modo Zen (mostrar os menus)",
|
|
|
918 |
"ExcludeRowsWithLowPopulation": "Estão a ser mostradas todas as linhas %s Excluir baixa população",
|
919 |
"ExternalHelp": "Ajuda (abre um novo separador)",
|
920 |
"FlattenDataTable": "O relatório está hierarquizado %s Torná-lo nivelado",
|
@@ -922,6 +924,7 @@
|
|
922 |
"ShowExportUrl": "Mostrar URL de exportação",
|
923 |
"HideExportUrl": "Ocultar URL de exportação",
|
924 |
"HomeShortcut": "Início",
|
|
|
925 |
"IncludeRowsWithLowPopulation": "As linhas com baixa população estão ocultas %s Mostrar todas as linhas",
|
926 |
"InjectedHostEmailBody": "Olá, eu tentei aceder ao Matomo hoje e deparei-me com um aviso de nome de servidor desconhecido.",
|
927 |
"InjectedHostEmailSubject": "O Matomo foi acedido com um nome de servidor desconhecido: %s",
|
@@ -934,6 +937,8 @@
|
|
934 |
"VisitTypeReturning": "Recorrente",
|
935 |
"VisitTypeReturningCustomer": "Cliente recorrente",
|
936 |
"MainNavigation": "Navegação principal",
|
|
|
|
|
937 |
"Menu": "Menu",
|
938 |
"NoPrivilegesAskPiwikAdmin": "Está autenticado como '%1$s' mas parece que não tem quaisquer permissões definidas no Matomo. %2$s Peça ao seu administrador do Matomo (clique para enviar um e-mail)%3$s para lhe dar permissões para 'ver' um site.",
|
939 |
"OnlyForSuperUserAccess": "Esta widget é apresentada no painel predefinido apenas para utilizadores com acesso de super-utilizador.",
|
@@ -970,6 +975,8 @@
|
|
970 |
"PivotBySubtable": "O relatório não está articulado %1$s Articulado por %2$s",
|
971 |
"SystemSummaryWidget": "Resumo do sistema",
|
972 |
"SystemSummaryNWebsites": "%d sites",
|
|
|
|
|
973 |
"SystemSummaryNActivatedPlugins": "%d extensões ativas",
|
974 |
"SystemSummaryPiwikVersion": "Versão do Matomo",
|
975 |
"SystemSummaryMysqlVersion": "Versão do MySQL",
|
@@ -1668,6 +1675,10 @@
|
|
1668 |
"GoBackAndDefinePrefix": "Retroceder e definir um Prefixo para as tabelas do Matomo",
|
1669 |
"HappyAnalysing": "Boas análises!",
|
1670 |
"Installation": "Instalação",
|
|
|
|
|
|
|
|
|
1671 |
"InstallationStatus": "Estado da instalação",
|
1672 |
"InsufficientPrivilegesHelp": "Pode adicionar estes privilégios utilizando uma ferramenta como o phpMyAdmin ou executando as instruções SQL certas. Se não sabe fazer estas coisas, peça ao administrador do sistema para atribuir estes privilégios por si.",
|
1673 |
"InsufficientPrivilegesMain": "Ou a base de dados não existe (e não pode ser criada), ou o utilizador não tem privilégios suficientes. O utilizador da base de dados tem de ter os seguintes privilégios: %s",
|
@@ -1737,6 +1748,7 @@
|
|
1737 |
"SystemCheckGzuncompressHelp": "Precisa ativar a extensão zlib e a função gzuncompress.",
|
1738 |
"SystemCheckHashHelp": "Tem de configurar e reconstruir o PHP com o suporte para a função hash() ativado, removendo a opção --disable-hash.",
|
1739 |
"SystemCheckIconvHelp": "Tem de configurar e reconstruir o PHP com o suporte \"iconv\" ativado, --with-iconv.",
|
|
|
1740 |
"SystemCheckMailHelp": "Mensagens de feedback e de palavras-passe perdida não serão enviadas sem mail().",
|
1741 |
"SystemCheckMbstring": "mbstring",
|
1742 |
"SystemCheckMbstringHelp": "A extensão mbstring é necessária para trabalhar com caracteres multibyte na interface do utilizador e com respostas da API. Confirme ainda que mbstring.func_overload está definido como \"0\" no php.ini.",
|
@@ -1772,6 +1784,8 @@
|
|
1772 |
"SystemCheckWriteDirs": "Diretórios com permissão de escrita",
|
1773 |
"SystemCheckWriteDirsHelp": "Para resolver este problema no seu sistema GNU\/Linux, tente introduzir o(s) seguinte(s) comando(s)",
|
1774 |
"SystemCheckZlibHelp": "Tem de configurar e reconstruir o PHP com o suporte \"zlib\" ativado, --with-zlib.",
|
|
|
|
|
1775 |
"SystemCheckCronArchiveProcessCLI": "Gerir processo via linha de comandos",
|
1776 |
"SystemCheckPhpSetting": "Para impedir algum problema crítico, pode definir o seguinte no seu ficheiro php.ini: %s",
|
1777 |
"SystemCheckUpdateHttps": "Atualização sob HTTPS",
|
@@ -1793,7 +1807,9 @@
|
|
1793 |
"WelcomeToCommunity": "Bem-vindo à comunidade do Matomo!",
|
1794 |
"CannotConnectToDb": "Não foi possível ligar à base de dados",
|
1795 |
"CannotConnectToDbResolvingExplanation": "Isto pode ser um problema temporário; tente %1$satualizar a página%2$s. Se o problema persistir, por favor contacte o seu administrador do Matomo.",
|
1796 |
-
"EmailPrivacyNotice": "O seu endereço de e-mail apenas será utilizado para lhe enviar a newsletter. Para o efeito, temos de partilhar o seu endereço de e-mail com um fornecedor. Atualmente este fornecedor é a Mad Mimi, mas isto pode ser alterado no futuro. Não iremos partilhar o seu e-mail com mais ninguém nem utilizar o seu endereço de e-mail para outro propósito para além de lhe enviar a newsletter. Pode anular a subscrição a qualquer momento. Por favor consulte a nossa %1$spolítica de privacidade%2$s para mais informação."
|
|
|
|
|
1797 |
},
|
1798 |
"Intl": {
|
1799 |
"Continent_afr": "África",
|
908 |
"DataTableHowToSearch": "Pressione enter ou clique no ícone de pesquisa para pesquisar",
|
909 |
"DataTableShowDimensions": "As dimensões estão combinadas %s Mostrar dimensões em separado",
|
910 |
"DataTableCombineDimensions": "As dimensões estão separadas %s Mostrar dimensões combinadas",
|
911 |
+
"DateInvalid": "A combinação fornecida de data e período é inválida. Por favor, escolha uma data válida no seletor de data.",
|
912 |
"Default": "predefinido",
|
913 |
"DonateCall1": "O Matomo nunca lhe custará nada para usar, mas isso não quer dizer que não nos custe nada para o criar.",
|
914 |
"DonateCall2": "O Matomo precisa do seu apoio contínuo para crescer e prosperar.",
|
916 |
"EndShortcut": "Fim",
|
917 |
"EnterZenMode": "Entre no modo Zen (oculte os menus)",
|
918 |
"ExitZenMode": "Sair do modo Zen (mostrar os menus)",
|
919 |
+
"ExceptionNotAllowlistedIP": "Não pode utilizar este Matomo dado que o seu IP %s não é permitido.",
|
920 |
"ExcludeRowsWithLowPopulation": "Estão a ser mostradas todas as linhas %s Excluir baixa população",
|
921 |
"ExternalHelp": "Ajuda (abre um novo separador)",
|
922 |
"FlattenDataTable": "O relatório está hierarquizado %s Torná-lo nivelado",
|
924 |
"ShowExportUrl": "Mostrar URL de exportação",
|
925 |
"HideExportUrl": "Ocultar URL de exportação",
|
926 |
"HomeShortcut": "Início",
|
927 |
+
"SupportUsOn": "Apoie-nos em",
|
928 |
"IncludeRowsWithLowPopulation": "As linhas com baixa população estão ocultas %s Mostrar todas as linhas",
|
929 |
"InjectedHostEmailBody": "Olá, eu tentei aceder ao Matomo hoje e deparei-me com um aviso de nome de servidor desconhecido.",
|
930 |
"InjectedHostEmailSubject": "O Matomo foi acedido com um nome de servidor desconhecido: %s",
|
937 |
"VisitTypeReturning": "Recorrente",
|
938 |
"VisitTypeReturningCustomer": "Cliente recorrente",
|
939 |
"MainNavigation": "Navegação principal",
|
940 |
+
"YourDonationWillHelp": "O seu donativo irá ajudar diretamente no financiamento de novas funcionalidades e melhorias para esta plataforma de análise de código aberto. Isto significa que a comunidade irá sempre beneficiar de uma ferramenta que protege a privacidade e ajuda-o a manter o controlo dos seus dados.",
|
941 |
+
"ThanksFromAllOfUs": "Um agradecimento de todos nós do Matomo!",
|
942 |
"Menu": "Menu",
|
943 |
"NoPrivilegesAskPiwikAdmin": "Está autenticado como '%1$s' mas parece que não tem quaisquer permissões definidas no Matomo. %2$s Peça ao seu administrador do Matomo (clique para enviar um e-mail)%3$s para lhe dar permissões para 'ver' um site.",
|
944 |
"OnlyForSuperUserAccess": "Esta widget é apresentada no painel predefinido apenas para utilizadores com acesso de super-utilizador.",
|
975 |
"PivotBySubtable": "O relatório não está articulado %1$s Articulado por %2$s",
|
976 |
"SystemSummaryWidget": "Resumo do sistema",
|
977 |
"SystemSummaryNWebsites": "%d sites",
|
978 |
+
"SystemSummaryNSegments": "%1$d segmentos",
|
979 |
+
"SystemSummaryNSegmentsWithBreakdown": "%1$d segmentos (%2$s pré-processados, %3$s processados em tempo real)",
|
980 |
"SystemSummaryNActivatedPlugins": "%d extensões ativas",
|
981 |
"SystemSummaryPiwikVersion": "Versão do Matomo",
|
982 |
"SystemSummaryMysqlVersion": "Versão do MySQL",
|
1675 |
"GoBackAndDefinePrefix": "Retroceder e definir um Prefixo para as tabelas do Matomo",
|
1676 |
"HappyAnalysing": "Boas análises!",
|
1677 |
"Installation": "Instalação",
|
1678 |
+
"InformationalResults": "Resultados informativos",
|
1679 |
+
"CopyBelowInfoForSupport": "Copie ou descarregue a informação abaixo para o caso da nossa equipa de apoio solicitar esta informação.",
|
1680 |
+
"CopySystemCheck": "Copiar verificação de sistema",
|
1681 |
+
"DownloadSystemCheck": "Transferir verificação de sistema",
|
1682 |
"InstallationStatus": "Estado da instalação",
|
1683 |
"InsufficientPrivilegesHelp": "Pode adicionar estes privilégios utilizando uma ferramenta como o phpMyAdmin ou executando as instruções SQL certas. Se não sabe fazer estas coisas, peça ao administrador do sistema para atribuir estes privilégios por si.",
|
1684 |
"InsufficientPrivilegesMain": "Ou a base de dados não existe (e não pode ser criada), ou o utilizador não tem privilégios suficientes. O utilizador da base de dados tem de ter os seguintes privilégios: %s",
|
1748 |
"SystemCheckGzuncompressHelp": "Precisa ativar a extensão zlib e a função gzuncompress.",
|
1749 |
"SystemCheckHashHelp": "Tem de configurar e reconstruir o PHP com o suporte para a função hash() ativado, removendo a opção --disable-hash.",
|
1750 |
"SystemCheckIconvHelp": "Tem de configurar e reconstruir o PHP com o suporte \"iconv\" ativado, --with-iconv.",
|
1751 |
+
"SystemCheckJsonHelp": "A extensão php-json é necessária para o Matomo ler e escrever dados JSON.",
|
1752 |
"SystemCheckMailHelp": "Mensagens de feedback e de palavras-passe perdida não serão enviadas sem mail().",
|
1753 |
"SystemCheckMbstring": "mbstring",
|
1754 |
"SystemCheckMbstringHelp": "A extensão mbstring é necessária para trabalhar com caracteres multibyte na interface do utilizador e com respostas da API. Confirme ainda que mbstring.func_overload está definido como \"0\" no php.ini.",
|
1784 |
"SystemCheckWriteDirs": "Diretórios com permissão de escrita",
|
1785 |
"SystemCheckWriteDirsHelp": "Para resolver este problema no seu sistema GNU\/Linux, tente introduzir o(s) seguinte(s) comando(s)",
|
1786 |
"SystemCheckZlibHelp": "Tem de configurar e reconstruir o PHP com o suporte \"zlib\" ativado, --with-zlib.",
|
1787 |
+
"SystemCheckCronArchiveProcess": "Configurar o Cron",
|
1788 |
+
"FasterReportLoading": "carregamento de relatórios mais rápido",
|
1789 |
"SystemCheckCronArchiveProcessCLI": "Gerir processo via linha de comandos",
|
1790 |
"SystemCheckPhpSetting": "Para impedir algum problema crítico, pode definir o seguinte no seu ficheiro php.ini: %s",
|
1791 |
"SystemCheckUpdateHttps": "Atualização sob HTTPS",
|
1807 |
"WelcomeToCommunity": "Bem-vindo à comunidade do Matomo!",
|
1808 |
"CannotConnectToDb": "Não foi possível ligar à base de dados",
|
1809 |
"CannotConnectToDbResolvingExplanation": "Isto pode ser um problema temporário; tente %1$satualizar a página%2$s. Se o problema persistir, por favor contacte o seu administrador do Matomo.",
|
1810 |
+
"EmailPrivacyNotice": "O seu endereço de e-mail apenas será utilizado para lhe enviar a newsletter. Para o efeito, temos de partilhar o seu endereço de e-mail com um fornecedor. Atualmente este fornecedor é a Mad Mimi, mas isto pode ser alterado no futuro. Não iremos partilhar o seu e-mail com mais ninguém nem utilizar o seu endereço de e-mail para outro propósito para além de lhe enviar a newsletter. Pode anular a subscrição a qualquer momento. Por favor consulte a nossa %1$spolítica de privacidade%2$s para mais informação.",
|
1811 |
+
"PerformanceSettingsDesc1": "Uma nota final relativamente ao desempenho: o seu Matomo está configurado e pronto a acompanhar e analisar o tráfego do seu site, mas se achar que o Matomo está lento, poderá querer executar alguns passos adicionais para configurar o %1$sarquivo via CLI%2$s. Isto irá gerar periodicamente os seus relatórios em segundo plano em vez de o fazer a pedido.",
|
1812 |
+
"PerformanceSettingsDesc2": "Isto requer que um comando do Matomo seja adicionado ao cron, algo que não pode ser feito automaticamente pelo instalador, mas que pode %1$saprender na nossa FAQ como o pode fazer autonomamente.%2$s"
|
1813 |
},
|
1814 |
"Intl": {
|
1815 |
"Continent_afr": "África",
|
app/lang/sq.json
CHANGED
@@ -908,6 +908,7 @@
|
|
908 |
"DataTableHowToSearch": "Shtypni tastin Enter ose klikoni ikonën e kërkimit që të kërkoni",
|
909 |
"DataTableShowDimensions": "Përmasat janë të ndërthurura %s Shfaqi përmasat ndarazi",
|
910 |
"DataTableCombineDimensions": "Përmasat janë shfaqur ndarazi %s Shfaqi përmasat të ndërthurura",
|
|
|
911 |
"Default": "parazgjedhje",
|
912 |
"DonateCall1": "Përdorimi i Matomo-a s’do t’ju kushtojë kurrë një dysh, por kjo s’do të thotë që neve nuk na kushton krijimi i tij.",
|
913 |
"DonateCall2": "Matomo lyp përkrahjen tuaj që të rritet dhe lulëzojë.",
|
@@ -3475,6 +3476,8 @@
|
|
3475 |
"CampaignGroupHelp": "Ky parametër përdoret për të ndjekur një Grup Fushate për të identifikuar një grup ose publik. Grupet e fushatave janë të dobishëm për ndjekjen ecurinë në përgjithësi të shumë fushatave me synime të ngjashme.",
|
3476 |
"CampaignPlacement": "Vendosje Fushate",
|
3477 |
"CampaignPlacementHelp": "E përdorur për të përshkruar vendosjen ose pozicionin e reklamës, për shembull, një sajt të tërë, faqe specifike prej një sajti, një njësi individuale reklamash të vendosur në një faqe të vetme, një video, një aplikacion telefoni celular, etj.",
|
|
|
|
|
3478 |
"ColumnSearchEngine": "Motorë Kërkimesh",
|
3479 |
"ColumnSocial": "Rrjet shoqëror",
|
3480 |
"ColumnWebsite": "Sajt",
|
@@ -4489,6 +4492,8 @@
|
|
4489 |
"GeoIPDocumentationSuffix": "Që të mund të shihni të dhëna për këtë raport, duhet të rregulloni GeoIP-në te skeda e përgjegjësit për Gjeovendëzimin. Bazat komerciale të të dhënave GeoIP %1$sMaxmind%2$s janë më të sakta se sa ato falas. Që të shihni se sa të sakta janë, klikoni %3$skëtu%4$s.",
|
4490 |
"Geolocation": "Gjeovendëzim",
|
4491 |
"GeolocationPageDesc": "Në këtë faqe mund të ndryshoni mënyrën se si përcakton Matomo vendndodhjet e vizitorëve.",
|
|
|
|
|
4492 |
"getCityDocumentation": "Ky raport shfaq qytetet ku gjendeshin vizitorët tuaj kur përdorën sajtin tuaj.",
|
4493 |
"getContinentDocumentation": "Ky raport shfaq kontinentet ku gjendeshin vizitorët tuaj kur përdorën sajtin tuaj.",
|
4494 |
"getCountryDocumentation": "Ky raport shfaq vendet ku gjendeshin vizitorët tuaj kur përdorën sajtin tuaj.",
|
908 |
"DataTableHowToSearch": "Shtypni tastin Enter ose klikoni ikonën e kërkimit që të kërkoni",
|
909 |
"DataTableShowDimensions": "Përmasat janë të ndërthurura %s Shfaqi përmasat ndarazi",
|
910 |
"DataTableCombineDimensions": "Përmasat janë shfaqur ndarazi %s Shfaqi përmasat të ndërthurura",
|
911 |
+
"DateInvalid": "Kombinimi dhënë për datë dhe periudhë është i pavlefshëm. Ju lutemi, zgjidhni një datë të vlefshme te përzgjedhësi i datave.",
|
912 |
"Default": "parazgjedhje",
|
913 |
"DonateCall1": "Përdorimi i Matomo-a s’do t’ju kushtojë kurrë një dysh, por kjo s’do të thotë që neve nuk na kushton krijimi i tij.",
|
914 |
"DonateCall2": "Matomo lyp përkrahjen tuaj që të rritet dhe lulëzojë.",
|
3476 |
"CampaignGroupHelp": "Ky parametër përdoret për të ndjekur një Grup Fushate për të identifikuar një grup ose publik. Grupet e fushatave janë të dobishëm për ndjekjen ecurinë në përgjithësi të shumë fushatave me synime të ngjashme.",
|
3477 |
"CampaignPlacement": "Vendosje Fushate",
|
3478 |
"CampaignPlacementHelp": "E përdorur për të përshkruar vendosjen ose pozicionin e reklamës, për shembull, një sajt të tërë, faqe specifike prej një sajti, një njësi individuale reklamash të vendosur në një faqe të vetme, një video, një aplikacion telefoni celular, etj.",
|
3479 |
+
"CampaignId": "ID Fushate",
|
3480 |
+
"CampaignIdHelp": "Ky parametër përdoret për të ndjekur një ID Fushate: një identifikues unik për fushatën, që përbëhet nga e shumta 100 numra, shkronja ose simbole.",
|
3481 |
"ColumnSearchEngine": "Motorë Kërkimesh",
|
3482 |
"ColumnSocial": "Rrjet shoqëror",
|
3483 |
"ColumnWebsite": "Sajt",
|
4492 |
"GeoIPDocumentationSuffix": "Që të mund të shihni të dhëna për këtë raport, duhet të rregulloni GeoIP-në te skeda e përgjegjësit për Gjeovendëzimin. Bazat komerciale të të dhënave GeoIP %1$sMaxmind%2$s janë më të sakta se sa ato falas. Që të shihni se sa të sakta janë, klikoni %3$skëtu%4$s.",
|
4493 |
"Geolocation": "Gjeovendëzim",
|
4494 |
"GeolocationPageDesc": "Në këtë faqe mund të ndryshoni mënyrën se si përcakton Matomo vendndodhjet e vizitorëve.",
|
4495 |
+
"GeolocationProviderBroken": "Furnizuesi i formësuar për gjeovendëzim, %1$s, është i dëmtuar. Ju lutemi, që gjeovendëzimi të punojë sërish, ndreqni furnizuesin ose formësoni një tjetër.",
|
4496 |
+
"GeolocationProviderUnavailable": "Furnizuesi i formësuar për gjeovendëzim, %1$s s’është më i passshëm. Ju lutemi, formësoni një tjetër.",
|
4497 |
"getCityDocumentation": "Ky raport shfaq qytetet ku gjendeshin vizitorët tuaj kur përdorën sajtin tuaj.",
|
4498 |
"getContinentDocumentation": "Ky raport shfaq kontinentet ku gjendeshin vizitorët tuaj kur përdorën sajtin tuaj.",
|
4499 |
"getCountryDocumentation": "Ky raport shfaq vendet ku gjendeshin vizitorët tuaj kur përdorën sajtin tuaj.",
|
app/lang/tr.json
CHANGED
@@ -1349,6 +1349,7 @@
|
|
1349 |
"GenericDevice": "Genel %s",
|
1350 |
"MobileDevice": "Mobil Aygıt",
|
1351 |
"Tablet": "Tablet",
|
|
|
1352 |
"Phablet": "Phablet",
|
1353 |
"TV": "TV",
|
1354 |
"UserAgent": "User-Agent",
|
@@ -3488,6 +3489,8 @@
|
|
3488 |
"CampaignGroupHelp": "Bu parametre, bir grubu ya da hedef kitleyi tanımlayacak bir Kampanya Grubunu izlemek için kullanılır. Kampanya grupları, benzer hedeflere sahip birden çok kampanyanın genel başarımını izlemek için yararlıdır.",
|
3489 |
"CampaignPlacement": "Kampanya Konumlandırması",
|
3490 |
"CampaignPlacementHelp": "Reklam yerleşimi ya da konumunu belirtmek için kullanılır. Bir web sitesinin tamamı, bir web sitesindeki belirli sayfalar, tek bir sayfada konumlandırılmış tek bir reklam birimi, bir görüntü, bir cep telefonu uygulaması gibi diğer seçenekler olabilir.",
|
|
|
|
|
3491 |
"ColumnSearchEngine": "Arama Motoru",
|
3492 |
"ColumnSocial": "Sosyal ağ",
|
3493 |
"ColumnWebsite": "Web sitesi",
|
@@ -4502,6 +4505,8 @@
|
|
4502 |
"GeoIPDocumentationSuffix": "Bu raporun verilerini görüntülemek için Coğrafi konum yönetici sekmesinden GeoIP kurulumunu yapmalısınız. Ticari %1$sMaxmind%2$s GeoIP veritabanları ücretsiz olanlardan daha doğrudur. Doğruluğu görmek için %3$sburaya tıklayın%4$s",
|
4503 |
"Geolocation": "Coğrafi Konum",
|
4504 |
"GeolocationPageDesc": "Ziyaretçi konumun Matomo tarafından nasıl bulunacağı bu bölümden ayarlanabilir.",
|
|
|
|
|
4505 |
"getCityDocumentation": "Bu rapor, ziyaretçilerin web sitenize eriştiği il bilgilerini içerir.",
|
4506 |
"getContinentDocumentation": "Bu rapor, ziyaretçilerin web sitenize eriştiği kıta bilgilerini içerir.",
|
4507 |
"getCountryDocumentation": "Bu rapor, ziyaretçilerin web sitenize eriştiği ülke bilgilerini içerir.",
|
1349 |
"GenericDevice": "Genel %s",
|
1350 |
"MobileDevice": "Mobil Aygıt",
|
1351 |
"Tablet": "Tablet",
|
1352 |
+
"Peripheral": "Çevre",
|
1353 |
"Phablet": "Phablet",
|
1354 |
"TV": "TV",
|
1355 |
"UserAgent": "User-Agent",
|
3489 |
"CampaignGroupHelp": "Bu parametre, bir grubu ya da hedef kitleyi tanımlayacak bir Kampanya Grubunu izlemek için kullanılır. Kampanya grupları, benzer hedeflere sahip birden çok kampanyanın genel başarımını izlemek için yararlıdır.",
|
3490 |
"CampaignPlacement": "Kampanya Konumlandırması",
|
3491 |
"CampaignPlacementHelp": "Reklam yerleşimi ya da konumunu belirtmek için kullanılır. Bir web sitesinin tamamı, bir web sitesindeki belirli sayfalar, tek bir sayfada konumlandırılmış tek bir reklam birimi, bir görüntü, bir cep telefonu uygulaması gibi diğer seçenekler olabilir.",
|
3492 |
+
"CampaignId": "Kampanya Kodu",
|
3493 |
+
"CampaignIdHelp": "Bu parametre bir Kampanya Kodunu izlemek için kullanılır. Kampanya kodu her kampanya için eşsizdir, en fazla 100 karakter uzunluğundadır ve rakam, harf ve simgelerden oluşur.",
|
3494 |
"ColumnSearchEngine": "Arama Motoru",
|
3495 |
"ColumnSocial": "Sosyal ağ",
|
3496 |
"ColumnWebsite": "Web sitesi",
|
4505 |
"GeoIPDocumentationSuffix": "Bu raporun verilerini görüntülemek için Coğrafi konum yönetici sekmesinden GeoIP kurulumunu yapmalısınız. Ticari %1$sMaxmind%2$s GeoIP veritabanları ücretsiz olanlardan daha doğrudur. Doğruluğu görmek için %3$sburaya tıklayın%4$s",
|
4506 |
"Geolocation": "Coğrafi Konum",
|
4507 |
"GeolocationPageDesc": "Ziyaretçi konumun Matomo tarafından nasıl bulunacağı bu bölümden ayarlanabilir.",
|
4508 |
+
"GeolocationProviderBroken": "Yapılandırlmış %1$s coğrafi konum hizmeti sağlayıcısı çalışmıyor. Coğrafi konum hizmetini yeniden çalıştırmak için lütfen hizmet sağlayıcıyı çalışır duruma getirin ya da başka bir hizmet sağlayıcı yapılandırın.",
|
4509 |
+
"GeolocationProviderUnavailable": "Yapılandırlmış %1$s coğrafi konum hizmeti sağlayıcısı artık kullanılamıyor. Lütfen başka bir hizmet sağlayıcı yapılandırın.",
|
4510 |
"getCityDocumentation": "Bu rapor, ziyaretçilerin web sitenize eriştiği il bilgilerini içerir.",
|
4511 |
"getContinentDocumentation": "Bu rapor, ziyaretçilerin web sitenize eriştiği kıta bilgilerini içerir.",
|
4512 |
"getCountryDocumentation": "Bu rapor, ziyaretçilerin web sitenize eriştiği ülke bilgilerini içerir.",
|
app/libs/Zend/Session/Exception.php
CHANGED
@@ -54,7 +54,7 @@ class Zend_Session_Exception extends Zend_Exception
|
|
54 |
* @param string $errstr
|
55 |
* @return void
|
56 |
*/
|
57 |
-
static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext)
|
58 |
{
|
59 |
$message = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
|
60 |
if (E_ERROR === $errno || E_CORE_ERROR === $errno || E_COMPILE_ERROR === $errno) {
|
@@ -72,7 +72,7 @@ class Zend_Session_Exception extends Zend_Exception
|
|
72 |
* @param string $errstr
|
73 |
* @return void
|
74 |
*/
|
75 |
-
static public function handleSilentWriteClose($errno, $errstr, $errfile, $errline, $errcontext)
|
76 |
{
|
77 |
self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
|
78 |
}
|
54 |
* @param string $errstr
|
55 |
* @return void
|
56 |
*/
|
57 |
+
static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext = '')
|
58 |
{
|
59 |
$message = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
|
60 |
if (E_ERROR === $errno || E_CORE_ERROR === $errno || E_COMPILE_ERROR === $errno) {
|
72 |
* @param string $errstr
|
73 |
* @return void
|
74 |
*/
|
75 |
+
static public function handleSilentWriteClose($errno, $errstr, $errfile, $errline, $errcontext = '')
|
76 |
{
|
77 |
self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
|
78 |
}
|
app/plugins/API/Filter/DataComparisonFilter.php
CHANGED
@@ -521,12 +521,7 @@ class DataComparisonFilter
|
|
521 |
$valueToCompare = $fromRow ? $fromRow->getColumn($columnName) : 0;
|
522 |
$valueToCompare = $valueToCompare ?: 0;
|
523 |
|
524 |
-
$change = DataTable\Filter\CalculateEvolutionFilter::calculate($value, $valueToCompare, $precision = 1,
|
525 |
-
|
526 |
-
if ($change >= 0) {
|
527 |
-
$change = '+' . $change;
|
528 |
-
}
|
529 |
-
$change .= '%';
|
530 |
|
531 |
return $change;
|
532 |
}
|
521 |
$valueToCompare = $fromRow ? $fromRow->getColumn($columnName) : 0;
|
522 |
$valueToCompare = $valueToCompare ?: 0;
|
523 |
|
524 |
+
$change = DataTable\Filter\CalculateEvolutionFilter::calculate($value, $valueToCompare, $precision = 1, true, true);
|
|
|
|
|
|
|
|
|
|
|
525 |
|
526 |
return $change;
|
527 |
}
|
app/plugins/API/RowEvolution.php
CHANGED
@@ -411,8 +411,8 @@ class RowEvolution
|
|
411 |
continue;
|
412 |
}
|
413 |
|
414 |
-
$change = CalculateEvolutionFilter::calculate($last, $first, $quotientPrecision = 0);
|
415 |
-
|
416 |
$metricsResult[$metric]['change'] = $change;
|
417 |
}
|
418 |
|
411 |
continue;
|
412 |
}
|
413 |
|
414 |
+
$change = CalculateEvolutionFilter::calculate($last, $first, $quotientPrecision = 0, true, true);
|
415 |
+
|
416 |
$metricsResult[$metric]['change'] = $change;
|
417 |
}
|
418 |
|
app/plugins/CoreAdminHome/Controller.php
CHANGED
@@ -280,6 +280,7 @@ class Controller extends ControllerAdmin
|
|
280 |
{
|
281 |
// Whether to display or not the general settings (cron, beta, smtp)
|
282 |
$view->isGeneralSettingsAdminEnabled = self::isGeneralSettingsAdminEnabled();
|
|
|
283 |
$view->isPluginsAdminEnabled = CorePluginsAdmin::isPluginsAdminEnabled();
|
284 |
if ($view->isGeneralSettingsAdminEnabled) {
|
285 |
$this->displayWarningIfConfigFileNotWritable();
|
280 |
{
|
281 |
// Whether to display or not the general settings (cron, beta, smtp)
|
282 |
$view->isGeneralSettingsAdminEnabled = self::isGeneralSettingsAdminEnabled();
|
283 |
+
$view->isMultiServerEnvironment = SettingsPiwik::isMultiServerEnvironment();
|
284 |
$view->isPluginsAdminEnabled = CorePluginsAdmin::isPluginsAdminEnabled();
|
285 |
if ($view->isGeneralSettingsAdminEnabled) {
|
286 |
$this->displayWarningIfConfigFileNotWritable();
|
app/plugins/CoreAdminHome/templates/generalSettings.twig
CHANGED
@@ -76,7 +76,9 @@
|
|
76 |
<div onconfirm="archivingSettings.save()" saving="archivingSettings.isLoading" piwik-save-button></div>
|
77 |
</div>
|
78 |
</div>
|
79 |
-
|
|
|
|
|
80 |
|
81 |
<div piwik-form ng-controller="MailSmtpController as mailSettings">
|
82 |
<div piwik-field uicontrol="checkbox" name="mailUseSmtp"
|
@@ -153,6 +155,7 @@
|
|
153 |
<div onconfirm="mailSettings.save()" saving="mailSettings.isLoading" piwik-save-button></div>
|
154 |
</div>
|
155 |
</div>
|
|
|
156 |
{% endif %}
|
157 |
|
158 |
{% if customLogoEnabled %}
|
76 |
<div onconfirm="archivingSettings.save()" saving="archivingSettings.isLoading" piwik-save-button></div>
|
77 |
</div>
|
78 |
</div>
|
79 |
+
|
80 |
+
{% if not isMultiServerEnvironment %}
|
81 |
+
<div piwik-content-block content-title="{{ 'CoreAdminHome_EmailServerSettings'|translate|e('html_attr') }}">
|
82 |
|
83 |
<div piwik-form ng-controller="MailSmtpController as mailSettings">
|
84 |
<div piwik-field uicontrol="checkbox" name="mailUseSmtp"
|
155 |
<div onconfirm="mailSettings.save()" saving="mailSettings.isLoading" piwik-save-button></div>
|
156 |
</div>
|
157 |
</div>
|
158 |
+
{% endif %}
|
159 |
{% endif %}
|
160 |
|
161 |
{% if customLogoEnabled %}
|
app/plugins/CoreHome/CoreHome.php
CHANGED
@@ -453,6 +453,7 @@ class CoreHome extends \Piwik\Plugin
|
|
453 |
$translationKeys[] = 'General_DoubleClickToChangePeriod';
|
454 |
$translationKeys[] = 'General_Apply';
|
455 |
$translationKeys[] = 'General_Period';
|
|
|
456 |
$translationKeys[] = 'CoreHome_EnterZenMode';
|
457 |
$translationKeys[] = 'CoreHome_ExitZenMode';
|
458 |
$translationKeys[] = 'CoreHome_ShortcutZenMode';
|
453 |
$translationKeys[] = 'General_DoubleClickToChangePeriod';
|
454 |
$translationKeys[] = 'General_Apply';
|
455 |
$translationKeys[] = 'General_Period';
|
456 |
+
$translationKeys[] = 'CoreHome_DateInvalid';
|
457 |
$translationKeys[] = 'CoreHome_EnterZenMode';
|
458 |
$translationKeys[] = 'CoreHome_ExitZenMode';
|
459 |
$translationKeys[] = 'CoreHome_ShortcutZenMode';
|
app/plugins/CoreUpdater/SystemSettings.php
CHANGED
@@ -16,6 +16,7 @@ use Piwik\Plugins\CoreAdminHome\Controller as CoreAdminController;
|
|
16 |
use Piwik\Plugins\Marketplace\UpdateCommunication as PluginUpdateCommunication;
|
17 |
use Piwik\Settings\Setting;
|
18 |
use Piwik\Settings\FieldConfig;
|
|
|
19 |
|
20 |
/**
|
21 |
* Defines Settings for CoreUpdater.
|
@@ -54,13 +55,13 @@ class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings
|
|
54 |
|
55 |
$isWritable = Piwik::hasUserSuperUserAccess() && CoreAdminController::isGeneralSettingsAdminEnabled();
|
56 |
$this->releaseChannel = $this->createReleaseChannel();
|
57 |
-
$this->releaseChannel->setIsWritableByCurrentUser($isWritable
|
|
|
58 |
|
59 |
-
$isWritable = $isWritable && PluginUpdateCommunication::canBeEnabled();
|
60 |
$this->sendPluginUpdateEmail = $this->createSendPluginUpdateEmail();
|
61 |
-
$this->sendPluginUpdateEmail->setIsWritableByCurrentUser($isWritable
|
|
|
62 |
|
63 |
-
$isWritable = Piwik::hasUserSuperUserAccess() && CoreAdminController::isGeneralSettingsAdminEnabled();
|
64 |
$dbSettings = new Settings();
|
65 |
if ($isWritable && $dbSettings->getUsedCharset() !== 'utf8mb4' && DbHelper::getDefaultCharset() === 'utf8mb4') {
|
66 |
$this->updateToUtf8mb4 = $this->createUpdateToUtf8mb4();
|
16 |
use Piwik\Plugins\Marketplace\UpdateCommunication as PluginUpdateCommunication;
|
17 |
use Piwik\Settings\Setting;
|
18 |
use Piwik\Settings\FieldConfig;
|
19 |
+
use Piwik\SettingsPiwik;
|
20 |
|
21 |
/**
|
22 |
* Defines Settings for CoreUpdater.
|
55 |
|
56 |
$isWritable = Piwik::hasUserSuperUserAccess() && CoreAdminController::isGeneralSettingsAdminEnabled();
|
57 |
$this->releaseChannel = $this->createReleaseChannel();
|
58 |
+
$this->releaseChannel->setIsWritableByCurrentUser($isWritable
|
59 |
+
&& SettingsPiwik::isMultiServerEnvironment() === false);
|
60 |
|
|
|
61 |
$this->sendPluginUpdateEmail = $this->createSendPluginUpdateEmail();
|
62 |
+
$this->sendPluginUpdateEmail->setIsWritableByCurrentUser($isWritable
|
63 |
+
&& PluginUpdateCommunication::canBeEnabled());
|
64 |
|
|
|
65 |
$dbSettings = new Settings();
|
66 |
if ($isWritable && $dbSettings->getUsedCharset() !== 'utf8mb4' && DbHelper::getDefaultCharset() === 'utf8mb4') {
|
67 |
$this->updateToUtf8mb4 = $this->createUpdateToUtf8mb4();
|
app/plugins/CoreUpdater/templates/newVersionAvailable.twig
CHANGED
@@ -36,7 +36,7 @@
|
|
36 |
|
37 |
<ul>
|
38 |
{% for plugin in incompatiblePlugins %}
|
39 |
-
<li>{{ plugin.
|
40 |
{% endfor %}
|
41 |
</ul>
|
42 |
{% endif %}
|
36 |
|
37 |
<ul>
|
38 |
{% for plugin in incompatiblePlugins %}
|
39 |
+
<li>{{ plugin.pluginName }}</li>
|
40 |
{% endfor %}
|
41 |
</ul>
|
42 |
{% endif %}
|
app/plugins/DevicePlugins/DevicePlugins.php
CHANGED
@@ -10,6 +10,7 @@ namespace Piwik\Plugins\DevicePlugins;
|
|
10 |
|
11 |
use Piwik\Cache;
|
12 |
use Piwik\CacheId;
|
|
|
13 |
use Piwik\Piwik;
|
14 |
use Piwik\Plugin;
|
15 |
|
@@ -48,14 +49,17 @@ class DevicePlugins extends \Piwik\Plugin
|
|
48 |
{
|
49 |
$cacheId = CacheId::pluginAware('DevicePluginColumns');
|
50 |
$cache = Cache::getTransientCache();
|
|
|
51 |
|
52 |
if (!$cache->contains($cacheId)) {
|
53 |
$instances = [];
|
54 |
|
55 |
foreach (self::getAllDevicePluginsColumnClasses() as $className) {
|
56 |
-
$
|
57 |
-
|
|
|
58 |
}
|
|
|
59 |
$cache->save($cacheId, $instances);
|
60 |
}
|
61 |
|
10 |
|
11 |
use Piwik\Cache;
|
12 |
use Piwik\CacheId;
|
13 |
+
use Piwik\Columns\Dimension;
|
14 |
use Piwik\Piwik;
|
15 |
use Piwik\Plugin;
|
16 |
|
49 |
{
|
50 |
$cacheId = CacheId::pluginAware('DevicePluginColumns');
|
51 |
$cache = Cache::getTransientCache();
|
52 |
+
$removedDimensions = Dimension::getRemovedDimensions();
|
53 |
|
54 |
if (!$cache->contains($cacheId)) {
|
55 |
$instances = [];
|
56 |
|
57 |
foreach (self::getAllDevicePluginsColumnClasses() as $className) {
|
58 |
+
if (!in_array($className, $removedDimensions)) {
|
59 |
+
$instances[] = new $className();
|
60 |
+
}
|
61 |
}
|
62 |
+
|
63 |
$cache->save($cacheId, $instances);
|
64 |
}
|
65 |
|
app/plugins/GeoIp2/Controller.php
CHANGED
@@ -36,7 +36,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
|
|
36 |
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
37 |
$this->checkTokenInUrl();
|
38 |
Json::sendHeaderJSON();
|
39 |
-
$outputPath = GeoIP2AutoUpdater::getTemporaryFolder('DBIP-City.mmdb
|
40 |
try {
|
41 |
$result = Http::downloadChunk(
|
42 |
$url = GeoIp2::getDbIpLiteUrl(),
|
@@ -146,7 +146,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
|
|
146 |
|
147 |
$url = GeoIP2AutoUpdater::getConfiguredUrl($key);
|
148 |
$filename = GeoIP2AutoUpdater::getZippedFilenameToDownloadTo($url, $key, GeoIP2AutoUpdater::getGeoIPUrlExtension($url));
|
149 |
-
$outputPath = GeoIP2AutoUpdater::getTemporaryFolder($filename);
|
150 |
|
151 |
// download part of the file
|
152 |
$result = Http::downloadChunk(
|
36 |
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
37 |
$this->checkTokenInUrl();
|
38 |
Json::sendHeaderJSON();
|
39 |
+
$outputPath = GeoIP2AutoUpdater::getTemporaryFolder('DBIP-City.mmdb.gz', true);
|
40 |
try {
|
41 |
$result = Http::downloadChunk(
|
42 |
$url = GeoIp2::getDbIpLiteUrl(),
|
146 |
|
147 |
$url = GeoIP2AutoUpdater::getConfiguredUrl($key);
|
148 |
$filename = GeoIP2AutoUpdater::getZippedFilenameToDownloadTo($url, $key, GeoIP2AutoUpdater::getGeoIPUrlExtension($url));
|
149 |
+
$outputPath = GeoIP2AutoUpdater::getTemporaryFolder($filename, true);
|
150 |
|
151 |
// download part of the file
|
152 |
$result = Http::downloadChunk(
|
app/plugins/GeoIp2/GeoIP2AutoUpdater.php
CHANGED
@@ -158,7 +158,7 @@ class GeoIP2AutoUpdater extends Task
|
|
158 |
// NOTE: using the first item in $dbNames[$dbType] makes sure GeoLiteCity will be renamed to GeoIPCity
|
159 |
$zippedFilename = $this->getZippedFilenameToDownloadTo($url, $dbType, $ext);
|
160 |
|
161 |
-
$zippedOutputPath = self::getTemporaryFolder($zippedFilename);
|
162 |
|
163 |
$url = self::removeDateFromUrl($url);
|
164 |
|
@@ -192,9 +192,9 @@ class GeoIP2AutoUpdater extends Task
|
|
192 |
Log::info("GeoIP2AutoUpdater: successfully updated GeoIP 2 database '%s'", $url);
|
193 |
}
|
194 |
|
195 |
-
public static function getTemporaryFolder($file)
|
196 |
{
|
197 |
-
return \Piwik\Container\StaticContainer::get('path.tmp') . '/latest/' . $file;
|
198 |
}
|
199 |
|
200 |
/**
|
@@ -207,10 +207,17 @@ class GeoIP2AutoUpdater extends Task
|
|
207 |
public static function unzipDownloadedFile($path, $dbType, $url, $unlink = false)
|
208 |
{
|
209 |
$isDbIp = self::isDbIpUrl($url);
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
|
212 |
// extract file
|
213 |
-
if (substr($
|
214 |
// find the .dat file in the tar archive
|
215 |
$unzip = Unzip::factory('tar.gz', $path);
|
216 |
$content = $unzip->listContent();
|
@@ -253,7 +260,7 @@ class GeoIP2AutoUpdater extends Task
|
|
253 |
$fd = fopen($outputPath, 'wb');
|
254 |
fwrite($fd, $unzipped);
|
255 |
fclose($fd);
|
256 |
-
} else if (substr($
|
257 |
|| $isDbIpUnknownDbType
|
258 |
) {
|
259 |
$unzip = Unzip::factory('gz', $path);
|
@@ -261,7 +268,7 @@ class GeoIP2AutoUpdater extends Task
|
|
261 |
if ($isDbIpUnknownDbType) {
|
262 |
$tempFilename = 'unzipped-temp-dbip-file.mmdb';
|
263 |
} else {
|
264 |
-
$dbFilename = substr(basename($
|
265 |
$tempFilename = $dbFilename . '.new';
|
266 |
}
|
267 |
|
@@ -278,7 +285,7 @@ class GeoIP2AutoUpdater extends Task
|
|
278 |
$dbFilename = $php->detectDatabaseType($dbType) . '.mmdb';
|
279 |
}
|
280 |
} else {
|
281 |
-
$parts = explode(basename($
|
282 |
$ext = end($parts);
|
283 |
throw new Exception(Piwik::translate('GeoIp2_UnsupportedArchiveType', "'$ext'"));
|
284 |
}
|
@@ -767,12 +774,12 @@ class GeoIP2AutoUpdater extends Task
|
|
767 |
|
768 |
public static function isDbIpUrl($url)
|
769 |
{
|
770 |
-
return !! preg_match('
|
771 |
}
|
772 |
|
773 |
protected static function isPaidDbIpUrl($url)
|
774 |
{
|
775 |
-
return !! preg_match('
|
776 |
}
|
777 |
|
778 |
protected function fetchPaidDbIpUrl($url)
|
158 |
// NOTE: using the first item in $dbNames[$dbType] makes sure GeoLiteCity will be renamed to GeoIPCity
|
159 |
$zippedFilename = $this->getZippedFilenameToDownloadTo($url, $dbType, $ext);
|
160 |
|
161 |
+
$zippedOutputPath = self::getTemporaryFolder($zippedFilename, true);
|
162 |
|
163 |
$url = self::removeDateFromUrl($url);
|
164 |
|
192 |
Log::info("GeoIP2AutoUpdater: successfully updated GeoIP 2 database '%s'", $url);
|
193 |
}
|
194 |
|
195 |
+
public static function getTemporaryFolder($file, $isDownload = false)
|
196 |
{
|
197 |
+
return \Piwik\Container\StaticContainer::get('path.tmp') . '/latest/' . $file . ($isDownload ? '.download' : '');
|
198 |
}
|
199 |
|
200 |
/**
|
207 |
public static function unzipDownloadedFile($path, $dbType, $url, $unlink = false)
|
208 |
{
|
209 |
$isDbIp = self::isDbIpUrl($url);
|
210 |
+
|
211 |
+
$filename = $path;
|
212 |
+
|
213 |
+
if (substr($filename, -9, 9) === '.download') {
|
214 |
+
$filename = substr($filename, 0, -9);
|
215 |
+
}
|
216 |
+
|
217 |
+
$isDbIpUnknownDbType = $isDbIp && substr($filename, -5, 5) == '.mmdb';
|
218 |
|
219 |
// extract file
|
220 |
+
if (substr($filename, -7, 7) == '.tar.gz') {
|
221 |
// find the .dat file in the tar archive
|
222 |
$unzip = Unzip::factory('tar.gz', $path);
|
223 |
$content = $unzip->listContent();
|
260 |
$fd = fopen($outputPath, 'wb');
|
261 |
fwrite($fd, $unzipped);
|
262 |
fclose($fd);
|
263 |
+
} else if (substr($filename, -3, 3) == '.gz'
|
264 |
|| $isDbIpUnknownDbType
|
265 |
) {
|
266 |
$unzip = Unzip::factory('gz', $path);
|
268 |
if ($isDbIpUnknownDbType) {
|
269 |
$tempFilename = 'unzipped-temp-dbip-file.mmdb';
|
270 |
} else {
|
271 |
+
$dbFilename = substr(basename($filename), 0, -3);
|
272 |
$tempFilename = $dbFilename . '.new';
|
273 |
}
|
274 |
|
285 |
$dbFilename = $php->detectDatabaseType($dbType) . '.mmdb';
|
286 |
}
|
287 |
} else {
|
288 |
+
$parts = explode(basename($filename), '.', 2);
|
289 |
$ext = end($parts);
|
290 |
throw new Exception(Piwik::translate('GeoIp2_UnsupportedArchiveType', "'$ext'"));
|
291 |
}
|
774 |
|
775 |
public static function isDbIpUrl($url)
|
776 |
{
|
777 |
+
return !! preg_match('/^http[s]?:\/\/([a-z0-9-]+\.)?db-ip\.com/', $url);
|
778 |
}
|
779 |
|
780 |
protected static function isPaidDbIpUrl($url)
|
781 |
{
|
782 |
+
return !! preg_match('/^http[s]?:\/\/([a-z0-9-]+\.)?db-ip\.com\/account\/[0-9a-z]+\/db/', $url);
|
783 |
}
|
784 |
|
785 |
protected function fetchPaidDbIpUrl($url)
|
app/plugins/GeoIp2/LocationProvider/GeoIp2.php
CHANGED
@@ -66,7 +66,7 @@ abstract class GeoIp2 extends LocationProvider
|
|
66 |
|
67 |
// get location using test IP and check that some information was returned
|
68 |
$location = $this->getLocation(array('ip' => $testIp));
|
69 |
-
$location = array_filter($location);
|
70 |
$isResultCorrect = !empty($location);
|
71 |
|
72 |
if (!$isResultCorrect) {
|
66 |
|
67 |
// get location using test IP and check that some information was returned
|
68 |
$location = $this->getLocation(array('ip' => $testIp));
|
69 |
+
$location = $location ? array_filter($location) : $location;
|
70 |
$isResultCorrect = !empty($location);
|
71 |
|
72 |
if (!$isResultCorrect) {
|
app/plugins/GeoIp2/LocationProvider/GeoIp2/ServerModule.php
CHANGED
@@ -347,4 +347,14 @@ class ServerModule extends GeoIp2
|
|
347 |
|
348 |
return $settingValues;
|
349 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
}
|
347 |
|
348 |
return $settingValues;
|
349 |
}
|
350 |
+
|
351 |
+
public function getUsageWarning(): ?string
|
352 |
+
{
|
353 |
+
$comment = Piwik::translate('GeoIp2_GeoIPLocationProviderNotRecommended') . ' ';
|
354 |
+
$comment .= Piwik::translate('GeoIp2_LocationProviderDesc_ServerModule2', array(
|
355 |
+
'<a href="https://matomo.org/docs/geo-locate/" rel="noreferrer noopener" target="_blank">', '', '', '</a>'
|
356 |
+
));
|
357 |
+
|
358 |
+
return $comment;
|
359 |
+
}
|
360 |
}
|
app/plugins/Goals/Goals.php
CHANGED
@@ -165,7 +165,7 @@ class Goals extends \Piwik\Plugin
|
|
165 |
$metric->setCategory($custom->getCategoryId());
|
166 |
$metric->setDocumentation('The number of days it took a visitor to convert this goal.');
|
167 |
$metric->setName('goal_' . $goal['idgoal'] . '_daystoconversion');
|
168 |
-
$metric->setQuery('sum(
|
169 |
$metricsList->addMetric($metric);
|
170 |
|
171 |
$custom = new GoalDimension($goal, 'visitor_count_visits', 'Visits to conversion goal "' . $goal['name'] . '" (ID ' . $goal['idgoal'] .' )');
|
165 |
$metric->setCategory($custom->getCategoryId());
|
166 |
$metric->setDocumentation('The number of days it took a visitor to convert this goal.');
|
167 |
$metric->setName('goal_' . $goal['idgoal'] . '_daystoconversion');
|
168 |
+
$metric->setQuery('sum(floor(log_visit.visitor_seconds_since_first / 86400))');
|
169 |
$metricsList->addMetric($metric);
|
170 |
|
171 |
$custom = new GoalDimension($goal, 'visitor_count_visits', 'Visits to conversion goal "' . $goal['name'] . '" (ID ' . $goal['idgoal'] .' )');
|
app/plugins/PrivacyManager/Controller.php
CHANGED
@@ -19,6 +19,7 @@ use Piwik\Nonce;
|
|
19 |
use Piwik\Notification;
|
20 |
use Piwik\Option;
|
21 |
use Piwik\Piwik;
|
|
|
22 |
use Piwik\Plugins\CustomJsTracker\File;
|
23 |
use Piwik\Plugins\LanguagesManager\LanguagesManager;
|
24 |
use Piwik\Scheduler\Scheduler;
|
@@ -187,8 +188,14 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
|
|
187 |
if (Piwik::hasUserSuperUserAccess()) {
|
188 |
$jsCodeGenerator = new TrackerCodeGenerator();
|
189 |
$file = new File(PIWIK_DOCUMENT_ROOT . '/' . $jsCodeGenerator->getJsTrackerEndpoint());
|
|
|
190 |
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
192 |
$view->trackerWritable = $file->hasWriteAccess();
|
193 |
$view->deleteData = $this->getDeleteDataInfo();
|
194 |
$view->anonymizeIP = $this->getAnonymizeIPInfo();
|
19 |
use Piwik\Notification;
|
20 |
use Piwik\Option;
|
21 |
use Piwik\Piwik;
|
22 |
+
use Piwik\Plugin\Manager;
|
23 |
use Piwik\Plugins\CustomJsTracker\File;
|
24 |
use Piwik\Plugins\LanguagesManager\LanguagesManager;
|
25 |
use Piwik\Scheduler\Scheduler;
|
188 |
if (Piwik::hasUserSuperUserAccess()) {
|
189 |
$jsCodeGenerator = new TrackerCodeGenerator();
|
190 |
$file = new File(PIWIK_DOCUMENT_ROOT . '/' . $jsCodeGenerator->getJsTrackerEndpoint());
|
191 |
+
$filename = $jsCodeGenerator->getJsTrackerEndpoint();
|
192 |
|
193 |
+
if (Manager::getInstance()->isPluginActivated('CustomJsTracker')) {
|
194 |
+
$file = StaticContainer::get('Piwik\Plugins\CustomJsTracker\TrackerUpdater')->getToFile();
|
195 |
+
$filename = $file->getName();
|
196 |
+
}
|
197 |
+
|
198 |
+
$view->trackerFileName = $filename;
|
199 |
$view->trackerWritable = $file->hasWriteAccess();
|
200 |
$view->deleteData = $this->getDeleteDataInfo();
|
201 |
$view->anonymizeIP = $this->getAnonymizeIPInfo();
|
app/plugins/PrivacyManager/Model/DataSubjects.php
CHANGED
@@ -107,22 +107,22 @@ class DataSubjects
|
|
107 |
*/
|
108 |
Piwik::postEvent('PrivacyManager.deleteDataSubjects', array(&$results, $visits));
|
109 |
|
110 |
-
$this->
|
111 |
|
112 |
$logTables = $this->getLogTablesToDeleteFrom();
|
113 |
$deleteCounts = $this->deleteLogDataFrom($logTables, function ($tableToSelectFrom) use ($visits) {
|
114 |
return $this->visitsToWhereAndBind($tableToSelectFrom, $visits);
|
115 |
});
|
116 |
|
|
|
|
|
117 |
$results = array_merge($results, $deleteCounts);
|
118 |
krsort($results); // make sure test results are always in same order
|
119 |
return $results;
|
120 |
}
|
121 |
|
122 |
-
private function invalidateArchives($
|
123 |
{
|
124 |
-
$datesToInvalidateByIdSite = $this->getDatesToInvalidate($visits);
|
125 |
-
|
126 |
$invalidator = StaticContainer::get('Piwik\Archive\ArchiveInvalidator');
|
127 |
|
128 |
foreach ($datesToInvalidateByIdSite as $idSite => $visitDates) {
|
107 |
*/
|
108 |
Piwik::postEvent('PrivacyManager.deleteDataSubjects', array(&$results, $visits));
|
109 |
|
110 |
+
$datesToInvalidateByIdSite = $this->getDatesToInvalidate($visits);
|
111 |
|
112 |
$logTables = $this->getLogTablesToDeleteFrom();
|
113 |
$deleteCounts = $this->deleteLogDataFrom($logTables, function ($tableToSelectFrom) use ($visits) {
|
114 |
return $this->visitsToWhereAndBind($tableToSelectFrom, $visits);
|
115 |
});
|
116 |
|
117 |
+
$this->invalidateArchives($datesToInvalidateByIdSite);
|
118 |
+
|
119 |
$results = array_merge($results, $deleteCounts);
|
120 |
krsort($results); // make sure test results are always in same order
|
121 |
return $results;
|
122 |
}
|
123 |
|
124 |
+
private function invalidateArchives($datesToInvalidateByIdSite)
|
125 |
{
|
|
|
|
|
126 |
$invalidator = StaticContainer::get('Piwik\Archive\ArchiveInvalidator');
|
127 |
|
128 |
foreach ($datesToInvalidateByIdSite as $idSite => $visitDates) {
|
app/plugins/PrivacyManager/ReportsPurger.php
CHANGED
@@ -274,8 +274,13 @@ class ReportsPurger
|
|
274 |
{
|
275 |
$maxIdArchive = Db::fetchOne("SELECT MAX(idarchive) FROM $table");
|
276 |
|
|
|
|
|
|
|
|
|
|
|
277 |
$sql = "SELECT COUNT(*) FROM $table
|
278 |
-
WHERE " . $
|
279 |
AND idarchive >= ?
|
280 |
AND idarchive < ?";
|
281 |
|
274 |
{
|
275 |
$maxIdArchive = Db::fetchOne("SELECT MAX(idarchive) FROM $table");
|
276 |
|
277 |
+
$blobTableWhere = $this->getBlobTableWhereExpr($oldNumericTables, $table);
|
278 |
+
if (empty($blobTableWhere)) {
|
279 |
+
return 0;
|
280 |
+
}
|
281 |
+
|
282 |
$sql = "SELECT COUNT(*) FROM $table
|
283 |
+
WHERE " . $blobTableWhere . "
|
284 |
AND idarchive >= ?
|
285 |
AND idarchive < ?";
|
286 |
|
app/plugins/Referrers/API.php
CHANGED
@@ -752,14 +752,14 @@ class API extends \Piwik\Plugin\API
|
|
752 |
|
753 |
$table->setAllTableMetadata($numericArchives->getAllTableMetadata());
|
754 |
|
755 |
-
if ($table->getRows() == 0) {
|
756 |
-
$table->addRow(new DataTable\Row());
|
757 |
-
}
|
758 |
-
|
759 |
if ($numericArchives->getRowsCount() == 0) {
|
760 |
return;
|
761 |
}
|
762 |
|
|
|
|
|
|
|
|
|
763 |
$row = $table->getFirstRow();
|
764 |
foreach ($numericArchives->getFirstRow() as $name => $value) {
|
765 |
$row->setColumn($name, $value);
|
752 |
|
753 |
$table->setAllTableMetadata($numericArchives->getAllTableMetadata());
|
754 |
|
|
|
|
|
|
|
|
|
755 |
if ($numericArchives->getRowsCount() == 0) {
|
756 |
return;
|
757 |
}
|
758 |
|
759 |
+
if ($table->getRowsCountWithoutSummaryRow() == 0) {
|
760 |
+
$table->addRow(new DataTable\Row());
|
761 |
+
}
|
762 |
+
|
763 |
$row = $table->getFirstRow();
|
764 |
foreach ($numericArchives->getFirstRow() as $name => $value) {
|
765 |
$row->setColumn($name, $value);
|
app/plugins/Referrers/Referrers.php
CHANGED
@@ -90,6 +90,8 @@ class Referrers extends \Piwik\Plugin
|
|
90 |
$translationKeys[] = 'Referrers_CampaignGroupHelp';
|
91 |
$translationKeys[] = 'Referrers_CampaignPlacement';
|
92 |
$translationKeys[] = 'Referrers_CampaignPlacementHelp';
|
|
|
|
|
93 |
$translationKeys[] = 'Referrers_CampaignPageUrlHelp';
|
94 |
$translationKeys[] = 'Referrers_CampaignNameHelp';
|
95 |
$translationKeys[] = 'Referrers_CampaignKeywordHelp';
|
90 |
$translationKeys[] = 'Referrers_CampaignGroupHelp';
|
91 |
$translationKeys[] = 'Referrers_CampaignPlacement';
|
92 |
$translationKeys[] = 'Referrers_CampaignPlacementHelp';
|
93 |
+
$translationKeys[] = 'Referrers_CampaignId';
|
94 |
+
$translationKeys[] = 'Referrers_CampaignIdHelp';
|
95 |
$translationKeys[] = 'Referrers_CampaignPageUrlHelp';
|
96 |
$translationKeys[] = 'Referrers_CampaignNameHelp';
|
97 |
$translationKeys[] = 'Referrers_CampaignKeywordHelp';
|
app/plugins/Referrers/angularjs/campaign-builder/campaign-builder.directive.html
CHANGED
@@ -40,6 +40,13 @@
|
|
40 |
inline-help="{{'Goals_Optional'|translate}} {{'Referrers_CampaignContentHelp'|translate}}">
|
41 |
</div>
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<div piwik-field uicontrol="text" name="campaigngroup"
|
44 |
data-title="{{ 'Referrers_CampaignGroup'|translate }}"
|
45 |
ng-model="campaignBuilder.campaignGroup"
|
40 |
inline-help="{{'Goals_Optional'|translate}} {{'Referrers_CampaignContentHelp'|translate}}">
|
41 |
</div>
|
42 |
|
43 |
+
<div piwik-field uicontrol="text" name="campaignid"
|
44 |
+
data-title="{{ 'Referrers_CampaignId'|translate }}"
|
45 |
+
ng-model="campaignBuilder.campaignId"
|
46 |
+
ng-show="campaignBuilder.hasExtraPlugin"
|
47 |
+
inline-help="{{'Goals_Optional'|translate}} {{'Referrers_CampaignIdHelp'|translate}}">
|
48 |
+
</div>
|
49 |
+
|
50 |
<div piwik-field uicontrol="text" name="campaigngroup"
|
51 |
data-title="{{ 'Referrers_CampaignGroup'|translate }}"
|
52 |
ng-model="campaignBuilder.campaignGroup"
|
app/plugins/SEO/Metric/Alexa.php
CHANGED
@@ -10,6 +10,7 @@ namespace Piwik\Plugins\SEO\Metric;
|
|
10 |
|
11 |
use Piwik\Http;
|
12 |
use Piwik\NumberFormatter;
|
|
|
13 |
use Psr\Log\LoggerInterface;
|
14 |
|
15 |
/**
|
@@ -43,7 +44,8 @@ class Alexa implements MetricsProvider
|
|
43 |
$value = NumberFormatter::getInstance()->formatNumber($globalRanking);
|
44 |
}
|
45 |
} catch (\Exception $e) {
|
46 |
-
$this->logger->
|
|
|
47 |
}
|
48 |
|
49 |
$logo = "plugins/Morpheus/icons/dist/SEO/alexa.com.png";
|
10 |
|
11 |
use Piwik\Http;
|
12 |
use Piwik\NumberFormatter;
|
13 |
+
use Piwik\Piwik;
|
14 |
use Psr\Log\LoggerInterface;
|
15 |
|
16 |
/**
|
44 |
$value = NumberFormatter::getInstance()->formatNumber($globalRanking);
|
45 |
}
|
46 |
} catch (\Exception $e) {
|
47 |
+
$this->logger->info('Error while getting Alexa SEO stats: {message}', array('message' => $e->getMessage()));
|
48 |
+
$value = Piwik::translate('General_Error');
|
49 |
}
|
50 |
|
51 |
$logo = "plugins/Morpheus/icons/dist/SEO/alexa.com.png";
|
app/plugins/SEO/Metric/Bing.php
CHANGED
@@ -10,6 +10,7 @@ namespace Piwik\Plugins\SEO\Metric;
|
|
10 |
|
11 |
use Piwik\Http;
|
12 |
use Piwik\NumberFormatter;
|
|
|
13 |
use Psr\Log\LoggerInterface;
|
14 |
|
15 |
/**
|
@@ -43,8 +44,8 @@ class Bing implements MetricsProvider
|
|
43 |
$pageCount = 0;
|
44 |
}
|
45 |
} catch (\Exception $e) {
|
46 |
-
$this->logger->
|
47 |
-
$pageCount =
|
48 |
}
|
49 |
|
50 |
$logo = "plugins/Morpheus/icons/dist/SEO/bing.com.png";
|
10 |
|
11 |
use Piwik\Http;
|
12 |
use Piwik\NumberFormatter;
|
13 |
+
use Piwik\Piwik;
|
14 |
use Psr\Log\LoggerInterface;
|
15 |
|
16 |
/**
|
44 |
$pageCount = 0;
|
45 |
}
|
46 |
} catch (\Exception $e) {
|
47 |
+
$this->logger->info('Error while getting Bing SEO stats: {message}', array('message' => $e->getMessage()));
|
48 |
+
$pageCount = Piwik::translate('General_Error');
|
49 |
}
|
50 |
|
51 |
$logo = "plugins/Morpheus/icons/dist/SEO/bing.com.png";
|
app/plugins/SEO/Metric/DomainAge.php
CHANGED
@@ -127,7 +127,7 @@ class DomainAge implements MetricsProvider
|
|
127 |
try {
|
128 |
return $this->getHttpResponse($url);
|
129 |
} catch (\Exception $e) {
|
130 |
-
$this->logger->
|
131 |
return '';
|
132 |
}
|
133 |
}
|
127 |
try {
|
128 |
return $this->getHttpResponse($url);
|
129 |
} catch (\Exception $e) {
|
130 |
+
$this->logger->info('Error while getting SEO stats (domain age): {message}', array('message' => $e->getMessage()));
|
131 |
return '';
|
132 |
}
|
133 |
}
|
app/plugins/SEO/Metric/Google.php
CHANGED
@@ -10,6 +10,7 @@ namespace Piwik\Plugins\SEO\Metric;
|
|
10 |
|
11 |
use Piwik\Http;
|
12 |
use Piwik\NumberFormatter;
|
|
|
13 |
use Psr\Log\LoggerInterface;
|
14 |
|
15 |
/**
|
@@ -56,8 +57,8 @@ class Google implements MetricsProvider
|
|
56 |
return 0;
|
57 |
}
|
58 |
} catch (\Exception $e) {
|
59 |
-
$this->logger->
|
60 |
-
return
|
61 |
}
|
62 |
}
|
63 |
|
10 |
|
11 |
use Piwik\Http;
|
12 |
use Piwik\NumberFormatter;
|
13 |
+
use Piwik\Piwik;
|
14 |
use Psr\Log\LoggerInterface;
|
15 |
|
16 |
/**
|
57 |
return 0;
|
58 |
}
|
59 |
} catch (\Exception $e) {
|
60 |
+
$this->logger->info('Error while getting Google search SEO stats: {message}', array('message' => $e->getMessage()));
|
61 |
+
return Piwik::translate('General_Error');
|
62 |
}
|
63 |
}
|
64 |
|
app/plugins/ScheduledReports/templates/_addReport.twig
CHANGED
@@ -113,16 +113,16 @@
|
|
113 |
ng-show="manageScheduledReport.report.displayFormat == '1' || manageScheduledReport.report.displayFormat == '2' || manageScheduledReport.report.displayFormat == '3'"
|
114 |
>
|
115 |
<div class="col s12">
|
116 |
-
<
|
117 |
-
|
118 |
-
<strong>::</strong>::{{ "{{ manageScheduledReport.getFrequencyPeriodSingle() }}" }}
|
119 |
</label>
|
120 |
</div>
|
121 |
<div class="col s12">
|
122 |
-
<input id="report_evolution_period_for_prev" name="report_evolution_period_for" type="radio" value="prev" ng-model="manageScheduledReport.report.evolutionPeriodFor" />
|
123 |
<label for="report_evolution_period_for_prev">
|
124 |
-
|
125 |
-
<
|
|
|
126 |
</label>
|
127 |
</div>
|
128 |
</div>
|
113 |
ng-show="manageScheduledReport.report.displayFormat == '1' || manageScheduledReport.report.displayFormat == '2' || manageScheduledReport.report.displayFormat == '3'"
|
114 |
>
|
115 |
<div class="col s12">
|
116 |
+
<label for="report_evolution_period_for_each">
|
117 |
+
<input id="report_evolution_period_for_each" name="report_evolution_period_for" type="radio" checked value="each" ng-model="manageScheduledReport.report.evolutionPeriodFor" />
|
118 |
+
<span piwik-translate="ScheduledReports_EvolutionGraphsShowForEachInPeriod"><strong>::</strong>::{{ "{{ manageScheduledReport.getFrequencyPeriodSingle() }}" }}</span>
|
119 |
</label>
|
120 |
</div>
|
121 |
<div class="col s12">
|
|
|
122 |
<label for="report_evolution_period_for_prev">
|
123 |
+
<input id="report_evolution_period_for_prev" name="report_evolution_period_for" type="radio" value="prev" ng-model="manageScheduledReport.report.evolutionPeriodFor" />
|
124 |
+
<span>{{ "{{ 'ScheduledReports_EvolutionGraphsShowForPreviousN'|translate:manageScheduledReport.getFrequencyPeriodPlural() }}" }}:
|
125 |
+
<input type="number" name="report_evolution_period_n" ng-model="manageScheduledReport.report.evolutionPeriodN" /></span>
|
126 |
</label>
|
127 |
</div>
|
128 |
</div>
|
app/plugins/SitesManager/templates/_trackingCodeEmail.twig
CHANGED
@@ -16,6 +16,7 @@ Wix: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-analytics-t
|
|
16 |
SharePoint: https://matomo.org/faq/how-to-install/faq_19424/
|
17 |
Joomla: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-analytics-tracking-code-on-joomla/
|
18 |
Shopify: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/
|
|
|
19 |
|
20 |
** {{ 'SitesManager_Integrations'|translate }}
|
21 |
{{ 'CoreAdminHome_JSTrackingIntro3a'|translate('', '') }}
|
16 |
SharePoint: https://matomo.org/faq/how-to-install/faq_19424/
|
17 |
Joomla: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-analytics-tracking-code-on-joomla/
|
18 |
Shopify: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/
|
19 |
+
Google Tag Manager: https://matomo.org/faq/new-to-piwik/how-do-i-use-matomo-analytics-within-gtm-google-tag-manager/
|
20 |
|
21 |
** {{ 'SitesManager_Integrations'|translate }}
|
22 |
{{ 'CoreAdminHome_JSTrackingIntro3a'|translate('', '') }}
|
app/plugins/SitesManager/templates/siteWithoutData.twig
CHANGED
@@ -50,6 +50,7 @@
|
|
50 |
| <a target="_blank" rel="noreferrer noopener" href='https://matomo.org/faq/how-to-install/faq_19424/'>SharePoint</a>
|
51 |
| <a target="_blank" rel="noreferrer noopener" href='https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-analytics-tracking-code-on-joomla/'>Joomla</a>
|
52 |
| <a target="_blank" rel="noreferrer noopener" href='https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/'>Shopify</a>
|
|
|
53 |
<br >
|
54 |
<br >
|
55 |
{{ 'SitesManager_ExtraInformationNeeded'|translate }}
|
50 |
| <a target="_blank" rel="noreferrer noopener" href='https://matomo.org/faq/how-to-install/faq_19424/'>SharePoint</a>
|
51 |
| <a target="_blank" rel="noreferrer noopener" href='https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-analytics-tracking-code-on-joomla/'>Joomla</a>
|
52 |
| <a target="_blank" rel="noreferrer noopener" href='https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/'>Shopify</a>
|
53 |
+
| <a target="_blank" rel="noreferrer noopener" href='https://matomo.org/faq/new-to-piwik/how-do-i-use-matomo-analytics-within-gtm-google-tag-manager/'>Google Tag Manager</a>
|
54 |
<br >
|
55 |
<br >
|
56 |
{{ 'SitesManager_ExtraInformationNeeded'|translate }}
|
app/plugins/TagManager/Dao/TagsDao.php
CHANGED
@@ -200,7 +200,13 @@ class TagsDao extends BaseDao implements TagManagerDao
|
|
200 |
}
|
201 |
|
202 |
usort($tags, function ($tagA, $tagB) use ($tags) {
|
203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
});
|
205 |
|
206 |
return $tags;
|
200 |
}
|
201 |
|
202 |
usort($tags, function ($tagA, $tagB) use ($tags) {
|
203 |
+
if ($tagA['priority'] === $tagB['priority']) {
|
204 |
+
// for php5 making sure to have same sort order as on php7
|
205 |
+
$indexA = array_search($tagA, $tags);
|
206 |
+
$indexB = array_search($tagB, $tags);
|
207 |
+
return $indexA - $indexB;
|
208 |
+
}
|
209 |
+
return $tagA['priority'] > $tagB['priority'];
|
210 |
});
|
211 |
|
212 |
return $tags;
|
app/plugins/Transitions/API.php
CHANGED
@@ -374,7 +374,7 @@ class API extends \Piwik\Plugin\API
|
|
374 |
|
375 |
foreach ($subData as &$row) {
|
376 |
if ($referrerType == Common::REFERRER_TYPE_SEARCH_ENGINE && empty($row['referrer_data'])) {
|
377 |
-
$row['referrer_data'] =
|
378 |
}
|
379 |
|
380 |
$referrerData[$referrerType][Metrics::INDEX_NB_VISITS] += $row[Metrics::INDEX_NB_VISITS];
|
374 |
|
375 |
foreach ($subData as &$row) {
|
376 |
if ($referrerType == Common::REFERRER_TYPE_SEARCH_ENGINE && empty($row['referrer_data'])) {
|
377 |
+
$row['referrer_data'] = Piwik::translate('General_Unknown');
|
378 |
}
|
379 |
|
380 |
$referrerData[$referrerType][Metrics::INDEX_NB_VISITS] += $row[Metrics::INDEX_NB_VISITS];
|
app/plugins/UserCountry/Columns/Provider.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Matomo - free/libre analytics platform
|
4 |
-
*
|
5 |
-
* @link https://matomo.org
|
6 |
-
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
7 |
-
*
|
8 |
-
*/
|
9 |
-
namespace Piwik\Plugins\UserCountry\Columns;
|
10 |
-
|
11 |
-
use Piwik\Plugin\Manager;
|
12 |
-
use Piwik\Plugins\UserCountry\LocationProvider;
|
13 |
-
use Piwik\Tracker\Visitor;
|
14 |
-
use Piwik\Tracker\Action;
|
15 |
-
use Piwik\Tracker\Request;
|
16 |
-
|
17 |
-
class Provider extends Base
|
18 |
-
{
|
19 |
-
protected $columnName = 'location_provider';
|
20 |
-
protected $type = self::TYPE_TEXT;
|
21 |
-
protected $category = 'UserCountry_VisitLocation';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @param Request $request
|
25 |
-
* @param Visitor $visitor
|
26 |
-
* @param Action|null $action
|
27 |
-
* @return mixed
|
28 |
-
*/
|
29 |
-
public function onNewVisit(Request $request, Visitor $visitor, $action)
|
30 |
-
{
|
31 |
-
if (!Manager::getInstance()->isPluginInstalled('Provider')) {
|
32 |
-
return false;
|
33 |
-
}
|
34 |
-
|
35 |
-
$userInfo = $this->getUserInfo($request, $visitor);
|
36 |
-
|
37 |
-
$isp = $this->getLocationDetail($userInfo, LocationProvider::ISP_KEY);
|
38 |
-
$org = $this->getLocationDetail($userInfo, LocationProvider::ORG_KEY);
|
39 |
-
|
40 |
-
// if the location has provider/organization info, set it
|
41 |
-
if (!empty($isp)) {
|
42 |
-
$providerValue = $isp;
|
43 |
-
|
44 |
-
// if the org is set and not the same as the isp, add it to the provider value
|
45 |
-
if (!empty($org) && $org != $providerValue) {
|
46 |
-
$providerValue .= ' - ' . $org;
|
47 |
-
}
|
48 |
-
|
49 |
-
return $providerValue;
|
50 |
-
}
|
51 |
-
|
52 |
-
if (!empty($org)) {
|
53 |
-
return $org;
|
54 |
-
}
|
55 |
-
|
56 |
-
return false;
|
57 |
-
}
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/plugins/UserCountry/Controller.php
CHANGED
@@ -11,6 +11,7 @@ namespace Piwik\Plugins\UserCountry;
|
|
11 |
use Exception;
|
12 |
use Piwik\Common;
|
13 |
use Piwik\IP;
|
|
|
14 |
use Piwik\Piwik;
|
15 |
use Piwik\Plugin\Manager;
|
16 |
use Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2;
|
@@ -45,6 +46,35 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
|
|
45 |
$view->thisIP = IP::getIpFromHeader();
|
46 |
$view->hasGeoIp2Provider = Manager::getInstance()->isPluginActivated('GeoIp2');
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
// check if there is a working provider (that isn't the default one)
|
49 |
$isThereWorkingProvider = false;
|
50 |
foreach ($allProviderInfo as $id => $provider) {
|
11 |
use Exception;
|
12 |
use Piwik\Common;
|
13 |
use Piwik\IP;
|
14 |
+
use Piwik\Notification;
|
15 |
use Piwik\Piwik;
|
16 |
use Piwik\Plugin\Manager;
|
17 |
use Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2;
|
46 |
$view->thisIP = IP::getIpFromHeader();
|
47 |
$view->hasGeoIp2Provider = Manager::getInstance()->isPluginActivated('GeoIp2');
|
48 |
|
49 |
+
if (!LocationProvider::getCurrentProvider()) {
|
50 |
+
$provider = LocationProvider::getProviderById(LocationProvider::getCurrentProviderId());
|
51 |
+
|
52 |
+
if ($provider) {
|
53 |
+
$message = Piwik::translate('UserCountry_GeolocationProviderBroken', '<strong>' . $provider->getInfo()['title'] . '</strong>');
|
54 |
+
} else {
|
55 |
+
$message = Piwik::translate('UserCountry_GeolocationProviderUnavailable', '<strong>' . LocationProvider::getCurrentProviderId() . '</strong>');
|
56 |
+
}
|
57 |
+
|
58 |
+
$notification = new Notification($message);
|
59 |
+
$notification->context = Notification::CONTEXT_ERROR;
|
60 |
+
$notification->raw = true;
|
61 |
+
Notification\Manager::notify('UserCountry_GeoLocationProviderBroken', $notification);
|
62 |
+
} else {
|
63 |
+
$isWorking = LocationProvider::getCurrentProvider()->isWorking();
|
64 |
+
if (true !== $isWorking) {
|
65 |
+
$message = Piwik::translate('UserCountry_GeolocationProviderBroken', '<strong>' . LocationProvider::getCurrentProvider()->getInfo()['title'] . '</strong>');
|
66 |
+
|
67 |
+
if ($isWorking) {
|
68 |
+
$message .= '<br /><br />' . $isWorking;
|
69 |
+
}
|
70 |
+
|
71 |
+
$notification = new Notification($message);
|
72 |
+
$notification->context = Notification::CONTEXT_ERROR;
|
73 |
+
$notification->raw = true;
|
74 |
+
Notification\Manager::notify('UserCountry_GeoLocationProviderBroken', $notification);
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
// check if there is a working provider (that isn't the default one)
|
79 |
$isThereWorkingProvider = false;
|
80 |
foreach ($allProviderInfo as $id => $provider) {
|
app/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php
CHANGED
@@ -8,10 +8,9 @@
|
|
8 |
namespace Piwik\Plugins\UserCountry\Diagnostic;
|
9 |
|
10 |
use Piwik\Config;
|
11 |
-
use Piwik\
|
12 |
use Piwik\Plugins\Diagnostics\Diagnostic\Diagnostic;
|
13 |
use Piwik\Plugins\Diagnostics\Diagnostic\DiagnosticResult;
|
14 |
-
use Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2;
|
15 |
use Piwik\Plugins\UserCountry\LocationProvider;
|
16 |
use Piwik\Translation\Translator;
|
17 |
|
@@ -32,9 +31,9 @@ class GeolocationDiagnostic implements Diagnostic
|
|
32 |
|
33 |
public function execute()
|
34 |
{
|
35 |
-
$
|
36 |
-
if ($
|
37 |
-
// Skip the diagnostic if
|
38 |
return array();
|
39 |
}
|
40 |
|
@@ -42,28 +41,36 @@ class GeolocationDiagnostic implements Diagnostic
|
|
42 |
|
43 |
$currentProviderId = LocationProvider::getCurrentProviderId();
|
44 |
$allProviders = LocationProvider::getAllProviderInfo();
|
45 |
-
$isNotRecommendedProvider = in_array($currentProviderId, array(
|
46 |
-
LocationProvider\DefaultProvider::ID,
|
47 |
-
GeoIp2\ServerModule::ID));
|
48 |
-
$isProviderInstalled = (isset($allProviders[$currentProviderId]['status']) && $allProviders[$currentProviderId]['status'] == LocationProvider::INSTALLED);
|
49 |
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
-
if ($
|
55 |
-
$
|
56 |
-
$message = 'GeoIp2_LocationProviderDesc_ServerModule2';
|
57 |
-
$comment .= $this->translator->translate($message, array(
|
58 |
-
'<a href="https://matomo.org/docs/geo-locate/" rel="noreferrer noopener" target="_blank">', '', '', '</a>'
|
59 |
-
));
|
60 |
-
} else {
|
61 |
-
$comment = $this->translator->translate('UserCountry_DefaultLocationProviderDesc1') . ' ';
|
62 |
-
$comment .= $this->translator->translate('UserCountry_DefaultLocationProviderDesc2', array(
|
63 |
-
'<a href="https://matomo.org/docs/geo-locate/" rel="noreferrer noopener" target="_blank">', '', '', '</a>'
|
64 |
-
));
|
65 |
}
|
66 |
|
67 |
-
return
|
68 |
}
|
69 |
}
|
8 |
namespace Piwik\Plugins\UserCountry\Diagnostic;
|
9 |
|
10 |
use Piwik\Config;
|
11 |
+
use Piwik\Piwik;
|
12 |
use Piwik\Plugins\Diagnostics\Diagnostic\Diagnostic;
|
13 |
use Piwik\Plugins\Diagnostics\Diagnostic\DiagnosticResult;
|
|
|
14 |
use Piwik\Plugins\UserCountry\LocationProvider;
|
15 |
use Piwik\Translation\Translator;
|
16 |
|
31 |
|
32 |
public function execute()
|
33 |
{
|
34 |
+
$isMatomoInstalling = !Config::getInstance()->existsLocalConfig();
|
35 |
+
if ($isMatomoInstalling) {
|
36 |
+
// Skip the diagnostic if Matomo is being installed
|
37 |
return array();
|
38 |
}
|
39 |
|
41 |
|
42 |
$currentProviderId = LocationProvider::getCurrentProviderId();
|
43 |
$allProviders = LocationProvider::getAllProviderInfo();
|
|
|
|
|
|
|
|
|
44 |
|
45 |
+
$providerStatus = $allProviders[$currentProviderId]['status'] ?? LocationProvider::NOT_INSTALLED;
|
46 |
+
|
47 |
+
$providerWarning = $allProviders[$currentProviderId]['usageWarning'] ?? null;
|
48 |
+
$statusMessage = $allProviders[$currentProviderId]['statusMessage'] ?? null;
|
49 |
+
|
50 |
+
if ($providerStatus === LocationProvider::BROKEN) {
|
51 |
+
$message = Piwik::translate('UserCountry_GeolocationProviderBroken', '<strong>' . $allProviders[$currentProviderId]['title'] . '</strong>');
|
52 |
+
if ($statusMessage) {
|
53 |
+
$message .= '<br /><br />' . $statusMessage;
|
54 |
+
}
|
55 |
+
return [DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_ERROR, $message)];
|
56 |
+
}
|
57 |
+
|
58 |
+
if ($providerStatus === LocationProvider::NOT_INSTALLED) {
|
59 |
+
$provider = $allProviders[$currentProviderId] ?? null;
|
60 |
+
|
61 |
+
if ($provider) {
|
62 |
+
$message = Piwik::translate('UserCountry_GeolocationProviderBroken', '<strong>' . $allProviders[$currentProviderId]['title'] . '</strong>');
|
63 |
+
} else {
|
64 |
+
$message = Piwik::translate('UserCountry_GeolocationProviderUnavailable', '<strong>' . LocationProvider::getCurrentProviderId() . '</strong>');
|
65 |
+
}
|
66 |
+
|
67 |
+
return [DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_ERROR, $message)];
|
68 |
}
|
69 |
|
70 |
+
if (!empty($providerWarning)) {
|
71 |
+
return [DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_WARNING, $providerWarning)];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
+
return [DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_OK)];
|
75 |
}
|
76 |
}
|
app/plugins/UserCountry/LocationProvider.php
CHANGED
@@ -178,6 +178,16 @@ abstract class LocationProvider
|
|
178 |
return true;
|
179 |
}
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
/**
|
182 |
* Returns every available provider instance.
|
183 |
*
|
@@ -299,6 +309,7 @@ abstract class LocationProvider
|
|
299 |
$info['statusMessage'] = $statusMessage;
|
300 |
$info['location'] = $location;
|
301 |
$info['isVisible'] = $provider->isVisible();
|
|
|
302 |
|
303 |
$allInfo[$info['order']] = $info;
|
304 |
}
|
178 |
return true;
|
179 |
}
|
180 |
|
181 |
+
/**
|
182 |
+
* Returns a message that should be shown as diagnostics warning if provider is used
|
183 |
+
*
|
184 |
+
* @return null|string
|
185 |
+
*/
|
186 |
+
public function getUsageWarning(): ?string
|
187 |
+
{
|
188 |
+
return null;
|
189 |
+
}
|
190 |
+
|
191 |
/**
|
192 |
* Returns every available provider instance.
|
193 |
*
|
309 |
$info['statusMessage'] = $statusMessage;
|
310 |
$info['location'] = $location;
|
311 |
$info['isVisible'] = $provider->isVisible();
|
312 |
+
$info['usageWarning'] = $provider->getUsageWarning();
|
313 |
|
314 |
$allInfo[$info['order']] = $info;
|
315 |
}
|
app/plugins/UserCountry/LocationProvider/DefaultProvider.php
CHANGED
@@ -109,5 +109,15 @@ class DefaultProvider extends LocationProvider
|
|
109 |
. '</a></p>';
|
110 |
return array('id' => self::ID, 'title' => self::TITLE, 'description' => $desc, 'order' => 1);
|
111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
}
|
113 |
|
109 |
. '</a></p>';
|
110 |
return array('id' => self::ID, 'title' => self::TITLE, 'description' => $desc, 'order' => 1);
|
111 |
}
|
112 |
+
|
113 |
+
public function getUsageWarning(): ?string
|
114 |
+
{
|
115 |
+
$comment = Piwik::translate('UserCountry_DefaultLocationProviderDesc1') . ' ';
|
116 |
+
$comment .= Piwik::translate('UserCountry_DefaultLocationProviderDesc2', array(
|
117 |
+
'<a href="https://matomo.org/docs/geo-locate/" rel="noreferrer noopener" target="_blank">', '', '', '</a>'
|
118 |
+
));
|
119 |
+
|
120 |
+
return $comment;
|
121 |
+
}
|
122 |
}
|
123 |
|
app/plugins/UsersManager/Model.php
CHANGED
@@ -19,6 +19,7 @@ use Piwik\Plugins\SitesManager\SitesManager;
|
|
19 |
use Piwik\Plugins\UsersManager\Sql\SiteAccessFilter;
|
20 |
use Piwik\Plugins\UsersManager\Sql\UserTableFilter;
|
21 |
use Piwik\SettingsPiwik;
|
|
|
22 |
use Piwik\Validators\BaseValidator;
|
23 |
use Piwik\Validators\CharacterLength;
|
24 |
use Piwik\Validators\NotEmpty;
|
@@ -388,6 +389,16 @@ class Model
|
|
388 |
{
|
389 |
$token = $this->getTokenByTokenAuth($tokenAuth);
|
390 |
if (!empty($token)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
$this->updateTokenAuthTable($token['idusertokenauth'], array(
|
392 |
'last_used' => $dateLastUsed
|
393 |
));
|
19 |
use Piwik\Plugins\UsersManager\Sql\SiteAccessFilter;
|
20 |
use Piwik\Plugins\UsersManager\Sql\UserTableFilter;
|
21 |
use Piwik\SettingsPiwik;
|
22 |
+
use Piwik\SettingsServer;
|
23 |
use Piwik\Validators\BaseValidator;
|
24 |
use Piwik\Validators\CharacterLength;
|
25 |
use Piwik\Validators\NotEmpty;
|
389 |
{
|
390 |
$token = $this->getTokenByTokenAuth($tokenAuth);
|
391 |
if (!empty($token)) {
|
392 |
+
|
393 |
+
$lastUsage = !empty($token['last_used']) ? strtotime($token['last_used']) : 0;
|
394 |
+
$newUsage = strtotime($dateLastUsed);
|
395 |
+
|
396 |
+
// update token usage only every 10 minutes to avoid table locks when multiple requests with the same token are made
|
397 |
+
// see https://github.com/matomo-org/matomo/issues/16924
|
398 |
+
if ($lastUsage > $newUsage - 600) {
|
399 |
+
return;
|
400 |
+
}
|
401 |
+
|
402 |
$this->updateTokenAuthTable($token['idusertokenauth'], array(
|
403 |
'last_used' => $dateLastUsed
|
404 |
));
|
app/vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitbca50353402dfe6dd0703749723d31b9::getLoader();
|
app/vendor/bin/lessc
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env php
|
2 |
+
<?php
|
3 |
+
|
4 |
+
require_once dirname(__FILE__) . '/../lib/Less/Autoloader.php';
|
5 |
+
Less_Autoloader::register();
|
6 |
+
|
7 |
+
// Create our environment
|
8 |
+
$env = array('compress' => false, 'relativeUrls' => false);
|
9 |
+
$silent = false;
|
10 |
+
$watch = false;
|
11 |
+
$rootpath = '';
|
12 |
+
|
13 |
+
// Check for arguments
|
14 |
+
array_shift($argv);
|
15 |
+
if (!count($argv)) {
|
16 |
+
$argv[] = '-h';
|
17 |
+
}
|
18 |
+
|
19 |
+
// parse arguments
|
20 |
+
foreach ($argv as $key => $arg) {
|
21 |
+
if (preg_match('/^--?([a-z][0-9a-z-]*)(?:=([^\s]+))?$/i', $arg, $matches)) {
|
22 |
+
$option = $matches[1];
|
23 |
+
$value = isset($matches[2]) ? $matches[2] : false;
|
24 |
+
unset($argv[$key]);
|
25 |
+
|
26 |
+
switch ($option) {
|
27 |
+
case 'h':
|
28 |
+
case 'help':
|
29 |
+
echo <<<EOD
|
30 |
+
Usage: lessc [options] sources [destination]
|
31 |
+
|
32 |
+
-h, --help Print help (this message) and exit.
|
33 |
+
-s, --silent Suppress output of error messages.
|
34 |
+
-v, --version Print version number and exit.
|
35 |
+
-x, --compress Compress output by removing some whitespaces.
|
36 |
+
--include-path=PATHS Set include paths. Separated by `:'. Use `;' on Windows.
|
37 |
+
--strict-imports Force evaluation of imports.
|
38 |
+
-sm=on|off Turn on or off strict math, where in strict mode, math
|
39 |
+
--strict-math=on|off requires brackets. This option may default to on and then
|
40 |
+
be removed in the future.
|
41 |
+
-su=on|off Allow mixed units, e.g. 1px+1em or 1px*1px which have units
|
42 |
+
--strict-units=on|off that cannot be represented.
|
43 |
+
-ru, --relative-urls re-write relative urls to the base less file.
|
44 |
+
-rp, --rootpath=URL Set rootpath for url rewriting in relative imports and urls.
|
45 |
+
Works with or without the relative-urls option.
|
46 |
+
-w, --watch Watch input files for changes.
|
47 |
+
|
48 |
+
|
49 |
+
EOD;
|
50 |
+
exit;
|
51 |
+
case 's':
|
52 |
+
case 'silent':
|
53 |
+
$silent = true;
|
54 |
+
break;
|
55 |
+
|
56 |
+
case 'w':
|
57 |
+
case 'watch':
|
58 |
+
$watch = true;
|
59 |
+
break;
|
60 |
+
|
61 |
+
case 'v':
|
62 |
+
case 'version':
|
63 |
+
echo "lessc " . Less_Version::version . " (less.php)\n\n";
|
64 |
+
exit;
|
65 |
+
|
66 |
+
case 'rp':
|
67 |
+
case 'rootpath':
|
68 |
+
$rootpath = $value;
|
69 |
+
break;
|
70 |
+
|
71 |
+
|
72 |
+
//parser options
|
73 |
+
case 'compress':
|
74 |
+
$env['compress'] = true;
|
75 |
+
break;
|
76 |
+
|
77 |
+
case 'ru':
|
78 |
+
case 'relative-urls':
|
79 |
+
$env['relativeUrls'] = true;
|
80 |
+
break;
|
81 |
+
|
82 |
+
case 'su':
|
83 |
+
case 'strict-units':
|
84 |
+
$env['strictUnits'] = ($value === 'on');
|
85 |
+
break;
|
86 |
+
|
87 |
+
case 'sm':
|
88 |
+
case 'strict-math':
|
89 |
+
$env['strictMath'] = ($value === 'on');
|
90 |
+
break;
|
91 |
+
|
92 |
+
case 'x':
|
93 |
+
case 'include-path':
|
94 |
+
$env['import_dirs'] = preg_split('#;|\:#', $value);
|
95 |
+
break;
|
96 |
+
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
if (count($argv) > 1) {
|
102 |
+
$output = array_pop($argv);
|
103 |
+
$inputs = $argv;
|
104 |
+
}
|
105 |
+
else {
|
106 |
+
$inputs = $argv;
|
107 |
+
$output = false;
|
108 |
+
}
|
109 |
+
|
110 |
+
if (!count($inputs)) {
|
111 |
+
echo("lessc: no input files\n");
|
112 |
+
exit;
|
113 |
+
}
|
114 |
+
|
115 |
+
if ($watch) {
|
116 |
+
if (!$output) {
|
117 |
+
echo("lessc: you must specify the output file if --watch is given\n");
|
118 |
+
exit;
|
119 |
+
}
|
120 |
+
|
121 |
+
$lastAction = 0;
|
122 |
+
|
123 |
+
echo("lessc: watching input files\n");
|
124 |
+
|
125 |
+
while (1) {
|
126 |
+
clearstatcache();
|
127 |
+
|
128 |
+
$updated = false;
|
129 |
+
foreach ($inputs as $input) {
|
130 |
+
if ($input == '-') {
|
131 |
+
if (count($inputs) == 1) {
|
132 |
+
echo("lessc: during watching files is not possible to watch stdin\n");
|
133 |
+
exit;
|
134 |
+
}
|
135 |
+
else {
|
136 |
+
continue;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
|
140 |
+
if (filemtime($input) > $lastAction) {
|
141 |
+
$updated = true;
|
142 |
+
break;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
if ($updated) {
|
147 |
+
$lastAction = time();
|
148 |
+
$parser = new Less_Parser($env);
|
149 |
+
foreach ($inputs as $input) {
|
150 |
+
try {
|
151 |
+
$parser->parseFile($input, $rootpath);
|
152 |
+
}
|
153 |
+
catch (Exception $e) {
|
154 |
+
echo("lessc: " . $e->getMessage() . " \n");
|
155 |
+
continue; // Invalid processing
|
156 |
+
}
|
157 |
+
}
|
158 |
+
|
159 |
+
file_put_contents($output, $parser->getCss());
|
160 |
+
echo("lessc: output file recompiled\n");
|
161 |
+
}
|
162 |
+
|
163 |
+
sleep(1);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
else {
|
167 |
+
$parser = new Less_Parser($env);
|
168 |
+
foreach ($inputs as $input) {
|
169 |
+
if ($input == '-') {
|
170 |
+
$content = file_get_contents('php://stdin');
|
171 |
+
$parser->parse($content);
|
172 |
+
}
|
173 |
+
else {
|
174 |
+
try {
|
175 |
+
$parser->parseFile($input);
|
176 |
+
}
|
177 |
+
catch (Exception $e) {
|
178 |
+
if (!$silent) {
|
179 |
+
echo("lessc: " . ((string)$e) . " \n");
|
180 |
+
}
|
181 |
+
}
|
182 |
+
}
|
183 |
+
}
|
184 |
+
|
185 |
+
if ($output) {
|
186 |
+
file_put_contents($output, $parser->getCss());
|
187 |
+
}
|
188 |
+
else {
|
189 |
+
echo $parser->getCss();
|
190 |
+
}
|
191 |
+
}
|
app/vendor/composer/InstalledVersions.php
CHANGED
@@ -24,12 +24,12 @@ class InstalledVersions
|
|
24 |
private static $installed = array (
|
25 |
'root' =>
|
26 |
array (
|
27 |
-
'pretty_version' => '4.0
|
28 |
-
'version' => '4.0.
|
29 |
'aliases' =>
|
30 |
array (
|
31 |
),
|
32 |
-
'reference' => '
|
33 |
'name' => 'matomo/matomo',
|
34 |
),
|
35 |
'versions' =>
|
@@ -79,15 +79,6 @@ private static $installed = array (
|
|
79 |
),
|
80 |
'reference' => 'd01be5894a5c1a3381c58c9b1795cd07f96c30f7',
|
81 |
),
|
82 |
-
'leafo/lessphp' =>
|
83 |
-
array (
|
84 |
-
'pretty_version' => 'dev-php74-compat',
|
85 |
-
'version' => 'dev-php74-compat',
|
86 |
-
'aliases' =>
|
87 |
-
array (
|
88 |
-
),
|
89 |
-
'reference' => '1c1bf226f6d394f28cc676a6c2893556a5dcb495',
|
90 |
-
),
|
91 |
'matomo/cache' =>
|
92 |
array (
|
93 |
'pretty_version' => '2.0.2',
|
@@ -126,12 +117,12 @@ private static $installed = array (
|
|
126 |
),
|
127 |
'matomo/matomo' =>
|
128 |
array (
|
129 |
-
'pretty_version' => '4.0
|
130 |
-
'version' => '4.0.
|
131 |
'aliases' =>
|
132 |
array (
|
133 |
),
|
134 |
-
'reference' => '
|
135 |
),
|
136 |
'matomo/matomo-php-tracker' =>
|
137 |
array (
|
@@ -477,6 +468,15 @@ private static $installed = array (
|
|
477 |
),
|
478 |
'reference' => 'b02fa41f3783a2616eccef7b92fbc2343ffed737',
|
479 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
),
|
481 |
);
|
482 |
|
24 |
private static $installed = array (
|
25 |
'root' =>
|
26 |
array (
|
27 |
+
'pretty_version' => '4.1.0-rc2',
|
28 |
+
'version' => '4.1.0.0-RC2',
|
29 |
'aliases' =>
|
30 |
array (
|
31 |
),
|
32 |
+
'reference' => '2cb0cb8f9202deae21f93ef2368d5fe9f683d380',
|
33 |
'name' => 'matomo/matomo',
|
34 |
),
|
35 |
'versions' =>
|
79 |
),
|
80 |
'reference' => 'd01be5894a5c1a3381c58c9b1795cd07f96c30f7',
|
81 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
'matomo/cache' =>
|
83 |
array (
|
84 |
'pretty_version' => '2.0.2',
|
117 |
),
|
118 |
'matomo/matomo' =>
|
119 |
array (
|
120 |
+
'pretty_version' => '4.1.0-rc2',
|
121 |
+
'version' => '4.1.0.0-RC2',
|
122 |
'aliases' =>
|
123 |
array (
|
124 |
),
|
125 |
+
'reference' => '2cb0cb8f9202deae21f93ef2368d5fe9f683d380',
|
126 |
),
|
127 |
'matomo/matomo-php-tracker' =>
|
128 |
array (
|
468 |
),
|
469 |
'reference' => 'b02fa41f3783a2616eccef7b92fbc2343ffed737',
|
470 |
),
|
471 |
+
'wikimedia/less.php' =>
|
472 |
+
array (
|
473 |
+
'pretty_version' => 'v3.1.0',
|
474 |
+
'version' => '3.1.0.0',
|
475 |
+
'aliases' =>
|
476 |
+
array (
|
477 |
+
),
|
478 |
+
'reference' => 'a486d78b9bd16b72f237fc6093aa56d69ce8bd13',
|
479 |
+
),
|
480 |
),
|
481 |
);
|
482 |
|
app/vendor/composer/autoload_classmap.php
CHANGED
@@ -277,6 +277,65 @@ return array(
|
|
277 |
'Invoker\\ParameterResolver\\TypeHintResolver' => $vendorDir . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php',
|
278 |
'Invoker\\Reflection\\CallableReflection' => $vendorDir . '/php-di/invoker/src/Reflection/CallableReflection.php',
|
279 |
'JShrink\\Minifier' => $vendorDir . '/tedivm/jshrink/src/JShrink/Minifier.php',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
'MatomoTracker' => $vendorDir . '/matomo/matomo-php-tracker/MatomoTracker.php',
|
281 |
'Matomo\\Cache\\Backend' => $vendorDir . '/matomo/cache/src/Backend.php',
|
282 |
'Matomo\\Cache\\Backend\\ArrayCache' => $vendorDir . '/matomo/cache/src/Backend/ArrayCache.php',
|
@@ -2245,7 +2304,6 @@ return array(
|
|
2245 |
'Piwik\\Plugins\\UserCountry\\Columns\\Country' => $baseDir . '/plugins/UserCountry/Columns/Country.php',
|
2246 |
'Piwik\\Plugins\\UserCountry\\Columns\\Latitude' => $baseDir . '/plugins/UserCountry/Columns/Latitude.php',
|
2247 |
'Piwik\\Plugins\\UserCountry\\Columns\\Longitude' => $baseDir . '/plugins/UserCountry/Columns/Longitude.php',
|
2248 |
-
'Piwik\\Plugins\\UserCountry\\Columns\\Provider' => $baseDir . '/plugins/UserCountry/Columns/Provider.php',
|
2249 |
'Piwik\\Plugins\\UserCountry\\Columns\\Region' => $baseDir . '/plugins/UserCountry/Columns/Region.php',
|
2250 |
'Piwik\\Plugins\\UserCountry\\Commands\\AttributeHistoricalDataWithLocations' => $baseDir . '/plugins/UserCountry/Commands/AttributeHistoricalDataWithLocations.php',
|
2251 |
'Piwik\\Plugins\\UserCountry\\Controller' => $baseDir . '/plugins/UserCountry/Controller.php',
|
@@ -2934,9 +2992,5 @@ return array(
|
|
2934 |
'Zend_Session_Validator_HttpUserAgent' => $baseDir . '/libs/Zend/Session/Validator/HttpUserAgent.php',
|
2935 |
'Zend_Session_Validator_Interface' => $baseDir . '/libs/Zend/Session/Validator/Interface.php',
|
2936 |
'Zend_Version' => $baseDir . '/libs/Zend/Version.php',
|
2937 |
-
'lessc' => $vendorDir . '/
|
2938 |
-
'lessc_formatter_classic' => $vendorDir . '/leafo/lessphp/lessc.inc.php',
|
2939 |
-
'lessc_formatter_compressed' => $vendorDir . '/leafo/lessphp/lessc.inc.php',
|
2940 |
-
'lessc_formatter_lessjs' => $vendorDir . '/leafo/lessphp/lessc.inc.php',
|
2941 |
-
'lessc_parser' => $vendorDir . '/leafo/lessphp/lessc.inc.php',
|
2942 |
);
|
277 |
'Invoker\\ParameterResolver\\TypeHintResolver' => $vendorDir . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php',
|
278 |
'Invoker\\Reflection\\CallableReflection' => $vendorDir . '/php-di/invoker/src/Reflection/CallableReflection.php',
|
279 |
'JShrink\\Minifier' => $vendorDir . '/tedivm/jshrink/src/JShrink/Minifier.php',
|
280 |
+
'Less_Autoloader' => $vendorDir . '/wikimedia/less.php/lib/Less/Autoloader.php',
|
281 |
+
'Less_Cache' => $vendorDir . '/wikimedia/less.php/lib/Less/Cache.php',
|
282 |
+
'Less_Colors' => $vendorDir . '/wikimedia/less.php/lib/Less/Colors.php',
|
283 |
+
'Less_Configurable' => $vendorDir . '/wikimedia/less.php/lib/Less/Configurable.php',
|
284 |
+
'Less_Environment' => $vendorDir . '/wikimedia/less.php/lib/Less/Environment.php',
|
285 |
+
'Less_Exception_Chunk' => $vendorDir . '/wikimedia/less.php/lib/Less/Exception/Chunk.php',
|
286 |
+
'Less_Exception_Compiler' => $vendorDir . '/wikimedia/less.php/lib/Less/Exception/Compiler.php',
|
287 |
+
'Less_Exception_Parser' => $vendorDir . '/wikimedia/less.php/lib/Less/Exception/Parser.php',
|
288 |
+
'Less_Functions' => $vendorDir . '/wikimedia/less.php/lib/Less/Functions.php',
|
289 |
+
'Less_Mime' => $vendorDir . '/wikimedia/less.php/lib/Less/Mime.php',
|
290 |
+
'Less_Output' => $vendorDir . '/wikimedia/less.php/lib/Less/Output.php',
|
291 |
+
'Less_Output_Mapped' => $vendorDir . '/wikimedia/less.php/lib/Less/Output/Mapped.php',
|
292 |
+
'Less_Parser' => $vendorDir . '/wikimedia/less.php/lib/Less/Parser.php',
|
293 |
+
'Less_SourceMap_Base64VLQ' => $vendorDir . '/wikimedia/less.php/lib/Less/SourceMap/Base64VLQ.php',
|
294 |
+
'Less_SourceMap_Generator' => $vendorDir . '/wikimedia/less.php/lib/Less/SourceMap/Generator.php',
|
295 |
+
'Less_Tree' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree.php',
|
296 |
+
'Less_Tree_Alpha' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Alpha.php',
|
297 |
+
'Less_Tree_Anonymous' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Anonymous.php',
|
298 |
+
'Less_Tree_Assignment' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Assignment.php',
|
299 |
+
'Less_Tree_Attribute' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Attribute.php',
|
300 |
+
'Less_Tree_Call' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Call.php',
|
301 |
+
'Less_Tree_Color' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Color.php',
|
302 |
+
'Less_Tree_Comment' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Comment.php',
|
303 |
+
'Less_Tree_Condition' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Condition.php',
|
304 |
+
'Less_Tree_DefaultFunc' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/DefaultFunc.php',
|
305 |
+
'Less_Tree_DetachedRuleset' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/DetachedRuleset.php',
|
306 |
+
'Less_Tree_Dimension' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Dimension.php',
|
307 |
+
'Less_Tree_Directive' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Directive.php',
|
308 |
+
'Less_Tree_Element' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Element.php',
|
309 |
+
'Less_Tree_Expression' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Expression.php',
|
310 |
+
'Less_Tree_Extend' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Extend.php',
|
311 |
+
'Less_Tree_Import' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Import.php',
|
312 |
+
'Less_Tree_Javascript' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Javascript.php',
|
313 |
+
'Less_Tree_Keyword' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Keyword.php',
|
314 |
+
'Less_Tree_Media' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Media.php',
|
315 |
+
'Less_Tree_Mixin_Call' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Mixin/Call.php',
|
316 |
+
'Less_Tree_Mixin_Definition' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php',
|
317 |
+
'Less_Tree_NameValue' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/NameValue.php',
|
318 |
+
'Less_Tree_Negative' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Negative.php',
|
319 |
+
'Less_Tree_Operation' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Operation.php',
|
320 |
+
'Less_Tree_Paren' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Paren.php',
|
321 |
+
'Less_Tree_Quoted' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Quoted.php',
|
322 |
+
'Less_Tree_Rule' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Rule.php',
|
323 |
+
'Less_Tree_Ruleset' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Ruleset.php',
|
324 |
+
'Less_Tree_RulesetCall' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/RulesetCall.php',
|
325 |
+
'Less_Tree_Selector' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Selector.php',
|
326 |
+
'Less_Tree_UnicodeDescriptor' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/UnicodeDescriptor.php',
|
327 |
+
'Less_Tree_Unit' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Unit.php',
|
328 |
+
'Less_Tree_UnitConversions' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/UnitConversions.php',
|
329 |
+
'Less_Tree_Url' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Url.php',
|
330 |
+
'Less_Tree_Value' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Value.php',
|
331 |
+
'Less_Tree_Variable' => $vendorDir . '/wikimedia/less.php/lib/Less/Tree/Variable.php',
|
332 |
+
'Less_Version' => $vendorDir . '/wikimedia/less.php/lib/Less/Version.php',
|
333 |
+
'Less_Visitor' => $vendorDir . '/wikimedia/less.php/lib/Less/Visitor.php',
|
334 |
+
'Less_VisitorReplacing' => $vendorDir . '/wikimedia/less.php/lib/Less/VisitorReplacing.php',
|
335 |
+
'Less_Visitor_extendFinder' => $vendorDir . '/wikimedia/less.php/lib/Less/Visitor/extendFinder.php',
|
336 |
+
'Less_Visitor_joinSelector' => $vendorDir . '/wikimedia/less.php/lib/Less/Visitor/joinSelector.php',
|
337 |
+
'Less_Visitor_processExtends' => $vendorDir . '/wikimedia/less.php/lib/Less/Visitor/processExtends.php',
|
338 |
+
'Less_Visitor_toCSS' => $vendorDir . '/wikimedia/less.php/lib/Less/Visitor/toCSS.php',
|
339 |
'MatomoTracker' => $vendorDir . '/matomo/matomo-php-tracker/MatomoTracker.php',
|
340 |
'Matomo\\Cache\\Backend' => $vendorDir . '/matomo/cache/src/Backend.php',
|
341 |
'Matomo\\Cache\\Backend\\ArrayCache' => $vendorDir . '/matomo/cache/src/Backend/ArrayCache.php',
|
2304 |
'Piwik\\Plugins\\UserCountry\\Columns\\Country' => $baseDir . '/plugins/UserCountry/Columns/Country.php',
|
2305 |
'Piwik\\Plugins\\UserCountry\\Columns\\Latitude' => $baseDir . '/plugins/UserCountry/Columns/Latitude.php',
|
2306 |
'Piwik\\Plugins\\UserCountry\\Columns\\Longitude' => $baseDir . '/plugins/UserCountry/Columns/Longitude.php',
|
|
|
2307 |
'Piwik\\Plugins\\UserCountry\\Columns\\Region' => $baseDir . '/plugins/UserCountry/Columns/Region.php',
|
2308 |
'Piwik\\Plugins\\UserCountry\\Commands\\AttributeHistoricalDataWithLocations' => $baseDir . '/plugins/UserCountry/Commands/AttributeHistoricalDataWithLocations.php',
|
2309 |
'Piwik\\Plugins\\UserCountry\\Controller' => $baseDir . '/plugins/UserCountry/Controller.php',
|
2992 |
'Zend_Session_Validator_HttpUserAgent' => $baseDir . '/libs/Zend/Session/Validator/HttpUserAgent.php',
|
2993 |
'Zend_Session_Validator_Interface' => $baseDir . '/libs/Zend/Session/Validator/Interface.php',
|
2994 |
'Zend_Version' => $baseDir . '/libs/Zend/Version.php',
|
2995 |
+
'lessc' => $vendorDir . '/wikimedia/less.php/lessc.inc.php',
|
|
|
|
|
|
|
|
|
2996 |
);
|
app/vendor/composer/autoload_namespaces.php
CHANGED
@@ -11,6 +11,7 @@ return array(
|
|
11 |
'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
|
12 |
'Symfony\\Bridge\\Monolog\\' => array($vendorDir . '/symfony/monolog-bridge'),
|
13 |
'PEAR_' => array($baseDir . '/libs'),
|
|
|
14 |
'JShrink' => array($vendorDir . '/tedivm/jshrink/src'),
|
15 |
'HTML_' => array($baseDir . '/libs'),
|
16 |
'Console' => array($vendorDir . '/pear/console_getopt'),
|
11 |
'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
|
12 |
'Symfony\\Bridge\\Monolog\\' => array($vendorDir . '/symfony/monolog-bridge'),
|
13 |
'PEAR_' => array($baseDir . '/libs'),
|
14 |
+
'Less' => array($vendorDir . '/wikimedia/less.php/lib'),
|
15 |
'JShrink' => array($vendorDir . '/tedivm/jshrink/src'),
|
16 |
'HTML_' => array($baseDir . '/libs'),
|
17 |
'Console' => array($vendorDir . '/pear/console_getopt'),
|
app/vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,9 +22,9 @@ class ComposerAutoloaderInite73d303dda4e084c9efc3d2e6d883365
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$includePaths = require __DIR__ . '/include_paths.php';
|
30 |
$includePaths[] = get_include_path();
|
@@ -34,7 +34,7 @@ class ComposerAutoloaderInite73d303dda4e084c9efc3d2e6d883365
|
|
34 |
if ($useStaticLoader) {
|
35 |
require __DIR__ . '/autoload_static.php';
|
36 |
|
37 |
-
call_user_func(\Composer\Autoload\
|
38 |
} else {
|
39 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
40 |
foreach ($map as $namespace => $path) {
|
@@ -55,19 +55,19 @@ class ComposerAutoloaderInite73d303dda4e084c9efc3d2e6d883365
|
|
55 |
$loader->register(false);
|
56 |
|
57 |
if ($useStaticLoader) {
|
58 |
-
$includeFiles = Composer\Autoload\
|
59 |
} else {
|
60 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
61 |
}
|
62 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
63 |
-
|
64 |
}
|
65 |
|
66 |
return $loader;
|
67 |
}
|
68 |
}
|
69 |
|
70 |
-
function
|
71 |
{
|
72 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
73 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitbca50353402dfe6dd0703749723d31b9
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitbca50353402dfe6dd0703749723d31b9', 'loadClassLoader'), true, false);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitbca50353402dfe6dd0703749723d31b9', 'loadClassLoader'));
|
28 |
|
29 |
$includePaths = require __DIR__ . '/include_paths.php';
|
30 |
$includePaths[] = get_include_path();
|
34 |
if ($useStaticLoader) {
|
35 |
require __DIR__ . '/autoload_static.php';
|
36 |
|
37 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitbca50353402dfe6dd0703749723d31b9::getInitializer($loader));
|
38 |
} else {
|
39 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
40 |
foreach ($map as $namespace => $path) {
|
55 |
$loader->register(false);
|
56 |
|
57 |
if ($useStaticLoader) {
|
58 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitbca50353402dfe6dd0703749723d31b9::$files;
|
59 |
} else {
|
60 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
61 |
}
|
62 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
63 |
+
composerRequirebca50353402dfe6dd0703749723d31b9($fileIdentifier, $file);
|
64 |
}
|
65 |
|
66 |
return $loader;
|
67 |
}
|
68 |
}
|
69 |
|
70 |
+
function composerRequirebca50353402dfe6dd0703749723d31b9($fileIdentifier, $file)
|
71 |
{
|
72 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
73 |
require $file;
|
app/vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'04c6c5c2f7095ccf6c481d3e53e1776f' => __DIR__ . '/..' . '/mustangostang/spyc/Spyc.php',
|
@@ -214,6 +214,13 @@ class ComposerStaticInite73d303dda4e084c9efc3d2e6d883365
|
|
214 |
0 => __DIR__ . '/../..' . '/libs',
|
215 |
),
|
216 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
'J' =>
|
218 |
array (
|
219 |
'JShrink' =>
|
@@ -524,6 +531,65 @@ class ComposerStaticInite73d303dda4e084c9efc3d2e6d883365
|
|
524 |
'Invoker\\ParameterResolver\\TypeHintResolver' => __DIR__ . '/..' . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php',
|
525 |
'Invoker\\Reflection\\CallableReflection' => __DIR__ . '/..' . '/php-di/invoker/src/Reflection/CallableReflection.php',
|
526 |
'JShrink\\Minifier' => __DIR__ . '/..' . '/tedivm/jshrink/src/JShrink/Minifier.php',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
527 |
'MatomoTracker' => __DIR__ . '/..' . '/matomo/matomo-php-tracker/MatomoTracker.php',
|
528 |
'Matomo\\Cache\\Backend' => __DIR__ . '/..' . '/matomo/cache/src/Backend.php',
|
529 |
'Matomo\\Cache\\Backend\\ArrayCache' => __DIR__ . '/..' . '/matomo/cache/src/Backend/ArrayCache.php',
|
@@ -2492,7 +2558,6 @@ class ComposerStaticInite73d303dda4e084c9efc3d2e6d883365
|
|
2492 |
'Piwik\\Plugins\\UserCountry\\Columns\\Country' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Country.php',
|
2493 |
'Piwik\\Plugins\\UserCountry\\Columns\\Latitude' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Latitude.php',
|
2494 |
'Piwik\\Plugins\\UserCountry\\Columns\\Longitude' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Longitude.php',
|
2495 |
-
'Piwik\\Plugins\\UserCountry\\Columns\\Provider' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Provider.php',
|
2496 |
'Piwik\\Plugins\\UserCountry\\Columns\\Region' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Region.php',
|
2497 |
'Piwik\\Plugins\\UserCountry\\Commands\\AttributeHistoricalDataWithLocations' => __DIR__ . '/../..' . '/plugins/UserCountry/Commands/AttributeHistoricalDataWithLocations.php',
|
2498 |
'Piwik\\Plugins\\UserCountry\\Controller' => __DIR__ . '/../..' . '/plugins/UserCountry/Controller.php',
|
@@ -3181,21 +3246,17 @@ class ComposerStaticInite73d303dda4e084c9efc3d2e6d883365
|
|
3181 |
'Zend_Session_Validator_HttpUserAgent' => __DIR__ . '/../..' . '/libs/Zend/Session/Validator/HttpUserAgent.php',
|
3182 |
'Zend_Session_Validator_Interface' => __DIR__ . '/../..' . '/libs/Zend/Session/Validator/Interface.php',
|
3183 |
'Zend_Version' => __DIR__ . '/../..' . '/libs/Zend/Version.php',
|
3184 |
-
'lessc' => __DIR__ . '/..' . '/
|
3185 |
-
'lessc_formatter_classic' => __DIR__ . '/..' . '/leafo/lessphp/lessc.inc.php',
|
3186 |
-
'lessc_formatter_compressed' => __DIR__ . '/..' . '/leafo/lessphp/lessc.inc.php',
|
3187 |
-
'lessc_formatter_lessjs' => __DIR__ . '/..' . '/leafo/lessphp/lessc.inc.php',
|
3188 |
-
'lessc_parser' => __DIR__ . '/..' . '/leafo/lessphp/lessc.inc.php',
|
3189 |
);
|
3190 |
|
3191 |
public static function getInitializer(ClassLoader $loader)
|
3192 |
{
|
3193 |
return \Closure::bind(function () use ($loader) {
|
3194 |
-
$loader->prefixLengthsPsr4 =
|
3195 |
-
$loader->prefixDirsPsr4 =
|
3196 |
-
$loader->prefixesPsr0 =
|
3197 |
-
$loader->fallbackDirsPsr0 =
|
3198 |
-
$loader->classMap =
|
3199 |
|
3200 |
}, null, ClassLoader::class);
|
3201 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitbca50353402dfe6dd0703749723d31b9
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'04c6c5c2f7095ccf6c481d3e53e1776f' => __DIR__ . '/..' . '/mustangostang/spyc/Spyc.php',
|
214 |
0 => __DIR__ . '/../..' . '/libs',
|
215 |
),
|
216 |
),
|
217 |
+
'L' =>
|
218 |
+
array (
|
219 |
+
'Less' =>
|
220 |
+
array (
|
221 |
+
0 => __DIR__ . '/..' . '/wikimedia/less.php/lib',
|
222 |
+
),
|
223 |
+
),
|
224 |
'J' =>
|
225 |
array (
|
226 |
'JShrink' =>
|
531 |
'Invoker\\ParameterResolver\\TypeHintResolver' => __DIR__ . '/..' . '/php-di/invoker/src/ParameterResolver/TypeHintResolver.php',
|
532 |
'Invoker\\Reflection\\CallableReflection' => __DIR__ . '/..' . '/php-di/invoker/src/Reflection/CallableReflection.php',
|
533 |
'JShrink\\Minifier' => __DIR__ . '/..' . '/tedivm/jshrink/src/JShrink/Minifier.php',
|
534 |
+
'Less_Autoloader' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Autoloader.php',
|
535 |
+
'Less_Cache' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Cache.php',
|
536 |
+
'Less_Colors' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Colors.php',
|
537 |
+
'Less_Configurable' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Configurable.php',
|
538 |
+
'Less_Environment' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Environment.php',
|
539 |
+
'Less_Exception_Chunk' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Exception/Chunk.php',
|
540 |
+
'Less_Exception_Compiler' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Exception/Compiler.php',
|
541 |
+
'Less_Exception_Parser' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Exception/Parser.php',
|
542 |
+
'Less_Functions' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Functions.php',
|
543 |
+
'Less_Mime' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Mime.php',
|
544 |
+
'Less_Output' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Output.php',
|
545 |
+
'Less_Output_Mapped' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Output/Mapped.php',
|
546 |
+
'Less_Parser' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Parser.php',
|
547 |
+
'Less_SourceMap_Base64VLQ' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/SourceMap/Base64VLQ.php',
|
548 |
+
'Less_SourceMap_Generator' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/SourceMap/Generator.php',
|
549 |
+
'Less_Tree' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree.php',
|
550 |
+
'Less_Tree_Alpha' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Alpha.php',
|
551 |
+
'Less_Tree_Anonymous' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Anonymous.php',
|
552 |
+
'Less_Tree_Assignment' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Assignment.php',
|
553 |
+
'Less_Tree_Attribute' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Attribute.php',
|
554 |
+
'Less_Tree_Call' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Call.php',
|
555 |
+
'Less_Tree_Color' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Color.php',
|
556 |
+
'Less_Tree_Comment' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Comment.php',
|
557 |
+
'Less_Tree_Condition' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Condition.php',
|
558 |
+
'Less_Tree_DefaultFunc' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/DefaultFunc.php',
|
559 |
+
'Less_Tree_DetachedRuleset' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/DetachedRuleset.php',
|
560 |
+
'Less_Tree_Dimension' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Dimension.php',
|
561 |
+
'Less_Tree_Directive' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Directive.php',
|
562 |
+
'Less_Tree_Element' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Element.php',
|
563 |
+
'Less_Tree_Expression' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Expression.php',
|
564 |
+
'Less_Tree_Extend' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Extend.php',
|
565 |
+
'Less_Tree_Import' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Import.php',
|
566 |
+
'Less_Tree_Javascript' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Javascript.php',
|
567 |
+
'Less_Tree_Keyword' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Keyword.php',
|
568 |
+
'Less_Tree_Media' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Media.php',
|
569 |
+
'Less_Tree_Mixin_Call' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Mixin/Call.php',
|
570 |
+
'Less_Tree_Mixin_Definition' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php',
|
571 |
+
'Less_Tree_NameValue' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/NameValue.php',
|
572 |
+
'Less_Tree_Negative' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Negative.php',
|
573 |
+
'Less_Tree_Operation' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Operation.php',
|
574 |
+
'Less_Tree_Paren' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Paren.php',
|
575 |
+
'Less_Tree_Quoted' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Quoted.php',
|
576 |
+
'Less_Tree_Rule' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Rule.php',
|
577 |
+
'Less_Tree_Ruleset' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Ruleset.php',
|
578 |
+
'Less_Tree_RulesetCall' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/RulesetCall.php',
|
579 |
+
'Less_Tree_Selector' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Selector.php',
|
580 |
+
'Less_Tree_UnicodeDescriptor' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/UnicodeDescriptor.php',
|
581 |
+
'Less_Tree_Unit' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Unit.php',
|
582 |
+
'Less_Tree_UnitConversions' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/UnitConversions.php',
|
583 |
+
'Less_Tree_Url' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Url.php',
|
584 |
+
'Less_Tree_Value' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Value.php',
|
585 |
+
'Less_Tree_Variable' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Tree/Variable.php',
|
586 |
+
'Less_Version' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Version.php',
|
587 |
+
'Less_Visitor' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Visitor.php',
|
588 |
+
'Less_VisitorReplacing' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/VisitorReplacing.php',
|
589 |
+
'Less_Visitor_extendFinder' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Visitor/extendFinder.php',
|
590 |
+
'Less_Visitor_joinSelector' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Visitor/joinSelector.php',
|
591 |
+
'Less_Visitor_processExtends' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Visitor/processExtends.php',
|
592 |
+
'Less_Visitor_toCSS' => __DIR__ . '/..' . '/wikimedia/less.php/lib/Less/Visitor/toCSS.php',
|
593 |
'MatomoTracker' => __DIR__ . '/..' . '/matomo/matomo-php-tracker/MatomoTracker.php',
|
594 |
'Matomo\\Cache\\Backend' => __DIR__ . '/..' . '/matomo/cache/src/Backend.php',
|
595 |
'Matomo\\Cache\\Backend\\ArrayCache' => __DIR__ . '/..' . '/matomo/cache/src/Backend/ArrayCache.php',
|
2558 |
'Piwik\\Plugins\\UserCountry\\Columns\\Country' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Country.php',
|
2559 |
'Piwik\\Plugins\\UserCountry\\Columns\\Latitude' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Latitude.php',
|
2560 |
'Piwik\\Plugins\\UserCountry\\Columns\\Longitude' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Longitude.php',
|
|
|
2561 |
'Piwik\\Plugins\\UserCountry\\Columns\\Region' => __DIR__ . '/../..' . '/plugins/UserCountry/Columns/Region.php',
|
2562 |
'Piwik\\Plugins\\UserCountry\\Commands\\AttributeHistoricalDataWithLocations' => __DIR__ . '/../..' . '/plugins/UserCountry/Commands/AttributeHistoricalDataWithLocations.php',
|
2563 |
'Piwik\\Plugins\\UserCountry\\Controller' => __DIR__ . '/../..' . '/plugins/UserCountry/Controller.php',
|
3246 |
'Zend_Session_Validator_HttpUserAgent' => __DIR__ . '/../..' . '/libs/Zend/Session/Validator/HttpUserAgent.php',
|
3247 |
'Zend_Session_Validator_Interface' => __DIR__ . '/../..' . '/libs/Zend/Session/Validator/Interface.php',
|
3248 |
'Zend_Version' => __DIR__ . '/../..' . '/libs/Zend/Version.php',
|
3249 |
+
'lessc' => __DIR__ . '/..' . '/wikimedia/less.php/lessc.inc.php',
|
|
|
|
|
|
|
|
|
3250 |
);
|
3251 |
|
3252 |
public static function getInitializer(ClassLoader $loader)
|
3253 |
{
|
3254 |
return \Closure::bind(function () use ($loader) {
|
3255 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitbca50353402dfe6dd0703749723d31b9::$prefixLengthsPsr4;
|
3256 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitbca50353402dfe6dd0703749723d31b9::$prefixDirsPsr4;
|
3257 |
+
$loader->prefixesPsr0 = ComposerStaticInitbca50353402dfe6dd0703749723d31b9::$prefixesPsr0;
|
3258 |
+
$loader->fallbackDirsPsr0 = ComposerStaticInitbca50353402dfe6dd0703749723d31b9::$fallbackDirsPsr0;
|
3259 |
+
$loader->classMap = ComposerStaticInitbca50353402dfe6dd0703749723d31b9::$classMap;
|
3260 |
|
3261 |
}, null, ClassLoader::class);
|
3262 |
}
|
app/vendor/composer/installed.json
CHANGED
@@ -376,43 +376,6 @@
|
|
376 |
},
|
377 |
"install-path": "../geoip2/geoip2"
|
378 |
},
|
379 |
-
{
|
380 |
-
"name": "leafo/lessphp",
|
381 |
-
"version": "dev-php74-compat",
|
382 |
-
"version_normalized": "dev-php74-compat",
|
383 |
-
"source": {
|
384 |
-
"type": "git",
|
385 |
-
"url": "https://github.com/matomo-org/lessphp.git",
|
386 |
-
"reference": "1c1bf226f6d394f28cc676a6c2893556a5dcb495"
|
387 |
-
},
|
388 |
-
"time": "2020-06-18T02:38:35+00:00",
|
389 |
-
"type": "library",
|
390 |
-
"extra": {
|
391 |
-
"branch-alias": {
|
392 |
-
"dev-master": "0.4.x-dev"
|
393 |
-
}
|
394 |
-
},
|
395 |
-
"installation-source": "source",
|
396 |
-
"autoload": {
|
397 |
-
"classmap": [
|
398 |
-
"lessc.inc.php"
|
399 |
-
]
|
400 |
-
},
|
401 |
-
"license": [
|
402 |
-
"MIT",
|
403 |
-
"GPL-3.0"
|
404 |
-
],
|
405 |
-
"authors": [
|
406 |
-
{
|
407 |
-
"name": "Leaf Corcoran",
|
408 |
-
"email": "leafot@gmail.com",
|
409 |
-
"homepage": "http://leafo.net"
|
410 |
-
}
|
411 |
-
],
|
412 |
-
"description": "lessphp is a compiler for LESS written in PHP.",
|
413 |
-
"homepage": "http://leafo.net/lessphp/",
|
414 |
-
"install-path": "../leafo/lessphp"
|
415 |
-
},
|
416 |
{
|
417 |
"name": "matomo/cache",
|
418 |
"version": "2.0.2",
|
@@ -2356,6 +2319,78 @@
|
|
2356 |
}
|
2357 |
],
|
2358 |
"install-path": "../twig/twig"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2359 |
}
|
2360 |
],
|
2361 |
"dev": false,
|
376 |
},
|
377 |
"install-path": "../geoip2/geoip2"
|
378 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
{
|
380 |
"name": "matomo/cache",
|
381 |
"version": "2.0.2",
|
2319 |
}
|
2320 |
],
|
2321 |
"install-path": "../twig/twig"
|
2322 |
+
},
|
2323 |
+
{
|
2324 |
+
"name": "wikimedia/less.php",
|
2325 |
+
"version": "v3.1.0",
|
2326 |
+
"version_normalized": "3.1.0.0",
|
2327 |
+
"source": {
|
2328 |
+
"type": "git",
|
2329 |
+
"url": "https://github.com/wikimedia/less.php.git",
|
2330 |
+
"reference": "a486d78b9bd16b72f237fc6093aa56d69ce8bd13"
|
2331 |
+
},
|
2332 |
+
"dist": {
|
2333 |
+
"type": "zip",
|
2334 |
+
"url": "https://api.github.com/repos/wikimedia/less.php/zipball/a486d78b9bd16b72f237fc6093aa56d69ce8bd13",
|
2335 |
+
"reference": "a486d78b9bd16b72f237fc6093aa56d69ce8bd13",
|
2336 |
+
"shasum": ""
|
2337 |
+
},
|
2338 |
+
"require": {
|
2339 |
+
"php": ">=7.2.9"
|
2340 |
+
},
|
2341 |
+
"require-dev": {
|
2342 |
+
"mediawiki/mediawiki-codesniffer": "34.0.0",
|
2343 |
+
"mediawiki/minus-x": "1.0.0",
|
2344 |
+
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
2345 |
+
"php-parallel-lint/php-parallel-lint": "1.2.0",
|
2346 |
+
"phpunit/phpunit": "^8.5"
|
2347 |
+
},
|
2348 |
+
"time": "2020-12-11T19:33:31+00:00",
|
2349 |
+
"bin": [
|
2350 |
+
"bin/lessc"
|
2351 |
+
],
|
2352 |
+
"type": "library",
|
2353 |
+
"installation-source": "dist",
|
2354 |
+
"autoload": {
|
2355 |
+
"psr-0": {
|
2356 |
+
"Less": "lib/"
|
2357 |
+
},
|
2358 |
+
"classmap": [
|
2359 |
+
"lessc.inc.php"
|
2360 |
+
]
|
2361 |
+
},
|
2362 |
+
"notification-url": "https://packagist.org/downloads/",
|
2363 |
+
"license": [
|
2364 |
+
"Apache-2.0"
|
2365 |
+
],
|
2366 |
+
"authors": [
|
2367 |
+
{
|
2368 |
+
"name": "Josh Schmidt",
|
2369 |
+
"homepage": "https://github.com/oyejorge"
|
2370 |
+
},
|
2371 |
+
{
|
2372 |
+
"name": "Matt Agar",
|
2373 |
+
"homepage": "https://github.com/agar"
|
2374 |
+
},
|
2375 |
+
{
|
2376 |
+
"name": "Martin Jantošovič",
|
2377 |
+
"homepage": "https://github.com/Mordred"
|
2378 |
+
}
|
2379 |
+
],
|
2380 |
+
"description": "PHP port of the Javascript version of LESS http://lesscss.org (Originally maintained by Josh Schmidt)",
|
2381 |
+
"keywords": [
|
2382 |
+
"css",
|
2383 |
+
"less",
|
2384 |
+
"less.js",
|
2385 |
+
"lesscss",
|
2386 |
+
"php",
|
2387 |
+
"stylesheet"
|
2388 |
+
],
|
2389 |
+
"support": {
|
2390 |
+
"issues": "https://github.com/wikimedia/less.php/issues",
|
2391 |
+
"source": "https://github.com/wikimedia/less.php/tree/v3.1.0"
|
2392 |
+
},
|
2393 |
+
"install-path": "../wikimedia/less.php"
|
2394 |
}
|
2395 |
],
|
2396 |
"dev": false,
|
app/vendor/composer/installed.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
-
'pretty_version' => '4.0
|
5 |
-
'version' => '4.0.
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => 'matomo/matomo',
|
11 |
),
|
12 |
'versions' =>
|
@@ -56,15 +56,6 @@
|
|
56 |
),
|
57 |
'reference' => 'd01be5894a5c1a3381c58c9b1795cd07f96c30f7',
|
58 |
),
|
59 |
-
'leafo/lessphp' =>
|
60 |
-
array (
|
61 |
-
'pretty_version' => 'dev-php74-compat',
|
62 |
-
'version' => 'dev-php74-compat',
|
63 |
-
'aliases' =>
|
64 |
-
array (
|
65 |
-
),
|
66 |
-
'reference' => '1c1bf226f6d394f28cc676a6c2893556a5dcb495',
|
67 |
-
),
|
68 |
'matomo/cache' =>
|
69 |
array (
|
70 |
'pretty_version' => '2.0.2',
|
@@ -103,12 +94,12 @@
|
|
103 |
),
|
104 |
'matomo/matomo' =>
|
105 |
array (
|
106 |
-
'pretty_version' => '4.0
|
107 |
-
'version' => '4.0.
|
108 |
'aliases' =>
|
109 |
array (
|
110 |
),
|
111 |
-
'reference' => '
|
112 |
),
|
113 |
'matomo/matomo-php-tracker' =>
|
114 |
array (
|
@@ -454,5 +445,14 @@
|
|
454 |
),
|
455 |
'reference' => 'b02fa41f3783a2616eccef7b92fbc2343ffed737',
|
456 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
),
|
458 |
);
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
+
'pretty_version' => '4.1.0-rc2',
|
5 |
+
'version' => '4.1.0.0-RC2',
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '2cb0cb8f9202deae21f93ef2368d5fe9f683d380',
|
10 |
'name' => 'matomo/matomo',
|
11 |
),
|
12 |
'versions' =>
|
56 |
),
|
57 |
'reference' => 'd01be5894a5c1a3381c58c9b1795cd07f96c30f7',
|
58 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
'matomo/cache' =>
|
60 |
array (
|
61 |
'pretty_version' => '2.0.2',
|
94 |
),
|
95 |
'matomo/matomo' =>
|
96 |
array (
|
97 |
+
'pretty_version' => '4.1.0-rc2',
|
98 |
+
'version' => '4.1.0.0-RC2',
|
99 |
'aliases' =>
|
100 |
array (
|
101 |
),
|
102 |
+
'reference' => '2cb0cb8f9202deae21f93ef2368d5fe9f683d380',
|
103 |
),
|
104 |
'matomo/matomo-php-tracker' =>
|
105 |
array (
|
445 |
),
|
446 |
'reference' => 'b02fa41f3783a2616eccef7b92fbc2343ffed737',
|
447 |
),
|
448 |
+
'wikimedia/less.php' =>
|
449 |
+
array (
|
450 |
+
'pretty_version' => 'v3.1.0',
|
451 |
+
'version' => '3.1.0.0',
|
452 |
+
'aliases' =>
|
453 |
+
array (
|
454 |
+
),
|
455 |
+
'reference' => 'a486d78b9bd16b72f237fc6093aa56d69ce8bd13',
|
456 |
+
),
|
457 |
),
|
458 |
);
|
app/vendor/leafo/lessphp/LICENSE
DELETED
@@ -1,660 +0,0 @@
|
|
1 |
-
For ease of distribution, lessphp 0.4.0 is under a dual license.
|
2 |
-
You are free to pick which one suits your needs.
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
MIT LICENSE
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
Copyright (c) 2013 Leaf Corcoran, http://leafo.net/lessphp
|
13 |
-
|
14 |
-
Permission is hereby granted, free of charge, to any person obtaining
|
15 |
-
a copy of this software and associated documentation files (the
|
16 |
-
"Software"), to deal in the Software without restriction, including
|
17 |
-
without limitation the rights to use, copy, modify, merge, publish,
|
18 |
-
distribute, sublicense, and/or sell copies of the Software, and to
|
19 |
-
permit persons to whom the Software is furnished to do so, subject to
|
20 |
-
the following conditions:
|
21 |
-
|
22 |
-
The above copyright notice and this permission notice shall be
|
23 |
-
included in all copies or substantial portions of the Software.
|
24 |
-
|
25 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
26 |
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
27 |
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
28 |
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
29 |
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
30 |
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
31 |
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
GPL VERSION 3
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
GNU GENERAL PUBLIC LICENSE
|
42 |
-
Version 3, 29 June 2007
|
43 |
-
|
44 |
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
45 |
-
Everyone is permitted to copy and distribute verbatim copies
|
46 |
-
of this license document, but changing it is not allowed.
|
47 |
-
|
48 |
-
Preamble
|
49 |
-
|
50 |
-
The GNU General Public License is a free, copyleft license for
|
51 |
-
software and other kinds of works.
|
52 |
-
|
53 |
-
The licenses for most software and other practical works are designed
|
54 |
-
to take away your freedom to share and change the works. By contrast,
|
55 |
-
the GNU General Public License is intended to guarantee your freedom to
|
56 |
-
share and change all versions of a program--to make sure it remains free
|
57 |
-
software for all its users. We, the Free Software Foundation, use the
|
58 |
-
GNU General Public License for most of our software; it applies also to
|
59 |
-
any other work released this way by its authors. You can apply it to
|
60 |
-
your programs, too.
|
61 |
-
|
62 |
-
When we speak of free software, we are referring to freedom, not
|
63 |
-
price. Our General Public Licenses are designed to make sure that you
|
64 |
-
have the freedom to distribute copies of free software (and charge for
|
65 |
-
them if you wish), that you receive source code or can get it if you
|
66 |
-
want it, that you can change the software or use pieces of it in new
|
67 |
-
free programs, and that you know you can do these things.
|
68 |
-
|
69 |
-
To protect your rights, we need to prevent others from denying you
|
70 |
-
these rights or asking you to surrender the rights. Therefore, you have
|
71 |
-
certain responsibilities if you distribute copies of the software, or if
|
72 |
-
you modify it: responsibilities to respect the freedom of others.
|
73 |
-
|
74 |
-
For example, if you distribute copies of such a program, whether
|
75 |
-
gratis or for a fee, you must pass on to the recipients the same
|
76 |
-
freedoms that you received. You must make sure that they, too, receive
|
77 |
-
or can get the source code. And you must show them these terms so they
|
78 |
-
know their rights.
|
79 |
-
|
80 |
-
Developers that use the GNU GPL protect your rights with two steps:
|
81 |
-
(1) assert copyright on the software, and (2) offer you this License
|
82 |
-
giving you legal permission to copy, distribute and/or modify it.
|
83 |
-
|
84 |
-
For the developers' and authors' protection, the GPL clearly explains
|
85 |
-
that there is no warranty for this free software. For both users' and
|
86 |
-
authors' sake, the GPL requires that modified versions be marked as
|
87 |
-
changed, so that their problems will not be attributed erroneously to
|
88 |
-
authors of previous versions.
|
89 |
-
|
90 |
-
Some devices are designed to deny users access to install or run
|
91 |
-
modified versions of the software inside them, although the manufacturer
|
92 |
-
can do so. This is fundamentally incompatible with the aim of
|
93 |
-
protecting users' freedom to change the software. The systematic
|
94 |
-
pattern of such abuse occurs in the area of products for individuals to
|
95 |
-
use, which is precisely where it is most unacceptable. Therefore, we
|
96 |
-
have designed this version of the GPL to prohibit the practice for those
|
97 |
-
products. If such problems arise substantially in other domains, we
|
98 |
-
stand ready to extend this provision to those domains in future versions
|
99 |
-
of the GPL, as needed to protect the freedom of users.
|
100 |
-
|
101 |
-
Finally, every program is threatened constantly by software patents.
|
102 |
-
States should not allow patents to restrict development and use of
|
103 |
-
software on general-purpose computers, but in those that do, we wish to
|
104 |
-
avoid the special danger that patents applied to a free program could
|
105 |
-
make it effectively proprietary. To prevent this, the GPL assures that
|
106 |
-
patents cannot be used to render the program non-free.
|
107 |
-
|
108 |
-
The precise terms and conditions for copying, distribution and
|
109 |
-
modification follow.
|
110 |
-
|
111 |
-
TERMS AND CONDITIONS
|
112 |
-
|
113 |
-
0. Definitions.
|
114 |
-
|
115 |
-
"This License" refers to version 3 of the GNU General Public License.
|
116 |
-
|
117 |
-
"Copyright" also means copyright-like laws that apply to other kinds of
|
118 |
-
works, such as semiconductor masks.
|
119 |
-
|
120 |
-
"The Program" refers to any copyrightable work licensed under this
|
121 |
-
License. Each licensee is addressed as "you". "Licensees" and
|
122 |
-
"recipients" may be individuals or organizations.
|
123 |
-
|
124 |
-
To "modify" a work means to copy from or adapt all or part of the work
|
125 |
-
in a fashion requiring copyright permission, other than the making of an
|
126 |
-
exact copy. The resulting work is called a "modified version" of the
|
127 |
-
earlier work or a work "based on" the earlier work.
|
128 |
-
|
129 |
-
A "covered work" means either the unmodified Program or a work based
|
130 |
-
on the Program.
|
131 |
-
|
132 |
-
To "propagate" a work means to do anything with it that, without
|
133 |
-
permission, would make you directly or secondarily liable for
|
134 |
-
infringement under applicable copyright law, except executing it on a
|
135 |
-
computer or modifying a private copy. Propagation includes copying,
|
136 |
-
distribution (with or without modification), making available to the
|
137 |
-
public, and in some countries other activities as well.
|
138 |
-
|
139 |
-
To "convey" a work means any kind of propagation that enables other
|
140 |
-
parties to make or receive copies. Mere interaction with a user through
|
141 |
-
a computer network, with no transfer of a copy, is not conveying.
|
142 |
-
|
143 |
-
An interactive user interface displays "Appropriate Legal Notices"
|
144 |
-
to the extent that it includes a convenient and prominently visible
|
145 |
-
feature that (1) displays an appropriate copyright notice, and (2)
|
146 |
-
tells the user that there is no warranty for the work (except to the
|
147 |
-
extent that warranties are provided), that licensees may convey the
|
148 |
-
work under this License, and how to view a copy of this License. If
|
149 |
-
the interface presents a list of user commands or options, such as a
|
150 |
-
menu, a prominent item in the list meets this criterion.
|
151 |
-
|
152 |
-
1. Source Code.
|
153 |
-
|
154 |
-
The "source code" for a work means the preferred form of the work
|
155 |
-
for making modifications to it. "Object code" means any non-source
|
156 |
-
form of a work.
|
157 |
-
|
158 |
-
A "Standard Interface" means an interface that either is an official
|
159 |
-
standard defined by a recognized standards body, or, in the case of
|
160 |
-
interfaces specified for a particular programming language, one that
|
161 |
-
is widely used among developers working in that language.
|
162 |
-
|
163 |
-
The "System Libraries" of an executable work include anything, other
|
164 |
-
than the work as a whole, that (a) is included in the normal form of
|
165 |
-
packaging a Major Component, but which is not part of that Major
|
166 |
-
Component, and (b) serves only to enable use of the work with that
|
167 |
-
Major Component, or to implement a Standard Interface for which an
|
168 |
-
implementation is available to the public in source code form. A
|
169 |
-
"Major Component", in this context, means a major essential component
|
170 |
-
(kernel, window system, and so on) of the specific operating system
|
171 |
-
(if any) on which the executable work runs, or a compiler used to
|
172 |
-
produce the work, or an object code interpreter used to run it.
|
173 |
-
|
174 |
-
The "Corresponding Source" for a work in object code form means all
|
175 |
-
the source code needed to generate, install, and (for an executable
|
176 |
-
work) run the object code and to modify the work, including scripts to
|
177 |
-
control those activities. However, it does not include the work's
|
178 |
-
System Libraries, or general-purpose tools or generally available free
|
179 |
-
programs which are used unmodified in performing those activities but
|
180 |
-
which are not part of the work. For example, Corresponding Source
|
181 |
-
includes interface definition files associated with source files for
|
182 |
-
the work, and the source code for shared libraries and dynamically
|
183 |
-
linked subprograms that the work is specifically designed to require,
|
184 |
-
such as by intimate data communication or control flow between those
|
185 |
-
subprograms and other parts of the work.
|
186 |
-
|
187 |
-
The Corresponding Source need not include anything that users
|
188 |
-
can regenerate automatically from other parts of the Corresponding
|
189 |
-
Source.
|
190 |
-
|
191 |
-
The Corresponding Source for a work in source code form is that
|
192 |
-
same work.
|
193 |
-
|
194 |
-
2. Basic Permissions.
|
195 |
-
|
196 |
-
All rights granted under this License are granted for the term of
|
197 |
-
copyright on the Program, and are irrevocable provided the stated
|
198 |
-
conditions are met. This License explicitly affirms your unlimited
|
199 |
-
permission to run the unmodified Program. The output from running a
|
200 |
-
covered work is covered by this License only if the output, given its
|
201 |
-
content, constitutes a covered work. This License acknowledges your
|
202 |
-
rights of fair use or other equivalent, as provided by copyright law.
|
203 |
-
|
204 |
-
You may make, run and propagate covered works that you do not
|
205 |
-
convey, without conditions so long as your license otherwise remains
|
206 |
-
in force. You may convey covered works to others for the sole purpose
|
207 |
-
of having them make modifications exclusively for you, or provide you
|
208 |
-
with facilities for running those works, provided that you comply with
|
209 |
-
the terms of this License in conveying all material for which you do
|
210 |
-
not control copyright. Those thus making or running the covered works
|
211 |
-
for you must do so exclusively on your behalf, under your direction
|
212 |
-
and control, on terms that prohibit them from making any copies of
|
213 |
-
your copyrighted material outside their relationship with you.
|
214 |
-
|
215 |
-
Conveying under any other circumstances is permitted solely under
|
216 |
-
the conditions stated below. Sublicensing is not allowed; section 10
|
217 |
-
makes it unnecessary.
|
218 |
-
|
219 |
-
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
220 |
-
|
221 |
-
No covered work shall be deemed part of an effective technological
|
222 |
-
measure under any applicable law fulfilling obligations under article
|
223 |
-
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
224 |
-
similar laws prohibiting or restricting circumvention of such
|
225 |
-
measures.
|
226 |
-
|
227 |
-
When you convey a covered work, you waive any legal power to forbid
|
228 |
-
circumvention of technological measures to the extent such circumvention
|
229 |
-
is effected by exercising rights under this License with respect to
|
230 |
-
the covered work, and you disclaim any intention to limit operation or
|
231 |
-
modification of the work as a means of enforcing, against the work's
|
232 |
-
users, your or third parties' legal rights to forbid circumvention of
|
233 |
-
technological measures.
|
234 |
-
|
235 |
-
4. Conveying Verbatim Copies.
|
236 |
-
|
237 |
-
You may convey verbatim copies of the Program's source code as you
|
238 |
-
receive it, in any medium, provided that you conspicuously and
|
239 |
-
appropriately publish on each copy an appropriate copyright notice;
|
240 |
-
keep intact all notices stating that this License and any
|
241 |
-
non-permissive terms added in accord with section 7 apply to the code;
|
242 |
-
keep intact all notices of the absence of any warranty; and give all
|
243 |
-
recipients a copy of this License along with the Program.
|
244 |
-
|
245 |
-
You may charge any price or no price for each copy that you convey,
|
246 |
-
and you may offer support or warranty protection for a fee.
|
247 |
-
|
248 |
-
5. Conveying Modified Source Versions.
|
249 |
-
|
250 |
-
You may convey a work based on the Program, or the modifications to
|
251 |
-
produce it from the Program, in the form of source code under the
|
252 |
-
terms of section 4, provided that you also meet all of these conditions:
|
253 |
-
|
254 |
-
a) The work must carry prominent notices stating that you modified
|
255 |
-
it, and giving a relevant date.
|
256 |
-
|
257 |
-
b) The work must carry prominent notices stating that it is
|
258 |
-
released under this License and any conditions added under section
|
259 |
-
7. This requirement modifies the requirement in section 4 to
|
260 |
-
"keep intact all notices".
|
261 |
-
|
262 |
-
c) You must license the entire work, as a whole, under this
|
263 |
-
License to anyone who comes into possession of a copy. This
|
264 |
-
License will therefore apply, along with any applicable section 7
|
265 |
-
additional terms, to the whole of the work, and all its parts,
|
266 |
-
regardless of how they are packaged. This License gives no
|
267 |
-
permission to license the work in any other way, but it does not
|
268 |
-
invalidate such permission if you have separately received it.
|
269 |
-
|
270 |
-
d) If the work has interactive user interfaces, each must display
|
271 |
-
Appropriate Legal Notices; however, if the Program has interactive
|
272 |
-
interfaces that do not display Appropriate Legal Notices, your
|
273 |
-
work need not make them do so.
|
274 |
-
|
275 |
-
A compilation of a covered work with other separate and independent
|
276 |
-
works, which are not by their nature extensions of the covered work,
|
277 |
-
and which are not combined with it such as to form a larger program,
|
278 |
-
in or on a volume of a storage or distribution medium, is called an
|
279 |
-
"aggregate" if the compilation and its resulting copyright are not
|
280 |
-
used to limit the access or legal rights of the compilation's users
|
281 |
-
beyond what the individual works permit. Inclusion of a covered work
|
282 |
-
in an aggregate does not cause this License to apply to the other
|
283 |
-
parts of the aggregate.
|
284 |
-
|
285 |
-
6. Conveying Non-Source Forms.
|
286 |
-
|
287 |
-
You may convey a covered work in object code form under the terms
|
288 |
-
of sections 4 and 5, provided that you also convey the
|
289 |
-
machine-readable Corresponding Source under the terms of this License,
|
290 |
-
in one of these ways:
|
291 |
-
|
292 |
-
a) Convey the object code in, or embodied in, a physical product
|
293 |
-
(including a physical distribution medium), accompanied by the
|
294 |
-
Corresponding Source fixed on a durable physical medium
|
295 |
-
customarily used for software interchange.
|
296 |
-
|
297 |
-
b) Convey the object code in, or embodied in, a physical product
|
298 |
-
(including a physical distribution medium), accompanied by a
|
299 |
-
written offer, valid for at least three years and valid for as
|
300 |
-
long as you offer spare parts or customer support for that product
|
301 |
-
model, to give anyone who possesses the object code either (1) a
|
302 |
-
copy of the Corresponding Source for all the software in the
|
303 |
-
product that is covered by this License, on a durable physical
|
304 |
-
medium customarily used for software interchange, for a price no
|
305 |
-
more than your reasonable cost of physically performing this
|
306 |
-
conveying of source, or (2) access to copy the
|
307 |
-
Corresponding Source from a network server at no charge.
|
308 |
-
|
309 |
-
c) Convey individual copies of the object code with a copy of the
|
310 |
-
written offer to provide the Corresponding Source. This
|
311 |
-
alternative is allowed only occasionally and noncommercially, and
|
312 |
-
only if you received the object code with such an offer, in accord
|
313 |
-
with subsection 6b.
|
314 |
-
|
315 |
-
d) Convey the object code by offering access from a designated
|
316 |
-
place (gratis or for a charge), and offer equivalent access to the
|
317 |
-
Corresponding Source in the same way through the same place at no
|
318 |
-
further charge. You need not require recipients to copy the
|
319 |
-
Corresponding Source along with the object code. If the place to
|
320 |
-
copy the object code is a network server, the Corresponding Source
|
321 |
-
may be on a different server (operated by you or a third party)
|
322 |
-
that supports equivalent copying facilities, provided you maintain
|
323 |
-
clear directions next to the object code saying where to find the
|
324 |
-
Corresponding Source. Regardless of what server hosts the
|
325 |
-
Corresponding Source, you remain obligated to ensure that it is
|
326 |
-
available for as long as needed to satisfy these requirements.
|
327 |
-
|
328 |
-
e) Convey the object code using peer-to-peer transmission, provided
|
329 |
-
you inform other peers where the object code and Corresponding
|
330 |
-
Source of the work are being offered to the general public at no
|
331 |
-
charge under subsection 6d.
|
332 |
-
|
333 |
-
A separable portion of the object code, whose source code is excluded
|
334 |
-
from the Corresponding Source as a System Library, need not be
|
335 |
-
included in conveying the object code work.
|
336 |
-
|
337 |
-
A "User Product" is either (1) a "consumer product", which means any
|
338 |
-
tangible personal property which is normally used for personal, family,
|
339 |
-
or household purposes, or (2) anything designed or sold for incorporation
|
340 |
-
into a dwelling. In determining whether a product is a consumer product,
|
341 |
-
doubtful cases shall be resolved in favor of coverage. For a particular
|
342 |
-
product received by a particular user, "normally used" refers to a
|
343 |
-
typical or common use of that class of product, regardless of the status
|
344 |
-
of the particular user or of the way in which the particular user
|
345 |
-
actually uses, or expects or is expected to use, the product. A product
|
346 |
-
is a consumer product regardless of whether the product has substantial
|
347 |
-
commercial, industrial or non-consumer uses, unless such uses represent
|
348 |
-
the only significant mode of use of the product.
|
349 |
-
|
350 |
-
"Installation Information" for a User Product means any methods,
|
351 |
-
procedures, authorization keys, or other information required to install
|
352 |
-
and execute modified versions of a covered work in that User Product from
|
353 |
-
a modified version of its Corresponding Source. The information must
|
354 |
-
suffice to ensure that the continued functioning of the modified object
|
355 |
-
code is in no case prevented or interfered with solely because
|
356 |
-
modification has been made.
|
357 |
-
|
358 |
-
If you convey an object code work under this section in, or with, or
|
359 |
-
specifically for use in, a User Product, and the conveying occurs as
|
360 |
-
part of a transaction in which the right of possession and use of the
|
361 |
-
User Product is transferred to the recipient in perpetuity or for a
|
362 |
-
fixed term (regardless of how the transaction is characterized), the
|
363 |
-
Corresponding Source conveyed under this section must be accompanied
|
364 |
-
by the Installation Information. But this requirement does not apply
|
365 |
-
if neither you nor any third party retains the ability to install
|
366 |
-
modified object code on the User Product (for example, the work has
|
367 |
-
been installed in ROM).
|
368 |
-
|
369 |
-
The requirement to provide Installation Information does not include a
|
370 |
-
requirement to continue to provide support service, warranty, or updates
|
371 |
-
for a work that has been modified or installed by the recipient, or for
|
372 |
-
the User Product in which it has been modified or installed. Access to a
|
373 |
-
network may be denied when the modification itself materially and
|
374 |
-
adversely affects the operation of the network or violates the rules and
|
375 |
-
protocols for communication across the network.
|
376 |
-
|
377 |
-
Corresponding Source conveyed, and Installation Information provided,
|
378 |
-
in accord with this section must be in a format that is publicly
|
379 |
-
documented (and with an implementation available to the public in
|
380 |
-
source code form), and must require no special password or key for
|
381 |
-
unpacking, reading or copying.
|
382 |
-
|
383 |
-
7. Additional Terms.
|
384 |
-
|
385 |
-
"Additional permissions" are terms that supplement the terms of this
|
386 |
-
License by making exceptions from one or more of its conditions.
|
387 |
-
Additional permissions that are applicable to the entire Program shall
|
388 |
-
be treated as though they were included in this License, to the extent
|
389 |
-
that they are valid under applicable law. If additional permissions
|
390 |
-
apply only to part of the Program, that part may be used separately
|
391 |
-
under those permissions, but the entire Program remains governed by
|
392 |
-
this License without regard to the additional permissions.
|
393 |
-
|
394 |
-
When you convey a copy of a covered work, you may at your option
|
395 |
-
remove any additional permissions from that copy, or from any part of
|
396 |
-
it. (Additional permissions may be written to require their own
|
397 |
-
removal in certain cases when you modify the work.) You may place
|
398 |
-
additional permissions on material, added by you to a covered work,
|
399 |
-
for which you have or can give appropriate copyright permission.
|
400 |
-
|
401 |
-
Notwithstanding any other provision of this License, for material you
|
402 |
-
add to a covered work, you may (if authorized by the copyright holders of
|
403 |
-
that material) supplement the terms of this License with terms:
|
404 |
-
|
405 |
-
a) Disclaiming warranty or limiting liability differently from the
|
406 |
-
terms of sections 15 and 16 of this License; or
|
407 |
-
|
408 |
-
b) Requiring preservation of specified reasonable legal notices or
|
409 |
-
author attributions in that material or in the Appropriate Legal
|
410 |
-
Notices displayed by works containing it; or
|
411 |
-
|
412 |
-
c) Prohibiting misrepresentation of the origin of that material, or
|
413 |
-
requiring that modified versions of such material be marked in
|
414 |
-
reasonable ways as different from the original version; or
|
415 |
-
|
416 |
-
d) Limiting the use for publicity purposes of names of licensors or
|
417 |
-
authors of the material; or
|
418 |
-
|
419 |
-
e) Declining to grant rights under trademark law for use of some
|
420 |
-
trade names, trademarks, or service marks; or
|
421 |
-
|
422 |
-
f) Requiring indemnification of licensors and authors of that
|
423 |
-
material by anyone who conveys the material (or modified versions of
|
424 |
-
it) with contractual assumptions of liability to the recipient, for
|
425 |
-
any liability that these contractual assumptions directly impose on
|
426 |
-
those licensors and authors.
|
427 |
-
|
428 |
-
All other non-permissive additional terms are considered "further
|
429 |
-
restrictions" within the meaning of section 10. If the Program as you
|
430 |
-
received it, or any part of it, contains a notice stating that it is
|
431 |
-
governed by this License along with a term that is a further
|
432 |
-
restriction, you may remove that term. If a license document contains
|
433 |
-
a further restriction but permits relicensing or conveying under this
|
434 |
-
License, you may add to a covered work material governed by the terms
|
435 |
-
of that license document, provided that the further restriction does
|
436 |
-
not survive such relicensing or conveying.
|
437 |
-
|
438 |
-
If you add terms to a covered work in accord with this section, you
|
439 |
-
must place, in the relevant source files, a statement of the
|
440 |
-
additional terms that apply to those files, or a notice indicating
|
441 |
-
where to find the applicable terms.
|
442 |
-
|
443 |
-
Additional terms, permissive or non-permissive, may be stated in the
|
444 |
-
form of a separately written license, or stated as exceptions;
|
445 |
-
the above requirements apply either way.
|
446 |
-
|
447 |
-
8. Termination.
|
448 |
-
|
449 |
-
You may not propagate or modify a covered work except as expressly
|
450 |
-
provided under this License. Any attempt otherwise to propagate or
|
451 |
-
modify it is void, and will automatically terminate your rights under
|
452 |
-
this License (including any patent licenses granted under the third
|
453 |
-
paragraph of section 11).
|
454 |
-
|
455 |
-
However, if you cease all violation of this License, then your
|
456 |
-
license from a particular copyright holder is reinstated (a)
|
457 |
-
provisionally, unless and until the copyright holder explicitly and
|
458 |
-
finally terminates your license, and (b) permanently, if the copyright
|
459 |
-
holder fails to notify you of the violation by some reasonable means
|
460 |
-
prior to 60 days after the cessation.
|
461 |
-
|
462 |
-
Moreover, your license from a particular copyright holder is
|
463 |
-
reinstated permanently if the copyright holder notifies you of the
|
464 |
-
violation by some reasonable means, this is the first time you have
|
465 |
-
received notice of violation of this License (for any work) from that
|
466 |
-
copyright holder, and you cure the violation prior to 30 days after
|
467 |
-
your receipt of the notice.
|
468 |
-
|
469 |
-
Termination of your rights under this section does not terminate the
|
470 |
-
licenses of parties who have received copies or rights from you under
|
471 |
-
this License. If your rights have been terminated and not permanently
|
472 |
-
reinstated, you do not qualify to receive new licenses for the same
|
473 |
-
material under section 10.
|
474 |
-
|
475 |
-
9. Acceptance Not Required for Having Copies.
|
476 |
-
|
477 |
-
You are not required to accept this License in order to receive or
|
478 |
-
run a copy of the Program. Ancillary propagation of a covered work
|
479 |
-
occurring solely as a consequence of using peer-to-peer transmission
|
480 |
-
to receive a copy likewise does not require acceptance. However,
|
481 |
-
nothing other than this License grants you permission to propagate or
|
482 |
-
modify any covered work. These actions infringe copyright if you do
|
483 |
-
not accept this License. Therefore, by modifying or propagating a
|
484 |
-
covered work, you indicate your acceptance of this License to do so.
|
485 |
-
|
486 |
-
10. Automatic Licensing of Downstream Recipients.
|
487 |
-
|
488 |
-
Each time you convey a covered work, the recipient automatically
|
489 |
-
receives a license from the original licensors, to run, modify and
|
490 |
-
propagate that work, subject to this License. You are not responsible
|
491 |
-
for enforcing compliance by third parties with this License.
|
492 |
-
|
493 |
-
An "entity transaction" is a transaction transferring control of an
|
494 |
-
organization, or substantially all assets of one, or subdividing an
|
495 |
-
organization, or merging organizations. If propagation of a covered
|
496 |
-
work results from an entity transaction, each party to that
|
497 |
-
transaction who receives a copy of the work also receives whatever
|
498 |
-
licenses to the work the party's predecessor in interest had or could
|
499 |
-
give under the previous paragraph, plus a right to possession of the
|
500 |
-
Corresponding Source of the work from the predecessor in interest, if
|
501 |
-
the predecessor has it or can get it with reasonable efforts.
|
502 |
-
|
503 |
-
You may not impose any further restrictions on the exercise of the
|
504 |
-
rights granted or affirmed under this License. For example, you may
|
505 |
-
not impose a license fee, royalty, or other charge for exercise of
|
506 |
-
rights granted under this License, and you may not initiate litigation
|
507 |
-
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
508 |
-
any patent claim is infringed by making, using, selling, offering for
|
509 |
-
sale, or importing the Program or any portion of it.
|
510 |
-
|
511 |
-
11. Patents.
|
512 |
-
|
513 |
-
A "contributor" is a copyright holder who authorizes use under this
|
514 |
-
License of the Program or a work on which the Program is based. The
|
515 |
-
work thus licensed is called the contributor's "contributor version".
|
516 |
-
|
517 |
-
A contributor's "essential patent claims" are all patent claims
|
518 |
-
owned or controlled by the contributor, whether already acquired or
|
519 |
-
hereafter acquired, that would be infringed by some manner, permitted
|
520 |
-
by this License, of making, using, or selling its contributor version,
|
521 |
-
but do not include claims that would be infringed only as a
|
522 |
-
consequence of further modification of the contributor version. For
|
523 |
-
purposes of this definition, "control" includes the right to grant
|
524 |
-
patent sublicenses in a manner consistent with the requirements of
|
525 |
-
this License.
|
526 |
-
|
527 |
-
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
528 |
-
patent license under the contributor's essential patent claims, to
|
529 |
-
make, use, sell, offer for sale, import and otherwise run, modify and
|
530 |
-
propagate the contents of its contributor version.
|
531 |
-
|
532 |
-
In the following three paragraphs, a "patent license" is any express
|
533 |
-
agreement or commitment, however denominated, not to enforce a patent
|
534 |
-
(such as an express permission to practice a patent or covenant not to
|
535 |
-
sue for patent infringement). To "grant" such a patent license to a
|
536 |
-
party means to make such an agreement or commitment not to enforce a
|
537 |
-
patent against the party.
|
538 |
-
|
539 |
-
If you convey a covered work, knowingly relying on a patent license,
|
540 |
-
and the Corresponding Source of the work is not available for anyone
|
541 |
-
to copy, free of charge and under the terms of this License, through a
|
542 |
-
publicly available network server or other readily accessible means,
|
543 |
-
then you must either (1) cause the Corresponding Source to be so
|
544 |
-
available, or (2) arrange to deprive yourself of the benefit of the
|
545 |
-
patent license for this particular work, or (3) arrange, in a manner
|
546 |
-
consistent with the requirements of this License, to extend the patent
|
547 |
-
license to downstream recipients. "Knowingly relying" means you have
|
548 |
-
actual knowledge that, but for the patent license, your conveying the
|
549 |
-
covered work in a country, or your recipient's use of the covered work
|
550 |
-
in a country, would infringe one or more identifiable patents in that
|
551 |
-
country that you have reason to believe are valid.
|
552 |
-
|
553 |
-
If, pursuant to or in connection with a single transaction or
|
554 |
-
arrangement, you convey, or propagate by procuring conveyance of, a
|
555 |
-
covered work, and grant a patent license to some of the parties
|
556 |
-
receiving the covered work authorizing them to use, propagate, modify
|
557 |
-
or convey a specific copy of the covered work, then the patent license
|
558 |
-
you grant is automatically extended to all recipients of the covered
|
559 |
-
work and works based on it.
|
560 |
-
|
561 |
-
A patent license is "discriminatory" if it does not include within
|
562 |
-
the scope of its coverage, prohibits the exercise of, or is
|
563 |
-
conditioned on the non-exercise of one or more of the rights that are
|
564 |
-
specifically granted under this License. You may not convey a covered
|
565 |
-
work if you are a party to an arrangement with a third party that is
|
566 |
-
in the business of distributing software, under which you make payment
|
567 |
-
to the third party based on the extent of your activity of conveying
|
568 |
-
the work, and under which the third party grants, to any of the
|
569 |
-
parties who would receive the covered work from you, a discriminatory
|
570 |
-
patent license (a) in connection with copies of the covered work
|
571 |
-
conveyed by you (or copies made from those copies), or (b) primarily
|
572 |
-
for and in connection with specific products or compilations that
|
573 |
-
contain the covered work, unless you entered into that arrangement,
|
574 |
-
or that patent license was granted, prior to 28 March 2007.
|
575 |
-
|
576 |
-
Nothing in this License shall be construed as excluding or limiting
|
577 |
-
any implied license or other defenses to infringement that may
|
578 |
-
otherwise be available to you under applicable patent law.
|
579 |
-
|
580 |
-
12. No Surrender of Others' Freedom.
|
581 |
-
|
582 |
-
If conditions are imposed on you (whether by court order, agreement or
|
583 |
-
otherwise) that contradict the conditions of this License, they do not
|
584 |
-
excuse you from the conditions of this License. If you cannot convey a
|
585 |
-
covered work so as to satisfy simultaneously your obligations under this
|
586 |
-
License and any other pertinent obligations, then as a consequence you may
|
587 |
-
not convey it at all. For example, if you agree to terms that obligate you
|
588 |
-
to collect a royalty for further conveying from those to whom you convey
|
589 |
-
the Program, the only way you could satisfy both those terms and this
|
590 |
-
License would be to refrain entirely from conveying the Program.
|
591 |
-
|
592 |
-
13. Use with the GNU Affero General Public License.
|
593 |
-
|
594 |
-
Notwithstanding any other provision of this License, you have
|
595 |
-
permission to link or combine any covered work with a work licensed
|
596 |
-
under version 3 of the GNU Affero General Public License into a single
|
597 |
-
combined work, and to convey the resulting work. The terms of this
|
598 |
-
License will continue to apply to the part which is the covered work,
|
599 |
-
but the special requirements of the GNU Affero General Public License,
|
600 |
-
section 13, concerning interaction through a network will apply to the
|
601 |
-
combination as such.
|
602 |
-
|
603 |
-
14. Revised Versions of this License.
|
604 |
-
|
605 |
-
The Free Software Foundation may publish revised and/or new versions of
|
606 |
-
the GNU General Public License from time to time. Such new versions will
|
607 |
-
be similar in spirit to the present version, but may differ in detail to
|
608 |
-
address new problems or concerns.
|
609 |
-
|
610 |
-
Each version is given a distinguishing version number. If the
|
611 |
-
Program specifies that a certain numbered version of the GNU General
|
612 |
-
Public License "or any later version" applies to it, you have the
|
613 |
-
option of following the terms and conditions either of that numbered
|
614 |
-
version or of any later version published by the Free Software
|
615 |
-
Foundation. If the Program does not specify a version number of the
|
616 |
-
GNU General Public License, you may choose any version ever published
|
617 |
-
by the Free Software Foundation.
|
618 |
-
|
619 |
-
If the Program specifies that a proxy can decide which future
|
620 |
-
versions of the GNU General Public License can be used, that proxy's
|
621 |
-
public statement of acceptance of a version permanently authorizes you
|
622 |
-
to choose that version for the Program.
|
623 |
-
|
624 |
-
Later license versions may give you additional or different
|
625 |
-
permissions. However, no additional obligations are imposed on any
|
626 |
-
author or copyright holder as a result of your choosing to follow a
|
627 |
-
later version.
|
628 |
-
|
629 |
-
15. Disclaimer of Warranty.
|
630 |
-
|
631 |
-
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
632 |
-
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
633 |
-
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
634 |
-
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
635 |
-
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
636 |
-
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
637 |
-
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
638 |
-
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
639 |
-
|
640 |
-
16. Limitation of Liability.
|
641 |
-
|
642 |
-
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
643 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
644 |
-
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
645 |
-
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
646 |
-
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
647 |
-
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
648 |
-
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
649 |
-
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
650 |
-
SUCH DAMAGES.
|
651 |
-
|
652 |
-
17. Interpretation of Sections 15 and 16.
|
653 |
-
|
654 |
-
If the disclaimer of warranty and limitation of liability provided
|
655 |
-
above cannot be given local legal effect according to their terms,
|
656 |
-
reviewing courts shall apply local law that most closely approximates
|
657 |
-
an absolute waiver of all civil liability in connection with the
|
658 |
-
Program, unless a warranty or assumption of liability accompanies a
|
659 |
-
copy of the Program in return for a fee.
|
660 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/vendor/leafo/lessphp/Makefile
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
|
2 |
-
test:
|
3 |
-
phpunit --colors tests
|
4 |
-
|
5 |
-
release:
|
6 |
-
./package.sh
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/vendor/leafo/lessphp/README.md
DELETED
@@ -1,96 +0,0 @@
|
|
1 |
-
[![Build Status](https://travis-ci.org/leafo/lessphp.svg?branch=master)](https://travis-ci.org/leafo/lessphp)
|
2 |
-
|
3 |
-
# lessphp v0.5.0
|
4 |
-
### <http://leafo.net/lessphp>
|
5 |
-
|
6 |
-
`lessphp` is a compiler for LESS written in PHP. The documentation is great,
|
7 |
-
so check it out: <http://leafo.net/lessphp/docs/>.
|
8 |
-
|
9 |
-
Here's a quick tutorial:
|
10 |
-
|
11 |
-
### How to use in your PHP project
|
12 |
-
|
13 |
-
The only file required is `lessc.inc.php`, so copy that to your include directory.
|
14 |
-
|
15 |
-
The typical flow of **lessphp** is to create a new instance of `lessc`,
|
16 |
-
configure it how you like, then tell it to compile something using one built in
|
17 |
-
compile methods.
|
18 |
-
|
19 |
-
The `compile` method compiles a string of LESS code to CSS.
|
20 |
-
|
21 |
-
```php
|
22 |
-
<?php
|
23 |
-
require "lessc.inc.php";
|
24 |
-
|
25 |
-
$less = new lessc;
|
26 |
-
echo $less->compile(".block { padding: 3 + 4px }");
|
27 |
-
```
|
28 |
-
|
29 |
-
The `compileFile` method reads and compiles a file. It will either return the
|
30 |
-
result or write it to the path specified by an optional second argument.
|
31 |
-
|
32 |
-
```php
|
33 |
-
<?php
|
34 |
-
echo $less->compileFile("input.less");
|
35 |
-
```
|
36 |
-
|
37 |
-
The `compileChecked` method is like `compileFile`, but it only compiles if the output
|
38 |
-
file doesn't exist or it's older than the input file:
|
39 |
-
|
40 |
-
```php
|
41 |
-
<?php
|
42 |
-
$less->checkedCompile("input.less", "output.css");
|
43 |
-
```
|
44 |
-
|
45 |
-
If there any problem compiling your code, an exception is thrown with a helpful message:
|
46 |
-
|
47 |
-
```php
|
48 |
-
<?php
|
49 |
-
try {
|
50 |
-
$less->compile("invalid LESS } {");
|
51 |
-
} catch (exception $e) {
|
52 |
-
echo "fatal error: " . $e->getMessage();
|
53 |
-
}
|
54 |
-
```
|
55 |
-
|
56 |
-
The `lessc` object can be configured through an assortment of instance methods.
|
57 |
-
Some possible configuration options include [changing the output format][1],
|
58 |
-
[setting variables from PHP][2], and [controlling the preservation of
|
59 |
-
comments][3], writing [custom functions][4] and much more. It's all described
|
60 |
-
in [the documentation][0].
|
61 |
-
|
62 |
-
|
63 |
-
[0]: http://leafo.net/lessphp/docs/
|
64 |
-
[1]: http://leafo.net/lessphp/docs/#output_formatting
|
65 |
-
[2]: http://leafo.net/lessphp/docs/#setting_variables_from_php
|
66 |
-
[3]: http://leafo.net/lessphp/docs/#preserving_comments
|
67 |
-
[4]: http://leafo.net/lessphp/docs/#custom_functions
|
68 |
-
|
69 |
-
|
70 |
-
### How to use from the command line
|
71 |
-
|
72 |
-
An additional script has been included to use the compiler from the command
|
73 |
-
line. In the simplest invocation, you specify an input file and the compiled
|
74 |
-
css is written to standard out:
|
75 |
-
|
76 |
-
$ plessc input.less > output.css
|
77 |
-
|
78 |
-
Using the -r flag, you can specify LESS code directly as an argument or, if
|
79 |
-
the argument is left off, from standard in:
|
80 |
-
|
81 |
-
$ plessc -r "my less code here"
|
82 |
-
|
83 |
-
Finally, by using the -w flag you can watch a specified input file and have it
|
84 |
-
compile as needed to the output file:
|
85 |
-
|
86 |
-
$ plessc -w input-file output-file
|
87 |
-
|
88 |
-
Errors from watch mode are written to standard out.
|
89 |
-
|
90 |
-
The -f flag sets the [output formatter][1]. For example, to compress the
|
91 |
-
output run this:
|
92 |
-
|
93 |
-
$ plessc -f=compressed myfile.less
|
94 |
-
|
95 |
-
For more help, run `plessc --help`
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/vendor/leafo/lessphp/lessc.inc.php
DELETED
@@ -1,3768 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* lessphp v0.5.0
|
5 |
-
* http://leafo.net/lessphp
|
6 |
-
*
|
7 |
-
* LESS CSS compiler, adapted from http://lesscss.org
|
8 |
-
*
|
9 |
-
* Copyright 2013, Leaf Corcoran <leafot@gmail.com>
|
10 |
-
* Licensed under MIT or GPLv3, see LICENSE
|
11 |
-
*/
|
12 |
-
|
13 |
-
|
14 |
-
/**
|
15 |
-
* The LESS compiler and parser.
|
16 |
-
*
|
17 |
-
* Converting LESS to CSS is a three stage process. The incoming file is parsed
|
18 |
-
* by `lessc_parser` into a syntax tree, then it is compiled into another tree
|
19 |
-
* representing the CSS structure by `lessc`. The CSS tree is fed into a
|
20 |
-
* formatter, like `lessc_formatter` which then outputs CSS as a string.
|
21 |
-
*
|
22 |
-
* During the first compile, all values are *reduced*, which means that their
|
23 |
-
* types are brought to the lowest form before being dump as strings. This
|
24 |
-
* handles math equations, variable dereferences, and the like.
|
25 |
-
*
|
26 |
-
* The `parse` function of `lessc` is the entry point.
|
27 |
-
*
|
28 |
-
* In summary:
|
29 |
-
*
|
30 |
-
* The `lessc` class creates an instance of the parser, feeds it LESS code,
|
31 |
-
* then transforms the resulting tree to a CSS tree. This class also holds the
|
32 |
-
* evaluation context, such as all available mixins and variables at any given
|
33 |
-
* time.
|
34 |
-
*
|
35 |
-
* The `lessc_parser` class is only concerned with parsing its input.
|
36 |
-
*
|
37 |
-
* The `lessc_formatter` takes a CSS tree, and dumps it to a formatted string,
|
38 |
-
* handling things like indentation.
|
39 |
-
*/
|
40 |
-
class lessc {
|
41 |
-
static public $VERSION = "v0.5.0";
|
42 |
-
|
43 |
-
static public $TRUE = array("keyword", "true");
|
44 |
-
static public $FALSE = array("keyword", "false");
|
45 |
-
|
46 |
-
protected $libFunctions = array();
|
47 |
-
protected $registeredVars = array();
|
48 |
-
protected $preserveComments = false;
|
49 |
-
|
50 |
-
public $vPrefix = '@'; // prefix of abstract properties
|
51 |
-
public $mPrefix = '$'; // prefix of abstract blocks
|
52 |
-
public $parentSelector = '&';
|
53 |
-
|
54 |
-
public $importDisabled = false;
|
55 |
-
public $importDir = '';
|
56 |
-
|
57 |
-
protected $numberPrecision = null;
|
58 |
-
|
59 |
-
protected $allParsedFiles = array();
|
60 |
-
|
61 |
-
// set to the parser that generated the current line when compiling
|
62 |
-
// so we know how to create error messages
|
63 |
-
protected $sourceParser = null;
|
64 |
-
protected $sourceLoc = null;
|
65 |
-
|
66 |
-
static protected $nextImportId = 0; // uniquely identify imports
|
67 |
-
|
68 |
-
// attempts to find the path of an import url, returns null for css files
|
69 |
-
protected function findImport($url) {
|
70 |
-
foreach ((array)$this->importDir as $dir) {
|
71 |
-
$full = $dir.(substr($dir, -1) != '/' ? '/' : '').$url;
|
72 |
-
if ($this->fileExists($file = $full.'.less') || $this->fileExists($file = $full)) {
|
73 |
-
return $file;
|
74 |
-
}
|
75 |
-
}
|
76 |
-
|
77 |
-
return null;
|
78 |
-
}
|
79 |
-
|
80 |
-
protected function fileExists($name) {
|
81 |
-
return is_file($name);
|
82 |
-
}
|
83 |
-
|
84 |
-
static public function compressList($items, $delim) {
|
85 |
-
if (!isset($items[1]) && isset($items[0])) return $items[0];
|
86 |
-
else return array('list', $delim, $items);
|
87 |
-
}
|
88 |
-
|
89 |
-
static public function preg_quote($what) {
|
90 |
-
return preg_quote($what, '/');
|
91 |
-
}
|
92 |
-
|
93 |
-
protected function tryImport($importPath, $parentBlock, $out) {
|
94 |
-
if ($importPath[0] == "function" && $importPath[1] == "url") {
|
95 |
-
$importPath = $this->flattenList($importPath[2]);
|
96 |
-
}
|
97 |
-
|
98 |
-
$str = $this->coerceString($importPath);
|
99 |
-
if ($str === null) return false;
|
100 |
-
|
101 |
-
$url = $this->compileValue($this->lib_e($str));
|
102 |
-
|
103 |
-
// don't import if it ends in css
|
104 |
-
if (substr_compare($url, '.css', -4, 4) === 0) return false;
|
105 |
-
|
106 |
-
$realPath = $this->findImport($url);
|
107 |
-
|
108 |
-
if ($realPath === null) return false;
|
109 |
-
|
110 |
-
if ($this->importDisabled) {
|
111 |
-
return array(false, "/* import disabled */");
|
112 |
-
}
|
113 |
-
|
114 |
-
if (isset($this->allParsedFiles[realpath($realPath)])) {
|
115 |
-
return array(false, null);
|
116 |
-
}
|
117 |
-
|
118 |
-
$this->addParsedFile($realPath);
|
119 |
-
$parser = $this->makeParser($realPath);
|
120 |
-
$root = $parser->parse(file_get_contents($realPath));
|
121 |
-
|
122 |
-
// set the parents of all the block props
|
123 |
-
foreach ($root->props as $prop) {
|
124 |
-
if ($prop[0] == "block") {
|
125 |
-
$prop[1]->parent = $parentBlock;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
// copy mixins into scope, set their parents
|
130 |
-
// bring blocks from import into current block
|
131 |
-
// TODO: need to mark the source parser these came from this file
|
132 |
-
foreach ($root->children as $childName => $child) {
|
133 |
-
if (isset($parentBlock->children[$childName])) {
|
134 |
-
$parentBlock->children[$childName] = array_merge(
|
135 |
-
$parentBlock->children[$childName],
|
136 |
-
$child);
|
137 |
-
} else {
|
138 |
-
$parentBlock->children[$childName] = $child;
|
139 |
-
}
|
140 |
-
}
|
141 |
-
|
142 |
-
$pi = pathinfo($realPath);
|
143 |
-
$dir = $pi["dirname"];
|
144 |
-
|
145 |
-
list($top, $bottom) = $this->sortProps($root->props, true);
|
146 |
-
$this->compileImportedProps($top, $parentBlock, $out, $parser, $dir);
|
147 |
-
|
148 |
-
return array(true, $bottom, $parser, $dir);
|
149 |
-
}
|
150 |
-
|
151 |
-
protected function compileImportedProps($props, $block, $out, $sourceParser, $importDir) {
|
152 |
-
$oldSourceParser = $this->sourceParser;
|
153 |
-
|
154 |
-
$oldImport = $this->importDir;
|
155 |
-
|
156 |
-
// TODO: this is because the importDir api is stupid
|
157 |
-
$this->importDir = (array)$this->importDir;
|
158 |
-
array_unshift($this->importDir, $importDir);
|
159 |
-
|
160 |
-
foreach ($props as $prop) {
|
161 |
-
$this->compileProp($prop, $block, $out);
|
162 |
-
}
|
163 |
-
|
164 |
-
$this->importDir = $oldImport;
|
165 |
-
$this->sourceParser = $oldSourceParser;
|
166 |
-
}
|
167 |
-
|
168 |
-
/**
|
169 |
-
* Recursively compiles a block.
|
170 |
-
*
|
171 |
-
* A block is analogous to a CSS block in most cases. A single LESS document
|
172 |
-
* is encapsulated in a block when parsed, but it does not have parent tags
|
173 |
-
* so all of it's children appear on the root level when compiled.
|
174 |
-
*
|
175 |
-
* Blocks are made up of props and children.
|
176 |
-
*
|
177 |
-
* Props are property instructions, array tuples which describe an action
|
178 |
-
* to be taken, eg. write a property, set a variable, mixin a block.
|
179 |
-
*
|
180 |
-
* The children of a block are just all the blocks that are defined within.
|
181 |
-
* This is used to look up mixins when performing a mixin.
|
182 |
-
*
|
183 |
-
* Compiling the block involves pushing a fresh environment on the stack,
|
184 |
-
* and iterating through the props, compiling each one.
|
185 |
-
*
|
186 |
-
* See lessc::compileProp()
|
187 |
-
*
|
188 |
-
*/
|
189 |
-
protected function compileBlock($block) {
|
190 |
-
switch ($block->type) {
|
191 |
-
case "root":
|
192 |
-
$this->compileRoot($block);
|
193 |
-
break;
|
194 |
-
case null:
|
195 |
-
$this->compileCSSBlock($block);
|
196 |
-
break;
|
197 |
-
case "media":
|
198 |
-
$this->compileMedia($block);
|
199 |
-
break;
|
200 |
-
case "directive":
|
201 |
-
$name = "@" . $block->name;
|
202 |
-
if (!empty($block->value)) {
|
203 |
-
$name .= " " . $this->compileValue($this->reduce($block->value));
|
204 |
-
}
|
205 |
-
|
206 |
-
$this->compileNestedBlock($block, array($name));
|
207 |
-
break;
|
208 |
-
default:
|
209 |
-
$this->throwError("unknown block type: $block->type\n");
|
210 |
-
}
|
211 |
-
}
|
212 |
-
|
213 |
-
protected function compileCSSBlock($block) {
|
214 |
-
$env = $this->pushEnv();
|
215 |
-
|
216 |
-
$selectors = $this->compileSelectors($block->tags);
|
217 |
-
$env->selectors = $this->multiplySelectors($selectors);
|
218 |
-
$out = $this->makeOutputBlock(null, $env->selectors);
|
219 |
-
|
220 |
-
$this->scope->children[] = $out;
|
221 |
-
$this->compileProps($block, $out);
|
222 |
-
|
223 |
-
$block->scope = $env; // mixins carry scope with them!
|
224 |
-
$this->popEnv();
|
225 |
-
}
|
226 |
-
|
227 |
-
protected function compileMedia($media) {
|
228 |
-
$env = $this->pushEnv($media);
|
229 |
-
$parentScope = $this->mediaParent($this->scope);
|
230 |
-
|
231 |
-
$query = $this->compileMediaQuery($this->multiplyMedia($env));
|
232 |
-
|
233 |
-
$this->scope = $this->makeOutputBlock($media->type, array($query));
|
234 |
-
$parentScope->children[] = $this->scope;
|
235 |
-
|
236 |
-
$this->compileProps($media, $this->scope);
|
237 |
-
|
238 |
-
if (count($this->scope->lines) > 0) {
|
239 |
-
$orphanSelelectors = $this->findClosestSelectors();
|
240 |
-
if (!is_null($orphanSelelectors)) {
|
241 |
-
$orphan = $this->makeOutputBlock(null, $orphanSelelectors);
|
242 |
-
$orphan->lines = $this->scope->lines;
|
243 |
-
array_unshift($this->scope->children, $orphan);
|
244 |
-
$this->scope->lines = array();
|
245 |
-
}
|
246 |
-
}
|
247 |
-
|
248 |
-
$this->scope = $this->scope->parent;
|
249 |
-
$this->popEnv();
|
250 |
-
}
|
251 |
-
|
252 |
-
protected function mediaParent($scope) {
|
253 |
-
while (!empty($scope->parent)) {
|
254 |
-
if (!empty($scope->type) && $scope->type != "media") {
|
255 |
-
break;
|
256 |
-
}
|
257 |
-
$scope = $scope->parent;
|
258 |
-
}
|
259 |
-
|
260 |
-
return $scope;
|
261 |
-
}
|
262 |
-
|
263 |
-
protected function compileNestedBlock($block, $selectors) {
|
264 |
-
$this->pushEnv($block);
|
265 |
-
$this->scope = $this->makeOutputBlock($block->type, $selectors);
|
266 |
-
$this->scope->parent->children[] = $this->scope;
|
267 |
-
|
268 |
-
$this->compileProps($block, $this->scope);
|
269 |
-
|
270 |
-
$this->scope = $this->scope->parent;
|
271 |
-
$this->popEnv();
|
272 |
-
}
|
273 |
-
|
274 |
-
protected function compileRoot($root) {
|
275 |
-
$this->pushEnv();
|
276 |
-
$this->scope = $this->makeOutputBlock($root->type);
|
277 |
-
$this->compileProps($root, $this->scope);
|
278 |
-
$this->popEnv();
|
279 |
-
}
|
280 |
-
|
281 |
-
protected function compileProps($block, $out) {
|
282 |
-
foreach ($this->sortProps($block->props) as $prop) {
|
283 |
-
$this->compileProp($prop, $block, $out);
|
284 |
-
}
|
285 |
-
$out->lines = $this->deduplicate($out->lines);
|
286 |
-
}
|
287 |
-
|
288 |
-
/**
|
289 |
-
* Deduplicate lines in a block. Comments are not deduplicated. If a
|
290 |
-
* duplicate rule is detected, the comments immediately preceding each
|
291 |
-
* occurence are consolidated.
|
292 |
-
*/
|
293 |
-
protected function deduplicate($lines) {
|
294 |
-
$unique = array();
|
295 |
-
$comments = array();
|
296 |
-
|
297 |
-
foreach($lines as $line) {
|
298 |
-
if (strpos($line, '/*') === 0) {
|
299 |
-
$comments[] = $line;
|
300 |
-
continue;
|
301 |
-
}
|
302 |
-
if (!in_array($line, $unique)) {
|
303 |
-
$unique[] = $line;
|
304 |
-
}
|
305 |
-
array_splice($unique, array_search($line, $unique), 0, $comments);
|
306 |
-
$comments = array();
|
307 |
-
}
|
308 |
-
return array_merge($unique, $comments);
|
309 |
-
}
|
310 |
-
|
311 |
-
protected function sortProps($props, $split = false) {
|
312 |
-
$vars = array();
|
313 |
-
$imports = array();
|
314 |
-
$other = array();
|
315 |
-
$stack = array();
|
316 |
-
|
317 |
-
foreach ($props as $prop) {
|
318 |
-
switch ($prop[0]) {
|
319 |
-
case "comment":
|
320 |
-
$stack[] = $prop;
|
321 |
-
break;
|
322 |
-
case "assign":
|
323 |
-
$stack[] = $prop;
|
324 |
-
if (isset($prop[1][0]) && $prop[1][0] == $this->vPrefix) {
|
325 |
-
$vars = array_merge($vars, $stack);
|
326 |
-
} else {
|
327 |
-
$other = array_merge($other, $stack);
|
328 |
-
}
|
329 |
-
$stack = array();
|
330 |
-
break;
|
331 |
-
case "import":
|
332 |
-
$id = self::$nextImportId++;
|
333 |
-
$prop[] = $id;
|
334 |
-
$stack[] = $prop;
|
335 |
-
$imports = array_merge($imports, $stack);
|
336 |
-
$other[] = array("import_mixin", $id);
|
337 |
-
$stack = array();
|
338 |
-
break;
|
339 |
-
default:
|
340 |
-
$stack[] = $prop;
|
341 |
-
$other = array_merge($other, $stack);
|
342 |
-
$stack = array();
|
343 |
-
break;
|
344 |
-
}
|
345 |
-
}
|
346 |
-
$other = array_merge($other, $stack);
|
347 |
-
|
348 |
-
if ($split) {
|
349 |
-
return array(array_merge($imports, $vars), $other);
|
350 |
-
} else {
|
351 |
-
return array_merge($imports, $vars, $other);
|
352 |
-
}
|
353 |
-
}
|
354 |
-
|
355 |
-
protected function compileMediaQuery($queries) {
|
356 |
-
$compiledQueries = array();
|
357 |
-
foreach ($queries as $query) {
|
358 |
-
$parts = array();
|
359 |
-
foreach ($query as $q) {
|
360 |
-
switch ($q[0]) {
|
361 |
-
case "mediaType":
|
362 |
-
$parts[] = implode(" ", array_slice($q, 1));
|
363 |
-
break;
|
364 |
-
case "mediaExp":
|
365 |
-
if (isset($q[2])) {
|
366 |
-
$parts[] = "($q[1]: " .
|
367 |
-
$this->compileValue($this->reduce($q[2])) . ")";
|
368 |
-
} else {
|
369 |
-
$parts[] = "($q[1])";
|
370 |
-
}
|
371 |
-
break;
|
372 |
-
case "variable":
|
373 |
-
$parts[] = $this->compileValue($this->reduce($q));
|
374 |
-
break;
|
375 |
-
}
|
376 |
-
}
|
377 |
-
|
378 |
-
if (count($parts) > 0) {
|
379 |
-
$compiledQueries[] = implode(" and ", $parts);
|
380 |
-
}
|
381 |
-
}
|
382 |
-
|
383 |
-
$out = "@media";
|
384 |
-
if (!empty($parts)) {
|
385 |
-
$out .= " " .
|
386 |
-
implode($this->formatter->selectorSeparator, $compiledQueries);
|
387 |
-
}
|
388 |
-
return $out;
|
389 |
-
}
|
390 |
-
|
391 |
-
protected function multiplyMedia($env, $childQueries = null) {
|
392 |
-
if (is_null($env) ||
|
393 |
-
!empty($env->block->type) && $env->block->type != "media")
|
394 |
-
{
|
395 |
-
return $childQueries;
|
396 |
-
}
|
397 |
-
|
398 |
-
// plain old block, skip
|
399 |
-
if (empty($env->block->type)) {
|
400 |
-
return $this->multiplyMedia($env->parent, $childQueries);
|
401 |
-
}
|
402 |
-
|
403 |
-
$out = array();
|
404 |
-
$queries = $env->block->queries;
|
405 |
-
if (is_null($childQueries)) {
|
406 |
-
$out = $queries;
|
407 |
-
} else {
|
408 |
-
foreach ($queries as $parent) {
|
409 |
-
foreach ($childQueries as $child) {
|
410 |
-
$out[] = array_merge($parent, $child);
|
411 |
-
}
|
412 |
-
}
|
413 |
-
}
|
414 |
-
|
415 |
-
return $this->multiplyMedia($env->parent, $out);
|
416 |
-
}
|
417 |
-
|
418 |
-
protected function expandParentSelectors(&$tag, $replace) {
|
419 |
-
$parts = explode("$&$", $tag);
|
420 |
-
$count = 0;
|
421 |
-
foreach ($parts as &$part) {
|
422 |
-
$part = str_replace($this->parentSelector, $replace, $part, $c);
|
423 |
-
$count += $c;
|
424 |
-
}
|
425 |
-
$tag = implode($this->parentSelector, $parts);
|
426 |
-
return $count;
|
427 |
-
}
|
428 |
-
|
429 |
-
protected function findClosestSelectors() {
|
430 |
-
$env = $this->env;
|
431 |
-
$selectors = null;
|
432 |
-
while ($env !== null) {
|
433 |
-
if (isset($env->selectors)) {
|
434 |
-
$selectors = $env->selectors;
|
435 |
-
break;
|
436 |
-
}
|
437 |
-
$env = $env->parent;
|
438 |
-
}
|
439 |
-
|
440 |
-
return $selectors;
|
441 |
-
}
|
442 |
-
|
443 |
-
|
444 |
-
// multiply $selectors against the nearest selectors in env
|
445 |
-
protected function multiplySelectors($selectors) {
|
446 |
-
// find parent selectors
|
447 |
-
|
448 |
-
$parentSelectors = $this->findClosestSelectors();
|
449 |
-
if (is_null($parentSelectors)) {
|
450 |
-
// kill parent reference in top level selector
|
451 |
-
foreach ($selectors as &$s) {
|
452 |
-
$this->expandParentSelectors($s, "");
|
453 |
-
}
|
454 |
-
|
455 |
-
return $selectors;
|
456 |
-
}
|
457 |
-
|
458 |
-
$out = array();
|
459 |
-
foreach ($parentSelectors as $parent) {
|
460 |
-
foreach ($selectors as $child) {
|
461 |
-
$count = $this->expandParentSelectors($child, $parent);
|
462 |
-
|
463 |
-
// don't prepend the parent tag if & was used
|
464 |
-
if ($count > 0) {
|
465 |
-
$out[] = trim($child);
|
466 |
-
} else {
|
467 |
-
$out[] = trim($parent . ' ' . $child);
|
468 |
-
}
|
469 |
-
}
|
470 |
-
}
|
471 |
-
|
472 |
-
return $out;
|
473 |
-
}
|
474 |
-
|
475 |
-
// reduces selector expressions
|
476 |
-
protected function compileSelectors($selectors) {
|
477 |
-
$out = array();
|
478 |
-
|
479 |
-
foreach ($selectors as $s) {
|
480 |
-
if (is_array($s)) {
|
481 |
-
list(, $value) = $s;
|
482 |
-
$out[] = trim($this->compileValue($this->reduce($value)));
|
483 |
-
} else {
|
484 |
-
$out[] = $s;
|
485 |
-
}
|
486 |
-
}
|
487 |
-
|
488 |
-
return $out;
|
489 |
-
}
|
490 |
-
|
491 |
-
protected function eq($left, $right) {
|
492 |
-
return $left == $right;
|
493 |
-
}
|
494 |
-
|
495 |
-
protected function patternMatch($block, $orderedArgs, $keywordArgs) {
|
496 |
-
// match the guards if it has them
|
497 |
-
// any one of the groups must have all its guards pass for a match
|
498 |
-
if (!empty($block->guards)) {
|
499 |
-
$groupPassed = false;
|
500 |
-
foreach ($block->guards as $guardGroup) {
|
501 |
-
foreach ($guardGroup as $guard) {
|
502 |
-
$this->pushEnv();
|
503 |
-
$this->zipSetArgs($block->args, $orderedArgs, $keywordArgs);
|
504 |
-
|
505 |
-
$negate = false;
|
506 |
-
if ($guard[0] == "negate") {
|
507 |
-
$guard = $guard[1];
|
508 |
-
$negate = true;
|
509 |
-
}
|
510 |
-
|
511 |
-
$passed = $this->reduce($guard) == self::$TRUE;
|
512 |
-
if ($negate) $passed = !$passed;
|
513 |
-
|
514 |
-
$this->popEnv();
|
515 |
-
|
516 |
-
if ($passed) {
|
517 |
-
$groupPassed = true;
|
518 |
-
} else {
|
519 |
-
$groupPassed = false;
|
520 |
-
break;
|
521 |
-
}
|
522 |
-
}
|
523 |
-
|
524 |
-
if ($groupPassed) break;
|
525 |
-
}
|
526 |
-
|
527 |
-
if (!$groupPassed) {
|
528 |
-
return false;
|
529 |
-
}
|
530 |
-
}
|
531 |
-
|
532 |
-
if (empty($block->args)) {
|
533 |
-
return $block->isVararg || empty($orderedArgs) && empty($keywordArgs);
|
534 |
-
}
|
535 |
-
|
536 |
-
$remainingArgs = $block->args;
|
537 |
-
if ($keywordArgs) {
|
538 |
-
$remainingArgs = array();
|
539 |
-
foreach ($block->args as $arg) {
|
540 |
-
if ($arg[0] == "arg" && isset($keywordArgs[$arg[1]])) {
|
541 |
-
continue;
|
542 |
-
}
|
543 |
-
|
544 |
-
$remainingArgs[] = $arg;
|
545 |
-
}
|
546 |
-
}
|
547 |
-
|
548 |
-
$i = -1; // no args
|
549 |
-
// try to match by arity or by argument literal
|
550 |
-
foreach ($remainingArgs as $i => $arg) {
|
551 |
-
switch ($arg[0]) {
|
552 |
-
case "lit":
|
553 |
-
if (empty($orderedArgs[$i]) || !$this->eq($arg[1], $orderedArgs[$i])) {
|
554 |
-
return false;
|
555 |
-
}
|
556 |
-
break;
|
557 |
-
case "arg":
|
558 |
-
// no arg and no default value
|
559 |
-
if (!isset($orderedArgs[$i]) && !isset($arg[2])) {
|
560 |
-
return false;
|
561 |
-
}
|
562 |
-
break;
|
563 |
-
case "rest":
|
564 |
-
$i--; // rest can be empty
|
565 |
-
break 2;
|
566 |
-
}
|
567 |
-
}
|
568 |
-
|
569 |
-
if ($block->isVararg) {
|
570 |
-
return true; // not having enough is handled above
|
571 |
-
} else {
|
572 |
-
$numMatched = $i + 1;
|
573 |
-
// greater than becuase default values always match
|
574 |
-
return $numMatched >= count($orderedArgs);
|
575 |
-
}
|
576 |
-
}
|
577 |
-
|
578 |
-
protected function patternMatchAll($blocks, $orderedArgs, $keywordArgs, $skip=array()) {
|
579 |
-
$matches = null;
|
580 |
-
foreach ($blocks as $block) {
|
581 |
-
// skip seen blocks that don't have arguments
|
582 |
-
if (isset($skip[$block->id]) && !isset($block->args)) {
|
583 |
-
continue;
|
584 |
-
}
|
585 |
-
|
586 |
-
if ($this->patternMatch($block, $orderedArgs, $keywordArgs)) {
|
587 |
-
$matches[] = $block;
|
588 |
-
}
|
589 |
-
}
|
590 |
-
|
591 |
-
return $matches;
|
592 |
-
}
|
593 |
-
|
594 |
-
// attempt to find blocks matched by path and args
|
595 |
-
protected function findBlocks($searchIn, $path, $orderedArgs, $keywordArgs, $seen=array()) {
|
596 |
-
if ($searchIn == null) return null;
|
597 |
-
if (isset($seen[$searchIn->id])) return null;
|
598 |
-
$seen[$searchIn->id] = true;
|
599 |
-
|
600 |
-
$name = $path[0];
|
601 |
-
|
602 |
-
if (isset($searchIn->children[$name])) {
|
603 |
-
$blocks = $searchIn->children[$name];
|
604 |
-
if (count($path) == 1) {
|
605 |
-
$matches = $this->patternMatchAll($blocks, $orderedArgs, $keywordArgs, $seen);
|
606 |
-
if (!empty($matches)) {
|
607 |
-
// This will return all blocks that match in the closest
|
608 |
-
// scope that has any matching block, like lessjs
|
609 |
-
return $matches;
|
610 |
-
}
|
611 |
-
} else {
|
612 |
-
$matches = array();
|
613 |
-
foreach ($blocks as $subBlock) {
|
614 |
-
$subMatches = $this->findBlocks($subBlock,
|
615 |
-
array_slice($path, 1), $orderedArgs, $keywordArgs, $seen);
|
616 |
-
|
617 |
-
if (!is_null($subMatches)) {
|
618 |
-
foreach ($subMatches as $sm) {
|
619 |
-
$matches[] = $sm;
|
620 |
-
}
|
621 |
-
}
|
622 |
-
}
|
623 |
-
|
624 |
-
return count($matches) > 0 ? $matches : null;
|
625 |
-
}
|
626 |
-
}
|
627 |
-
if ($searchIn->parent === $searchIn) return null;
|
628 |
-
return $this->findBlocks($searchIn->parent, $path, $orderedArgs, $keywordArgs, $seen);
|
629 |
-
}
|
630 |
-
|
631 |
-
// sets all argument names in $args to either the default value
|
632 |
-
// or the one passed in through $values
|
633 |
-
protected function zipSetArgs($args, $orderedValues, $keywordValues) {
|
634 |
-
$assignedValues = array();
|
635 |
-
|
636 |
-
$i = 0;
|
637 |
-
foreach ($args as $a) {
|
638 |
-
if ($a[0] == "arg") {
|
639 |
-
if (isset($keywordValues[$a[1]])) {
|
640 |
-
// has keyword arg
|
641 |
-
$value = $keywordValues[$a[1]];
|
642 |
-
} elseif (isset($orderedValues[$i])) {
|
643 |
-
// has ordered arg
|
644 |
-
$value = $orderedValues[$i];
|
645 |
-
$i++;
|
646 |
-
} elseif (isset($a[2])) {
|
647 |
-
// has default value
|
648 |
-
$value = $a[2];
|
649 |
-
} else {
|
650 |
-
$this->throwError("Failed to assign arg " . $a[1]);
|
651 |
-
$value = null; // :(
|
652 |
-
}
|
653 |
-
|
654 |
-
$value = $this->reduce($value);
|
655 |
-
$this->set($a[1], $value);
|
656 |
-
$assignedValues[] = $value;
|
657 |
-
} else {
|
658 |
-
// a lit
|
659 |
-
$i++;
|
660 |
-
}
|
661 |
-
}
|
662 |
-
|
663 |
-
// check for a rest
|
664 |
-
$last = end($args);
|
665 |
-
if (is_array($last) && isset($last[0]) && $last[0] == "rest") {
|
666 |
-
$rest = array_slice($orderedValues, count($args) - 1);
|
667 |
-
$this->set($last[1], $this->reduce(array("list", " ", $rest)));
|
668 |
-
}
|
669 |
-
|
670 |
-
// wow is this the only true use of PHP's + operator for arrays?
|
671 |
-
$this->env->arguments = $assignedValues + $orderedValues;
|
672 |
-
}
|
673 |
-
|
674 |
-
// compile a prop and update $lines or $blocks appropriately
|
675 |
-
protected function compileProp($prop, $block, $out) {
|
676 |
-
// set error position context
|
677 |
-
$this->sourceLoc = isset($prop[-1]) ? $prop[-1] : -1;
|
678 |
-
|
679 |
-
switch ($prop[0]) {
|
680 |
-
case 'assign':
|
681 |
-
list(, $name, $value) = $prop;
|
682 |
-
if ($name[0] == $this->vPrefix) {
|
683 |
-
$this->set($name, $value);
|
684 |
-
} else {
|
685 |
-
$out->lines[] = $this->formatter->property($name,
|
686 |
-
$this->compileValue($this->reduce($value)));
|
687 |
-
}
|
688 |
-
break;
|
689 |
-
case 'block':
|
690 |
-
list(, $child) = $prop;
|
691 |
-
$this->compileBlock($child);
|
692 |
-
break;
|
693 |
-
case 'mixin':
|
694 |
-
list(, $path, $args, $suffix) = $prop;
|
695 |
-
|
696 |
-
$orderedArgs = array();
|
697 |
-
$keywordArgs = array();
|
698 |
-
foreach ((array)$args as $arg) {
|
699 |
-
$argval = null;
|
700 |
-
switch ($arg[0]) {
|
701 |
-
case "arg":
|
702 |
-
if (!isset($arg[2])) {
|
703 |
-
$orderedArgs[] = $this->reduce(array("variable", $arg[1]));
|
704 |
-
} else {
|
705 |
-
$keywordArgs[$arg[1]] = $this->reduce($arg[2]);
|
706 |
-
}
|
707 |
-
break;
|
708 |
-
|
709 |
-
case "lit":
|
710 |
-
$orderedArgs[] = $this->reduce($arg[1]);
|
711 |
-
break;
|
712 |
-
default:
|
713 |
-
$this->throwError("Unknown arg type: " . $arg[0]);
|
714 |
-
}
|
715 |
-
}
|
716 |
-
|
717 |
-
$mixins = $this->findBlocks($block, $path, $orderedArgs, $keywordArgs);
|
718 |
-
|
719 |
-
if ($mixins === null) {
|
720 |
-
$this->throwError("{$prop[1][0]} is undefined");
|
721 |
-
}
|
722 |
-
|
723 |
-
foreach ($mixins as $mixin) {
|
724 |
-
if ($mixin === $block && !$orderedArgs) {
|
725 |
-
continue;
|
726 |
-
}
|
727 |
-
|
728 |
-
$haveScope = false;
|
729 |
-
if (isset($mixin->parent->scope)) {
|
730 |
-
$haveScope = true;
|
731 |
-
$mixinParentEnv = $this->pushEnv();
|
732 |
-
$mixinParentEnv->storeParent = $mixin->parent->scope;
|
733 |
-
}
|
734 |
-
|
735 |
-
$haveArgs = false;
|
736 |
-
if (isset($mixin->args)) {
|
737 |
-
$haveArgs = true;
|
738 |
-
$this->pushEnv();
|
739 |
-
$this->zipSetArgs($mixin->args, $orderedArgs, $keywordArgs);
|
740 |
-
}
|
741 |
-
|
742 |
-
$oldParent = $mixin->parent;
|
743 |
-
if ($mixin != $block) $mixin->parent = $block;
|
744 |
-
|
745 |
-
foreach ($this->sortProps($mixin->props) as $subProp) {
|
746 |
-
if ($suffix !== null &&
|
747 |
-
$subProp[0] == "assign" &&
|
748 |
-
is_string($subProp[1]) &&
|
749 |
-
$subProp[1][0] != $this->vPrefix)
|
750 |
-
{
|
751 |
-
$subProp[2] = array(
|
752 |
-
'list', ' ',
|
753 |
-
array($subProp[2], array('keyword', $suffix))
|
754 |
-
);
|
755 |
-
}
|
756 |
-
|
757 |
-
$this->compileProp($subProp, $mixin, $out);
|
758 |
-
}
|
759 |
-
|
760 |
-
$mixin->parent = $oldParent;
|
761 |
-
|
762 |
-
if ($haveArgs) $this->popEnv();
|
763 |
-
if ($haveScope) $this->popEnv();
|
764 |
-
}
|
765 |
-
|
766 |
-
break;
|
767 |
-
case 'raw':
|
768 |
-
$out->lines[] = $prop[1];
|
769 |
-
break;
|
770 |
-
case "directive":
|
771 |
-
list(, $name, $value) = $prop;
|
772 |
-
$out->lines[] = "@$name " . $this->compileValue($this->reduce($value)).';';
|
773 |
-
break;
|
774 |
-
case "comment":
|
775 |
-
$out->lines[] = $prop[1];
|
776 |
-
break;
|
777 |
-
case "import";
|
778 |
-
list(, $importPath, $importId) = $prop;
|
779 |
-
$importPath = $this->reduce($importPath);
|
780 |
-
|
781 |
-
if (!isset($this->env->imports)) {
|
782 |
-
$this->env->imports = array();
|
783 |
-
}
|
784 |
-
|
785 |
-
$result = $this->tryImport($importPath, $block, $out);
|
786 |
-
|
787 |
-
$this->env->imports[$importId] = $result === false ?
|
788 |
-
array(false, "@import " . $this->compileValue($importPath).";") :
|
789 |
-
$result;
|
790 |
-
|
791 |
-
break;
|
792 |
-
case "import_mixin":
|
793 |
-
list(,$importId) = $prop;
|
794 |
-
$import = $this->env->imports[$importId];
|
795 |
-
if ($import[0] === false) {
|
796 |
-
if (isset($import[1])) {
|
797 |
-
$out->lines[] = $import[1];
|
798 |
-
}
|
799 |
-
} else {
|
800 |
-
list(, $bottom, $parser, $importDir) = $import;
|
801 |
-
$this->compileImportedProps($bottom, $block, $out, $parser, $importDir);
|
802 |
-
}
|
803 |
-
|
804 |
-
break;
|
805 |
-
default:
|
806 |
-
$this->throwError("unknown op: {$prop[0]}\n");
|
807 |
-
}
|
808 |
-
}
|
809 |
-
|
810 |
-
|
811 |
-
/**
|
812 |
-
* Compiles a primitive value into a CSS property value.
|
813 |
-
*
|
814 |
-
* Values in lessphp are typed by being wrapped in arrays, their format is
|
815 |
-
* typically:
|
816 |
-
*
|
817 |
-
* array(type, contents [, additional_contents]*)
|
818 |
-
*
|
819 |
-
* The input is expected to be reduced. This function will not work on
|
820 |
-
* things like expressions and variables.
|
821 |
-
*/
|
822 |
-
public function compileValue($value) {
|
823 |
-
switch ($value[0]) {
|
824 |
-
case 'list':
|
825 |
-
// [1] - delimiter
|
826 |
-
// [2] - array of values
|
827 |
-
return implode($value[1], array_map(array($this, 'compileValue'), $value[2]));
|
828 |
-
case 'raw_color':
|
829 |
-
if (!empty($this->formatter->compressColors)) {
|
830 |
-
return $this->compileValue($this->coerceColor($value));
|
831 |
-
}
|
832 |
-
return $value[1];
|
833 |
-
case 'keyword':
|
834 |
-
// [1] - the keyword
|
835 |
-
return $value[1];
|
836 |
-
case 'number':
|
837 |
-
list(, $num, $unit) = $value;
|
838 |
-
// [1] - the number
|
839 |
-
// [2] - the unit
|
840 |
-
if ($this->numberPrecision !== null) {
|
841 |
-
$num = round($num, $this->numberPrecision);
|
842 |
-
}
|
843 |
-
return $num . $unit;
|
844 |
-
case 'string':
|
845 |
-
// [1] - contents of string (includes quotes)
|
846 |
-
list(, $delim, $content) = $value;
|
847 |
-
foreach ($content as &$part) {
|
848 |
-
if (is_array($part)) {
|
849 |
-
$part = $this->compileValue($part);
|
850 |
-
}
|
851 |
-
}
|
852 |
-
return $delim . implode($content) . $delim;
|
853 |
-
case 'color':
|
854 |
-
// [1] - red component (either number or a %)
|
855 |
-
// [2] - green component
|
856 |
-
// [3] - blue component
|
857 |
-
// [4] - optional alpha component
|
858 |
-
list(, $r, $g, $b) = $value;
|
859 |
-
$r = round($r);
|
860 |
-
$g = round($g);
|
861 |
-
$b = round($b);
|
862 |
-
|
863 |
-
if (count($value) == 5 && $value[4] != 1) { // rgba
|
864 |
-
return 'rgba('.$r.','.$g.','.$b.','.$value[4].')';
|
865 |
-
}
|
866 |
-
|
867 |
-
$h = sprintf("#%02x%02x%02x", $r, $g, $b);
|
868 |
-
|
869 |
-
if (!empty($this->formatter->compressColors)) {
|
870 |
-
// Converting hex color to short notation (e.g. #003399 to #039)
|
871 |
-
if ($h[1] === $h[2] && $h[3] === $h[4] && $h[5] === $h[6]) {
|
872 |
-
$h = '#' . $h[1] . $h[3] . $h[5];
|
873 |
-
}
|
874 |
-
}
|
875 |
-
|
876 |
-
return $h;
|
877 |
-
|
878 |
-
case 'function':
|
879 |
-
list(, $name, $args) = $value;
|
880 |
-
return $name.'('.$this->compileValue($args).')';
|
881 |
-
default: // assumed to be unit
|
882 |
-
$this->throwError("unknown value type: $value[0]");
|
883 |
-
}
|
884 |
-
}
|
885 |
-
|
886 |
-
protected function lib_pow($args) {
|
887 |
-
list($base, $exp) = $this->assertArgs($args, 2, "pow");
|
888 |
-
return pow($this->assertNumber($base), $this->assertNumber($exp));
|
889 |
-
}
|
890 |
-
|
891 |
-
protected function lib_pi() {
|
892 |
-
return pi();
|
893 |
-
}
|
894 |
-
|
895 |
-
protected function lib_mod($args) {
|
896 |
-
list($a, $b) = $this->assertArgs($args, 2, "mod");
|
897 |
-
return $this->assertNumber($a) % $this->assertNumber($b);
|
898 |
-
}
|
899 |
-
|
900 |
-
protected function lib_tan($num) {
|
901 |
-
return tan($this->assertNumber($num));
|
902 |
-
}
|
903 |
-
|
904 |
-
protected function lib_sin($num) {
|
905 |
-
return sin($this->assertNumber($num));
|
906 |
-
}
|
907 |
-
|
908 |
-
protected function lib_cos($num) {
|
909 |
-
return cos($this->assertNumber($num));
|
910 |
-
}
|
911 |
-
|
912 |
-
protected function lib_atan($num) {
|
913 |
-
$num = atan($this->assertNumber($num));
|
914 |
-
return array("number", $num, "rad");
|
915 |
-
}
|
916 |
-
|
917 |
-
protected function lib_asin($num) {
|
918 |
-
$num = asin($this->assertNumber($num));
|
919 |
-
return array("number", $num, "rad");
|
920 |
-
}
|
921 |
-
|
922 |
-
protected function lib_acos($num) {
|
923 |
-
$num = acos($this->assertNumber($num));
|
924 |
-
return array("number", $num, "rad");
|
925 |
-
}
|
926 |
-
|
927 |
-
protected function lib_sqrt($num) {
|
928 |
-
return sqrt($this->assertNumber($num));
|
929 |
-
}
|
930 |
-
|
931 |
-
protected function lib_extract($value) {
|
932 |
-
list($list, $idx) = $this->assertArgs($value, 2, "extract");
|
933 |
-
$idx = $this->assertNumber($idx);
|
934 |
-
// 1 indexed
|
935 |
-
if ($list[0] == "list" && isset($list[2][$idx - 1])) {
|
936 |
-
return $list[2][$idx - 1];
|
937 |
-
}
|
938 |
-
}
|
939 |
-
|
940 |
-
protected function lib_isnumber($value) {
|
941 |
-
return $this->toBool($value[0] == "number");
|
942 |
-
}
|
943 |
-
|
944 |
-
protected function lib_isstring($value) {
|
945 |
-
return $this->toBool($value[0] == "string");
|
946 |
-
}
|
947 |
-
|
948 |
-
protected function lib_iscolor($value) {
|
949 |
-
return $this->toBool($this->coerceColor($value));
|
950 |
-
}
|
951 |
-
|
952 |
-
protected function lib_iskeyword($value) {
|
953 |
-
return $this->toBool($value[0] == "keyword");
|
954 |
-
}
|
955 |
-
|
956 |
-
protected function lib_ispixel($value) {
|
957 |
-
return $this->toBool($value[0] == "number" && $value[2] == "px");
|
958 |
-
}
|
959 |
-
|
960 |
-
protected function lib_ispercentage($value) {
|
961 |
-
return $this->toBool($value[0] == "number" && $value[2] == "%");
|
962 |
-
}
|
963 |
-
|
964 |
-
protected function lib_isem($value) {
|
965 |
-
return $this->toBool($value[0] == "number" && $value[2] == "em");
|
966 |
-
}
|
967 |
-
|
968 |
-
protected function lib_isrem($value) {
|
969 |
-
return $this->toBool($value[0] == "number" && $value[2] == "rem");
|
970 |
-
}
|
971 |
-
|
972 |
-
protected function lib_rgbahex($color) {
|
973 |
-
$color = $this->coerceColor($color);
|
974 |
-
if (is_null($color))
|
975 |
-
$this->throwError("color expected for rgbahex");
|
976 |
-
|
977 |
-
return sprintf("#%02x%02x%02x%02x",
|
978 |
-
isset($color[4]) ? $color[4]*255 : 255,
|
979 |
-
$color[1],$color[2], $color[3]);
|
980 |
-
}
|
981 |
-
|
982 |
-
protected function lib_argb($color){
|
983 |
-
return $this->lib_rgbahex($color);
|
984 |
-
}
|
985 |
-
|
986 |
-
/**
|
987 |
-
* Given an url, decide whether to output a regular link or the base64-encoded contents of the file
|
988 |
-
*
|
989 |
-
* @param array $value either an argument list (two strings) or a single string
|
990 |
-
* @return string formatted url(), either as a link or base64-encoded
|
991 |
-
*/
|
992 |
-
protected function lib_data_uri($value) {
|
993 |
-
$mime = ($value[0] === 'list') ? $value[2][0][2] : null;
|
994 |
-
$url = ($value[0] === 'list') ? $value[2][1][2][0] : $value[2][0];
|
995 |
-
|
996 |
-
$fullpath = $this->findImport($url);
|
997 |
-
|
998 |
-
if($fullpath && ($fsize = filesize($fullpath)) !== false) {
|
999 |
-
// IE8 can't handle data uris larger than 32KB
|
1000 |
-
if($fsize/1024 < 32) {
|
1001 |
-
if(is_null($mime)) {
|
1002 |
-
if(class_exists('finfo')) { // php 5.3+
|
1003 |
-
$finfo = new finfo(FILEINFO_MIME);
|
1004 |
-
$mime = explode('; ', $finfo->file($fullpath));
|
1005 |
-
$mime = $mime[0];
|
1006 |
-
} elseif(function_exists('mime_content_type')) { // PHP 5.2
|
1007 |
-
$mime = mime_content_type($fullpath);
|
1008 |
-
}
|
1009 |
-
}
|
1010 |
-
|
1011 |
-
if(!is_null($mime)) // fallback if the mime type is still unknown
|
1012 |
-
$url = sprintf('data:%s;base64,%s', $mime, base64_encode(file_get_contents($fullpath)));
|
1013 |
-
}
|
1014 |
-
}
|
1015 |
-
|
1016 |
-
return 'url("'.$url.'")';
|
1017 |
-
}
|
1018 |
-
|
1019 |
-
// utility func to unquote a string
|
1020 |
-
protected function lib_e($arg) {
|
1021 |
-
switch ($arg[0]) {
|
1022 |
-
case "list":
|
1023 |
-
$items = $arg[2];
|
1024 |
-
if (isset($items[0])) {
|
1025 |
-
return $this->lib_e($items[0]);
|
1026 |
-
}
|
1027 |
-
$this->throwError("unrecognised input");
|
1028 |
-
case "string":
|
1029 |
-
$arg[1] = "";
|
1030 |
-
return $arg;
|
1031 |
-
case "keyword":
|
1032 |
-
return $arg;
|
1033 |
-
default:
|
1034 |
-
return array("keyword", $this->compileValue($arg));
|
1035 |
-
}
|
1036 |
-
}
|
1037 |
-
|
1038 |
-
protected function lib__sprintf($args) {
|
1039 |
-
if ($args[0] != "list") return $args;
|
1040 |
-
$values = $args[2];
|
1041 |
-
$string = array_shift($values);
|
1042 |
-
$template = $this->compileValue($this->lib_e($string));
|
1043 |
-
|
1044 |
-
$i = 0;
|
1045 |
-
if (preg_match_all('/%[dsa]/', $template, $m)) {
|
1046 |
-
foreach ($m[0] as $match) {
|
1047 |
-
$val = isset($values[$i]) ?
|
1048 |
-
$this->reduce($values[$i]) : array('keyword', '');
|
1049 |
-
|
1050 |
-
// lessjs compat, renders fully expanded color, not raw color
|
1051 |
-
if ($color = $this->coerceColor($val)) {
|
1052 |
-
$val = $color;
|
1053 |
-
}
|
1054 |
-
|
1055 |
-
$i++;
|
1056 |
-
$rep = $this->compileValue($this->lib_e($val));
|
1057 |
-
$template = preg_replace('/'.self::preg_quote($match).'/',
|
1058 |
-
$rep, $template, 1);
|
1059 |
-
}
|
1060 |
-
}
|
1061 |
-
|
1062 |
-
$d = $string[0] == "string" ? $string[1] : '"';
|
1063 |
-
return array("string", $d, array($template));
|
1064 |
-
}
|
1065 |
-
|
1066 |
-
protected function lib_floor($arg) {
|
1067 |
-
$value = $this->assertNumber($arg);
|
1068 |
-
return array("number", floor($value), $arg[2]);
|
1069 |
-
}
|
1070 |
-
|
1071 |
-
protected function lib_ceil($arg) {
|
1072 |
-
$value = $this->assertNumber($arg);
|
1073 |
-
return array("number", ceil($value), $arg[2]);
|
1074 |
-
}
|
1075 |
-
|
1076 |
-
protected function lib_round($arg) {
|
1077 |
-
if($arg[0] != "list") {
|
1078 |
-
$value = $this->assertNumber($arg);
|
1079 |
-
return array("number", round($value), $arg[2]);
|
1080 |
-
} else {
|
1081 |
-
$value = $this->assertNumber($arg[2][0]);
|
1082 |
-
$precision = $this->assertNumber($arg[2][1]);
|
1083 |
-
return array("number", round($value, $precision), $arg[2][0][2]);
|
1084 |
-
}
|
1085 |
-
}
|
1086 |
-
|
1087 |
-
protected function lib_unit($arg) {
|
1088 |
-
if ($arg[0] == "list") {
|
1089 |
-
list($number, $newUnit) = $arg[2];
|
1090 |
-
return array("number", $this->assertNumber($number),
|
1091 |
-
$this->compileValue($this->lib_e($newUnit)));
|
1092 |
-
} else {
|
1093 |
-
return array("number", $this->assertNumber($arg), "");
|
1094 |
-
}
|
1095 |
-
}
|
1096 |
-
|
1097 |
-
/**
|
1098 |
-
* Helper function to get arguments for color manipulation functions.
|
1099 |
-
* takes a list that contains a color like thing and a percentage
|
1100 |
-
*/
|
1101 |
-
public function colorArgs($args) {
|
1102 |
-
if ($args[0] != 'list' || count($args[2]) < 2) {
|
1103 |
-
return array(array('color', 0, 0, 0), 0);
|
1104 |
-
}
|
1105 |
-
list($color, $delta) = $args[2];
|
1106 |
-
$color = $this->assertColor($color);
|
1107 |
-
$delta = floatval($delta[1]);
|
1108 |
-
|
1109 |
-
return array($color, $delta);
|
1110 |
-
}
|
1111 |
-
|
1112 |
-
protected function lib_darken($args) {
|
1113 |
-
list($color, $delta) = $this->colorArgs($args);
|
1114 |
-
|
1115 |
-
$hsl = $this->toHSL($color);
|
1116 |
-
$hsl[3] = $this->clamp($hsl[3] - $delta, 100);
|
1117 |
-
return $this->toRGB($hsl);
|
1118 |
-
}
|
1119 |
-
|
1120 |
-
protected function lib_lighten($args) {
|
1121 |
-
list($color, $delta) = $this->colorArgs($args);
|
1122 |
-
|
1123 |
-
$hsl = $this->toHSL($color);
|
1124 |
-
$hsl[3] = $this->clamp($hsl[3] + $delta, 100);
|
1125 |
-
return $this->toRGB($hsl);
|
1126 |
-
}
|
1127 |
-
|
1128 |
-
protected function lib_saturate($args) {
|
1129 |
-
list($color, $delta) = $this->colorArgs($args);
|
1130 |
-
|
1131 |
-
$hsl = $this->toHSL($color);
|
1132 |
-
$hsl[2] = $this->clamp($hsl[2] + $delta, 100);
|
1133 |
-
return $this->toRGB($hsl);
|
1134 |
-
}
|
1135 |
-
|
1136 |
-
protected function lib_desaturate($args) {
|
1137 |
-
list($color, $delta) = $this->colorArgs($args);
|
1138 |
-
|
1139 |
-
$hsl = $this->toHSL($color);
|
1140 |
-
$hsl[2] = $this->clamp($hsl[2] - $delta, 100);
|
1141 |
-
return $this->toRGB($hsl);
|
1142 |
-
}
|
1143 |
-
|
1144 |
-
protected function lib_spin($args) {
|
1145 |
-
list($color, $delta) = $this->colorArgs($args);
|
1146 |
-
|
1147 |
-
$hsl = $this->toHSL($color);
|
1148 |
-
|
1149 |
-
$hsl[1] = $hsl[1] + $delta % 360;
|
1150 |
-
if ($hsl[1] < 0) $hsl[1] += 360;
|
1151 |
-
|
1152 |
-
return $this->toRGB($hsl);
|
1153 |
-
}
|
1154 |
-
|
1155 |
-
protected function lib_fadeout($args) {
|
1156 |
-
list($color, $delta) = $this->colorArgs($args);
|
1157 |
-
$color[4] = $this->clamp((isset($color[4]) ? $color[4] : 1) - $delta/100);
|
1158 |
-
return $color;
|
1159 |
-
}
|
1160 |
-
|
1161 |
-
protected function lib_fadein($args) {
|
1162 |
-
list($color, $delta) = $this->colorArgs($args);
|
1163 |
-
$color[4] = $this->clamp((isset($color[4]) ? $color[4] : 1) + $delta/100);
|
1164 |
-
return $color;
|
1165 |
-
}
|
1166 |
-
|
1167 |
-
protected function lib_hue($color) {
|
1168 |
-
$hsl = $this->toHSL($this->assertColor($color));
|
1169 |
-
return round($hsl[1]);
|
1170 |
-
}
|
1171 |
-
|
1172 |
-
protected function lib_saturation($color) {
|
1173 |
-
$hsl = $this->toHSL($this->assertColor($color));
|
1174 |
-
return round($hsl[2]);
|
1175 |
-
}
|
1176 |
-
|
1177 |
-
protected function lib_lightness($color) {
|
1178 |
-
$hsl = $this->toHSL($this->assertColor($color));
|
1179 |
-
return round($hsl[3]);
|
1180 |
-
}
|
1181 |
-
|
1182 |
-
// get the alpha of a color
|
1183 |
-
// defaults to 1 for non-colors or colors without an alpha
|
1184 |
-
protected function lib_alpha($value) {
|
1185 |
-
if (!is_null($color = $this->coerceColor($value))) {
|
1186 |
-
return isset($color[4]) ? $color[4] : 1;
|
1187 |
-
}
|
1188 |
-
}
|
1189 |
-
|
1190 |
-
// set the alpha of the color
|
1191 |
-
protected function lib_fade($args) {
|
1192 |
-
list($color, $alpha) = $this->colorArgs($args);
|
1193 |
-
$color[4] = $this->clamp($alpha / 100.0);
|
1194 |
-
return $color;
|
1195 |
-
}
|
1196 |
-
|
1197 |
-
protected function lib_percentage($arg) {
|
1198 |
-
$num = $this->assertNumber($arg);
|
1199 |
-
return array("number", $num*100, "%");
|
1200 |
-
}
|
1201 |
-
|
1202 |
-
// mixes two colors by weight
|
1203 |
-
// mix(@color1, @color2, [@weight: 50%]);
|
1204 |
-
// http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#mix-instance_method
|
1205 |
-
protected function lib_mix($args) {
|
1206 |
-
if ($args[0] != "list" || count($args[2]) < 2)
|
1207 |
-
$this->throwError("mix expects (color1, color2, weight)");
|
1208 |
-
|
1209 |
-
list($first, $second) = $args[2];
|
1210 |
-
$first = $this->assertColor($first);
|
1211 |
-
$second = $this->assertColor($second);
|
1212 |
-
|
1213 |
-
$first_a = $this->lib_alpha($first);
|
1214 |
-
$second_a = $this->lib_alpha($second);
|
1215 |
-
|
1216 |
-
if (isset($args[2][2])) {
|
1217 |
-
$weight = $args[2][2][1] / 100.0;
|
1218 |
-
} else {
|
1219 |
-
$weight = 0.5;
|
1220 |
-
}
|
1221 |
-
|
1222 |
-
$w = $weight * 2 - 1;
|
1223 |
-
$a = $first_a - $second_a;
|
1224 |
-
|
1225 |
-
$w1 = (($w * $a == -1 ? $w : ($w + $a)/(1 + $w * $a)) + 1) / 2.0;
|
1226 |
-
$w2 = 1.0 - $w1;
|
1227 |
-
|
1228 |
-
$new = array('color',
|
1229 |
-
$w1 * $first[1] + $w2 * $second[1],
|
1230 |
-
$w1 * $first[2] + $w2 * $second[2],
|
1231 |
-
$w1 * $first[3] + $w2 * $second[3],
|
1232 |
-
);
|
1233 |
-
|
1234 |
-
if ($first_a != 1.0 || $second_a != 1.0) {
|
1235 |
-
$new[] = $first_a * $weight + $second_a * ($weight - 1);
|
1236 |
-
}
|
1237 |
-
|
1238 |
-
return $this->fixColor($new);
|
1239 |
-
}
|
1240 |
-
|
1241 |
-
protected function lib_contrast($args) {
|
1242 |
-
$darkColor = array('color', 0, 0, 0);
|
1243 |
-
$lightColor = array('color', 255, 255, 255);
|
1244 |
-
$threshold = 0.43;
|
1245 |
-
|
1246 |
-
if ( $args[0] == 'list' ) {
|
1247 |
-
$inputColor = ( isset($args[2][0]) ) ? $this->assertColor($args[2][0]) : $lightColor;
|
1248 |
-
$darkColor = ( isset($args[2][1]) ) ? $this->assertColor($args[2][1]) : $darkColor;
|
1249 |
-
$lightColor = ( isset($args[2][2]) ) ? $this->assertColor($args[2][2]) : $lightColor;
|
1250 |
-
$threshold = ( isset($args[2][3]) ) ? $this->assertNumber($args[2][3]) : $threshold;
|
1251 |
-
}
|
1252 |
-
else {
|
1253 |
-
$inputColor = $this->assertColor($args);
|
1254 |
-
}
|
1255 |
-
|
1256 |
-
$inputColor = $this->coerceColor($inputColor);
|
1257 |
-
$darkColor = $this->coerceColor($darkColor);
|
1258 |
-
$lightColor = $this->coerceColor($lightColor);
|
1259 |
-
|
1260 |
-
//Figure out which is actually light and dark!
|
1261 |
-
if ( $this->lib_luma($darkColor) > $this->lib_luma($lightColor) ) {
|
1262 |
-
$t = $lightColor;
|
1263 |
-
$lightColor = $darkColor;
|
1264 |
-
$darkColor = $t;
|
1265 |
-
}
|
1266 |
-
|
1267 |
-
$inputColor_alpha = $this->lib_alpha($inputColor);
|
1268 |
-
if ( ( $this->lib_luma($inputColor) * $inputColor_alpha) < $threshold) {
|
1269 |
-
return $lightColor;
|
1270 |
-
}
|
1271 |
-
return $darkColor;
|
1272 |
-
}
|
1273 |
-
|
1274 |
-
protected function lib_luma($color) {
|
1275 |
-
$color = $this->coerceColor($color);
|
1276 |
-
return (0.2126 * $color[0] / 255) + (0.7152 * $color[1] / 255) + (0.0722 * $color[2] / 255);
|
1277 |
-
}
|
1278 |
-
|
1279 |
-
|
1280 |
-
public function assertColor($value, $error = "expected color value") {
|
1281 |
-
$color = $this->coerceColor($value);
|
1282 |
-
if (is_null($color)) $this->throwError($error);
|
1283 |
-
return $color;
|
1284 |
-
}
|
1285 |
-
|
1286 |
-
public function assertNumber($value, $error = "expecting number") {
|
1287 |
-
if ($value[0] == "number") return $value[1];
|
1288 |
-
$this->throwError($error);
|
1289 |
-
}
|
1290 |
-
|
1291 |
-
public function assertArgs($value, $expectedArgs, $name="") {
|
1292 |
-
if ($expectedArgs == 1) {
|
1293 |
-
return $value;
|
1294 |
-
} else {
|
1295 |
-
if ($value[0] !== "list" || $value[1] != ",") $this->throwError("expecting list");
|
1296 |
-
$values = $value[2];
|
1297 |
-
$numValues = count($values);
|
1298 |
-
if ($expectedArgs != $numValues) {
|
1299 |
-
if ($name) {
|
1300 |
-
$name = $name . ": ";
|
1301 |
-
}
|
1302 |
-
|
1303 |
-
$this->throwError("${name}expecting $expectedArgs arguments, got $numValues");
|
1304 |
-
}
|
1305 |
-
|
1306 |
-
return $values;
|
1307 |
-
}
|
1308 |
-
}
|
1309 |
-
|
1310 |
-
protected function toHSL($color) {
|
1311 |
-
if ($color[0] == 'hsl') return $color;
|
1312 |
-
|
1313 |
-
$r = $color[1] / 255;
|
1314 |
-
$g = $color[2] / 255;
|
1315 |
-
$b = $color[3] / 255;
|
1316 |
-
|
1317 |
-
$min = min($r, $g, $b);
|
1318 |
-
$max = max($r, $g, $b);
|
1319 |
-
|
1320 |
-
$L = ($min + $max) / 2;
|
1321 |
-
if ($min == $max) {
|
1322 |
-
$S = $H = 0;
|
1323 |
-
} else {
|
1324 |
-
if ($L < 0.5)
|
1325 |
-
$S = ($max - $min)/($max + $min);
|
1326 |
-
else
|
1327 |
-
$S = ($max - $min)/(2.0 - $max - $min);
|
1328 |
-
|
1329 |
-
if ($r == $max) $H = ($g - $b)/($max - $min);
|
1330 |
-
elseif ($g == $max) $H = 2.0 + ($b - $r)/($max - $min);
|
1331 |
-
elseif ($b == $max) $H = 4.0 + ($r - $g)/($max - $min);
|
1332 |
-
|
1333 |
-
}
|
1334 |
-
|
1335 |
-
$out = array('hsl',
|
1336 |
-
($H < 0 ? $H + 6 : $H)*60,
|
1337 |
-
$S*100,
|
1338 |
-
$L*100,
|
1339 |
-
);
|
1340 |
-
|
1341 |
-
if (count($color) > 4) $out[] = $color[4]; // copy alpha
|
1342 |
-
return $out;
|
1343 |
-
}
|
1344 |
-
|
1345 |
-
protected function toRGB_helper($comp, $temp1, $temp2) {
|
1346 |
-
if ($comp < 0) $comp += 1.0;
|
1347 |
-
elseif ($comp > 1) $comp -= 1.0;
|
1348 |
-
|
1349 |
-
if (6 * $comp < 1) return $temp1 + ($temp2 - $temp1) * 6 * $comp;
|
1350 |
-
if (2 * $comp < 1) return $temp2;
|
1351 |
-
if (3 * $comp < 2) return $temp1 + ($temp2 - $temp1)*((2/3) - $comp) * 6;
|
1352 |
-
|
1353 |
-
return $temp1;
|
1354 |
-
}
|
1355 |
-
|
1356 |
-
/**
|
1357 |
-
* Converts a hsl array into a color value in rgb.
|
1358 |
-
* Expects H to be in range of 0 to 360, S and L in 0 to 100
|
1359 |
-
*/
|
1360 |
-
protected function toRGB($color) {
|
1361 |
-
if ($color[0] == 'color') return $color;
|
1362 |
-
|
1363 |
-
$H = $color[1] / 360;
|
1364 |
-
$S = $color[2] / 100;
|
1365 |
-
$L = $color[3] / 100;
|
1366 |
-
|
1367 |
-
if ($S == 0) {
|
1368 |
-
$r = $g = $b = $L;
|
1369 |
-
} else {
|
1370 |
-
$temp2 = $L < 0.5 ?
|
1371 |
-
$L*(1.0 + $S) :
|
1372 |
-
$L + $S - $L * $S;
|
1373 |
-
|
1374 |
-
$temp1 = 2.0 * $L - $temp2;
|
1375 |
-
|
1376 |
-
$r = $this->toRGB_helper($H + 1/3, $temp1, $temp2);
|
1377 |
-
$g = $this->toRGB_helper($H, $temp1, $temp2);
|
1378 |
-
$b = $this->toRGB_helper($H - 1/3, $temp1, $temp2);
|
1379 |
-
}
|
1380 |
-
|
1381 |
-
// $out = array('color', round($r*255), round($g*255), round($b*255));
|
1382 |
-
$out = array('color', $r*255, $g*255, $b*255);
|
1383 |
-
if (count($color) > 4) $out[] = $color[4]; // copy alpha
|
1384 |
-
return $out;
|
1385 |
-
}
|
1386 |
-
|
1387 |
-
protected function clamp($v, $max = 1, $min = 0) {
|
1388 |
-
return min($max, max($min, $v));
|
1389 |
-
}
|
1390 |
-
|
1391 |
-
/**
|
1392 |
-
* Convert the rgb, rgba, hsl color literals of function type
|
1393 |
-
* as returned by the parser into values of color type.
|
1394 |
-
*/
|
1395 |
-
protected function funcToColor($func) {
|
1396 |
-
$fname = $func[1];
|
1397 |
-
if ($func[2][0] != 'list') return false; // need a list of arguments
|
1398 |
-
$rawComponents = $func[2][2];
|
1399 |
-
|
1400 |
-
if ($fname == 'hsl' || $fname == 'hsla') {
|
1401 |
-
$hsl = array('hsl');
|
1402 |
-
$i = 0;
|
1403 |
-
foreach ($rawComponents as $c) {
|
1404 |
-
$val = $this->reduce($c);
|
1405 |
-
$val = isset($val[1]) ? floatval($val[1]) : 0;
|
1406 |
-
|
1407 |
-
if ($i == 0) $clamp = 360;
|
1408 |
-
elseif ($i < 3) $clamp = 100;
|
1409 |
-
else $clamp = 1;
|
1410 |
-
|
1411 |
-
$hsl[] = $this->clamp($val, $clamp);
|
1412 |
-
$i++;
|
1413 |
-
}
|
1414 |
-
|
1415 |
-
while (count($hsl) < 4) $hsl[] = 0;
|
1416 |
-
return $this->toRGB($hsl);
|
1417 |
-
|
1418 |
-
} elseif ($fname == 'rgb' || $fname == 'rgba') {
|
1419 |
-
$components = array();
|
1420 |
-
$i = 1;
|
1421 |
-
foreach ($rawComponents as $c) {
|
1422 |
-
$c = $this->reduce($c);
|
1423 |
-
if ($i < 4) {
|
1424 |
-
if ($c[0] == "number" && $c[2] == "%") {
|
1425 |
-
$components[] = 255 * ($c[1] / 100);
|
1426 |
-
} else {
|
1427 |
-
$components[] = floatval($c[1]);
|
1428 |
-
}
|
1429 |
-
} elseif ($i == 4) {
|
1430 |
-
if ($c[0] == "number" && $c[2] == "%") {
|
1431 |
-
$components[] = 1.0 * ($c[1] / 100);
|
1432 |
-
} else {
|
1433 |
-
$components[] = floatval($c[1]);
|
1434 |
-
}
|
1435 |
-
} else break;
|
1436 |
-
|
1437 |
-
$i++;
|
1438 |
-
}
|
1439 |
-
while (count($components) < 3) $components[] = 0;
|
1440 |
-
array_unshift($components, 'color');
|
1441 |
-
return $this->fixColor($components);
|
1442 |
-
}
|
1443 |
-
|
1444 |
-
return false;
|
1445 |
-
}
|
1446 |
-
|
1447 |
-
protected function reduce($value, $forExpression = false) {
|
1448 |
-
switch ($value[0]) {
|
1449 |
-
case "interpolate":
|
1450 |
-
$reduced = $this->reduce($value[1]);
|
1451 |
-
$var = $this->compileValue($reduced);
|
1452 |
-
$res = $this->reduce(array("variable", $this->vPrefix . $var));
|
1453 |
-
|
1454 |
-
if ($res[0] == "raw_color") {
|
1455 |
-
$res = $this->coerceColor($res);
|
1456 |
-
}
|
1457 |
-
|
1458 |
-
if (empty($value[2])) $res = $this->lib_e($res);
|
1459 |
-
|
1460 |
-
return $res;
|
1461 |
-
case "variable":
|
1462 |
-
$key = $value[1];
|
1463 |
-
if (is_array($key)) {
|
1464 |
-
$key = $this->reduce($key);
|
1465 |
-
$key = $this->vPrefix . $this->compileValue($this->lib_e($key));
|
1466 |
-
}
|
1467 |
-
|
1468 |
-
$seen =& $this->env->seenNames;
|
1469 |
-
|
1470 |
-
if (!empty($seen[$key])) {
|
1471 |
-
$this->throwError("infinite loop detected: $key");
|
1472 |
-
}
|
1473 |
-
|
1474 |
-
$seen[$key] = true;
|
1475 |
-
$out = $this->reduce($this->get($key));
|
1476 |
-
$seen[$key] = false;
|
1477 |
-
return $out;
|
1478 |
-
case "list":
|
1479 |
-
foreach ($value[2] as &$item) {
|
1480 |
-
$item = $this->reduce($item, $forExpression);
|
1481 |
-
}
|
1482 |
-
return $value;
|
1483 |
-
case "expression":
|
1484 |
-
return $this->evaluate($value);
|
1485 |
-
case "string":
|
1486 |
-
foreach ($value[2] as &$part) {
|
1487 |
-
if (is_array($part)) {
|
1488 |
-
$strip = $part[0] == "variable";
|
1489 |
-
$part = $this->reduce($part);
|
1490 |
-
if ($strip) $part = $this->lib_e($part);
|
1491 |
-
}
|
1492 |
-
}
|
1493 |
-
return $value;
|
1494 |
-
case "escape":
|
1495 |
-
list(,$inner) = $value;
|
1496 |
-
return $this->lib_e($this->reduce($inner));
|
1497 |
-
case "function":
|
1498 |
-
$color = $this->funcToColor($value);
|
1499 |
-
if ($color) return $color;
|
1500 |
-
|
1501 |
-
list(, $name, $args) = $value;
|
1502 |
-
if ($name == "%") $name = "_sprintf";
|
1503 |
-
|
1504 |
-
$f = isset($this->libFunctions[$name]) ?
|
1505 |
-
$this->libFunctions[$name] : array($this, 'lib_'.str_replace('-', '_', $name));
|
1506 |
-
|
1507 |
-
if (is_callable($f)) {
|
1508 |
-
if ($args[0] == 'list')
|
1509 |
-
$args = self::compressList($args[2], $args[1]);
|
1510 |
-
|
1511 |
-
$ret = call_user_func($f, $this->reduce($args, true), $this);
|
1512 |
-
|
1513 |
-
if (is_null($ret)) {
|
1514 |
-
return array("string", "", array(
|
1515 |
-
$name, "(", $args, ")"
|
1516 |
-
));
|
1517 |
-
}
|
1518 |
-
|
1519 |
-
// convert to a typed value if the result is a php primitive
|
1520 |
-
if (is_numeric($ret)) $ret = array('number', $ret, "");
|
1521 |
-
elseif (!is_array($ret)) $ret = array('keyword', $ret);
|
1522 |
-
|
1523 |
-
return $ret;
|
1524 |
-
}
|
1525 |
-
|
1526 |
-
// plain function, reduce args
|
1527 |
-
$value[2] = $this->reduce($value[2]);
|
1528 |
-
return $value;
|
1529 |
-
case "unary":
|
1530 |
-
list(, $op, $exp) = $value;
|
1531 |
-
$exp = $this->reduce($exp);
|
1532 |
-
|
1533 |
-
if ($exp[0] == "number") {
|
1534 |
-
switch ($op) {
|
1535 |
-
case "+":
|
1536 |
-
return $exp;
|
1537 |
-
case "-":
|
1538 |
-
$exp[1] *= -1;
|
1539 |
-
return $exp;
|
1540 |
-
}
|
1541 |
-
}
|
1542 |
-
return array("string", "", array($op, $exp));
|
1543 |
-
}
|
1544 |
-
|
1545 |
-
if ($forExpression) {
|
1546 |
-
switch ($value[0]) {
|
1547 |
-
case "keyword":
|
1548 |
-
if ($color = $this->coerceColor($value)) {
|
1549 |
-
return $color;
|
1550 |
-
}
|
1551 |
-
break;
|
1552 |
-
case "raw_color":
|
1553 |
-
return $this->coerceColor($value);
|
1554 |
-
}
|
1555 |
-
}
|
1556 |
-
|
1557 |
-
return $value;
|
1558 |
-
}
|
1559 |
-
|
1560 |
-
|
1561 |
-
// coerce a value for use in color operation
|
1562 |
-
protected function coerceColor($value) {
|
1563 |
-
switch($value[0]) {
|
1564 |
-
case 'color': return $value;
|
1565 |
-
case 'raw_color':
|
1566 |
-
$c = array("color", 0, 0, 0);
|
1567 |
-
$colorStr = substr($value[1], 1);
|
1568 |
-
$num = hexdec($colorStr);
|
1569 |
-
$width = strlen($colorStr) == 3 ? 16 : 256;
|
1570 |
-
|
1571 |
-
for ($i = 3; $i > 0; $i--) { // 3 2 1
|
1572 |
-
$t = $num % $width;
|
1573 |
-
$num /= $width;
|
1574 |
-
|
1575 |
-
$c[$i] = $t * (256/$width) + $t * floor(16/$width);
|
1576 |
-
}
|
1577 |
-
|
1578 |
-
return $c;
|
1579 |
-
case 'keyword':
|
1580 |
-
$name = $value[1];
|
1581 |
-
if (isset(self::$cssColors[$name])) {
|
1582 |
-
$rgba = explode(',', self::$cssColors[$name]);
|
1583 |
-
|
1584 |
-
if(isset($rgba[3]))
|
1585 |
-
return array('color', $rgba[0], $rgba[1], $rgba[2], $rgba[3]);
|
1586 |
-
|
1587 |
-
return array('color', $rgba[0], $rgba[1], $rgba[2]);
|
1588 |
-
}
|
1589 |
-
return null;
|
1590 |
-
}
|
1591 |
-
}
|
1592 |
-
|
1593 |
-
// make something string like into a string
|
1594 |
-
protected function coerceString($value) {
|
1595 |
-
switch ($value[0]) {
|
1596 |
-
case "string":
|
1597 |
-
return $value;
|
1598 |
-
case "keyword":
|
1599 |
-
return array("string", "", array($value[1]));
|
1600 |
-
}
|
1601 |
-
return null;
|
1602 |
-
}
|
1603 |
-
|
1604 |
-
// turn list of length 1 into value type
|
1605 |
-
protected function flattenList($value) {
|
1606 |
-
if ($value[0] == "list" && count($value[2]) == 1) {
|
1607 |
-
return $this->flattenList($value[2][0]);
|
1608 |
-
}
|
1609 |
-
return $value;
|
1610 |
-
}
|
1611 |
-
|
1612 |
-
public function toBool($a) {
|
1613 |
-
if ($a) return self::$TRUE;
|
1614 |
-
else return self::$FALSE;
|
1615 |
-
}
|
1616 |
-
|
1617 |
-
// evaluate an expression
|
1618 |
-
protected function evaluate($exp) {
|
1619 |
-
list(, $op, $left, $right, $whiteBefore, $whiteAfter) = $exp;
|
1620 |
-
|
1621 |
-
$left = $this->reduce($left, true);
|
1622 |
-
$right = $this->reduce($right, true);
|
1623 |
-
|
1624 |
-
if ($leftColor = $this->coerceColor($left)) {
|
1625 |
-
$left = $leftColor;
|
1626 |
-
}
|
1627 |
-
|
1628 |
-
if ($rightColor = $this->coerceColor($right)) {
|
1629 |
-
$right = $rightColor;
|
1630 |
-
}
|
1631 |
-
|
1632 |
-
$ltype = $left[0];
|
1633 |
-
$rtype = $right[0];
|
1634 |
-
|
1635 |
-
// operators that work on all types
|
1636 |
-
if ($op == "and") {
|
1637 |
-
return $this->toBool($left == self::$TRUE && $right == self::$TRUE);
|
1638 |
-
}
|
1639 |
-
|
1640 |
-
if ($op == "=") {
|
1641 |
-
return $this->toBool($this->eq($left, $right) );
|
1642 |
-
}
|
1643 |
-
|
1644 |
-
if ($op == "+" && !is_null($str = $this->stringConcatenate($left, $right))) {
|
1645 |
-
return $str;
|
1646 |
-
}
|
1647 |
-
|
1648 |
-
// type based operators
|
1649 |
-
$fname = "op_${ltype}_${rtype}";
|
1650 |
-
if (is_callable(array($this, $fname))) {
|
1651 |
-
$out = $this->$fname($op, $left, $right);
|
1652 |
-
if (!is_null($out)) return $out;
|
1653 |
-
}
|
1654 |
-
|
1655 |
-
// make the expression look it did before being parsed
|
1656 |
-
$paddedOp = $op;
|
1657 |
-
if ($whiteBefore) $paddedOp = " " . $paddedOp;
|
1658 |
-
if ($whiteAfter) $paddedOp .= " ";
|
1659 |
-
|
1660 |
-
return array("string", "", array($left, $paddedOp, $right));
|
1661 |
-
}
|
1662 |
-
|
1663 |
-
protected function stringConcatenate($left, $right) {
|
1664 |
-
if ($strLeft = $this->coerceString($left)) {
|
1665 |
-
if ($right[0] == "string") {
|
1666 |
-
$right[1] = "";
|
1667 |
-
}
|
1668 |
-
$strLeft[2][] = $right;
|
1669 |
-
return $strLeft;
|
1670 |
-
}
|
1671 |
-
|
1672 |
-
if ($strRight = $this->coerceString($right)) {
|
1673 |
-
array_unshift($strRight[2], $left);
|
1674 |
-
return $strRight;
|
1675 |
-
}
|
1676 |
-
}
|
1677 |
-
|
1678 |
-
|
1679 |
-
// make sure a color's components don't go out of bounds
|
1680 |
-
protected function fixColor($c) {
|
1681 |
-
foreach (range(1, 3) as $i) {
|
1682 |
-
if ($c[$i] < 0) $c[$i] = 0;
|
1683 |
-
if ($c[$i] > 255) $c[$i] = 255;
|
1684 |
-
}
|
1685 |
-
|
1686 |
-
return $c;
|
1687 |
-
}
|
1688 |
-
|
1689 |
-
protected function op_number_color($op, $lft, $rgt) {
|
1690 |
-
if ($op == '+' || $op == '*') {
|
1691 |
-
return $this->op_color_number($op, $rgt, $lft);
|
1692 |
-
}
|
1693 |
-
}
|
1694 |
-
|
1695 |
-
protected function op_color_number($op, $lft, $rgt) {
|
1696 |
-
if ($rgt[0] == '%') $rgt[1] /= 100;
|
1697 |
-
|
1698 |
-
return $this->op_color_color($op, $lft,
|
1699 |
-
array_fill(1, count($lft) - 1, $rgt[1]));
|
1700 |
-
}
|
1701 |
-
|
1702 |
-
protected function op_color_color($op, $left, $right) {
|
1703 |
-
$out = array('color');
|
1704 |
-
$max = count($left) > count($right) ? count($left) : count($right);
|
1705 |
-
foreach (range(1, $max - 1) as $i) {
|
1706 |
-
$lval = isset($left[$i]) ? $left[$i] : 0;
|
1707 |
-
$rval = isset($right[$i]) ? $right[$i] : 0;
|
1708 |
-
switch ($op) {
|
1709 |
-
case '+':
|
1710 |
-
$out[] = $lval + $rval;
|
1711 |
-
break;
|
1712 |
-
case '-':
|
1713 |
-
$out[] = $lval - $rval;
|
1714 |
-
break;
|
1715 |
-
case '*':
|
1716 |
-
$out[] = $lval * $rval;
|
1717 |
-
break;
|
1718 |
-
case '%':
|
1719 |
-
$out[] = $lval % $rval;
|
1720 |
-
break;
|
1721 |
-
case '/':
|
1722 |
-
if ($rval == 0) $this->throwError("evaluate error: can't divide by zero");
|
1723 |
-
$out[] = $lval / $rval;
|
1724 |
-
break;
|
1725 |
-
default:
|
1726 |
-
$this->throwError('evaluate error: color op number failed on op '.$op);
|
1727 |
-
}
|
1728 |
-
}
|
1729 |
-
return $this->fixColor($out);
|
1730 |
-
}
|
1731 |
-
|
1732 |
-
function lib_red($color){
|
1733 |
-
$color = $this->coerceColor($color);
|
1734 |
-
if (is_null($color)) {
|
1735 |
-
$this->throwError('color expected for red()');
|
1736 |
-
}
|
1737 |
-
|
1738 |
-
return $color[1];
|
1739 |
-
}
|
1740 |
-
|
1741 |
-
function lib_green($color){
|
1742 |
-
$color = $this->coerceColor($color);
|
1743 |
-
if (is_null($color)) {
|
1744 |
-
$this->throwError('color expected for green()');
|
1745 |
-
}
|
1746 |
-
|
1747 |
-
return $color[2];
|
1748 |
-
}
|
1749 |
-
|
1750 |
-
function lib_blue($color){
|
1751 |
-
$color = $this->coerceColor($color);
|
1752 |
-
if (is_null($color)) {
|
1753 |
-
$this->throwError('color expected for blue()');
|
1754 |
-
}
|
1755 |
-
|
1756 |
-
return $color[3];
|
1757 |
-
}
|
1758 |
-
|
1759 |
-
|
1760 |
-
// operator on two numbers
|
1761 |
-
protected function op_number_number($op, $left, $right) {
|
1762 |
-
$unit = empty($left[2]) ? $right[2] : $left[2];
|
1763 |
-
|
1764 |
-
$value = 0;
|
1765 |
-
switch ($op) {
|
1766 |
-
case '+':
|
1767 |
-
$value = $left[1] + $right[1];
|
1768 |
-
break;
|
1769 |
-
case '*':
|
1770 |
-
$value = $left[1] * $right[1];
|
1771 |
-
break;
|
1772 |
-
case '-':
|
1773 |
-
$value = $left[1] - $right[1];
|
1774 |
-
break;
|
1775 |
-
case '%':
|
1776 |
-
$value = $left[1] % $right[1];
|
1777 |
-
break;
|
1778 |
-
case '/':
|
1779 |
-
if ($right[1] == 0) $this->throwError('parse error: divide by zero');
|
1780 |
-
$value = $left[1] / $right[1];
|
1781 |
-
break;
|
1782 |
-
case '<':
|
1783 |
-
return $this->toBool($left[1] < $right[1]);
|
1784 |
-
case '>':
|
1785 |
-
return $this->toBool($left[1] > $right[1]);
|
1786 |
-
case '>=':
|
1787 |
-
return $this->toBool($left[1] >= $right[1]);
|
1788 |
-
case '=<':
|
1789 |
-
return $this->toBool($left[1] <= $right[1]);
|
1790 |
-
default:
|
1791 |
-
$this->throwError('parse error: unknown number operator: '.$op);
|
1792 |
-
}
|
1793 |
-
|
1794 |
-
return array("number", $value, $unit);
|
1795 |
-
}
|
1796 |
-
|
1797 |
-
|
1798 |
-
/* environment functions */
|
1799 |
-
|
1800 |
-
protected function makeOutputBlock($type, $selectors = null) {
|
1801 |
-
$b = new stdclass;
|
1802 |
-
$b->lines = array();
|
1803 |
-
$b->children = array();
|
1804 |
-
$b->selectors = $selectors;
|
1805 |
-
$b->type = $type;
|
1806 |
-
$b->parent = $this->scope;
|
1807 |
-
return $b;
|
1808 |
-
}
|
1809 |
-
|
1810 |
-
// the state of execution
|
1811 |
-
protected function pushEnv($block = null) {
|
1812 |
-
$e = new stdclass;
|
1813 |
-
$e->parent = $this->env;
|
1814 |
-
$e->store = array();
|
1815 |
-
$e->block = $block;
|
1816 |
-
|
1817 |
-
$this->env = $e;
|
1818 |
-
return $e;
|
1819 |
-
}
|
1820 |
-
|
1821 |
-
// pop something off the stack
|
1822 |
-
protected function popEnv() {
|
1823 |
-
$old = $this->env;
|
1824 |
-
$this->env = $this->env->parent;
|
1825 |
-
return $old;
|
1826 |
-
}
|
1827 |
-
|
1828 |
-
// set something in the current env
|
1829 |
-
protected function set($name, $value) {
|
1830 |
-
$this->env->store[$name] = $value;
|
1831 |
-
}
|
1832 |
-
|
1833 |
-
|
1834 |
-
// get the highest occurrence entry for a name
|
1835 |
-
protected function get($name) {
|
1836 |
-
$current = $this->env;
|
1837 |
-
|
1838 |
-
$isArguments = $name == $this->vPrefix . 'arguments';
|
1839 |
-
while ($current) {
|
1840 |
-
if ($isArguments && isset($current->arguments)) {
|
1841 |
-
return array('list', ' ', $current->arguments);
|
1842 |
-
}
|
1843 |
-
|
1844 |
-
if (isset($current->store[$name]))
|
1845 |
-
return $current->store[$name];
|
1846 |
-
else {
|
1847 |
-
$current = isset($current->storeParent) ?
|
1848 |
-
$current->storeParent : $current->parent;
|
1849 |
-
}
|
1850 |
-
}
|
1851 |
-
|
1852 |
-
$this->throwError("variable $name is undefined");
|
1853 |
-
}
|
1854 |
-
|
1855 |
-
// inject array of unparsed strings into environment as variables
|
1856 |
-
protected function injectVariables($args) {
|
1857 |
-
$this->pushEnv();
|
1858 |
-
$parser = new lessc_parser($this, __METHOD__);
|
1859 |
-
foreach ($args as $name => $strValue) {
|
1860 |
-
if ($name[0] != '@') $name = '@'.$name;
|
1861 |
-
$parser->count = 0;
|
1862 |
-
$parser->buffer = (string)$strValue;
|
1863 |
-
if (!$parser->propertyValue($value)) {
|
1864 |
-
throw new Exception("failed to parse passed in variable $name: $strValue");
|
1865 |
-
}
|
1866 |
-
|
1867 |
-
$this->set($name, $value);
|
1868 |
-
}
|
1869 |
-
}
|
1870 |
-
|
1871 |
-
/**
|
1872 |
-
* Initialize any static state, can initialize parser for a file
|
1873 |
-
* $opts isn't used yet
|
1874 |
-
*/
|
1875 |
-
public function __construct($fname = null) {
|
1876 |
-
if ($fname !== null) {
|
1877 |
-
// used for deprecated parse method
|
1878 |
-
$this->_parseFile = $fname;
|
1879 |
-
}
|
1880 |
-
}
|
1881 |
-
|
1882 |
-
public function compile($string, $name = null) {
|
1883 |
-
$locale = setlocale(LC_NUMERIC, 0);
|
1884 |
-
setlocale(LC_NUMERIC, "C");
|
1885 |
-
|
1886 |
-
$this->parser = $this->makeParser($name);
|
1887 |
-
$root = $this->parser->parse($string);
|
1888 |
-
|
1889 |
-
$this->env = null;
|
1890 |
-
$this->scope = null;
|
1891 |
-
|
1892 |
-
$this->formatter = $this->newFormatter();
|
1893 |
-
|
1894 |
-
if (!empty($this->registeredVars)) {
|
1895 |
-
$this->injectVariables($this->registeredVars);
|
1896 |
-
}
|
1897 |
-
|
1898 |
-
$this->sourceParser = $this->parser; // used for error messages
|
1899 |
-
$this->compileBlock($root);
|
1900 |
-
|
1901 |
-
ob_start();
|
1902 |
-
$this->formatter->block($this->scope);
|
1903 |
-
$out = ob_get_clean();
|
1904 |
-
setlocale(LC_NUMERIC, $locale);
|
1905 |
-
return $out;
|
1906 |
-
}
|
1907 |
-
|
1908 |
-
public function compileFile($fname, $outFname = null) {
|
1909 |
-
if (!is_readable($fname)) {
|
1910 |
-
throw new Exception('load error: failed to find '.$fname);
|
1911 |
-
}
|
1912 |
-
|
1913 |
-
$pi = pathinfo($fname);
|
1914 |
-
|
1915 |
-
$oldImport = $this->importDir;
|
1916 |
-
|
1917 |
-
$this->importDir = (array)$this->importDir;
|
1918 |
-
$this->importDir[] = $pi['dirname'].'/';
|
1919 |
-
|
1920 |
-
$this->addParsedFile($fname);
|
1921 |
-
|
1922 |
-
$out = $this->compile(file_get_contents($fname), $fname);
|
1923 |
-
|
1924 |
-
$this->importDir = $oldImport;
|
1925 |
-
|
1926 |
-
if ($outFname !== null) {
|
1927 |
-
return file_put_contents($outFname, $out);
|
1928 |
-
}
|
1929 |
-
|
1930 |
-
return $out;
|
1931 |
-
}
|
1932 |
-
|
1933 |
-
// compile only if changed input has changed or output doesn't exist
|
1934 |
-
public function checkedCompile($in, $out) {
|
1935 |
-
if (!is_file($out) || filemtime($in) > filemtime($out)) {
|
1936 |
-
$this->compileFile($in, $out);
|
1937 |
-
return true;
|
1938 |
-
}
|
1939 |
-
return false;
|
1940 |
-
}
|
1941 |
-
|
1942 |
-
/**
|
1943 |
-
* Execute lessphp on a .less file or a lessphp cache structure
|
1944 |
-
*
|
1945 |
-
* The lessphp cache structure contains information about a specific
|
1946 |
-
* less file having been parsed. It can be used as a hint for future
|
1947 |
-
* calls to determine whether or not a rebuild is required.
|
1948 |
-
*
|
1949 |
-
* The cache structure contains two important keys that may be used
|
1950 |
-
* externally:
|
1951 |
-
*
|
1952 |
-
* compiled: The final compiled CSS
|
1953 |
-
* updated: The time (in seconds) the CSS was last compiled
|
1954 |
-
*
|
1955 |
-
* The cache structure is a plain-ol' PHP associative array and can
|
1956 |
-
* be serialized and unserialized without a hitch.
|
1957 |
-
*
|
1958 |
-
* @param mixed $in Input
|
1959 |
-
* @param bool $force Force rebuild?
|
1960 |
-
* @return array lessphp cache structure
|
1961 |
-
*/
|
1962 |
-
public function cachedCompile($in, $force = false) {
|
1963 |
-
// assume no root
|
1964 |
-
$root = null;
|
1965 |
-
|
1966 |
-
if (is_string($in)) {
|
1967 |
-
$root = $in;
|
1968 |
-
} elseif (is_array($in) and isset($in['root'])) {
|
1969 |
-
if ($force or ! isset($in['files'])) {
|
1970 |
-
// If we are forcing a recompile or if for some reason the
|
1971 |
-
// structure does not contain any file information we should
|
1972 |
-
// specify the root to trigger a rebuild.
|
1973 |
-
$root = $in['root'];
|
1974 |
-
} elseif (isset($in['files']) and is_array($in['files'])) {
|
1975 |
-
foreach ($in['files'] as $fname => $ftime ) {
|
1976 |
-
if (!file_exists($fname) or filemtime($fname) > $ftime) {
|
1977 |
-
// One of the files we knew about previously has changed
|
1978 |
-
// so we should look at our incoming root again.
|
1979 |
-
$root = $in['root'];
|
1980 |
-
break;
|
1981 |
-
}
|
1982 |
-
}
|
1983 |
-
}
|
1984 |
-
} else {
|
1985 |
-
// TODO: Throw an exception? We got neither a string nor something
|
1986 |
-
// that looks like a compatible lessphp cache structure.
|
1987 |
-
return null;
|
1988 |
-
}
|
1989 |
-
|
1990 |
-
if ($root !== null) {
|
1991 |
-
// If we have a root value which means we should rebuild.
|
1992 |
-
$out = array();
|
1993 |
-
$out['root'] = $root;
|
1994 |
-
$out['compiled'] = $this->compileFile($root);
|
1995 |
-
$out['files'] = $this->allParsedFiles();
|
1996 |
-
$out['updated'] = time();
|
1997 |
-
return $out;
|
1998 |
-
} else {
|
1999 |
-
// No changes, pass back the structure
|
2000 |
-
// we were given initially.
|
2001 |
-
return $in;
|
2002 |
-
}
|
2003 |
-
|
2004 |
-
}
|
2005 |
-
|
2006 |
-
// parse and compile buffer
|
2007 |
-
// This is deprecated
|
2008 |
-
public function parse($str = null, $initialVariables = null) {
|
2009 |
-
if (is_array($str)) {
|
2010 |
-
$initialVariables = $str;
|
2011 |
-
$str = null;
|
2012 |
-
}
|
2013 |
-
|
2014 |
-
$oldVars = $this->registeredVars;
|
2015 |
-
if ($initialVariables !== null) {
|
2016 |
-
$this->setVariables($initialVariables);
|
2017 |
-
}
|
2018 |
-
|
2019 |
-
if ($str == null) {
|
2020 |
-
if (empty($this->_parseFile)) {
|
2021 |
-
throw new exception("nothing to parse");
|
2022 |
-
}
|
2023 |
-
|
2024 |
-
$out = $this->compileFile($this->_parseFile);
|
2025 |
-
} else {
|
2026 |
-
$out = $this->compile($str);
|
2027 |
-
}
|
2028 |
-
|
2029 |
-
$this->registeredVars = $oldVars;
|
2030 |
-
return $out;
|
2031 |
-
}
|
2032 |
-
|
2033 |
-
protected function makeParser($name) {
|
2034 |
-
$parser = new lessc_parser($this, $name);
|
2035 |
-
$parser->writeComments = $this->preserveComments;
|
2036 |
-
|
2037 |
-
return $parser;
|
2038 |
-
}
|
2039 |
-
|
2040 |
-
public function setFormatter($name) {
|
2041 |
-
$this->formatterName = $name;
|
2042 |
-
}
|
2043 |
-
|
2044 |
-
protected function newFormatter() {
|
2045 |
-
$className = "lessc_formatter_lessjs";
|
2046 |
-
if (!empty($this->formatterName)) {
|
2047 |
-
if (!is_string($this->formatterName))
|
2048 |
-
return $this->formatterName;
|
2049 |
-
$className = "lessc_formatter_$this->formatterName";
|
2050 |
-
}
|
2051 |
-
|
2052 |
-
return new $className;
|
2053 |
-
}
|
2054 |
-
|
2055 |
-
public function setPreserveComments($preserve) {
|
2056 |
-
$this->preserveComments = $preserve;
|
2057 |
-
}
|
2058 |
-
|
2059 |
-
public function registerFunction($name, $func) {
|
2060 |
-
$this->libFunctions[$name] = $func;
|
2061 |
-
}
|
2062 |
-
|
2063 |
-
public function unregisterFunction($name) {
|
2064 |
-
unset($this->libFunctions[$name]);
|
2065 |
-
}
|
2066 |
-
|
2067 |
-
public function setVariables($variables) {
|
2068 |
-
$this->registeredVars = array_merge($this->registeredVars, $variables);
|
2069 |
-
}
|
2070 |
-
|
2071 |
-
public function unsetVariable($name) {
|
2072 |
-
unset($this->registeredVars[$name]);
|
2073 |
-
}
|
2074 |
-
|
2075 |
-
public function setImportDir($dirs) {
|
2076 |
-
$this->importDir = (array)$dirs;
|
2077 |
-
}
|
2078 |
-
|
2079 |
-
public function addImportDir($dir) {
|
2080 |
-
$this->importDir = (array)$this->importDir;
|
2081 |
-
$this->importDir[] = $dir;
|
2082 |
-
}
|
2083 |
-
|
2084 |
-
public function allParsedFiles() {
|
2085 |
-
return $this->allParsedFiles;
|
2086 |
-
}
|
2087 |
-
|
2088 |
-
public function addParsedFile($file) {
|
2089 |
-
$this->allParsedFiles[realpath($file)] = filemtime($file);
|
2090 |
-
}
|
2091 |
-
|
2092 |
-
/**
|
2093 |
-
* Uses the current value of $this->count to show line and line number
|
2094 |
-
*/
|
2095 |
-
public function throwError($msg = null) {
|
2096 |
-
if ($this->sourceLoc >= 0) {
|
2097 |
-
$this->sourceParser->throwError($msg, $this->sourceLoc);
|
2098 |
-
}
|
2099 |
-
throw new exception($msg);
|
2100 |
-
}
|
2101 |
-
|
2102 |
-
// compile file $in to file $out if $in is newer than $out
|
2103 |
-
// returns true when it compiles, false otherwise
|
2104 |
-
public static function ccompile($in, $out, $less = null) {
|
2105 |
-
if ($less === null) {
|
2106 |
-
$less = new self;
|
2107 |
-
}
|
2108 |
-
return $less->checkedCompile($in, $out);
|
2109 |
-
}
|
2110 |
-
|
2111 |
-
public static function cexecute($in, $force = false, $less = null) {
|
2112 |
-
if ($less === null) {
|
2113 |
-
$less = new self;
|
2114 |
-
}
|
2115 |
-
return $less->cachedCompile($in, $force);
|
2116 |
-
}
|
2117 |
-
|
2118 |
-
static protected $cssColors = array(
|
2119 |
-
'aliceblue' => '240,248,255',
|
2120 |
-
'antiquewhite' => '250,235,215',
|
2121 |
-
'aqua' => '0,255,255',
|
2122 |
-
'aquamarine' => '127,255,212',
|
2123 |
-
'azure' => '240,255,255',
|
2124 |
-
'beige' => '245,245,220',
|
2125 |
-
'bisque' => '255,228,196',
|
2126 |
-
'black' => '0,0,0',
|
2127 |
-
'blanchedalmond' => '255,235,205',
|
2128 |
-
'blue' => '0,0,255',
|
2129 |
-
'blueviolet' => '138,43,226',
|
2130 |
-
'brown' => '165,42,42',
|
2131 |
-
'burlywood' => '222,184,135',
|
2132 |
-
'cadetblue' => '95,158,160',
|
2133 |
-
'chartreuse' => '127,255,0',
|
2134 |
-
'chocolate' => '210,105,30',
|
2135 |
-
'coral' => '255,127,80',
|
2136 |
-
'cornflowerblue' => '100,149,237',
|
2137 |
-
'cornsilk' => '255,248,220',
|
2138 |
-
'crimson' => '220,20,60',
|
2139 |
-
'cyan' => '0,255,255',
|
2140 |
-
'darkblue' => '0,0,139',
|
2141 |
-
'darkcyan' => '0,139,139',
|
2142 |
-
'darkgoldenrod' => '184,134,11',
|
2143 |
-
'darkgray' => '169,169,169',
|
2144 |
-
'darkgreen' => '0,100,0',
|
2145 |
-
'darkgrey' => '169,169,169',
|
2146 |
-
'darkkhaki' => '189,183,107',
|
2147 |
-
'darkmagenta' => '139,0,139',
|
2148 |
-
'darkolivegreen' => '85,107,47',
|
2149 |
-
'darkorange' => '255,140,0',
|
2150 |
-
'darkorchid' => '153,50,204',
|
2151 |
-
'darkred' => '139,0,0',
|
2152 |
-
'darksalmon' => '233,150,122',
|
2153 |
-
'darkseagreen' => '143,188,143',
|
2154 |
-
'darkslateblue' => '72,61,139',
|
2155 |
-
'darkslategray' => '47,79,79',
|
2156 |
-
'darkslategrey' => '47,79,79',
|
2157 |
-
'darkturquoise' => '0,206,209',
|
2158 |
-
'darkviolet' => '148,0,211',
|
2159 |
-
'deeppink' => '255,20,147',
|
2160 |
-
'deepskyblue' => '0,191,255',
|
2161 |
-
'dimgray' => '105,105,105',
|
2162 |
-
'dimgrey' => '105,105,105',
|
2163 |
-
'dodgerblue' => '30,144,255',
|
2164 |
-
'firebrick' => '178,34,34',
|
2165 |
-
'floralwhite' => '255,250,240',
|
2166 |
-
'forestgreen' => '34,139,34',
|
2167 |
-
'fuchsia' => '255,0,255',
|
2168 |
-
'gainsboro' => '220,220,220',
|
2169 |
-
'ghostwhite' => '248,248,255',
|
2170 |
-
'gold' => '255,215,0',
|
2171 |
-
'goldenrod' => '218,165,32',
|
2172 |
-
'gray' => '128,128,128',
|
2173 |
-
'green' => '0,128,0',
|
2174 |
-
'greenyellow' => '173,255,47',
|
2175 |
-
'grey' => '128,128,128',
|
2176 |
-
'honeydew' => '240,255,240',
|
2177 |
-
'hotpink' => '255,105,180',
|
2178 |
-
'indianred' => '205,92,92',
|
2179 |
-
'indigo' => '75,0,130',
|
2180 |
-
'ivory' => '255,255,240',
|
2181 |
-
'khaki' => '240,230,140',
|
2182 |
-
'lavender' => '230,230,250',
|
2183 |
-
'lavenderblush' => '255,240,245',
|
2184 |
-
'lawngreen' => '124,252,0',
|
2185 |
-
'lemonchiffon' => '255,250,205',
|
2186 |
-
'lightblue' => '173,216,230',
|
2187 |
-
'lightcoral' => '240,128,128',
|
2188 |
-
'lightcyan' => '224,255,255',
|
2189 |
-
'lightgoldenrodyellow' => '250,250,210',
|
2190 |
-
'lightgray' => '211,211,211',
|
2191 |
-
'lightgreen' => '144,238,144',
|
2192 |
-
'lightgrey' => '211,211,211',
|
2193 |
-
'lightpink' => '255,182,193',
|
2194 |
-
'lightsalmon' => '255,160,122',
|
2195 |
-
'lightseagreen' => '32,178,170',
|
2196 |
-
'lightskyblue' => '135,206,250',
|
2197 |
-
'lightslategray' => '119,136,153',
|
2198 |
-
'lightslategrey' => '119,136,153',
|
2199 |
-
'lightsteelblue' => '176,196,222',
|
2200 |
-
'lightyellow' => '255,255,224',
|
2201 |
-
'lime' => '0,255,0',
|
2202 |
-
'limegreen' => '50,205,50',
|
2203 |
-
'linen' => '250,240,230',
|
2204 |
-
'magenta' => '255,0,255',
|
2205 |
-
'maroon' => '128,0,0',
|
2206 |
-
'mediumaquamarine' => '102,205,170',
|
2207 |
-
'mediumblue' => '0,0,205',
|
2208 |
-
'mediumorchid' => '186,85,211',
|
2209 |
-
'mediumpurple' => '147,112,219',
|
2210 |
-
'mediumseagreen' => '60,179,113',
|
2211 |
-
'mediumslateblue' => '123,104,238',
|
2212 |
-
'mediumspringgreen' => '0,250,154',
|
2213 |
-
'mediumturquoise' => '72,209,204',
|
2214 |
-
'mediumvioletred' => '199,21,133',
|
2215 |
-
'midnightblue' => '25,25,112',
|
2216 |
-
'mintcream' => '245,255,250',
|
2217 |
-
'mistyrose' => '255,228,225',
|
2218 |
-
'moccasin' => '255,228,181',
|
2219 |
-
'navajowhite' => '255,222,173',
|
2220 |
-
'navy' => '0,0,128',
|
2221 |
-
'oldlace' => '253,245,230',
|
2222 |
-
'olive' => '128,128,0',
|
2223 |
-
'olivedrab' => '107,142,35',
|
2224 |
-
'orange' => '255,165,0',
|
2225 |
-
'orangered' => '255,69,0',
|
2226 |
-
'orchid' => '218,112,214',
|
2227 |
-
'palegoldenrod' => '238,232,170',
|
2228 |
-
'palegreen' => '152,251,152',
|
2229 |
-
'paleturquoise' => '175,238,238',
|
2230 |
-
'palevioletred' => '219,112,147',
|
2231 |
-
'papayawhip' => '255,239,213',
|
2232 |
-
'peachpuff' => '255,218,185',
|
2233 |
-
'peru' => '205,133,63',
|
2234 |
-
'pink' => '255,192,203',
|
2235 |
-
'plum' => '221,160,221',
|
2236 |
-
'powderblue' => '176,224,230',
|
2237 |
-
'purple' => '128,0,128',
|
2238 |
-
'red' => '255,0,0',
|
2239 |
-
'rosybrown' => '188,143,143',
|
2240 |
-
'royalblue' => '65,105,225',
|
2241 |
-
'saddlebrown' => '139,69,19',
|
2242 |
-
'salmon' => '250,128,114',
|
2243 |
-
'sandybrown' => '244,164,96',
|
2244 |
-
'seagreen' => '46,139,87',
|
2245 |
-
'seashell' => '255,245,238',
|
2246 |
-
'sienna' => '160,82,45',
|
2247 |
-
'silver' => '192,192,192',
|
2248 |
-
'skyblue' => '135,206,235',
|
2249 |
-
'slateblue' => '106,90,205',
|
2250 |
-
'slategray' => '112,128,144',
|
2251 |
-
'slategrey' => '112,128,144',
|
2252 |
-
'snow' => '255,250,250',
|
2253 |
-
'springgreen' => '0,255,127',
|
2254 |
-
'steelblue' => '70,130,180',
|
2255 |
-
'tan' => '210,180,140',
|
2256 |
-
'teal' => '0,128,128',
|
2257 |
-
'thistle' => '216,191,216',
|
2258 |
-
'tomato' => '255,99,71',
|
2259 |
-
'transparent' => '0,0,0,0',
|
2260 |
-
'turquoise' => '64,224,208',
|
2261 |
-
'violet' => '238,130,238',
|
2262 |
-
'wheat' => '245,222,179',
|
2263 |
-
'white' => '255,255,255',
|
2264 |
-
'whitesmoke' => '245,245,245',
|
2265 |
-
'yellow' => '255,255,0',
|
2266 |
-
'yellowgreen' => '154,205,50'
|
2267 |
-
);
|
2268 |
-
}
|
2269 |
-
|
2270 |
-
// responsible for taking a string of LESS code and converting it into a
|
2271 |
-
// syntax tree
|
2272 |
-
class lessc_parser {
|
2273 |
-
static protected $nextBlockId = 0; // used to uniquely identify blocks
|
2274 |
-
|
2275 |
-
static protected $precedence = array(
|
2276 |
-
'=<' => 0,
|
2277 |
-
'>=' => 0,
|
2278 |
-
'=' => 0,
|
2279 |
-
'<' => 0,
|
2280 |
-
'>' => 0,
|
2281 |
-
|
2282 |
-
'+' => 1,
|
2283 |
-
'-' => 1,
|
2284 |
-
'*' => 2,
|
2285 |
-
'/' => 2,
|
2286 |
-
'%' => 2,
|
2287 |
-
);
|
2288 |
-
|
2289 |
-
static protected $whitePattern;
|
2290 |
-
static protected $commentMulti;
|
2291 |
-
|
2292 |
-
static protected $commentSingle = "//";
|
2293 |
-
static protected $commentMultiLeft = "/*";
|
2294 |
-
static protected $commentMultiRight = "*/";
|
2295 |
-
|
2296 |
-
// regex string to match any of the operators
|
2297 |
-
static protected $operatorString;
|
2298 |
-
|
2299 |
-
// these properties will supress division unless it's inside parenthases
|
2300 |
-
static protected $supressDivisionProps =
|
2301 |
-
array('/border-radius$/i', '/^font$/i');
|
2302 |
-
|
2303 |
-
protected $blockDirectives = array("font-face", "keyframes", "page", "-moz-document", "viewport", "-moz-viewport", "-o-viewport", "-ms-viewport");
|
2304 |
-
protected $lineDirectives = array("charset");
|
2305 |
-
|
2306 |
-
/**
|
2307 |
-
* if we are in parens we can be more liberal with whitespace around
|
2308 |
-
* operators because it must evaluate to a single value and thus is less
|
2309 |
-
* ambiguous.
|
2310 |
-
*
|
2311 |
-
* Consider:
|
2312 |
-
* property1: 10 -5; // is two numbers, 10 and -5
|
2313 |
-
* property2: (10 -5); // should evaluate to 5
|
2314 |
-
*/
|
2315 |
-
protected $inParens = false;
|
2316 |
-
|
2317 |
-
// caches preg escaped literals
|
2318 |
-
static protected $literalCache = array();
|
2319 |
-
|
2320 |
-
public function __construct($lessc, $sourceName = null) {
|
2321 |
-
$this->eatWhiteDefault = true;
|
2322 |
-
// reference to less needed for vPrefix, mPrefix, and parentSelector
|
2323 |
-
$this->lessc = $lessc;
|
2324 |
-
|
2325 |
-
$this->sourceName = $sourceName; // name used for error messages
|
2326 |
-
|
2327 |
-
$this->writeComments = false;
|
2328 |
-
|
2329 |
-
if (!self::$operatorString) {
|
2330 |
-
self::$operatorString =
|
2331 |
-
'('.implode('|', array_map(array('lessc', 'preg_quote'),
|
2332 |
-
array_keys(self::$precedence))).')';
|
2333 |
-
|
2334 |
-
$commentSingle = lessc::preg_quote(self::$commentSingle);
|
2335 |
-
$commentMultiLeft = lessc::preg_quote(self::$commentMultiLeft);
|
2336 |
-
$commentMultiRight = lessc::preg_quote(self::$commentMultiRight);
|
2337 |
-
|
2338 |
-
self::$commentMulti = $commentMultiLeft.'.*?'.$commentMultiRight;
|
2339 |
-
self::$whitePattern = '/'.$commentSingle.'[^\n]*\s*|('.self::$commentMulti.')\s*|\s+/Ais';
|
2340 |
-
}
|
2341 |
-
}
|
2342 |
-
|
2343 |
-
public function parse($buffer) {
|
2344 |
-
$this->count = 0;
|
2345 |
-
$this->line = 1;
|
2346 |
-
|
2347 |
-
$this->env = null; // block stack
|
2348 |
-
$this->buffer = $this->writeComments ? $buffer : $this->removeComments($buffer);
|
2349 |
-
$this->pushSpecialBlock("root");
|
2350 |
-
$this->eatWhiteDefault = true;
|
2351 |
-
$this->seenComments = array();
|
2352 |
-
|
2353 |
-
// trim whitespace on head
|
2354 |
-
// if (preg_match('/^\s+/', $this->buffer, $m)) {
|
2355 |
-
// $this->line += substr_count($m[0], "\n");
|
2356 |
-
// $this->buffer = ltrim($this->buffer);
|
2357 |
-
// }
|
2358 |
-
$this->whitespace();
|
2359 |
-
|
2360 |
-
// parse the entire file
|
2361 |
-
while (false !== $this->parseChunk());
|
2362 |
-
|
2363 |
-
if ($this->count != strlen($this->buffer))
|
2364 |
-
$this->throwError();
|
2365 |
-
|
2366 |
-
// TODO report where the block was opened
|
2367 |
-
if ( !property_exists($this->env, 'parent') || !is_null($this->env->parent) )
|
2368 |
-
throw new exception('parse error: unclosed block');
|
2369 |
-
|
2370 |
-
return $this->env;
|
2371 |
-
}
|
2372 |
-
|
2373 |
-
/**
|
2374 |
-
* Parse a single chunk off the head of the buffer and append it to the
|
2375 |
-
* current parse environment.
|
2376 |
-
* Returns false when the buffer is empty, or when there is an error.
|
2377 |
-
*
|
2378 |
-
* This function is called repeatedly until the entire document is
|
2379 |
-
* parsed.
|
2380 |
-
*
|
2381 |
-
* This parser is most similar to a recursive descent parser. Single
|
2382 |
-
* functions represent discrete grammatical rules for the language, and
|
2383 |
-
* they are able to capture the text that represents those rules.
|
2384 |
-
*
|
2385 |
-
* Consider the function lessc::keyword(). (all parse functions are
|
2386 |
-
* structured the same)
|
2387 |
-
*
|
2388 |
-
* The function takes a single reference argument. When calling the
|
2389 |
-
* function it will attempt to match a keyword on the head of the buffer.
|
2390 |
-
* If it is successful, it will place the keyword in the referenced
|
2391 |
-
* argument, advance the position in the buffer, and return true. If it
|
2392 |
-
* fails then it won't advance the buffer and it will return false.
|
2393 |
-
*
|
2394 |
-
* All of these parse functions are powered by lessc::match(), which behaves
|
2395 |
-
* the same way, but takes a literal regular expression. Sometimes it is
|
2396 |
-
* more convenient to use match instead of creating a new function.
|
2397 |
-
*
|
2398 |
-
* Because of the format of the functions, to parse an entire string of
|
2399 |
-
* grammatical rules, you can chain them together using &&.
|
2400 |
-
*
|
2401 |
-
* But, if some of the rules in the chain succeed before one fails, then
|
2402 |
-
* the buffer position will be left at an invalid state. In order to
|
2403 |
-
* avoid this, lessc::seek() is used to remember and set buffer positions.
|
2404 |
-
*
|
2405 |
-
* Before parsing a chain, use $s = $this->seek() to remember the current
|
2406 |
-
* position into $s. Then if a chain fails, use $this->seek($s) to
|
2407 |
-
* go back where we started.
|
2408 |
-
*/
|
2409 |
-
protected function parseChunk() {
|
2410 |
-
if (empty($this->buffer)) return false;
|
2411 |
-
$s = $this->seek();
|
2412 |
-
|
2413 |
-
if ($this->whitespace()) {
|
2414 |
-
return true;
|
2415 |
-
}
|
2416 |
-
|
2417 |
-
// setting a property
|
2418 |
-
if ($this->keyword($key) && $this->assign() &&
|
2419 |
-
$this->propertyValue($value, $key) && $this->end())
|
2420 |
-
{
|
2421 |
-
$this->append(array('assign', $key, $value), $s);
|
2422 |
-
return true;
|
2423 |
-
} else {
|
2424 |
-
$this->seek($s);
|
2425 |
-
}
|
2426 |
-
|
2427 |
-
|
2428 |
-
// look for special css blocks
|
2429 |
-
if ($this->literal('@', false)) {
|
2430 |
-
$this->count--;
|
2431 |
-
|
2432 |
-
// media
|
2433 |
-
if ($this->literal('@media')) {
|
2434 |
-
if (($this->mediaQueryList($mediaQueries) || true)
|
2435 |
-
&& $this->literal('{'))
|
2436 |
-
{
|
2437 |
-
$media = $this->pushSpecialBlock("media");
|
2438 |
-
$media->queries = is_null($mediaQueries) ? array() : $mediaQueries;
|
2439 |
-
return true;
|
2440 |
-
} else {
|
2441 |
-
$this->seek($s);
|
2442 |
-
return false;
|
2443 |
-
}
|
2444 |
-
}
|
2445 |
-
|
2446 |
-
if ($this->literal("@", false) && $this->keyword($dirName)) {
|
2447 |
-
if ($this->isDirective($dirName, $this->blockDirectives)) {
|
2448 |
-
if (($this->openString("{", $dirValue, null, array(";")) || true) &&
|
2449 |
-
$this->literal("{"))
|
2450 |
-
{
|
2451 |
-
$dir = $this->pushSpecialBlock("directive");
|
2452 |
-
$dir->name = $dirName;
|
2453 |
-
if (isset($dirValue)) $dir->value = $dirValue;
|
2454 |
-
return true;
|
2455 |
-
}
|
2456 |
-
} elseif ($this->isDirective($dirName, $this->lineDirectives)) {
|
2457 |
-
if ($this->propertyValue($dirValue) && $this->end()) {
|
2458 |
-
$this->append(array("directive", $dirName, $dirValue));
|
2459 |
-
return true;
|
2460 |
-
}
|
2461 |
-
}
|
2462 |
-
}
|
2463 |
-
|
2464 |
-
$this->seek($s);
|
2465 |
-
}
|
2466 |
-
|
2467 |
-
// setting a variable
|
2468 |
-
if ($this->variable($var) && $this->assign() &&
|
2469 |
-
$this->propertyValue($value) && $this->end())
|
2470 |
-
{
|
2471 |
-
$this->append(array('assign', $var, $value), $s);
|
2472 |
-
return true;
|
2473 |
-
} else {
|
2474 |
-
$this->seek($s);
|
2475 |
-
}
|
2476 |
-
|
2477 |
-
if ($this->import($importValue)) {
|
2478 |
-
$this->append($importValue, $s);
|
2479 |
-
return true;
|
2480 |
-
}
|
2481 |
-
|
2482 |
-
// opening parametric mixin
|
2483 |
-
if ($this->tag($tag, true) && $this->argumentDef($args, $isVararg) &&
|
2484 |
-
($this->guards($guards) || true) &&
|
2485 |
-
$this->literal('{'))
|
2486 |
-
{
|
2487 |
-
$block = $this->pushBlock($this->fixTags(array($tag)));
|
2488 |
-
$block->args = $args;
|
2489 |
-
$block->isVararg = $isVararg;
|
2490 |
-
if (!empty($guards)) $block->guards = $guards;
|
2491 |
-
return true;
|
2492 |
-
} else {
|
2493 |
-
$this->seek($s);
|
2494 |
-
}
|
2495 |
-
|
2496 |
-
// opening a simple block
|
2497 |
-
if ($this->tags($tags) && $this->literal('{', false)) {
|
2498 |
-
$tags = $this->fixTags($tags);
|
2499 |
-
$this->pushBlock($tags);
|
2500 |
-
return true;
|
2501 |
-
} else {
|
2502 |
-
$this->seek($s);
|
2503 |
-
}
|
2504 |
-
|
2505 |
-
// closing a block
|
2506 |
-
if ($this->literal('}', false)) {
|
2507 |
-
try {
|
2508 |
-
$block = $this->pop();
|
2509 |
-
} catch (exception $e) {
|
2510 |
-
$this->seek($s);
|
2511 |
-
$this->throwError($e->getMessage());
|
2512 |
-
}
|
2513 |
-
|
2514 |
-
$hidden = false;
|
2515 |
-
if (is_null($block->type)) {
|
2516 |
-
$hidden = true;
|
2517 |
-
if (!isset($block->args)) {
|
2518 |
-
foreach ($block->tags as $tag) {
|
2519 |
-
if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
|
2520 |
-
$hidden = false;
|
2521 |
-
break;
|
2522 |
-
}
|
2523 |
-
}
|
2524 |
-
}
|
2525 |
-
|
2526 |
-
foreach ($block->tags as $tag) {
|
2527 |
-
if (is_string($tag)) {
|
2528 |
-
$this->env->children[$tag][] = $block;
|
2529 |
-
}
|
2530 |
-
}
|
2531 |
-
}
|
2532 |
-
|
2533 |
-
if (!$hidden) {
|
2534 |
-
$this->append(array('block', $block), $s);
|
2535 |
-
}
|
2536 |
-
|
2537 |
-
// this is done here so comments aren't bundled into he block that
|
2538 |
-
// was just closed
|
2539 |
-
$this->whitespace();
|
2540 |
-
return true;
|
2541 |
-
}
|
2542 |
-
|
2543 |
-
// mixin
|
2544 |
-
if ($this->mixinTags($tags) &&
|
2545 |
-
($this->argumentDef($argv, $isVararg) || true) &&
|
2546 |
-
($this->keyword($suffix) || true) && $this->end())
|
2547 |
-
{
|
2548 |
-
$tags = $this->fixTags($tags);
|
2549 |
-
$this->append(array('mixin', $tags, $argv, $suffix), $s);
|
2550 |
-
return true;
|
2551 |
-
} else {
|
2552 |
-
$this->seek($s);
|
2553 |
-
}
|
2554 |
-
|
2555 |
-
// spare ;
|
2556 |
-
if ($this->literal(';')) return true;
|
2557 |
-
|
2558 |
-
return false; // got nothing, throw error
|
2559 |
-
}
|
2560 |
-
|
2561 |
-
protected function isDirective($dirname, $directives) {
|
2562 |
-
// TODO: cache pattern in parser
|
2563 |
-
$pattern = implode("|",
|
2564 |
-
array_map(array("lessc", "preg_quote"), $directives));
|
2565 |
-
$pattern = '/^(-[a-z-]+-)?(' . $pattern . ')$/i';
|
2566 |
-
|
2567 |
-
return preg_match($pattern, $dirname);
|
2568 |
-
}
|
2569 |
-
|
2570 |
-
protected function fixTags($tags) {
|
2571 |
-
// move @ tags out of variable namespace
|
2572 |
-
foreach ($tags as &$tag) {
|
2573 |
-
if ($tag[0] == $this->lessc->vPrefix)
|
2574 |
-
$tag[0] = $this->lessc->mPrefix;
|
2575 |
-
}
|
2576 |
-
return $tags;
|
2577 |
-
}
|
2578 |
-
|
2579 |
-
// a list of expressions
|
2580 |
-
protected function expressionList(&$exps) {
|
2581 |
-
$values = array();
|
2582 |
-
|
2583 |
-
while ($this->expression($exp)) {
|
2584 |
-
$values[] = $exp;
|
2585 |
-
}
|
2586 |
-
|
2587 |
-
if (count($values) == 0) return false;
|
2588 |
-
|
2589 |
-
$exps = lessc::compressList($values, ' ');
|
2590 |
-
return true;
|
2591 |
-
}
|
2592 |
-
|
2593 |
-
/**
|
2594 |
-
* Attempt to consume an expression.
|
2595 |
-
* @link http://en.wikipedia.org/wiki/Operator-precedence_parser#Pseudo-code
|
2596 |
-
*/
|
2597 |
-
protected function expression(&$out) {
|
2598 |
-
if ($this->value($lhs)) {
|
2599 |
-
$out = $this->expHelper($lhs, 0);
|
2600 |
-
|
2601 |
-
// look for / shorthand
|
2602 |
-
if (!empty($this->env->supressedDivision)) {
|
2603 |
-
unset($this->env->supressedDivision);
|
2604 |
-
$s = $this->seek();
|
2605 |
-
if ($this->literal("/") && $this->value($rhs)) {
|
2606 |
-
$out = array("list", "",
|
2607 |
-
array($out, array("keyword", "/"), $rhs));
|
2608 |
-
} else {
|
2609 |
-
$this->seek($s);
|
2610 |
-
}
|
2611 |
-
}
|
2612 |
-
|
2613 |
-
return true;
|
2614 |
-
}
|
2615 |
-
return false;
|
2616 |
-
}
|
2617 |
-
|
2618 |
-
/**
|
2619 |
-
* recursively parse infix equation with $lhs at precedence $minP
|
2620 |
-
*/
|
2621 |
-
protected function expHelper($lhs, $minP) {
|
2622 |
-
$this->inExp = true;
|
2623 |
-
$ss = $this->seek();
|
2624 |
-
|
2625 |
-
while (true) {
|
2626 |
-
$whiteBefore = isset($this->buffer[$this->count - 1]) &&
|
2627 |
-
ctype_space($this->buffer[$this->count - 1]);
|
2628 |
-
|
2629 |
-
// If there is whitespace before the operator, then we require
|
2630 |
-
// whitespace after the operator for it to be an expression
|
2631 |
-
$needWhite = $whiteBefore && !$this->inParens;
|
2632 |
-
|
2633 |
-
if ($this->match(self::$operatorString.($needWhite ? '\s' : ''), $m) && self::$precedence[$m[1]] >= $minP) {
|
2634 |
-
if (!$this->inParens && isset($this->env->currentProperty) && $m[1] == "/" && empty($this->env->supressedDivision)) {
|
2635 |
-
foreach (self::$supressDivisionProps as $pattern) {
|
2636 |
-
if (preg_match($pattern, $this->env->currentProperty)) {
|
2637 |
-
$this->env->supressedDivision = true;
|
2638 |
-
break 2;
|
2639 |
-
}
|
2640 |
-
}
|
2641 |
-
}
|
2642 |
-
|
2643 |
-
|
2644 |
-
$whiteAfter = isset($this->buffer[$this->count - 1]) &&
|
2645 |
-
ctype_space($this->buffer[$this->count - 1]);
|
2646 |
-
|
2647 |
-
if (!$this->value($rhs)) break;
|
2648 |
-
|
2649 |
-
// peek for next operator to see what to do with rhs
|
2650 |
-
if ($this->peek(self::$operatorString, $next) && self::$precedence[$next[1]] > self::$precedence[$m[1]]) {
|
2651 |
-
$rhs = $this->expHelper($rhs, self::$precedence[$next[1]]);
|
2652 |
-
}
|
2653 |
-
|
2654 |
-
$lhs = array('expression', $m[1], $lhs, $rhs, $whiteBefore, $whiteAfter);
|
2655 |
-
$ss = $this->seek();
|
2656 |
-
|
2657 |
-
continue;
|
2658 |
-
}
|
2659 |
-
|
2660 |
-
break;
|
2661 |
-
}
|
2662 |
-
|
2663 |
-
$this->seek($ss);
|
2664 |
-
|
2665 |
-
return $lhs;
|
2666 |
-
}
|
2667 |
-
|
2668 |
-
// consume a list of values for a property
|
2669 |
-
public function propertyValue(&$value, $keyName = null) {
|
2670 |
-
$values = array();
|
2671 |
-
|
2672 |
-
if ($keyName !== null) $this->env->currentProperty = $keyName;
|
2673 |
-
|
2674 |
-
$s = null;
|
2675 |
-
while ($this->expressionList($v)) {
|
2676 |
-
$values[] = $v;
|
2677 |
-
$s = $this->seek();
|
2678 |
-
if (!$this->literal(',')) break;
|
2679 |
-
}
|
2680 |
-
|
2681 |
-
if ($s) $this->seek($s);
|
2682 |
-
|
2683 |
-
if ($keyName !== null) unset($this->env->currentProperty);
|
2684 |
-
|
2685 |
-
if (count($values) == 0) return false;
|
2686 |
-
|
2687 |
-
$value = lessc::compressList($values, ', ');
|
2688 |
-
return true;
|
2689 |
-
}
|
2690 |
-
|
2691 |
-
protected function parenValue(&$out) {
|
2692 |
-
$s = $this->seek();
|
2693 |
-
|
2694 |
-
// speed shortcut
|
2695 |
-
if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] != "(") {
|
2696 |
-
return false;
|
2697 |
-
}
|
2698 |
-
|
2699 |
-
$inParens = $this->inParens;
|
2700 |
-
if ($this->literal("(") &&
|
2701 |
-
($this->inParens = true) && $this->expression($exp) &&
|
2702 |
-
$this->literal(")"))
|
2703 |
-
{
|
2704 |
-
$out = $exp;
|
2705 |
-
$this->inParens = $inParens;
|
2706 |
-
return true;
|
2707 |
-
} else {
|
2708 |
-
$this->inParens = $inParens;
|
2709 |
-
$this->seek($s);
|
2710 |
-
}
|
2711 |
-
|
2712 |
-
return false;
|
2713 |
-
}
|
2714 |
-
|
2715 |
-
// a single value
|
2716 |
-
protected function value(&$value) {
|
2717 |
-
$s = $this->seek();
|
2718 |
-
|
2719 |
-
// speed shortcut
|
2720 |
-
if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] == "-") {
|
2721 |
-
// negation
|
2722 |
-
if ($this->literal("-", false) &&
|
2723 |
-
(($this->variable($inner) && $inner = array("variable", $inner)) ||
|
2724 |
-
$this->unit($inner) ||
|
2725 |
-
$this->parenValue($inner)))
|
2726 |
-
{
|
2727 |
-
$value = array("unary", "-", $inner);
|
2728 |
-
return true;
|
2729 |
-
} else {
|
2730 |
-
$this->seek($s);
|
2731 |
-
}
|
2732 |
-
}
|
2733 |
-
|
2734 |
-
if ($this->parenValue($value)) return true;
|
2735 |
-
if ($this->unit($value)) return true;
|
2736 |
-
if ($this->color($value)) return true;
|
2737 |
-
if ($this->func($value)) return true;
|
2738 |
-
if ($this->string($value)) return true;
|
2739 |
-
|
2740 |
-
if ($this->keyword($word)) {
|
2741 |
-
$value = array('keyword', $word);
|
2742 |
-
return true;
|
2743 |
-
}
|
2744 |
-
|
2745 |
-
// try a variable
|
2746 |
-
if ($this->variable($var)) {
|
2747 |
-
$value = array('variable', $var);
|
2748 |
-
return true;
|
2749 |
-
}
|
2750 |
-
|
2751 |
-
// unquote string (should this work on any type?
|
2752 |
-
if ($this->literal("~") && $this->string($str)) {
|
2753 |
-
$value = array("escape", $str);
|
2754 |
-
return true;
|
2755 |
-
} else {
|
2756 |
-
$this->seek($s);
|
2757 |
-
}
|
2758 |
-
|
2759 |
-
// css hack: \0
|
2760 |
-
if ($this->literal('\\') && $this->match('([0-9]+)', $m)) {
|
2761 |
-
$value = array('keyword', '\\'.$m[1]);
|
2762 |
-
return true;
|
2763 |
-
} else {
|
2764 |
-
$this->seek($s);
|
2765 |
-
}
|
2766 |
-
|
2767 |
-
return false;
|
2768 |
-
}
|
2769 |
-
|
2770 |
-
// an import statement
|
2771 |
-
protected function import(&$out) {
|
2772 |
-
if (!$this->literal('@import')) return false;
|
2773 |
-
|
2774 |
-
// @import "something.css" media;
|
2775 |
-
// @import url("something.css") media;
|
2776 |
-
// @import url(something.css) media;
|
2777 |
-
|
2778 |
-
if ($this->propertyValue($value)) {
|
2779 |
-
$out = array("import", $value);
|
2780 |
-
return true;
|
2781 |
-
}
|
2782 |
-
}
|
2783 |
-
|
2784 |
-
protected function mediaQueryList(&$out) {
|
2785 |
-
if ($this->genericList($list, "mediaQuery", ",", false)) {
|
2786 |
-
$out = $list[2];
|
2787 |
-
return true;
|
2788 |
-
}
|
2789 |
-
return false;
|
2790 |
-
}
|
2791 |
-
|
2792 |
-
protected function mediaQuery(&$out) {
|
2793 |
-
$s = $this->seek();
|
2794 |
-
|
2795 |
-
$expressions = null;
|
2796 |
-
$parts = array();
|
2797 |
-
|
2798 |
-
if (($this->literal("only") && ($only = true) || $this->literal("not") && ($not = true) || true) && $this->keyword($mediaType)) {
|
2799 |
-
$prop = array("mediaType");
|
2800 |
-
if (isset($only)) $prop[] = "only";
|
2801 |
-
if (isset($not)) $prop[] = "not";
|
2802 |
-
$prop[] = $mediaType;
|
2803 |
-
$parts[] = $prop;
|
2804 |
-
} else {
|
2805 |
-
$this->seek($s);
|
2806 |
-
}
|
2807 |
-
|
2808 |
-
|
2809 |
-
if (!empty($mediaType) && !$this->literal("and")) {
|
2810 |
-
// ~
|
2811 |
-
} else {
|
2812 |
-
$this->genericList($expressions, "mediaExpression", "and", false);
|
2813 |
-
if (is_array($expressions)) $parts = array_merge($parts, $expressions[2]);
|
2814 |
-
}
|
2815 |
-
|
2816 |
-
if (count($parts) == 0) {
|
2817 |
-
$this->seek($s);
|
2818 |
-
return false;
|
2819 |
-
}
|
2820 |
-
|
2821 |
-
$out = $parts;
|
2822 |
-
return true;
|
2823 |
-
}
|
2824 |
-
|
2825 |
-
protected function mediaExpression(&$out) {
|
2826 |
-
$s = $this->seek();
|
2827 |
-
$value = null;
|
2828 |
-
if ($this->literal("(") &&
|
2829 |
-
$this->keyword($feature) &&
|
2830 |
-
($this->literal(":") && $this->expression($value) || true) &&
|
2831 |
-
$this->literal(")"))
|
2832 |
-
{
|
2833 |
-
$out = array("mediaExp", $feature);
|
2834 |
-
if ($value) $out[] = $value;
|
2835 |
-
return true;
|
2836 |
-
} elseif ($this->variable($variable)) {
|
2837 |
-
$out = array('variable', $variable);
|
2838 |
-
return true;
|
2839 |
-
}
|
2840 |
-
|
2841 |
-
$this->seek($s);
|
2842 |
-
return false;
|
2843 |
-
}
|
2844 |
-
|
2845 |
-
// an unbounded string stopped by $end
|
2846 |
-
protected function openString($end, &$out, $nestingOpen=null, $rejectStrs = null) {
|
2847 |
-
$oldWhite = $this->eatWhiteDefault;
|
2848 |
-
$this->eatWhiteDefault = false;
|
2849 |
-
|
2850 |
-
$stop = array("'", '"', "@{", $end);
|
2851 |
-
$stop = array_map(array("lessc", "preg_quote"), $stop);
|
2852 |
-
// $stop[] = self::$commentMulti;
|
2853 |
-
|
2854 |
-
if (!is_null($rejectStrs)) {
|
2855 |
-
$stop = array_merge($stop, $rejectStrs);
|
2856 |
-
}
|
2857 |
-
|
2858 |
-
$patt = '(.*?)('.implode("|", $stop).')';
|
2859 |
-
|
2860 |
-
$nestingLevel = 0;
|
2861 |
-
|
2862 |
-
$content = array();
|
2863 |
-
while ($this->match($patt, $m, false)) {
|
2864 |
-
if (!empty($m[1])) {
|
2865 |
-
$content[] = $m[1];
|
2866 |
-
if ($nestingOpen) {
|
2867 |
-
$nestingLevel += substr_count($m[1], $nestingOpen);
|
2868 |
-
}
|
2869 |
-
}
|
2870 |
-
|
2871 |
-
$tok = $m[2];
|
2872 |
-
|
2873 |
-
$this->count-= strlen($tok);
|
2874 |
-
if ($tok == $end) {
|
2875 |
-
if ($nestingLevel == 0) {
|
2876 |
-
break;
|
2877 |
-
} else {
|
2878 |
-
$nestingLevel--;
|
2879 |
-
}
|
2880 |
-
}
|
2881 |
-
|
2882 |
-
if (($tok == "'" || $tok == '"') && $this->string($str)) {
|
2883 |
-
$content[] = $str;
|
2884 |
-
continue;
|
2885 |
-
}
|
2886 |
-
|
2887 |
-
if ($tok == "@{" && $this->interpolation($inter)) {
|
2888 |
-
$content[] = $inter;
|
2889 |
-
continue;
|
2890 |
-
}
|
2891 |
-
|
2892 |
-
if (!empty($rejectStrs) && in_array($tok, $rejectStrs)) {
|
2893 |
-
break;
|
2894 |
-
}
|
2895 |
-
|
2896 |
-
$content[] = $tok;
|
2897 |
-
$this->count+= strlen($tok);
|
2898 |
-
}
|
2899 |
-
|
2900 |
-
$this->eatWhiteDefault = $oldWhite;
|
2901 |
-
|
2902 |
-
if (count($content) == 0) return false;
|
2903 |
-
|
2904 |
-
// trim the end
|
2905 |
-
if (is_string(end($content))) {
|
2906 |
-
$content[count($content) - 1] = rtrim(end($content));
|
2907 |
-
}
|
2908 |
-
|
2909 |
-
$out = array("string", "", $content);
|
2910 |
-
return true;
|
2911 |
-
}
|
2912 |
-
|
2913 |
-
protected function string(&$out) {
|
2914 |
-
$s = $this->seek();
|
2915 |
-
if ($this->literal('"', false)) {
|
2916 |
-
$delim = '"';
|
2917 |
-
} elseif ($this->literal("'", false)) {
|
2918 |
-
$delim = "'";
|
2919 |
-
} else {
|
2920 |
-
return false;
|
2921 |
-
}
|
2922 |
-
|
2923 |
-
$content = array();
|
2924 |
-
|
2925 |
-
// look for either ending delim , escape, or string interpolation
|
2926 |
-
$patt = '([^\n]*?)(@\{|\\\\|' .
|
2927 |
-
lessc::preg_quote($delim).')';
|
2928 |
-
|
2929 |
-
$oldWhite = $this->eatWhiteDefault;
|
2930 |
-
$this->eatWhiteDefault = false;
|
2931 |
-
|
2932 |
-
while ($this->match($patt, $m, false)) {
|
2933 |
-
$content[] = $m[1];
|
2934 |
-
if ($m[2] == "@{") {
|
2935 |
-
$this->count -= strlen($m[2]);
|
2936 |
-
if ($this->interpolation($inter, false)) {
|
2937 |
-
$content[] = $inter;
|
2938 |
-
} else {
|
2939 |
-
$this->count += strlen($m[2]);
|
2940 |
-
$content[] = "@{"; // ignore it
|
2941 |
-
}
|
2942 |
-
} elseif ($m[2] == '\\') {
|
2943 |
-
$content[] = $m[2];
|
2944 |
-
if ($this->literal($delim, false)) {
|
2945 |
-
$content[] = $delim;
|
2946 |
-
}
|
2947 |
-
} else {
|
2948 |
-
$this->count -= strlen($delim);
|
2949 |
-
break; // delim
|
2950 |
-
}
|
2951 |
-
}
|
2952 |
-
|
2953 |
-
$this->eatWhiteDefault = $oldWhite;
|
2954 |
-
|
2955 |
-
if ($this->literal($delim)) {
|
2956 |
-
$out = array("string", $delim, $content);
|
2957 |
-
return true;
|
2958 |
-
}
|
2959 |
-
|
2960 |
-
$this->seek($s);
|
2961 |
-
return false;
|
2962 |
-
}
|
2963 |
-
|
2964 |
-
protected function interpolation(&$out) {
|
2965 |
-
$oldWhite = $this->eatWhiteDefault;
|
2966 |
-
$this->eatWhiteDefault = true;
|
2967 |
-
|
2968 |
-
$s = $this->seek();
|
2969 |
-
if ($this->literal("@{") &&
|
2970 |
-
$this->openString("}", $interp, null, array("'", '"', ";")) &&
|
2971 |
-
$this->literal("}", false))
|
2972 |
-
{
|
2973 |
-
$out = array("interpolate", $interp);
|
2974 |
-
$this->eatWhiteDefault = $oldWhite;
|
2975 |
-
if ($this->eatWhiteDefault) $this->whitespace();
|
2976 |
-
return true;
|
2977 |
-
}
|
2978 |
-
|
2979 |
-
$this->eatWhiteDefault = $oldWhite;
|
2980 |
-
$this->seek($s);
|
2981 |
-
return false;
|
2982 |
-
}
|
2983 |
-
|
2984 |
-
protected function unit(&$unit) {
|
2985 |
-
// speed shortcut
|
2986 |
-
if (isset($this->buffer[$this->count])) {
|
2987 |
-
$char = $this->buffer[$this->count];
|
2988 |
-
if (!ctype_digit($char) && $char != ".") return false;
|
2989 |
-
}
|
2990 |
-
|
2991 |
-
if ($this->match('([0-9]+(?:\.[0-9]*)?|\.[0-9]+)([%a-zA-Z]+)?', $m)) {
|
2992 |
-
$unit = array("number", $m[1], empty($m[2]) ? "" : $m[2]);
|
2993 |
-
return true;
|
2994 |
-
}
|
2995 |
-
return false;
|
2996 |
-
}
|
2997 |
-
|
2998 |
-
// a # color
|
2999 |
-
protected function color(&$out) {
|
3000 |
-
if ($this->match('(#(?:[0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3}))', $m)) {
|
3001 |
-
if (strlen($m[1]) > 7) {
|
3002 |
-
$out = array("string", "", array($m[1]));
|
3003 |
-
} else {
|
3004 |
-
$out = array("raw_color", $m[1]);
|
3005 |
-
}
|
3006 |
-
return true;
|
3007 |
-
}
|
3008 |
-
|
3009 |
-
return false;
|
3010 |
-
}
|
3011 |
-
|
3012 |
-
// consume an argument definition list surrounded by ()
|
3013 |
-
// each argument is a variable name with optional value
|
3014 |
-
// or at the end a ... or a variable named followed by ...
|
3015 |
-
// arguments are separated by , unless a ; is in the list, then ; is the
|
3016 |
-
// delimiter.
|
3017 |
-
protected function argumentDef(&$args, &$isVararg) {
|
3018 |
-
$s = $this->seek();
|
3019 |
-
if (!$this->literal('(')) return false;
|
3020 |
-
|
3021 |
-
$values = array();
|
3022 |
-
$delim = ",";
|
3023 |
-
$method = "expressionList";
|
3024 |
-
|
3025 |
-
$isVararg = false;
|
3026 |
-
while (true) {
|
3027 |
-
if ($this->literal("...")) {
|
3028 |
-
$isVararg = true;
|
3029 |
-
break;
|
3030 |
-
}
|
3031 |
-
|
3032 |
-
if ($this->$method($value)) {
|
3033 |
-
if ($value[0] == "variable") {
|
3034 |
-
$arg = array("arg", $value[1]);
|
3035 |
-
$ss = $this->seek();
|
3036 |
-
|
3037 |
-
if ($this->assign() && $this->$method($rhs)) {
|
3038 |
-
$arg[] = $rhs;
|
3039 |
-
} else {
|
3040 |
-
$this->seek($ss);
|
3041 |
-
if ($this->literal("...")) {
|
3042 |
-
$arg[0] = "rest";
|
3043 |
-
$isVararg = true;
|
3044 |
-
}
|
3045 |
-
}
|
3046 |
-
|
3047 |
-
$values[] = $arg;
|
3048 |
-
if ($isVararg) break;
|
3049 |
-
continue;
|
3050 |
-
} else {
|
3051 |
-
$values[] = array("lit", $value);
|
3052 |
-
}
|
3053 |
-
}
|
3054 |
-
|
3055 |
-
|
3056 |
-
if (!$this->literal($delim)) {
|
3057 |
-
if ($delim == "," && $this->literal(";")) {
|
3058 |
-
// found new delim, convert existing args
|
3059 |
-
$delim = ";";
|
3060 |
-
$method = "propertyValue";
|
3061 |
-
|
3062 |
-
// transform arg list
|
3063 |
-
if (isset($values[1])) { // 2 items
|
3064 |
-
$newList = array();
|
3065 |
-
foreach ($values as $i => $arg) {
|
3066 |
-
switch($arg[0]) {
|
3067 |
-
case "arg":
|
3068 |
-
if ($i) {
|
3069 |
-
$this->throwError("Cannot mix ; and , as delimiter types");
|
3070 |
-
}
|
3071 |
-
$newList[] = $arg[2];
|
3072 |
-
break;
|
3073 |
-
case "lit":
|
3074 |
-
$newList[] = $arg[1];
|
3075 |
-
break;
|
3076 |
-
case "rest":
|
3077 |
-
$this->throwError("Unexpected rest before semicolon");
|
3078 |
-
}
|
3079 |
-
}
|
3080 |
-
|
3081 |
-
$newList = array("list", ", ", $newList);
|
3082 |
-
|
3083 |
-
switch ($values[0][0]) {
|
3084 |
-
case "arg":
|
3085 |
-
$newArg = array("arg", $values[0][1], $newList);
|
3086 |
-
break;
|
3087 |
-
case "lit":
|
3088 |
-
$newArg = array("lit", $newList);
|
3089 |
-
break;
|
3090 |
-
}
|
3091 |
-
|
3092 |
-
} elseif ($values) { // 1 item
|
3093 |
-
$newArg = $values[0];
|
3094 |
-
}
|
3095 |
-
|
3096 |
-
if ($newArg) {
|
3097 |
-
$values = array($newArg);
|
3098 |
-
}
|
3099 |
-
} else {
|
3100 |
-
break;
|
3101 |
-
}
|
3102 |
-
}
|
3103 |
-
}
|
3104 |
-
|
3105 |
-
if (!$this->literal(')')) {
|
3106 |
-
$this->seek($s);
|
3107 |
-
return false;
|
3108 |
-
}
|
3109 |
-
|
3110 |
-
$args = $values;
|
3111 |
-
|
3112 |
-
return true;
|
3113 |
-
}
|
3114 |
-
|
3115 |
-
// consume a list of tags
|
3116 |
-
// this accepts a hanging delimiter
|
3117 |
-
protected function tags(&$tags, $simple = false, $delim = ',') {
|
3118 |
-
$tags = array();
|
3119 |
-
while ($this->tag($tt, $simple)) {
|
3120 |
-
$tags[] = $tt;
|
3121 |
-
if (!$this->literal($delim)) break;
|
3122 |
-
}
|
3123 |
-
if (count($tags) == 0) return false;
|
3124 |
-
|
3125 |
-
return true;
|
3126 |
-
}
|
3127 |
-
|
3128 |
-
// list of tags of specifying mixin path
|
3129 |
-
// optionally separated by > (lazy, accepts extra >)
|
3130 |
-
protected function mixinTags(&$tags) {
|
3131 |
-
$tags = array();
|
3132 |
-
while ($this->tag($tt, true)) {
|
3133 |
-
$tags[] = $tt;
|
3134 |
-
$this->literal(">");
|
3135 |
-
}
|
3136 |
-
|
3137 |
-
if (count($tags) == 0) return false;
|
3138 |
-
|
3139 |
-
return true;
|
3140 |
-
}
|
3141 |
-
|
3142 |
-
// a bracketed value (contained within in a tag definition)
|
3143 |
-
protected function tagBracket(&$parts, &$hasExpression) {
|
3144 |
-
// speed shortcut
|
3145 |
-
if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] != "[") {
|
3146 |
-
return false;
|
3147 |
-
}
|
3148 |
-
|
3149 |
-
$s = $this->seek();
|
3150 |
-
|
3151 |
-
$hasInterpolation = false;
|
3152 |
-
|
3153 |
-
if ($this->literal("[", false)) {
|
3154 |
-
$attrParts = array("[");
|
3155 |
-
// keyword, string, operator
|
3156 |
-
while (true) {
|
3157 |
-
if ($this->literal("]", false)) {
|
3158 |
-
$this->count--;
|
3159 |
-
break; // get out early
|
3160 |
-
}
|
3161 |
-
|
3162 |
-
if ($this->match('\s+', $m)) {
|
3163 |
-
$attrParts[] = " ";
|
3164 |
-
continue;
|
3165 |
-
}
|
3166 |
-
if ($this->string($str)) {
|
3167 |
-
// escape parent selector, (yuck)
|
3168 |
-
foreach ($str[2] as &$chunk) {
|
3169 |
-
$chunk = str_replace($this->lessc->parentSelector, "$&$", $chunk);
|
3170 |
-
}
|
3171 |
-
|
3172 |
-
$attrParts[] = $str;
|
3173 |
-
$hasInterpolation = true;
|
3174 |
-
continue;
|
3175 |
-
}
|
3176 |
-
|
3177 |
-
if ($this->keyword($word)) {
|
3178 |
-
$attrParts[] = $word;
|
3179 |
-
continue;
|
3180 |
-
}
|
3181 |
-
|
3182 |
-
if ($this->interpolation($inter, false)) {
|
3183 |
-
$attrParts[] = $inter;
|
3184 |
-
$hasInterpolation = true;
|
3185 |
-
continue;
|
3186 |
-
}
|
3187 |
-
|
3188 |
-
// operator, handles attr namespace too
|
3189 |
-
if ($this->match('[|-~\$\*\^=]+', $m)) {
|
3190 |
-
$attrParts[] = $m[0];
|
3191 |
-
continue;
|
3192 |
-
}
|
3193 |
-
|
3194 |
-
break;
|
3195 |
-
}
|
3196 |
-
|
3197 |
-
if ($this->literal("]", false)) {
|
3198 |
-
$attrParts[] = "]";
|
3199 |
-
foreach ($attrParts as $part) {
|
3200 |
-
$parts[] = $part;
|
3201 |
-
}
|
3202 |
-
$hasExpression = $hasExpression || $hasInterpolation;
|
3203 |
-
return true;
|
3204 |
-
}
|
3205 |
-
$this->seek($s);
|
3206 |
-
}
|
3207 |
-
|
3208 |
-
$this->seek($s);
|
3209 |
-
return false;
|
3210 |
-
}
|
3211 |
-
|
3212 |
-
// a space separated list of selectors
|
3213 |
-
protected function tag(&$tag, $simple = false) {
|
3214 |
-
if ($simple)
|
3215 |
-
$chars = '^@,:;{}\][>\(\) "\'';
|
3216 |
-
else
|
3217 |
-
$chars = '^@,;{}["\'';
|
3218 |
-
|
3219 |
-
$s = $this->seek();
|
3220 |
-
|
3221 |
-
$hasExpression = false;
|
3222 |
-
$parts = array();
|
3223 |
-
while ($this->tagBracket($parts, $hasExpression));
|
3224 |
-
|
3225 |
-
$oldWhite = $this->eatWhiteDefault;
|
3226 |
-
$this->eatWhiteDefault = false;
|
3227 |
-
|
3228 |
-
while (true) {
|
3229 |
-
if ($this->match('(['.$chars.'0-9]['.$chars.']*)', $m)) {
|
3230 |
-
$parts[] = $m[1];
|
3231 |
-
if ($simple) break;
|
3232 |
-
|
3233 |
-
while ($this->tagBracket($parts, $hasExpression));
|
3234 |
-
continue;
|
3235 |
-
}
|
3236 |
-
|
3237 |
-
if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] == "@") {
|
3238 |
-
if ($this->interpolation($interp)) {
|
3239 |
-
$hasExpression = true;
|
3240 |
-
$interp[2] = true; // don't unescape
|
3241 |
-
$parts[] = $interp;
|
3242 |
-
continue;
|
3243 |
-
}
|
3244 |
-
|
3245 |
-
if ($this->literal("@")) {
|
3246 |
-
$parts[] = "@";
|
3247 |
-
continue;
|
3248 |
-
}
|
3249 |
-
}
|
3250 |
-
|
3251 |
-
if ($this->unit($unit)) { // for keyframes
|
3252 |
-
$parts[] = $unit[1];
|
3253 |
-
$parts[] = $unit[2];
|
3254 |
-
continue;
|
3255 |
-
}
|
3256 |
-
|
3257 |
-
break;
|
3258 |
-
}
|
3259 |
-
|
3260 |
-
$this->eatWhiteDefault = $oldWhite;
|
3261 |
-
if (!$parts) {
|
3262 |
-
$this->seek($s);
|
3263 |
-
return false;
|
3264 |
-
}
|
3265 |
-
|
3266 |
-
if ($hasExpression) {
|
3267 |
-
$tag = array("exp", array("string", "", $parts));
|
3268 |
-
} else {
|
3269 |
-
$tag = trim(implode($parts));
|
3270 |
-
}
|
3271 |
-
|
3272 |
-
$this->whitespace();
|
3273 |
-
return true;
|
3274 |
-
}
|
3275 |
-
|
3276 |
-
// a css function
|
3277 |
-
protected function func(&$func) {
|
3278 |
-
$s = $this->seek();
|
3279 |
-
|
3280 |
-
if ($this->match('(%|[\w\-_][\w\-_:\.]+|[\w_])', $m) && $this->literal('(')) {
|
3281 |
-
$fname = $m[1];
|
3282 |
-
|
3283 |
-
$sPreArgs = $this->seek();
|
3284 |
-
|
3285 |
-
$args = array();
|
3286 |
-
while (true) {
|
3287 |
-
$ss = $this->seek();
|
3288 |
-
// this ugly nonsense is for ie filter properties
|
3289 |
-
if ($this->keyword($name) && $this->literal('=') && $this->expressionList($value)) {
|
3290 |
-
$args[] = array("string", "", array($name, "=", $value));
|
3291 |
-
} else {
|
3292 |
-
$this->seek($ss);
|
3293 |
-
if ($this->expressionList($value)) {
|
3294 |
-
$args[] = $value;
|
3295 |
-
}
|
3296 |
-
}
|
3297 |
-
|
3298 |
-
if (!$this->literal(',')) break;
|
3299 |
-
}
|
3300 |
-
$args = array('list', ',', $args);
|
3301 |
-
|
3302 |
-
if ($this->literal(')')) {
|
3303 |
-
$func = array('function', $fname, $args);
|
3304 |
-
return true;
|
3305 |
-
} elseif ($fname == 'url') {
|
3306 |
-
// couldn't parse and in url? treat as string
|
3307 |
-
$this->seek($sPreArgs);
|
3308 |
-
if ($this->openString(")", $string) && $this->literal(")")) {
|
3309 |
-
$func = array('function', $fname, $string);
|
3310 |
-
return true;
|
3311 |
-
}
|
3312 |
-
}
|
3313 |
-
}
|
3314 |
-
|
3315 |
-
$this->seek($s);
|
3316 |
-
return false;
|
3317 |
-
}
|
3318 |
-
|
3319 |
-
// consume a less variable
|
3320 |
-
protected function variable(&$name) {
|
3321 |
-
$s = $this->seek();
|
3322 |
-
if ($this->literal($this->lessc->vPrefix, false) &&
|
3323 |
-
($this->variable($sub) || $this->keyword($name)))
|
3324 |
-
{
|
3325 |
-
if (!empty($sub)) {
|
3326 |
-
$name = array('variable', $sub);
|
3327 |
-
} else {
|
3328 |
-
$name = $this->lessc->vPrefix.$name;
|
3329 |
-
}
|
3330 |
-
return true;
|
3331 |
-
}
|
3332 |
-
|
3333 |
-
$name = null;
|
3334 |
-
$this->seek($s);
|
3335 |
-
return false;
|
3336 |
-
}
|
3337 |
-
|
3338 |
-
/**
|
3339 |
-
* Consume an assignment operator
|
3340 |
-
* Can optionally take a name that will be set to the current property name
|
3341 |
-
*/
|
3342 |
-
protected function assign($name = null) {
|
3343 |
-
if ($name) $this->currentProperty = $name;
|
3344 |
-
return $this->literal(':') || $this->literal('=');
|
3345 |
-
}
|
3346 |
-
|
3347 |
-
// consume a keyword
|
3348 |
-
protected function keyword(&$word) {
|
3349 |
-
if ($this->match('([\w_\-\*!"][\w\-_"]*)', $m)) {
|
3350 |
-
$word = $m[1];
|
3351 |
-
return true;
|
3352 |
-
}
|
3353 |
-
return false;
|
3354 |
-
}
|
3355 |
-
|
3356 |
-
// consume an end of statement delimiter
|
3357 |
-
protected function end() {
|
3358 |
-
if ($this->literal(';', false)) {
|
3359 |
-
return true;
|
3360 |
-
} elseif ($this->count == strlen($this->buffer) || $this->buffer[$this->count] == '}') {
|
3361 |
-
// if there is end of file or a closing block next then we don't need a ;
|
3362 |
-
return true;
|
3363 |
-
}
|
3364 |
-
return false;
|
3365 |
-
}
|
3366 |
-
|
3367 |
-
protected function guards(&$guards) {
|
3368 |
-
$s = $this->seek();
|
3369 |
-
|
3370 |
-
if (!$this->literal("when")) {
|
3371 |
-
$this->seek($s);
|
3372 |
-
return false;
|
3373 |
-
}
|
3374 |
-
|
3375 |
-
$guards = array();
|
3376 |
-
|
3377 |
-
while ($this->guardGroup($g)) {
|
3378 |
-
$guards[] = $g;
|
3379 |
-
if (!$this->literal(",")) break;
|
3380 |
-
}
|
3381 |
-
|
3382 |
-
if (count($guards) == 0) {
|
3383 |
-
$guards = null;
|
3384 |
-
$this->seek($s);
|
3385 |
-
return false;
|
3386 |
-
}
|
3387 |
-
|
3388 |
-
return true;
|
3389 |
-
}
|
3390 |
-
|
3391 |
-
// a bunch of guards that are and'd together
|
3392 |
-
// TODO rename to guardGroup
|
3393 |
-
protected function guardGroup(&$guardGroup) {
|
3394 |
-
$s = $this->seek();
|
3395 |
-
$guardGroup = array();
|
3396 |
-
while ($this->guard($guard)) {
|
3397 |
-
$guardGroup[] = $guard;
|
3398 |
-
if (!$this->literal("and")) break;
|
3399 |
-
}
|
3400 |
-
|
3401 |
-
if (count($guardGroup) == 0) {
|
3402 |
-
$guardGroup = null;
|
3403 |
-
$this->seek($s);
|
3404 |
-
return false;
|
3405 |
-
}
|
3406 |
-
|
3407 |
-
return true;
|
3408 |
-
}
|
3409 |
-
|
3410 |
-
protected function guard(&$guard) {
|
3411 |
-
$s = $this->seek();
|
3412 |
-
$negate = $this->literal("not");
|
3413 |
-
|
3414 |
-
if ($this->literal("(") && $this->expression($exp) && $this->literal(")")) {
|
3415 |
-
$guard = $exp;
|
3416 |
-
if ($negate) $guard = array("negate", $guard);
|
3417 |
-
return true;
|
3418 |
-
}
|
3419 |
-
|
3420 |
-
$this->seek($s);
|
3421 |
-
return false;
|
3422 |
-
}
|
3423 |
-
|
3424 |
-
/* raw parsing functions */
|
3425 |
-
|
3426 |
-
protected function literal($what, $eatWhitespace = null) {
|
3427 |
-
if ($eatWhitespace === null) $eatWhitespace = $this->eatWhiteDefault;
|
3428 |
-
|
3429 |
-
// shortcut on single letter
|
3430 |
-
if (!isset($what[1]) && isset($this->buffer[$this->count])) {
|
3431 |
-
if ($this->buffer[$this->count] == $what) {
|
3432 |
-
if (!$eatWhitespace) {
|
3433 |
-
$this->count++;
|
3434 |
-
return true;
|
3435 |
-
}
|
3436 |
-
// goes below...
|
3437 |
-
} else {
|
3438 |
-
return false;
|
3439 |
-
}
|
3440 |
-
}
|
3441 |
-
|
3442 |
-
if (!isset(self::$literalCache[$what])) {
|
3443 |
-
self::$literalCache[$what] = lessc::preg_quote($what);
|
3444 |
-
}
|
3445 |
-
|
3446 |
-
return $this->match(self::$literalCache[$what], $m, $eatWhitespace);
|
3447 |
-
}
|
3448 |
-
|
3449 |
-
protected function genericList(&$out, $parseItem, $delim="", $flatten=true) {
|
3450 |
-
$s = $this->seek();
|
3451 |
-
$items = array();
|
3452 |
-
while ($this->$parseItem($value)) {
|
3453 |
-
$items[] = $value;
|
3454 |
-
if ($delim) {
|
3455 |
-
if (!$this->literal($delim)) break;
|
3456 |
-
}
|
3457 |
-
}
|
3458 |
-
|
3459 |
-
if (count($items) == 0) {
|
3460 |
-
$this->seek($s);
|
3461 |
-
return false;
|
3462 |
-
}
|
3463 |
-
|
3464 |
-
if ($flatten && count($items) == 1) {
|
3465 |
-
$out = $items[0];
|
3466 |
-
} else {
|
3467 |
-
$out = array("list", $delim, $items);
|
3468 |
-
}
|
3469 |
-
|
3470 |
-
return true;
|
3471 |
-
}
|
3472 |
-
|
3473 |
-
|
3474 |
-
// advance counter to next occurrence of $what
|
3475 |
-
// $until - don't include $what in advance
|
3476 |
-
// $allowNewline, if string, will be used as valid char set
|
3477 |
-
protected function to($what, &$out, $until = false, $allowNewline = false) {
|
3478 |
-
if (is_string($allowNewline)) {
|
3479 |
-
$validChars = $allowNewline;
|
3480 |
-
} else {
|
3481 |
-
$validChars = $allowNewline ? "." : "[^\n]";
|
3482 |
-
}
|
3483 |
-
if (!$this->match('('.$validChars.'*?)'.lessc::preg_quote($what), $m, !$until)) return false;
|
3484 |
-
if ($until) $this->count -= strlen($what); // give back $what
|
3485 |
-
$out = $m[1];
|
3486 |
-
return true;
|
3487 |
-
}
|
3488 |
-
|
3489 |
-
// try to match something on head of buffer
|
3490 |
-
protected function match($regex, &$out, $eatWhitespace = null) {
|
3491 |
-
if ($eatWhitespace === null) $eatWhitespace = $this->eatWhiteDefault;
|
3492 |
-
|
3493 |
-
$r = '/'.$regex.($eatWhitespace && !$this->writeComments ? '\s*' : '').'/Ais';
|
3494 |
-
if (preg_match($r, $this->buffer, $out, null, $this->count)) {
|
3495 |
-
$this->count += strlen($out[0]);
|
3496 |
-
if ($eatWhitespace && $this->writeComments) $this->whitespace();
|
3497 |
-
return true;
|
3498 |
-
}
|
3499 |
-
return false;
|
3500 |
-
}
|
3501 |
-
|
3502 |
-
// match some whitespace
|
3503 |
-
protected function whitespace() {
|
3504 |
-
if ($this->writeComments) {
|
3505 |
-
$gotWhite = false;
|
3506 |
-
while (preg_match(self::$whitePattern, $this->buffer, $m, null, $this->count)) {
|
3507 |
-
if (isset($m[1]) && empty($this->seenComments[$this->count])) {
|
3508 |
-
$this->append(array("comment", $m[1]));
|
3509 |
-
$this->seenComments[$this->count] = true;
|
3510 |
-
}
|
3511 |
-
$this->count += strlen($m[0]);
|
3512 |
-
$gotWhite = true;
|
3513 |
-
}
|
3514 |
-
return $gotWhite;
|
3515 |
-
} else {
|
3516 |
-
$this->match("", $m);
|
3517 |
-
return strlen($m[0]) > 0;
|
3518 |
-
}
|
3519 |
-
}
|
3520 |
-
|
3521 |
-
// match something without consuming it
|
3522 |
-
protected function peek($regex, &$out = null, $from=null) {
|
3523 |
-
if (is_null($from)) $from = $this->count;
|
3524 |
-
$r = '/'.$regex.'/Ais';
|
3525 |
-
$result = preg_match($r, $this->buffer, $out, null, $from);
|
3526 |
-
|
3527 |
-
return $result;
|
3528 |
-
}
|
3529 |
-
|
3530 |
-
// seek to a spot in the buffer or return where we are on no argument
|
3531 |
-
protected function seek($where = null) {
|
3532 |
-
if ($where === null) return $this->count;
|
3533 |
-
else $this->count = $where;
|
3534 |
-
return true;
|
3535 |
-
}
|
3536 |
-
|
3537 |
-
/* misc functions */
|
3538 |
-
|
3539 |
-
public function throwError($msg = "parse error", $count = null) {
|
3540 |
-
$count = is_null($count) ? $this->count : $count;
|
3541 |
-
|
3542 |
-
$line = $this->line +
|
3543 |
-
substr_count(substr($this->buffer, 0, $count), "\n");
|
3544 |
-
|
3545 |
-
if (!empty($this->sourceName)) {
|
3546 |
-
$loc = "$this->sourceName on line $line";
|
3547 |
-
} else {
|
3548 |
-
$loc = "line: $line";
|
3549 |
-
}
|
3550 |
-
|
3551 |
-
// TODO this depends on $this->count
|
3552 |
-
if ($this->peek("(.*?)(\n|$)", $m, $count)) {
|
3553 |
-
throw new exception("$msg: failed at `$m[1]` $loc");
|
3554 |
-
} else {
|
3555 |
-
throw new exception("$msg: $loc");
|
3556 |
-
}
|
3557 |
-
}
|
3558 |
-
|
3559 |
-
protected function pushBlock($selectors=null, $type=null) {
|
3560 |
-
$b = new stdclass;
|
3561 |
-
$b->parent = $this->env;
|
3562 |
-
|
3563 |
-
$b->type = $type;
|
3564 |
-
$b->id = self::$nextBlockId++;
|
3565 |
-
|
3566 |
-
$b->isVararg = false; // TODO: kill me from here
|
3567 |
-
$b->tags = $selectors;
|
3568 |
-
|
3569 |
-
$b->props = array();
|
3570 |
-
$b->children = array();
|
3571 |
-
|
3572 |
-
$this->env = $b;
|
3573 |
-
return $b;
|
3574 |
-
}
|
3575 |
-
|
3576 |
-
// push a block that doesn't multiply tags
|
3577 |
-
protected function pushSpecialBlock($type) {
|
3578 |
-
return $this->pushBlock(null, $type);
|
3579 |
-
}
|
3580 |
-
|
3581 |
-
// append a property to the current block
|
3582 |
-
protected function append($prop, $pos = null) {
|
3583 |
-
if ($pos !== null) $prop[-1] = $pos;
|
3584 |
-
$this->env->props[] = $prop;
|
3585 |
-
}
|
3586 |
-
|
3587 |
-
// pop something off the stack
|
3588 |
-
protected function pop() {
|
3589 |
-
$old = $this->env;
|
3590 |
-
$this->env = $this->env->parent;
|
3591 |
-
return $old;
|
3592 |
-
}
|
3593 |
-
|
3594 |
-
// remove comments from $text
|
3595 |
-
// todo: make it work for all functions, not just url
|
3596 |
-
protected function removeComments($text) {
|
3597 |
-
$look = array(
|
3598 |
-
'url(', '//', '/*', '"', "'"
|
3599 |
-
);
|
3600 |
-
|
3601 |
-
$out = '';
|
3602 |
-
$min = null;
|
3603 |
-
while (true) {
|
3604 |
-
// find the next item
|
3605 |
-
foreach ($look as $token) {
|
3606 |
-
$pos = strpos($text, $token);
|
3607 |
-
if ($pos !== false) {
|
3608 |
-
if (!isset($min) || $pos < $min[1]) $min = array($token, $pos);
|
3609 |
-
}
|
3610 |
-
}
|
3611 |
-
|
3612 |
-
if (is_null($min)) break;
|
3613 |
-
|
3614 |
-
$count = $min[1];
|
3615 |
-
$skip = 0;
|
3616 |
-
$newlines = 0;
|
3617 |
-
switch ($min[0]) {
|
3618 |
-
case 'url(':
|
3619 |
-
if (preg_match('/url\(.*?\)/', $text, $m, 0, $count))
|
3620 |
-
$count += strlen($m[0]) - strlen($min[0]);
|
3621 |
-
break;
|
3622 |
-
case '"':
|
3623 |
-
case "'":
|
3624 |
-
if (preg_match('/'.$min[0].'.*?(?<!\\\\)'.$min[0].'/', $text, $m, 0, $count))
|
3625 |
-
$count += strlen($m[0]) - 1;
|
3626 |
-
break;
|
3627 |
-
case '//':
|
3628 |
-
$skip = strpos($text, "\n", $count);
|
3629 |
-
if ($skip === false) $skip = strlen($text) - $count;
|
3630 |
-
else $skip -= $count;
|
3631 |
-
break;
|
3632 |
-
case '/*':
|
3633 |
-
if (preg_match('/\/\*.*?\*\//s', $text, $m, 0, $count)) {
|
3634 |
-
$skip = strlen($m[0]);
|
3635 |
-
$newlines = substr_count($m[0], "\n");
|
3636 |
-
}
|
3637 |
-
break;
|
3638 |
-
}
|
3639 |
-
|
3640 |
-
if ($skip == 0) $count += strlen($min[0]);
|
3641 |
-
|
3642 |
-
$out .= substr($text, 0, $count).str_repeat("\n", $newlines);
|
3643 |
-
$text = substr($text, $count + $skip);
|
3644 |
-
|
3645 |
-
$min = null;
|
3646 |
-
}
|
3647 |
-
|
3648 |
-
return $out.$text;
|
3649 |
-
}
|
3650 |
-
|
3651 |
-
}
|
3652 |
-
|
3653 |
-
class lessc_formatter_classic {
|
3654 |
-
public $indentChar = " ";
|
3655 |
-
|
3656 |
-
public $break = "\n";
|
3657 |
-
public $open = " {";
|
3658 |
-
public $close = "}";
|
3659 |
-
public $selectorSeparator = ", ";
|
3660 |
-
public $assignSeparator = ":";
|
3661 |
-
|
3662 |
-
public $openSingle = " { ";
|
3663 |
-
public $closeSingle = " }";
|
3664 |
-
|
3665 |
-
public $disableSingle = false;
|
3666 |
-
public $breakSelectors = false;
|
3667 |
-
|
3668 |
-
public $compressColors = false;
|
3669 |
-
|
3670 |
-
public function __construct() {
|
3671 |
-
$this->indentLevel = 0;
|
3672 |
-
}
|
3673 |
-
|
3674 |
-
public function indentStr($n = 0) {
|
3675 |
-
return str_repeat($this->indentChar, max($this->indentLevel + $n, 0));
|
3676 |
-
}
|
3677 |
-
|
3678 |
-
public function property($name, $value) {
|
3679 |
-
return $name . $this->assignSeparator . $value . ";";
|
3680 |
-
}
|
3681 |
-
|
3682 |
-
protected function isEmpty($block) {
|
3683 |
-
if (empty($block->lines)) {
|
3684 |
-
foreach ($block->children as $child) {
|
3685 |
-
if (!$this->isEmpty($child)) return false;
|
3686 |
-
}
|
3687 |
-
|
3688 |
-
return true;
|
3689 |
-
}
|
3690 |
-
return false;
|
3691 |
-
}
|
3692 |
-
|
3693 |
-
public function block($block) {
|
3694 |
-
if ($this->isEmpty($block)) return;
|
3695 |
-
|
3696 |
-
$inner = $pre = $this->indentStr();
|
3697 |
-
|
3698 |
-
$isSingle = !$this->disableSingle &&
|
3699 |
-
is_null($block->type) && count($block->lines) == 1;
|
3700 |
-
|
3701 |
-
if (!empty($block->selectors)) {
|
3702 |
-
$this->indentLevel++;
|
3703 |
-
|
3704 |
-
if ($this->breakSelectors) {
|
3705 |
-
$selectorSeparator = $this->selectorSeparator . $this->break . $pre;
|
3706 |
-
} else {
|
3707 |
-
$selectorSeparator = $this->selectorSeparator;
|
3708 |
-
}
|
3709 |
-
|
3710 |
-
echo $pre .
|
3711 |
-
implode($selectorSeparator, $block->selectors);
|
3712 |
-
if ($isSingle) {
|
3713 |
-
echo $this->openSingle;
|
3714 |
-
$inner = "";
|
3715 |
-
} else {
|
3716 |
-
echo $this->open . $this->break;
|
3717 |
-
$inner = $this->indentStr();
|
3718 |
-
}
|
3719 |
-
|
3720 |
-
}
|
3721 |
-
|
3722 |
-
if (!empty($block->lines)) {
|
3723 |
-
$glue = $this->break.$inner;
|
3724 |
-
echo $inner . implode($glue, $block->lines);
|
3725 |
-
if (!$isSingle && !empty($block->children)) {
|
3726 |
-
echo $this->break;
|
3727 |
-
}
|
3728 |
-
}
|
3729 |
-
|
3730 |
-
foreach ($block->children as $child) {
|
3731 |
-
$this->block($child);
|
3732 |
-
}
|
3733 |
-
|
3734 |
-
if (!empty($block->selectors)) {
|
3735 |
-
if (!$isSingle && empty($block->children)) echo $this->break;
|
3736 |
-
|
3737 |
-
if ($isSingle) {
|
3738 |
-
echo $this->closeSingle . $this->break;
|
3739 |
-
} else {
|
3740 |
-
echo $pre . $this->close . $this->break;
|
3741 |
-
}
|
3742 |
-
|
3743 |
-
$this->indentLevel--;
|
3744 |
-
}
|
3745 |
-
}
|
3746 |
-
}
|
3747 |
-
|
3748 |
-
class lessc_formatter_compressed extends lessc_formatter_classic {
|
3749 |
-
public $disableSingle = true;
|
3750 |
-
public $open = "{";
|
3751 |
-
public $selectorSeparator = ",";
|
3752 |
-
public $assignSeparator = ":";
|
3753 |
-
public $break = "";
|
3754 |
-
public $compressColors = true;
|
3755 |
-
|
3756 |
-
public function indentStr($n = 0) {
|
3757 |
-
return "";
|
3758 |
-
}
|
3759 |
-
}
|
3760 |
-
|
3761 |
-
class lessc_formatter_lessjs extends lessc_formatter_classic {
|
3762 |
-
public $disableSingle = true;
|
3763 |
-
public $breakSelectors = true;
|
3764 |
-
public $assignSeparator = ": ";
|
3765 |
-
public $selectorSeparator = ",";
|
3766 |
-
}
|
3767 |
-
|
3768 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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-
|
4 |
-
if (php_sapi_name() != "cli") {
|
5 |
-
err($fa.$argv[0]." must be run in the command line.");
|
6 |
-
exit(1);
|
7 |
-
}
|
8 |
-
$exe = array_shift($argv); // remove filename
|
9 |
-
|
10 |
-
if (!$fname = array_shift($argv)) {
|
11 |
-
exit("Usage: ".$exe." input-file\n");
|
12 |
-
}
|
13 |
-
|
14 |
-
require "lessify.inc.php";
|
15 |
-
|
16 |
-
try {
|
17 |
-
$parser = new lessify($fname);
|
18 |
-
echo $parser->parse();
|
19 |
-
} catch (exception $e) {
|
20 |
-
exit("Fatal error: ".$e->getMessage()."\n");
|
21 |
-
}
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/vendor/leafo/lessphp/lessify.inc.php
DELETED
@@ -1,447 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* lessify
|
4 |
-
* Convert a css file into a less file
|
5 |
-
* http://leafo.net/lessphp
|
6 |
-
* Copyright 2010, leaf corcoran <leafot@gmail.com>
|
7 |
-
*
|
8 |
-
* WARNING: THIS DOES NOT WORK ANYMORE. NEEDS TO BE UPDATED FOR
|
9 |
-
* LATEST VERSION OF LESSPHP.
|
10 |
-
*
|
11 |
-
*/
|
12 |
-
|
13 |
-
require "lessc.inc.php";
|
14 |
-
|
15 |
-
//
|
16 |
-
// check if the merge during mixin is overwriting values. should or should it not?
|
17 |
-
//
|
18 |
-
|
19 |
-
//
|
20 |
-
// 1. split apart class tags
|
21 |
-
//
|
22 |
-
|
23 |
-
class easyparse {
|
24 |
-
var $buffer;
|
25 |
-
var $count;
|
26 |
-
|
27 |
-
function __construct($str) {
|
28 |
-
$this->count = 0;
|
29 |
-
$this->buffer = trim($str);
|
30 |
-
}
|
31 |
-
|
32 |
-
function seek($where = null) {
|
33 |
-
if ($where === null) return $this->count;
|
34 |
-
else $this->count = $where;
|
35 |
-
return true;
|
36 |
-
}
|
37 |
-
|
38 |
-
function preg_quote($what) {
|
39 |
-
return preg_quote($what, '/');
|
40 |
-
}
|
41 |
-
|
42 |
-
function match($regex, &$out, $eatWhitespace = true) {
|
43 |
-
$r = '/'.$regex.($eatWhitespace ? '\s*' : '').'/Ais';
|
44 |
-
if (preg_match($r, $this->buffer, $out, null, $this->count)) {
|
45 |
-
$this->count += strlen($out[0]);
|
46 |
-
return true;
|
47 |
-
}
|
48 |
-
return false;
|
49 |
-
}
|
50 |
-
|
51 |
-
function literal($what, $eatWhitespace = true) {
|
52 |
-
// this is here mainly prevent notice from { } string accessor
|
53 |
-
if ($this->count >= strlen($this->buffer)) return false;
|
54 |
-
|
55 |
-
// shortcut on single letter
|
56 |
-
if (!$eatWhitespace and strlen($what) == 1) {
|
57 |
-
if ($this->buffer{$this->count} == $what) {
|
58 |
-
$this->count++;
|
59 |
-
return true;
|
60 |
-
}
|
61 |
-
else return false;
|
62 |
-
}
|
63 |
-
|
64 |
-
return $this->match($this->preg_quote($what), $m, $eatWhitespace);
|
65 |
-
}
|
66 |
-
|
67 |
-
}
|
68 |
-
|
69 |
-
class tagparse extends easyparse {
|
70 |
-
static private $combinators = null;
|
71 |
-
static private $match_opts = null;
|
72 |
-
|
73 |
-
function parse() {
|
74 |
-
if (empty(self::$combinators)) {
|
75 |
-
self::$combinators = '('.implode('|', array_map(array($this, 'preg_quote'),
|
76 |
-
array('+', '>', '~'))).')';
|
77 |
-
self::$match_opts = '('.implode('|', array_map(array($this, 'preg_quote'),
|
78 |
-
array('=', '~=', '|=', '$=', '*='))).')';
|
79 |
-
}
|
80 |
-
|
81 |
-
// crush whitespace
|
82 |
-
$this->buffer = preg_replace('/\s+/', ' ', $this->buffer).' ';
|
83 |
-
|
84 |
-
$tags = array();
|
85 |
-
while ($this->tag($t)) $tags[] = $t;
|
86 |
-
|
87 |
-
return $tags;
|
88 |
-
}
|
89 |
-
|
90 |
-
static function compileString($string) {
|
91 |
-
list(, $delim, $str) = $string;
|
92 |
-
$str = str_replace($delim, "\\".$delim, $str);
|
93 |
-
$str = str_replace("\n", "\\\n", $str);
|
94 |
-
return $delim.$str.$delim;
|
95 |
-
}
|
96 |
-
|
97 |
-
static function compilePaths($paths) {
|
98 |
-
return implode(', ', array_map(array('self', 'compilePath'), $paths));
|
99 |
-
}
|
100 |
-
|
101 |
-
// array of tags
|
102 |
-
static function compilePath($path) {
|
103 |
-
return implode(' ', array_map(array('self', 'compileTag'), $path));
|
104 |
-
}
|
105 |
-
|
106 |
-
|
107 |
-
static function compileTag($tag) {
|
108 |
-
ob_start();
|
109 |
-
if (isset($tag['comb'])) echo $tag['comb']." ";
|
110 |
-
if (isset($tag['front'])) echo $tag['front'];
|
111 |
-
if (isset($tag['attr'])) {
|
112 |
-
echo '['.$tag['attr'];
|
113 |
-
if (isset($tag['op'])) {
|
114 |
-
echo $tag['op'].$tag['op_value'];
|
115 |
-
}
|
116 |
-
echo ']';
|
117 |
-
}
|
118 |
-
return ob_get_clean();
|
119 |
-
}
|
120 |
-
|
121 |
-
function string(&$out) {
|
122 |
-
$s = $this->seek();
|
123 |
-
|
124 |
-
if ($this->literal('"')) {
|
125 |
-
$delim = '"';
|
126 |
-
} elseif ($this->literal("'")) {
|
127 |
-
$delim = "'";
|
128 |
-
} else {
|
129 |
-
return false;
|
130 |
-
}
|
131 |
-
|
132 |
-
while (true) {
|
133 |
-
// step through letters looking for either end or escape
|
134 |
-
$buff = "";
|
135 |
-
$escapeNext = false;
|
136 |
-
$finished = false;
|
137 |
-
for ($i = $this->count; $i < strlen($this->buffer); $i++) {
|
138 |
-
$char = $this->buffer[$i];
|
139 |
-
switch ($char) {
|
140 |
-
case $delim:
|
141 |
-
if ($escapeNext) {
|
142 |
-
$buff .= $char;
|
143 |
-
$escapeNext = false;
|
144 |
-
break;
|
145 |
-
}
|
146 |
-
$finished = true;
|
147 |
-
break 2;
|
148 |
-
case "\\":
|
149 |
-
if ($escapeNext) {
|
150 |
-
$buff .= $char;
|
151 |
-
$escapeNext = false;
|
152 |
-
} else {
|
153 |
-
$escapeNext = true;
|
154 |
-
}
|
155 |
-
break;
|
156 |
-
case "\n":
|
157 |
-
if (!$escapeNext) {
|
158 |
-
break 3;
|
159 |
-
}
|
160 |
-
|
161 |
-
$buff .= $char;
|
162 |
-
$escapeNext = false;
|
163 |
-
break;
|
164 |
-
default:
|
165 |
-
if ($escapeNext) {
|
166 |
-
$buff .= "\\";
|
167 |
-
$escapeNext = false;
|
168 |
-
}
|
169 |
-
$buff .= $char;
|
170 |
-
}
|
171 |
-
}
|
172 |
-
if (!$finished) break;
|
173 |
-
$out = array('string', $delim, $buff);
|
174 |
-
$this->seek($i+1);
|
175 |
-
return true;
|
176 |
-
}
|
177 |
-
|
178 |
-
$this->seek($s);
|
179 |
-
return false;
|
180 |
-
}
|
181 |
-
|
182 |
-
function tag(&$out) {
|
183 |
-
$s = $this->seek();
|
184 |
-
$tag = array();
|
185 |
-
if ($this->combinator($op)) $tag['comb'] = $op;
|
186 |
-
|
187 |
-
if (!$this->match('(.*?)( |$|\[|'.self::$combinators.')', $match)) {
|
188 |
-
$this->seek($s);
|
189 |
-
return false;
|
190 |
-
}
|
191 |
-
|
192 |
-
if (!empty($match[3])) {
|
193 |
-
// give back combinator
|
194 |
-
$this->count-=strlen($match[3]);
|
195 |
-
}
|
196 |
-
|
197 |
-
if (!empty($match[1])) $tag['front'] = $match[1];
|
198 |
-
|
199 |
-
if ($match[2] == '[') {
|
200 |
-
if ($this->ident($i)) {
|
201 |
-
$tag['attr'] = $i;
|
202 |
-
|
203 |
-
if ($this->match(self::$match_opts, $m) && $this->value($v)) {
|
204 |
-
$tag['op'] = $m[1];
|
205 |
-
$tag['op_value'] = $v;
|
206 |
-
}
|
207 |
-
|
208 |
-
if ($this->literal(']')) {
|
209 |
-
$out = $tag;
|
210 |
-
return true;
|
211 |
-
}
|
212 |
-
}
|
213 |
-
} elseif (isset($tag['front'])) {
|
214 |
-
$out = $tag;
|
215 |
-
return true;
|
216 |
-
}
|
217 |
-
|
218 |
-
$this->seek($s);
|
219 |
-
return false;
|
220 |
-
}
|
221 |
-
|
222 |
-
function ident(&$out) {
|
223 |
-
// [-]?{nmstart}{nmchar}*
|
224 |
-
// nmstart: [_a-z]|{nonascii}|{escape}
|
225 |
-
// nmchar: [_a-z0-9-]|{nonascii}|{escape}
|
226 |
-
if ($this->match('(-?[_a-z][_\w]*)', $m)) {
|
227 |
-
$out = $m[1];
|
228 |
-
return true;
|
229 |
-
}
|
230 |
-
return false;
|
231 |
-
}
|
232 |
-
|
233 |
-
function value(&$out) {
|
234 |
-
if ($this->string($str)) {
|
235 |
-
$out = $this->compileString($str);
|
236 |
-
return true;
|
237 |
-
} elseif ($this->ident($id)) {
|
238 |
-
$out = $id;
|
239 |
-
return true;
|
240 |
-
}
|
241 |
-
return false;
|
242 |
-
}
|
243 |
-
|
244 |
-
|
245 |
-
function combinator(&$op) {
|
246 |
-
if ($this->match(self::$combinators, $m)) {
|
247 |
-
$op = $m[1];
|
248 |
-
return true;
|
249 |
-
}
|
250 |
-
return false;
|
251 |
-
}
|
252 |
-
}
|
253 |
-
|
254 |
-
class nodecounter {
|
255 |
-
var $count = 0;
|
256 |
-
var $children = array();
|
257 |
-
|
258 |
-
var $name;
|
259 |
-
var $child_blocks;
|
260 |
-
var $the_block;
|
261 |
-
|
262 |
-
function __construct($name) {
|
263 |
-
$this->name = $name;
|
264 |
-
}
|
265 |
-
|
266 |
-
function dump($stack = null) {
|
267 |
-
if (is_null($stack)) $stack = array();
|
268 |
-
$stack[] = $this->getName();
|
269 |
-
echo implode(' -> ', $stack)." ($this->count)\n";
|
270 |
-
foreach ($this->children as $child) {
|
271 |
-
$child->dump($stack);
|
272 |
-
}
|
273 |
-
}
|
274 |
-
|
275 |
-
static function compileProperties($c, $block) {
|
276 |
-
foreach($block as $name => $value) {
|
277 |
-
if ($c->isProperty($name, $value)) {
|
278 |
-
echo $c->compileProperty($name, $value)."\n";
|
279 |
-
}
|
280 |
-
}
|
281 |
-
}
|
282 |
-
|
283 |
-
function compile($c, $path = null) {
|
284 |
-
if (is_null($path)) $path = array();
|
285 |
-
$path[] = $this->name;
|
286 |
-
|
287 |
-
$isVisible = !is_null($this->the_block) || !is_null($this->child_blocks);
|
288 |
-
|
289 |
-
if ($isVisible) {
|
290 |
-
echo $c->indent(implode(' ', $path).' {');
|
291 |
-
$c->indentLevel++;
|
292 |
-
$path = array();
|
293 |
-
|
294 |
-
if ($this->the_block) {
|
295 |
-
$this->compileProperties($c, $this->the_block);
|
296 |
-
}
|
297 |
-
|
298 |
-
if ($this->child_blocks) {
|
299 |
-
foreach ($this->child_blocks as $block) {
|
300 |
-
echo $c->indent(tagparse::compilePaths($block['__tags']).' {');
|
301 |
-
$c->indentLevel++;
|
302 |
-
$this->compileProperties($c, $block);
|
303 |
-
$c->indentLevel--;
|
304 |
-
echo $c->indent('}');
|
305 |
-
}
|
306 |
-
}
|
307 |
-
}
|
308 |
-
|
309 |
-
// compile child nodes
|
310 |
-
foreach($this->children as $node) {
|
311 |
-
$node->compile($c, $path);
|
312 |
-
}
|
313 |
-
|
314 |
-
if ($isVisible) {
|
315 |
-
$c->indentLevel--;
|
316 |
-
echo $c->indent('}');
|
317 |
-
}
|
318 |
-
|
319 |
-
}
|
320 |
-
|
321 |
-
function getName() {
|
322 |
-
if (is_null($this->name)) return "[root]";
|
323 |
-
else return $this->name;
|
324 |
-
}
|
325 |
-
|
326 |
-
function getNode($name) {
|
327 |
-
if (!isset($this->children[$name])) {
|
328 |
-
$this->children[$name] = new nodecounter($name);
|
329 |
-
}
|
330 |
-
|
331 |
-
return $this->children[$name];
|
332 |
-
}
|
333 |
-
|
334 |
-
function findNode($path) {
|
335 |
-
$current = $this;
|
336 |
-
for ($i = 0; $i < count($path); $i++) {
|
337 |
-
$t = tagparse::compileTag($path[$i]);
|
338 |
-
$current = $current->getNode($t);
|
339 |
-
}
|
340 |
-
|
341 |
-
return $current;
|
342 |
-
}
|
343 |
-
|
344 |
-
function addBlock($path, $block) {
|
345 |
-
$node = $this->findNode($path);
|
346 |
-
if (!is_null($node->the_block)) throw new exception("can this happen?");
|
347 |
-
|
348 |
-
unset($block['__tags']);
|
349 |
-
$node->the_block = $block;
|
350 |
-
}
|
351 |
-
|
352 |
-
function addToNode($path, $block) {
|
353 |
-
$node = $this->findNode($path);
|
354 |
-
$node->child_blocks[] = $block;
|
355 |
-
}
|
356 |
-
}
|
357 |
-
|
358 |
-
/**
|
359 |
-
* create a less file from a css file by combining blocks where appropriate
|
360 |
-
*/
|
361 |
-
class lessify extends lessc {
|
362 |
-
public function dump() {
|
363 |
-
print_r($this->env);
|
364 |
-
}
|
365 |
-
|
366 |
-
public function parse($str = null) {
|
367 |
-
$this->prepareParser($str ? $str : $this->buffer);
|
368 |
-
while (false !== $this->parseChunk());
|
369 |
-
|
370 |
-
$root = new nodecounter(null);
|
371 |
-
|
372 |
-
// attempt to preserve some of the block order
|
373 |
-
$order = array();
|
374 |
-
|
375 |
-
$visitedTags = array();
|
376 |
-
foreach (end($this->env) as $name => $block) {
|
377 |
-
if (!$this->isBlock($name, $block)) continue;
|
378 |
-
if (isset($visitedTags[$name])) continue;
|
379 |
-
|
380 |
-
foreach ($block['__tags'] as $t) {
|
381 |
-
$visitedTags[$t] = true;
|
382 |
-
}
|
383 |
-
|
384 |
-
// skip those with more than 1
|
385 |
-
if (count($block['__tags']) == 1) {
|
386 |
-
$p = new tagparse(end($block['__tags']));
|
387 |
-
$path = $p->parse();
|
388 |
-
$root->addBlock($path, $block);
|
389 |
-
$order[] = array('compressed', $path, $block);
|
390 |
-
continue;
|
391 |
-
} else {
|
392 |
-
$common = null;
|
393 |
-
$paths = array();
|
394 |
-
foreach ($block['__tags'] as $rawtag) {
|
395 |
-
$p = new tagparse($rawtag);
|
396 |
-
$paths[] = $path = $p->parse();
|
397 |
-
if (is_null($common)) $common = $path;
|
398 |
-
else {
|
399 |
-
$new_common = array();
|
400 |
-
foreach ($path as $tag) {
|
401 |
-
$head = array_shift($common);
|
402 |
-
if ($tag == $head) {
|
403 |
-
$new_common[] = $head;
|
404 |
-
} else break;
|
405 |
-
}
|
406 |
-
$common = $new_common;
|
407 |
-
if (empty($common)) {
|
408 |
-
// nothing in common
|
409 |
-
break;
|
410 |
-
}
|
411 |
-
}
|
412 |
-
}
|
413 |
-
|
414 |
-
if (!empty($common)) {
|
415 |
-
$new_paths = array();
|
416 |
-
foreach ($paths as $p) $new_paths[] = array_slice($p, count($common));
|
417 |
-
$block['__tags'] = $new_paths;
|
418 |
-
$root->addToNode($common, $block);
|
419 |
-
$order[] = array('compressed', $common, $block);
|
420 |
-
continue;
|
421 |
-
}
|
422 |
-
|
423 |
-
}
|
424 |
-
|
425 |
-
$order[] = array('none', $block['__tags'], $block);
|
426 |
-
}
|
427 |
-
|
428 |
-
|
429 |
-
$compressed = $root->children;
|
430 |
-
foreach ($order as $item) {
|
431 |
-
list($type, $tags, $block) = $item;
|
432 |
-
if ($type == 'compressed') {
|
433 |
-
$top = tagparse::compileTag(reset($tags));
|
434 |
-
if (isset($compressed[$top])) {
|
435 |
-
$compressed[$top]->compile($this);
|
436 |
-
unset($compressed[$top]);
|
437 |
-
}
|
438 |
-
} else {
|
439 |
-
echo $this->indent(implode(', ', $tags).' {');
|
440 |
-
$this->indentLevel++;
|
441 |
-
nodecounter::compileProperties($this, $block);
|
442 |
-
$this->indentLevel--;
|
443 |
-
echo $this->indent('}');
|
444 |
-
}
|
445 |
-
}
|
446 |
-
}
|
447 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/vendor/leafo/lessphp/plessc
DELETED
@@ -1,250 +0,0 @@
|
|
1 |
-
#!/usr/bin/env php
|
2 |
-
<?php
|
3 |
-
// Command line utility to compile LESS to STDOUT
|
4 |
-
// Leaf Corcoran <leafot@gmail.com>, 2013
|
5 |
-
|
6 |
-
$exe = array_shift($argv); // remove filename
|
7 |
-
|
8 |
-
$HELP = <<<EOT
|
9 |
-
Usage: $exe [options] input-file [output-file]
|
10 |
-
|
11 |
-
Options include:
|
12 |
-
|
13 |
-
-h, --help Show this message
|
14 |
-
-v Print the version
|
15 |
-
-f=format Set the output format, includes "default", "compressed"
|
16 |
-
-c Keep /* */ comments in output
|
17 |
-
-r Read from STDIN instead of input-file
|
18 |
-
-w Watch input-file, and compile to output-file if it is changed
|
19 |
-
-T Dump formatted parse tree
|
20 |
-
-X Dump raw parse tree
|
21 |
-
|
22 |
-
|
23 |
-
EOT;
|
24 |
-
|
25 |
-
$opts = getopt('hvrwncXTf:', array('help'));
|
26 |
-
while (count($argv) > 0 && preg_match('/^-([-hvrwncXT]$|[f]=)/', $argv[0])) {
|
27 |
-
array_shift($argv);
|
28 |
-
}
|
29 |
-
|
30 |
-
function has() {
|
31 |
-
global $opts;
|
32 |
-
foreach (func_get_args() as $arg) {
|
33 |
-
if (isset($opts[$arg])) return true;
|
34 |
-
}
|
35 |
-
return false;
|
36 |
-
}
|
37 |
-
|
38 |
-
if (has("h", "help")) {
|
39 |
-
exit($HELP);
|
40 |
-
}
|
41 |
-
|
42 |
-
error_reporting(E_ALL);
|
43 |
-
$path = realpath(dirname(__FILE__)).'/';
|
44 |
-
|
45 |
-
require $path."lessc.inc.php";
|
46 |
-
|
47 |
-
$VERSION = lessc::$VERSION;
|
48 |
-
|
49 |
-
$fa = "Fatal Error: ";
|
50 |
-
function err($msg) {
|
51 |
-
fwrite(STDERR, $msg."\n");
|
52 |
-
}
|
53 |
-
|
54 |
-
if (php_sapi_name() != "cli") {
|
55 |
-
err($fa.$argv[0]." must be run in the command line.");
|
56 |
-
exit(1);
|
57 |
-
}
|
58 |
-
|
59 |
-
function make_less($fname = null) {
|
60 |
-
global $opts;
|
61 |
-
$l = new lessc($fname);
|
62 |
-
|
63 |
-
if (has("f")) {
|
64 |
-
$format = $opts["f"];
|
65 |
-
if ($format != "default") $l->setFormatter($format);
|
66 |
-
}
|
67 |
-
|
68 |
-
if (has("c")) {
|
69 |
-
$l->setPreserveComments(true);
|
70 |
-
}
|
71 |
-
|
72 |
-
return $l;
|
73 |
-
}
|
74 |
-
|
75 |
-
function process($data, $import = null) {
|
76 |
-
global $fa;
|
77 |
-
|
78 |
-
$l = make_less();
|
79 |
-
if ($import) $l->importDir = $import;
|
80 |
-
|
81 |
-
try {
|
82 |
-
echo $l->parse($data);
|
83 |
-
exit(0);
|
84 |
-
} catch (exception $ex) {
|
85 |
-
err($fa."\n".str_repeat('=', 20)."\n".
|
86 |
-
$ex->getMessage());
|
87 |
-
exit(1);
|
88 |
-
}
|
89 |
-
}
|
90 |
-
|
91 |
-
if (has("v")) {
|
92 |
-
exit($VERSION."\n");
|
93 |
-
}
|
94 |
-
|
95 |
-
if (has("r")) {
|
96 |
-
if (!empty($argv)) {
|
97 |
-
$data = $argv[0];
|
98 |
-
} else {
|
99 |
-
$data = "";
|
100 |
-
while (!feof(STDIN)) {
|
101 |
-
$data .= fread(STDIN, 8192);
|
102 |
-
}
|
103 |
-
}
|
104 |
-
exit(process($data));
|
105 |
-
}
|
106 |
-
|
107 |
-
if (has("w")) {
|
108 |
-
// need two files
|
109 |
-
if (!is_file($in = array_shift($argv)) ||
|
110 |
-
null == $out = array_shift($argv))
|
111 |
-
{
|
112 |
-
err($fa.$exe." -w infile outfile");
|
113 |
-
exit(1);
|
114 |
-
}
|
115 |
-
|
116 |
-
echo "Watching ".$in.
|
117 |
-
(has("n") ? ' with notifications' : '').
|
118 |
-
", press Ctrl + c to exit.\n";
|
119 |
-
|
120 |
-
$cache = $in;
|
121 |
-
$last_action = 0;
|
122 |
-
while (true) {
|
123 |
-
clearstatcache();
|
124 |
-
|
125 |
-
// check if anything has changed since last fail
|
126 |
-
$updated = false;
|
127 |
-
if (is_array($cache)) {
|
128 |
-
foreach ($cache['files'] as $fname=>$_) {
|
129 |
-
if (filemtime($fname) > $last_action) {
|
130 |
-
$updated = true;
|
131 |
-
break;
|
132 |
-
}
|
133 |
-
}
|
134 |
-
} else $updated = true;
|
135 |
-
|
136 |
-
// try to compile it
|
137 |
-
if ($updated) {
|
138 |
-
$last_action = time();
|
139 |
-
|
140 |
-
try {
|
141 |
-
$cache = lessc::cexecute($cache);
|
142 |
-
echo "Writing updated file: ".$out."\n";
|
143 |
-
if (!file_put_contents($out, $cache['compiled'])) {
|
144 |
-
err($fa."Could not write to file ".$out);
|
145 |
-
exit(1);
|
146 |
-
}
|
147 |
-
} catch (exception $ex) {
|
148 |
-
echo "\nFatal Error:\n".str_repeat('=', 20)."\n".
|
149 |
-
$ex->getMessage()."\n\n";
|
150 |
-
|
151 |
-
if (has("n")) {
|
152 |
-
`notify-send -u critical "compile failed" "{$ex->getMessage()}"`;
|
153 |
-
}
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
sleep(1);
|
158 |
-
}
|
159 |
-
exit(0);
|
160 |
-
}
|
161 |
-
|
162 |
-
if (!$fname = array_shift($argv)) {
|
163 |
-
echo $HELP;
|
164 |
-
exit(1);
|
165 |
-
}
|
166 |
-
|
167 |
-
function dumpValue($node, $depth = 0) {
|
168 |
-
if (is_object($node)) {
|
169 |
-
$indent = str_repeat(" ", $depth);
|
170 |
-
$out = array();
|
171 |
-
foreach ($node->props as $prop) {
|
172 |
-
$out[] = $indent . dumpValue($prop, $depth + 1);
|
173 |
-
}
|
174 |
-
$out = implode("\n", $out);
|
175 |
-
if (!empty($node->tags)) {
|
176 |
-
$out = "+ ".implode(", ", $node->tags)."\n".$out;
|
177 |
-
}
|
178 |
-
return $out;
|
179 |
-
} elseif (is_array($node)) {
|
180 |
-
if (empty($node)) return "[]";
|
181 |
-
$type = $node[0];
|
182 |
-
if ($type == "block")
|
183 |
-
return dumpValue($node[1], $depth);
|
184 |
-
|
185 |
-
$out = array();
|
186 |
-
foreach ($node as $value) {
|
187 |
-
$out[] = dumpValue($value, $depth);
|
188 |
-
}
|
189 |
-
return "{ ".implode(", ", $out)." }";
|
190 |
-
} else {
|
191 |
-
if (is_string($node) && preg_match("/[\s,]/", $node)) {
|
192 |
-
return '"'.$node.'"';
|
193 |
-
}
|
194 |
-
return $node; // normal value
|
195 |
-
}
|
196 |
-
}
|
197 |
-
|
198 |
-
|
199 |
-
function stripValue($o, $toStrip) {
|
200 |
-
if (is_array($o) || is_object($o)) {
|
201 |
-
$isObject = is_object($o);
|
202 |
-
$o = (array)$o;
|
203 |
-
foreach ($toStrip as $removeKey) {
|
204 |
-
if (!empty($o[$removeKey])) {
|
205 |
-
$o[$removeKey] = "*stripped*";
|
206 |
-
}
|
207 |
-
}
|
208 |
-
|
209 |
-
foreach ($o as $k => $v) {
|
210 |
-
$o[$k] = stripValue($v, $toStrip);
|
211 |
-
}
|
212 |
-
|
213 |
-
if ($isObject) {
|
214 |
-
$o = (object)$o;
|
215 |
-
}
|
216 |
-
}
|
217 |
-
|
218 |
-
return $o;
|
219 |
-
}
|
220 |
-
|
221 |
-
function dumpWithoutParent($o, $alsoStrip=array()) {
|
222 |
-
$toStrip = array_merge(array("parent"), $alsoStrip);
|
223 |
-
print_r(stripValue($o, $toStrip));
|
224 |
-
}
|
225 |
-
|
226 |
-
try {
|
227 |
-
$less = make_less($fname);
|
228 |
-
if (has("T", "X")) {
|
229 |
-
$parser = new lessc_parser($less, $fname);
|
230 |
-
$tree = $parser->parse(file_get_contents($fname));
|
231 |
-
if (has("X"))
|
232 |
-
$out = print_r($tree, 1);
|
233 |
-
else
|
234 |
-
$out = dumpValue($tree)."\n";
|
235 |
-
} else {
|
236 |
-
$out = $less->parse();
|
237 |
-
}
|
238 |
-
|
239 |
-
if (!$fout = array_shift($argv)) {
|
240 |
-
echo $out;
|
241 |
-
} else {
|
242 |
-
file_put_contents($fout, $out);
|
243 |
-
}
|
244 |
-
|
245 |
-
} catch (exception $ex) {
|
246 |
-
err($fa.$ex->getMessage());
|
247 |
-
exit(1);
|
248 |
-
}
|
249 |
-
|
250 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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1.0)
|
3 |
+
* PHP 8.0 support: Drop use of curly braces for sub-string eval (James D. Forrester)
|
4 |
+
* Make `Directive::__construct` $rules arg optional (fix PHP 7.4 warning) (Sam Reed)
|
5 |
+
* ProcessExtends: Improve performance by using a map for selectors and parents (Andrey Legayev)
|
6 |
+
* build: Run CI tests on PHP 8.0 too (James D. Forrester)
|
7 |
+
* code: Fix PSR12.Properties.ConstantVisibility.NotFound (Sam Reed)
|
8 |
+
|
9 |
+
# 3.0.0
|
10 |
+
- [All Changes](https://github.com/wikimedia/less.php/compare/v2.0.0...v3.0.0)
|
11 |
+
- Raise PHP requirement from 7.1 to 7.2.9 (James Forrester)
|
12 |
+
- build: Upgrade phpunit to ^8.5 and make pass (James Forrester)
|
13 |
+
- build: Install php-parallel-lint (James Forrester)
|
14 |
+
- build: Install minus-x and make pass (James Forrester)
|
15 |
+
|
16 |
+
# 2.0.0
|
17 |
+
- [All Changes](https://github.com/wikimedia/less.php/compare/1.8.2...v2.0.0)
|
18 |
+
- Relax PHP requirement down to 7.1, from 7.2.9 (Franz Liedke)
|
19 |
+
- Reflect recent breaking changes properly with the semantic versioning (James Forrester)
|
20 |
+
|
21 |
+
# 1.8.2
|
22 |
+
- [All Changes](https://github.com/wikimedia/less.php/compare/1.8.1...1.8.2)
|
23 |
+
- Require PHP 7.2.9+, up from 5.3+ (James Forrester)
|
24 |
+
- Release: Update Version.php with the current release ID (COBadger)
|
25 |
+
- Fix access array offset on value of type null (Michele Locati)
|
26 |
+
- Fixed test suite on PHP 7.4 (Sergei Morozov)
|
27 |
+
- docs: Fix 1.8.1 "All changes" link (Timo Tijhof)
|
28 |
+
|
29 |
+
# 1.8.1
|
30 |
+
- [All Changes](https://github.com/wikimedia/less.php/compare/v1.8.0...1.8.1)
|
31 |
+
- Another PHP 7.3 compatibility tweak
|
32 |
+
|
33 |
+
# 1.8.0
|
34 |
+
- [All Changes](https://github.com/Asenar/less.php/compare/v1.7.0.13...v1.8.0)
|
35 |
+
- Wikimedia fork
|
36 |
+
- Supports up to PHP 7.3
|
37 |
+
- No longer tested against PHP 5, though it's still remains allowed in `composer.json` for HHVM compatibility
|
38 |
+
- Switched to [semantic versioning](https://semver.org/), hence version numbers now use 3 digits
|
39 |
+
|
40 |
+
# 1.7.0.13
|
41 |
+
- [All Changes](https://github.com/Asenar/less.php/compare/v1.7.0.12...v1.7.0.13)
|
42 |
+
- Fix composer.json (PSR-4 was invalid)
|
43 |
+
|
44 |
+
# 1.7.0.12
|
45 |
+
- [All Changes](https://github.com/Asenar/less.php/compare/v1.7.0.11...v1.7.0.12)
|
46 |
+
- set bin/lessc bit executable
|
47 |
+
- Add 'gettingVariables' method in Less_Parser
|
48 |
+
|
49 |
+
# 1.7.0.11
|
50 |
+
- [All Changes](https://github.com/Asenar/less.php/compare/v1.7.0.10...v1.7.0.11)
|
51 |
+
- Fix realpath issue (windows)
|
52 |
+
- Set Less_Tree_Call property back to public ( Fix 258 266 267 issues from oyejorge/less.php)
|
53 |
+
|
54 |
+
# 1.7.0.10
|
55 |
+
|
56 |
+
- [All Changes](https://github.com/oyejorge/less.php/compare/v1.7.0.9...v1.7.10)
|
57 |
+
- Add indentation option
|
58 |
+
- Add 'optional' modifier for @import
|
59 |
+
- fix $color in Exception messages
|
60 |
+
- don't use set_time_limit when running cli
|
61 |
+
- take relative-url into account when building the cache filename
|
62 |
+
- urlArgs should be string no array()
|
63 |
+
- add bug-report fixtures [#6dc898f](https://github.com/oyejorge/less.php/commit/6dc898f5d75b447464906bdf19d79c2e19d95e33)
|
64 |
+
- fix #269, missing on NameValue type [#a8dac63](https://github.com/oyejorge/less.php/commit/a8dac63d93fb941c54fb78b12588abf635747c1b)
|
65 |
+
|
66 |
+
# 1.7.0.9
|
67 |
+
|
68 |
+
- [All Changes](https://github.com/oyejorge/less.php/compare/v1.7.0.8...v1.7.0.9)
|
69 |
+
- Remove space at beginning of Version.php
|
70 |
+
- Revert require() paths in test interface
|
app/vendor/wikimedia/less.php/LICENSE
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
Apache License
|
3 |
+
Version 2.0, January 2004
|
4 |
+
http://www.apache.org/licenses/
|
5 |
+
|
6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7 |
+
|
8 |
+
1. Definitions.
|
9 |
+
|
10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
12 |
+
|
13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14 |
+
the copyright owner that is granting the License.
|
15 |
+
|
16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
17 |
+
other entities that control, are controlled by, or are under common
|
18 |
+
control with that entity. For the purposes of this definition,
|
19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
20 |
+
direction or management of such entity, whether by contract or
|
21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23 |
+
|
24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25 |
+
exercising permissions granted by this License.
|
26 |
+
|
27 |
+
"Source" form shall mean the preferred form for making modifications,
|
28 |
+
including but not limited to software source code, documentation
|
29 |
+
source, and configuration files.
|
30 |
+
|
31 |
+
"Object" form shall mean any form resulting from mechanical
|
32 |
+
transformation or translation of a Source form, including but
|
33 |
+
not limited to compiled object code, generated documentation,
|
34 |
+
and conversions to other media types.
|
35 |
+
|
36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
37 |
+
Object form, made available under the License, as indicated by a
|
38 |
+
copyright notice that is included in or attached to the work
|
39 |
+
(an example is provided in the Appendix below).
|
40 |
+
|
41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42 |
+
form, that is based on (or derived from) the Work and for which the
|
43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
45 |
+
of this License, Derivative Works shall not include works that remain
|
46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47 |
+
the Work and Derivative Works thereof.
|
48 |
+
|
49 |
+
"Contribution" shall mean any work of authorship, including
|
50 |
+
the original version of the Work and any modifications or additions
|
51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
55 |
+
means any form of electronic, verbal, or written communication sent
|
56 |
+
to the Licensor or its representatives, including but not limited to
|
57 |
+
communication on electronic mailing lists, source code control systems,
|
58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
60 |
+
excluding communication that is conspicuously marked or otherwise
|
61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
62 |
+
|
63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
65 |
+
subsequently incorporated within the Work.
|
66 |
+
|
67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
72 |
+
Work and such Derivative Works in Source or Object form.
|
73 |
+
|
74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77 |
+
(except as stated in this section) patent license to make, have made,
|
78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79 |
+
where such license applies only to those patent claims licensable
|
80 |
+
by such Contributor that are necessarily infringed by their
|
81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
83 |
+
institute patent litigation against any entity (including a
|
84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85 |
+
or a Contribution incorporated within the Work constitutes direct
|
86 |
+
or contributory patent infringement, then any patent licenses
|
87 |
+
granted to You under this License for that Work shall terminate
|
88 |
+
as of the date such litigation is filed.
|
89 |
+
|
90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
91 |
+
Work or Derivative Works thereof in any medium, with or without
|
92 |
+
modifications, and in Source or Object form, provided that You
|
93 |
+
meet the following conditions:
|
94 |
+
|
95 |
+
(a) You must give any other recipients of the Work or
|
96 |
+
Derivative Works a copy of this License; and
|
97 |
+
|
98 |
+
(b) You must cause any modified files to carry prominent notices
|
99 |
+
stating that You changed the files; and
|
100 |
+
|
101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
102 |
+
that You distribute, all copyright, patent, trademark, and
|
103 |
+
attribution notices from the Source form of the Work,
|
104 |
+
excluding those notices that do not pertain to any part of
|
105 |
+
the Derivative Works; and
|
106 |
+
|
107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108 |
+
distribution, then any Derivative Works that You distribute must
|
109 |
+
include a readable copy of the attribution notices contained
|
110 |
+
within such NOTICE file, excluding those notices that do not
|
111 |
+
pertain to any part of the Derivative Works, in at least one
|
112 |
+
of the following places: within a NOTICE text file distributed
|
113 |
+
as part of the Derivative Works; within the Source form or
|
114 |
+
documentation, if provided along with the Derivative Works; or,
|
115 |
+
within a display generated by the Derivative Works, if and
|
116 |
+
wherever such third-party notices normally appear. The contents
|
117 |
+
of the NOTICE file are for informational purposes only and
|
118 |
+
do not modify the License. You may add Your own attribution
|
119 |
+
notices within Derivative Works that You distribute, alongside
|
120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
121 |
+
that such additional attribution notices cannot be construed
|
122 |
+
as modifying the License.
|
123 |
+
|
124 |
+
You may add Your own copyright statement to Your modifications and
|
125 |
+
may provide additional or different license terms and conditions
|
126 |
+
for use, reproduction, or distribution of Your modifications, or
|
127 |
+
for any such Derivative Works as a whole, provided Your use,
|
128 |
+
reproduction, and distribution of the Work otherwise complies with
|
129 |
+
the conditions stated in this License.
|
130 |
+
|
131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
133 |
+
by You to the Licensor shall be under the terms and conditions of
|
134 |
+
this License, without any additional terms or conditions.
|
135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136 |
+
the terms of any separate license agreement you may have executed
|
137 |
+
with Licensor regarding such Contributions.
|
138 |
+
|
139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
141 |
+
except as required for reasonable and customary use in describing the
|
142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
143 |
+
|
144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145 |
+
agreed to in writing, Licensor provides the Work (and each
|
146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148 |
+
implied, including, without limitation, any warranties or conditions
|
149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151 |
+
appropriateness of using or redistributing the Work and assume any
|
152 |
+
risks associated with Your exercise of permissions under this License.
|
153 |
+
|
154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
155 |
+
whether in tort (including negligence), contract, or otherwise,
|
156 |
+
unless required by applicable law (such as deliberate and grossly
|
157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158 |
+
liable to You for damages, including any direct, indirect, special,
|
159 |
+
incidental, or consequential damages of any character arising as a
|
160 |
+
result of this License or out of the use or inability to use the
|
161 |
+
Work (including but not limited to damages for loss of goodwill,
|
162 |
+
work stoppage, computer failure or malfunction, or any and all
|
163 |
+
other commercial damages or losses), even if such Contributor
|
164 |
+
has been advised of the possibility of such damages.
|
165 |
+
|
166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169 |
+
or other liability obligations and/or rights consistent with this
|
170 |
+
License. However, in accepting such obligations, You may act only
|
171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172 |
+
of any other Contributor, and only if You agree to indemnify,
|
173 |
+
defend, and hold each Contributor harmless for any liability
|
174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
175 |
+
of your accepting any such warranty or additional liability.
|
176 |
+
|
177 |
+
END OF TERMS AND CONDITIONS
|
178 |
+
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[![Continuous Integration](https://github.com/wikimedia/less.php/workflows/PHP%20Test/badge.svg)](https://github.com/wikimedia/less.php/actions)
|
2 |
+
|
3 |
+
[Less.php](http://lessphp.typesettercms.com)
|
4 |
+
========
|
5 |
+
|
6 |
+
This is the Wikimedia fork of a PHP port of the official LESS processor <http://lesscss.org>.
|
7 |
+
|
8 |
+
* [About](#about)
|
9 |
+
* [Installation](#installation)
|
10 |
+
* [Basic Use](#basic-use)
|
11 |
+
* [Caching](#caching)
|
12 |
+
* [Source Maps](#source-maps)
|
13 |
+
* [Command Line](#command-line)
|
14 |
+
* [Integration with other projects](#integration-with-other-projects)
|
15 |
+
* [Transitioning from Leafo/lessphp](#transitioning-from-leafolessphp)
|
16 |
+
* [Credits](#credits)
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
About
|
21 |
+
---
|
22 |
+
The code structure of less.php mirrors that of the official processor which helps us ensure compatibility and allows for easy maintenance.
|
23 |
+
|
24 |
+
Please note, there are a few unsupported LESS features:
|
25 |
+
|
26 |
+
- Evaluation of JavaScript expressions within back-ticks (for obvious reasons).
|
27 |
+
- Definition of custom functions.
|
28 |
+
|
29 |
+
|
30 |
+
Installation
|
31 |
+
---
|
32 |
+
|
33 |
+
You can install the library with Composer or manually.
|
34 |
+
|
35 |
+
#### Composer
|
36 |
+
|
37 |
+
1. [Install Composer](https://getcomposer.org/download/)
|
38 |
+
2. Run `composer require wikimedia/less.php`
|
39 |
+
|
40 |
+
#### Manually From Release
|
41 |
+
|
42 |
+
Step 1. [Download a release](https://github.com/wikimedia/less.php/releases) and upload the PHP files to your server.
|
43 |
+
|
44 |
+
Step 2. Include the library:
|
45 |
+
|
46 |
+
```php
|
47 |
+
require_once '[path to less.php]/lib/Less/Autoloader.php';
|
48 |
+
Less_Autoloader::register();
|
49 |
+
```
|
50 |
+
|
51 |
+
Basic Use
|
52 |
+
---
|
53 |
+
|
54 |
+
#### Parsing Strings
|
55 |
+
|
56 |
+
```php
|
57 |
+
$parser = new Less_Parser();
|
58 |
+
$parser->parse( '@color: #4D926F; #header { color: @color; } h2 { color: @color; }' );
|
59 |
+
$css = $parser->getCss();
|
60 |
+
```
|
61 |
+
|
62 |
+
|
63 |
+
#### Parsing LESS Files
|
64 |
+
The parseFile() function takes two arguments:
|
65 |
+
|
66 |
+
1. The absolute path of the .less file to be parsed
|
67 |
+
2. The url root to prepend to any relative image or @import urls in the .less file.
|
68 |
+
|
69 |
+
```php
|
70 |
+
$parser = new Less_Parser();
|
71 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', 'http://example.com/mysite/' );
|
72 |
+
$css = $parser->getCss();
|
73 |
+
```
|
74 |
+
|
75 |
+
|
76 |
+
#### Handling Invalid LESS
|
77 |
+
An exception will be thrown if the compiler encounters invalid LESS.
|
78 |
+
|
79 |
+
```php
|
80 |
+
try{
|
81 |
+
$parser = new Less_Parser();
|
82 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', 'http://example.com/mysite/' );
|
83 |
+
$css = $parser->getCss();
|
84 |
+
}catch(Exception $e){
|
85 |
+
$error_message = $e->getMessage();
|
86 |
+
}
|
87 |
+
```
|
88 |
+
|
89 |
+
|
90 |
+
#### Parsing Multiple Sources
|
91 |
+
less.php can parse multiple sources to generate a single CSS file.
|
92 |
+
|
93 |
+
```php
|
94 |
+
$parser = new Less_Parser();
|
95 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', '/mysite/' );
|
96 |
+
$parser->parse( '@color: #4D926F; #header { color: @color; } h2 { color: @color; }' );
|
97 |
+
$css = $parser->getCss();
|
98 |
+
```
|
99 |
+
|
100 |
+
#### Getting Info About The Parsed Files
|
101 |
+
less.php can tell you which .less files were imported and parsed.
|
102 |
+
|
103 |
+
```php
|
104 |
+
$parser = new Less_Parser();
|
105 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', '/mysite/' );
|
106 |
+
$css = $parser->getCss();
|
107 |
+
$imported_files = $parser->allParsedFiles();
|
108 |
+
```
|
109 |
+
|
110 |
+
|
111 |
+
#### Compressing Output
|
112 |
+
You can tell less.php to remove comments and whitespace to generate minimized CSS files.
|
113 |
+
|
114 |
+
```php
|
115 |
+
$options = array( 'compress'=>true );
|
116 |
+
$parser = new Less_Parser( $options );
|
117 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', '/mysite/' );
|
118 |
+
$css = $parser->getCss();
|
119 |
+
```
|
120 |
+
|
121 |
+
#### Getting Variables
|
122 |
+
You can use the getVariables() method to get an all variables defined and
|
123 |
+
their value in a php associative array. Note that LESS has to be previously
|
124 |
+
compiled.
|
125 |
+
```php
|
126 |
+
$parser = new Less_Parser;
|
127 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less');
|
128 |
+
$css = $parser->getCss();
|
129 |
+
$variables = $parser->getVariables();
|
130 |
+
|
131 |
+
```
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
#### Setting Variables
|
136 |
+
You can use the ModifyVars() method to customize your CSS if you have variables stored in PHP associative arrays.
|
137 |
+
|
138 |
+
```php
|
139 |
+
$parser = new Less_Parser();
|
140 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', '/mysite/' );
|
141 |
+
$parser->ModifyVars( array('font-size-base'=>'16px') );
|
142 |
+
$css = $parser->getCss();
|
143 |
+
```
|
144 |
+
|
145 |
+
|
146 |
+
#### Import Directories
|
147 |
+
By default, less.php will look for @imports in the directory of the file passed to parseFile().
|
148 |
+
If you're using parse() or if @imports reside in different directories, you can tell less.php where to look.
|
149 |
+
|
150 |
+
```php
|
151 |
+
$directories = array( '/var/www/mysite/bootstrap/' => '/mysite/bootstrap/' );
|
152 |
+
$parser = new Less_Parser();
|
153 |
+
$parser->SetImportDirs( $directories );
|
154 |
+
$parser->parseFile( '/var/www/mysite/theme.less', '/mysite/' );
|
155 |
+
$css = $parser->getCss();
|
156 |
+
```
|
157 |
+
|
158 |
+
|
159 |
+
Caching
|
160 |
+
---
|
161 |
+
Compiling LESS code into CSS is a time consuming process, caching your results is highly recommended.
|
162 |
+
|
163 |
+
|
164 |
+
#### Caching CSS
|
165 |
+
Use the Less_Cache class to save and reuse the results of compiled LESS files.
|
166 |
+
This method will check the modified time and size of each LESS file (including imported files) and regenerate a new CSS file when changes are found.
|
167 |
+
Note: When changes are found, this method will return a different file name for the new cached content.
|
168 |
+
|
169 |
+
```php
|
170 |
+
$less_files = array( '/var/www/mysite/bootstrap.less' => '/mysite/' );
|
171 |
+
$options = array( 'cache_dir' => '/var/www/writable_folder' );
|
172 |
+
$css_file_name = Less_Cache::Get( $less_files, $options );
|
173 |
+
$compiled = file_get_contents( '/var/www/writable_folder/'.$css_file_name );
|
174 |
+
```
|
175 |
+
|
176 |
+
#### Caching CSS With Variables
|
177 |
+
Passing options to Less_Cache::Get()
|
178 |
+
|
179 |
+
```php
|
180 |
+
$less_files = array( '/var/www/mysite/bootstrap.less' => '/mysite/' );
|
181 |
+
$options = array( 'cache_dir' => '/var/www/writable_folder' );
|
182 |
+
$variables = array( 'width' => '100px' );
|
183 |
+
$css_file_name = Less_Cache::Get( $less_files, $options, $variables );
|
184 |
+
$compiled = file_get_contents( '/var/www/writable_folder/'.$css_file_name );
|
185 |
+
```
|
186 |
+
|
187 |
+
|
188 |
+
#### Parser Caching
|
189 |
+
less.php will save serialized parser data for each .less file if a writable folder is passed to the SetCacheDir() method.
|
190 |
+
Note: This feature only caches intermediate parsing results to improve the performance of repeated CSS generation.
|
191 |
+
Your application should cache any CSS generated by less.php.
|
192 |
+
|
193 |
+
```php
|
194 |
+
$options = array('cache_dir'=>'/var/www/writable_folder');
|
195 |
+
$parser = new Less_Parser( $options );
|
196 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', '/mysite/' );
|
197 |
+
$css = $parser->getCss();
|
198 |
+
```
|
199 |
+
|
200 |
+
You can specify the caching technique used by changing the ```cache_method``` option. Supported methods are:
|
201 |
+
* ```php```: Creates valid PHP files which can be included without any changes (default method).
|
202 |
+
* ```var_export```: Like "php", but using PHP's ```var_export()``` function without any optimizations.
|
203 |
+
It's recommended to use "php" instead.
|
204 |
+
* ```serialize```: Faster, but pretty memory-intense.
|
205 |
+
* ```callback```: Use custom callback functions to implement your own caching method. Give the "cache_callback_get" and
|
206 |
+
"cache_callback_set" options with callables (see PHP's ```call_user_func()``` and ```is_callable()``` functions). less.php
|
207 |
+
will pass the parser object (class ```Less_Parser```), the path to the parsed .less file ("/some/path/to/file.less") and
|
208 |
+
an identifier that will change every time the .less file is modified. The ```get``` callback must return the ruleset
|
209 |
+
(an array with ```Less_Tree``` objects) provided as fourth parameter of the ```set``` callback. If something goes wrong,
|
210 |
+
return ```NULL``` (cache doesn't exist) or ```FALSE```.
|
211 |
+
|
212 |
+
|
213 |
+
|
214 |
+
Source Maps
|
215 |
+
---
|
216 |
+
Less.php supports v3 sourcemaps
|
217 |
+
|
218 |
+
#### Inline
|
219 |
+
The sourcemap will be appended to the generated CSS file.
|
220 |
+
|
221 |
+
```php
|
222 |
+
$options = array( 'sourceMap' => true );
|
223 |
+
$parser = new Less_Parser($options);
|
224 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', '/mysite/' );
|
225 |
+
$css = $parser->getCss();
|
226 |
+
```
|
227 |
+
|
228 |
+
#### Saving to Map File
|
229 |
+
|
230 |
+
```php
|
231 |
+
$options = array(
|
232 |
+
'sourceMap' => true,
|
233 |
+
'sourceMapWriteTo' => '/var/www/mysite/writable_folder/filename.map',
|
234 |
+
'sourceMapURL' => '/mysite/writable_folder/filename.map',
|
235 |
+
);
|
236 |
+
$parser = new Less_Parser($options);
|
237 |
+
$parser->parseFile( '/var/www/mysite/bootstrap.less', '/mysite/' );
|
238 |
+
$css = $parser->getCss();
|
239 |
+
```
|
240 |
+
|
241 |
+
|
242 |
+
Command line
|
243 |
+
---
|
244 |
+
An additional script has been included to use the compiler from the command line.
|
245 |
+
In the simplest invocation, you specify an input file and the compiled CSS is written to standard out:
|
246 |
+
|
247 |
+
```
|
248 |
+
$ lessc input.less > output.css
|
249 |
+
```
|
250 |
+
|
251 |
+
By using the -w flag you can watch a specified input file and have it compile as needed to the output file:
|
252 |
+
|
253 |
+
```
|
254 |
+
$ lessc -w input.less output.css
|
255 |
+
```
|
256 |
+
|
257 |
+
Errors from watch mode are written to standard out.
|
258 |
+
|
259 |
+
For more help, run `lessc --help`
|
260 |
+
|
261 |
+
|
262 |
+
Integration with other projects
|
263 |
+
---
|
264 |
+
|
265 |
+
#### Drupal 7
|
266 |
+
|
267 |
+
This library can be used as drop-in replacement of lessphp to work with [Drupal 7 less module](https://drupal.org/project/less).
|
268 |
+
|
269 |
+
How to install:
|
270 |
+
|
271 |
+
1. [Download the less.php source code](https://github.com/wikimedia/less.php/archive/master.zip) and unzip it so that 'lessc.inc.php' is located at 'sites/all/libraries/lessphp/lessc.inc.php'.
|
272 |
+
2. Download and install [Drupal 7 less module](https://drupal.org/project/less) as usual.
|
273 |
+
3. That's it :)
|
274 |
+
|
275 |
+
#### JBST WordPress theme
|
276 |
+
|
277 |
+
JBST has a built-in LESS compiler based on lessphp. Customize your WordPress theme with LESS.
|
278 |
+
|
279 |
+
How to use / install:
|
280 |
+
|
281 |
+
1. [Download the latest release](https://github.com/bassjobsen/jamedo-bootstrap-start-theme) copy the files to your {wordpress/}wp-content/themes folder and activate it.
|
282 |
+
2. Find the compiler under Appearance > LESS Compiler in your WordPress dashboard
|
283 |
+
3. Enter your LESS code in the text area and press (re)compile
|
284 |
+
|
285 |
+
Use the built-in compiler to:
|
286 |
+
- set any [Bootstrap](http://getbootstrap.com/customize/) variable or use Bootstrap's mixins:
|
287 |
+
-`@navbar-default-color: blue;`
|
288 |
+
- create a custom button: `.btn-custom {
|
289 |
+
.button-variant(white; red; blue);
|
290 |
+
}`
|
291 |
+
- set any built-in LESS variable: for example `@footer_bg_color: black;` sets the background color of the footer to black
|
292 |
+
- use built-in mixins: - add a custom font: `.include-custom-font(@family: arial,@font-path, @path: @custom-font-dir, @weight: normal, @style: normal);`
|
293 |
+
|
294 |
+
The compiler can also be downloaded as [plugin](http://wordpress.org/plugins/wp-less-to-css/)
|
295 |
+
|
296 |
+
#### WordPress
|
297 |
+
|
298 |
+
This simple plugin will simply make the library available to other plugins and themes and can be used as a dependency using the [TGM Library](http://tgmpluginactivation.com/)
|
299 |
+
|
300 |
+
How to install:
|
301 |
+
|
302 |
+
1. Install the plugin from your WordPress Dashboard: http://wordpress.org/plugins/lessphp/
|
303 |
+
2. That's it :)
|
304 |
+
|
305 |
+
|
306 |
+
Transitioning from Leafo/lessphp
|
307 |
+
---
|
308 |
+
Projects looking for an easy transition from leafo/lessphp can use the lessc.inc.php adapter. To use, [Download the less.php source code](https://github.com/wikimedia/less.php/archive/master.zip) and unzip the files into your project so that the new 'lessc.inc.php' replaces the existing 'lessc.inc.php'.
|
309 |
+
|
310 |
+
Note, the 'setPreserveComments' will no longer have any effect on the compiled LESS.
|
311 |
+
|
312 |
+
Credits
|
313 |
+
---
|
314 |
+
less.php was originally ported to PHP by [Matt Agar](https://github.com/agar) and then updated by [Martin Jantošovič](https://github.com/Mordred). This Wikimedia-maintained fork was split off from [Josh Schmidt's version](https://github.com/oyejorge/less.php).
|
315 |
+
|
app/vendor/wikimedia/less.php/bin/lessc
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env php
|
2 |
+
<?php
|
3 |
+
|
4 |
+
require_once dirname(__FILE__) . '/../lib/Less/Autoloader.php';
|
5 |
+
Less_Autoloader::register();
|
6 |
+
|
7 |
+
// Create our environment
|
8 |
+
$env = array('compress' => false, 'relativeUrls' => false);
|
9 |
+
$silent = false;
|
10 |
+
$watch = false;
|
11 |
+
$rootpath = '';
|
12 |
+
|
13 |
+
// Check for arguments
|
14 |
+
array_shift($argv);
|
15 |
+
if (!count($argv)) {
|
16 |
+
$argv[] = '-h';
|
17 |
+
}
|
18 |
+
|
19 |
+
// parse arguments
|
20 |
+
foreach ($argv as $key => $arg) {
|
21 |
+
if (preg_match('/^--?([a-z][0-9a-z-]*)(?:=([^\s]+))?$/i', $arg, $matches)) {
|
22 |
+
$option = $matches[1];
|
23 |
+
$value = isset($matches[2]) ? $matches[2] : false;
|
24 |
+
unset($argv[$key]);
|
25 |
+
|
26 |
+
switch ($option) {
|
27 |
+
case 'h':
|
28 |
+
case 'help':
|
29 |
+
echo <<<EOD
|
30 |
+
Usage: lessc [options] sources [destination]
|
31 |
+
|
32 |
+
-h, --help Print help (this message) and exit.
|
33 |
+
-s, --silent Suppress output of error messages.
|
34 |
+
-v, --version Print version number and exit.
|
35 |
+
-x, --compress Compress output by removing some whitespaces.
|
36 |
+
--include-path=PATHS Set include paths. Separated by `:'. Use `;' on Windows.
|
37 |
+
--strict-imports Force evaluation of imports.
|
38 |
+
-sm=on|off Turn on or off strict math, where in strict mode, math
|
39 |
+
--strict-math=on|off requires brackets. This option may default to on and then
|
40 |
+
be removed in the future.
|
41 |
+
-su=on|off Allow mixed units, e.g. 1px+1em or 1px*1px which have units
|
42 |
+
--strict-units=on|off that cannot be represented.
|
43 |
+
-ru, --relative-urls re-write relative urls to the base less file.
|
44 |
+
-rp, --rootpath=URL Set rootpath for url rewriting in relative imports and urls.
|
45 |
+
Works with or without the relative-urls option.
|
46 |
+
-w, --watch Watch input files for changes.
|
47 |
+
|
48 |
+
|
49 |
+
EOD;
|
50 |
+
exit;
|
51 |
+
case 's':
|
52 |
+
case 'silent':
|
53 |
+
$silent = true;
|
54 |
+
break;
|
55 |
+
|
56 |
+
case 'w':
|
57 |
+
case 'watch':
|
58 |
+
$watch = true;
|
59 |
+
break;
|
60 |
+
|
61 |
+
case 'v':
|
62 |
+
case 'version':
|
63 |
+
echo "lessc " . Less_Version::version . " (less.php)\n\n";
|
64 |
+
exit;
|
65 |
+
|
66 |
+
case 'rp':
|
67 |
+
case 'rootpath':
|
68 |
+
$rootpath = $value;
|
69 |
+
break;
|
70 |
+
|
71 |
+
|
72 |
+
//parser options
|
73 |
+
case 'compress':
|
74 |
+
$env['compress'] = true;
|
75 |
+
break;
|
76 |
+
|
77 |
+
case 'ru':
|
78 |
+
case 'relative-urls':
|
79 |
+
$env['relativeUrls'] = true;
|
80 |
+
break;
|
81 |
+
|
82 |
+
case 'su':
|
83 |
+
case 'strict-units':
|
84 |
+
$env['strictUnits'] = ($value === 'on');
|
85 |
+
break;
|
86 |
+
|
87 |
+
case 'sm':
|
88 |
+
case 'strict-math':
|
89 |
+
$env['strictMath'] = ($value === 'on');
|
90 |
+
break;
|
91 |
+
|
92 |
+
case 'x':
|
93 |
+
case 'include-path':
|
94 |
+
$env['import_dirs'] = preg_split('#;|\:#', $value);
|
95 |
+
break;
|
96 |
+
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
if (count($argv) > 1) {
|
102 |
+
$output = array_pop($argv);
|
103 |
+
$inputs = $argv;
|
104 |
+
}
|
105 |
+
else {
|
106 |
+
$inputs = $argv;
|
107 |
+
$output = false;
|
108 |
+
}
|
109 |
+
|
110 |
+
if (!count($inputs)) {
|
111 |
+
echo("lessc: no input files\n");
|
112 |
+
exit;
|
113 |
+
}
|
114 |
+
|
115 |
+
if ($watch) {
|
116 |
+
if (!$output) {
|
117 |
+
echo("lessc: you must specify the output file if --watch is given\n");
|
118 |
+
exit;
|
119 |
+
}
|
120 |
+
|
121 |
+
$lastAction = 0;
|
122 |
+
|
123 |
+
echo("lessc: watching input files\n");
|
124 |
+
|
125 |
+
while (1) {
|
126 |
+
clearstatcache();
|
127 |
+
|
128 |
+
$updated = false;
|
129 |
+
foreach ($inputs as $input) {
|
130 |
+
if ($input == '-') {
|
131 |
+
if (count($inputs) == 1) {
|
132 |
+
echo("lessc: during watching files is not possible to watch stdin\n");
|
133 |
+
exit;
|
134 |
+
}
|
135 |
+
else {
|
136 |
+
continue;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
|
140 |
+
if (filemtime($input) > $lastAction) {
|
141 |
+
$updated = true;
|
142 |
+
break;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
if ($updated) {
|
147 |
+
$lastAction = time();
|
148 |
+
$parser = new Less_Parser($env);
|
149 |
+
foreach ($inputs as $input) {
|
150 |
+
try {
|
151 |
+
$parser->parseFile($input, $rootpath);
|
152 |
+
}
|
153 |
+
catch (Exception $e) {
|
154 |
+
echo("lessc: " . $e->getMessage() . " \n");
|
155 |
+
continue; // Invalid processing
|
156 |
+
}
|
157 |
+
}
|
158 |
+
|
159 |
+
file_put_contents($output, $parser->getCss());
|
160 |
+
echo("lessc: output file recompiled\n");
|
161 |
+
}
|
162 |
+
|
163 |
+
sleep(1);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
else {
|
167 |
+
$parser = new Less_Parser($env);
|
168 |
+
foreach ($inputs as $input) {
|
169 |
+
if ($input == '-') {
|
170 |
+
$content = file_get_contents('php://stdin');
|
171 |
+
$parser->parse($content);
|
172 |
+
}
|
173 |
+
else {
|
174 |
+
try {
|
175 |
+
$parser->parseFile($input);
|
176 |
+
}
|
177 |
+
catch (Exception $e) {
|
178 |
+
if (!$silent) {
|
179 |
+
echo("lessc: " . ((string)$e) . " \n");
|
180 |
+
}
|
181 |
+
}
|
182 |
+
}
|
183 |
+
}
|
184 |
+
|
185 |
+
if ($output) {
|
186 |
+
file_put_contents($output, $parser->getCss());
|
187 |
+
}
|
188 |
+
else {
|
189 |
+
echo $parser->getCss();
|
190 |
+
}
|
191 |
+
}
|
app/vendor/wikimedia/less.php/lessc.inc.php
ADDED
@@ -0,0 +1,274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file provides the part of lessphp API (https://github.com/leafo/lessphp)
|
4 |
+
* to be a drop-in replacement for following products:
|
5 |
+
* - Drupal 7, by the less module v3.0+ (https://drupal.org/project/less)
|
6 |
+
* - Symfony 2
|
7 |
+
*/
|
8 |
+
|
9 |
+
// Register autoloader for non-composer installations
|
10 |
+
if ( !class_exists( 'Less_Parser' ) ) {
|
11 |
+
require_once __DIR__ . '/lib/Less/Autoloader.php';
|
12 |
+
Less_Autoloader::register();
|
13 |
+
}
|
14 |
+
|
15 |
+
class lessc {
|
16 |
+
|
17 |
+
static public $VERSION = Less_Version::less_version;
|
18 |
+
|
19 |
+
public $importDir = '';
|
20 |
+
protected $allParsedFiles = array();
|
21 |
+
protected $libFunctions = array();
|
22 |
+
protected $registeredVars = array();
|
23 |
+
private $formatterName;
|
24 |
+
private $options = array();
|
25 |
+
|
26 |
+
public function __construct( $lessc = null, $sourceName = null ) {
|
27 |
+
}
|
28 |
+
|
29 |
+
public function setImportDir( $dirs ) {
|
30 |
+
$this->importDir = (array)$dirs;
|
31 |
+
}
|
32 |
+
|
33 |
+
public function addImportDir( $dir ) {
|
34 |
+
$this->importDir = (array)$this->importDir;
|
35 |
+
$this->importDir[] = $dir;
|
36 |
+
}
|
37 |
+
|
38 |
+
public function setFormatter( $name ) {
|
39 |
+
$this->formatterName = $name;
|
40 |
+
}
|
41 |
+
|
42 |
+
public function setPreserveComments( $preserve ) {
|
43 |
+
}
|
44 |
+
|
45 |
+
public function registerFunction( $name, $func ) {
|
46 |
+
$this->libFunctions[$name] = $func;
|
47 |
+
}
|
48 |
+
|
49 |
+
public function unregisterFunction( $name ) {
|
50 |
+
unset( $this->libFunctions[$name] );
|
51 |
+
}
|
52 |
+
|
53 |
+
public function setVariables( $variables ) {
|
54 |
+
foreach ( $variables as $name => $value ) {
|
55 |
+
$this->setVariable( $name, $value );
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
public function setVariable( $name, $value ) {
|
60 |
+
$this->registeredVars[$name] = $value;
|
61 |
+
}
|
62 |
+
|
63 |
+
public function unsetVariable( $name ) {
|
64 |
+
unset( $this->registeredVars[$name] );
|
65 |
+
}
|
66 |
+
|
67 |
+
public function setOptions( $options ) {
|
68 |
+
foreach ( $options as $name => $value ) {
|
69 |
+
$this->setOption( $name, $value );
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
public function setOption( $name, $value ) {
|
74 |
+
$this->options[$name] = $value;
|
75 |
+
}
|
76 |
+
|
77 |
+
public function parse( $buffer, $presets = array() ) {
|
78 |
+
$this->setVariables( $presets );
|
79 |
+
|
80 |
+
$parser = new Less_Parser( $this->getOptions() );
|
81 |
+
$parser->setImportDirs( $this->getImportDirs() );
|
82 |
+
foreach ( $this->libFunctions as $name => $func ) {
|
83 |
+
$parser->registerFunction( $name, $func );
|
84 |
+
}
|
85 |
+
$parser->parse( $buffer );
|
86 |
+
if ( count( $this->registeredVars ) ) {
|
87 |
+
$parser->ModifyVars( $this->registeredVars );
|
88 |
+
}
|
89 |
+
|
90 |
+
return $parser->getCss();
|
91 |
+
}
|
92 |
+
|
93 |
+
protected function getOptions() {
|
94 |
+
$options = array( 'relativeUrls' => false );
|
95 |
+
switch ( $this->formatterName ) {
|
96 |
+
case 'compressed':
|
97 |
+
$options['compress'] = true;
|
98 |
+
break;
|
99 |
+
}
|
100 |
+
if ( is_array( $this->options ) ) {
|
101 |
+
$options = array_merge( $options, $this->options );
|
102 |
+
}
|
103 |
+
return $options;
|
104 |
+
}
|
105 |
+
|
106 |
+
protected function getImportDirs() {
|
107 |
+
$dirs_ = (array)$this->importDir;
|
108 |
+
$dirs = array();
|
109 |
+
foreach ( $dirs_ as $dir ) {
|
110 |
+
$dirs[$dir] = '';
|
111 |
+
}
|
112 |
+
return $dirs;
|
113 |
+
}
|
114 |
+
|
115 |
+
public function compile( $string, $name = null ) {
|
116 |
+
$oldImport = $this->importDir;
|
117 |
+
$this->importDir = (array)$this->importDir;
|
118 |
+
|
119 |
+
$this->allParsedFiles = array();
|
120 |
+
|
121 |
+
$parser = new Less_Parser( $this->getOptions() );
|
122 |
+
$parser->SetImportDirs( $this->getImportDirs() );
|
123 |
+
if ( count( $this->registeredVars ) ) {
|
124 |
+
$parser->ModifyVars( $this->registeredVars );
|
125 |
+
}
|
126 |
+
foreach ( $this->libFunctions as $name => $func ) {
|
127 |
+
$parser->registerFunction( $name, $func );
|
128 |
+
}
|
129 |
+
$parser->parse( $string );
|
130 |
+
$out = $parser->getCss();
|
131 |
+
|
132 |
+
$parsed = Less_Parser::AllParsedFiles();
|
133 |
+
foreach ( $parsed as $file ) {
|
134 |
+
$this->addParsedFile( $file );
|
135 |
+
}
|
136 |
+
|
137 |
+
$this->importDir = $oldImport;
|
138 |
+
|
139 |
+
return $out;
|
140 |
+
}
|
141 |
+
|
142 |
+
public function compileFile( $fname, $outFname = null ) {
|
143 |
+
if ( !is_readable( $fname ) ) {
|
144 |
+
throw new Exception( 'load error: failed to find '.$fname );
|
145 |
+
}
|
146 |
+
|
147 |
+
$pi = pathinfo( $fname );
|
148 |
+
|
149 |
+
$oldImport = $this->importDir;
|
150 |
+
|
151 |
+
$this->importDir = (array)$this->importDir;
|
152 |
+
$this->importDir[] = Less_Parser::AbsPath( $pi['dirname'] ).'/';
|
153 |
+
|
154 |
+
$this->allParsedFiles = array();
|
155 |
+
$this->addParsedFile( $fname );
|
156 |
+
|
157 |
+
$parser = new Less_Parser( $this->getOptions() );
|
158 |
+
$parser->SetImportDirs( $this->getImportDirs() );
|
159 |
+
if ( count( $this->registeredVars ) ) {
|
160 |
+
$parser->ModifyVars( $this->registeredVars );
|
161 |
+
}
|
162 |
+
foreach ( $this->libFunctions as $name => $func ) {
|
163 |
+
$parser->registerFunction( $name, $func );
|
164 |
+
}
|
165 |
+
$parser->parseFile( $fname );
|
166 |
+
$out = $parser->getCss();
|
167 |
+
|
168 |
+
$parsed = Less_Parser::AllParsedFiles();
|
169 |
+
foreach ( $parsed as $file ) {
|
170 |
+
$this->addParsedFile( $file );
|
171 |
+
}
|
172 |
+
|
173 |
+
$this->importDir = $oldImport;
|
174 |
+
|
175 |
+
if ( $outFname !== null ) {
|
176 |
+
return file_put_contents( $outFname, $out );
|
177 |
+
}
|
178 |
+
|
179 |
+
return $out;
|
180 |
+
}
|
181 |
+
|
182 |
+
public function checkedCompile( $in, $out ) {
|
183 |
+
if ( !is_file( $out ) || filemtime( $in ) > filemtime( $out ) ) {
|
184 |
+
$this->compileFile( $in, $out );
|
185 |
+
return true;
|
186 |
+
}
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
/**
|
191 |
+
* Execute lessphp on a .less file or a lessphp cache structure
|
192 |
+
*
|
193 |
+
* The lessphp cache structure contains information about a specific
|
194 |
+
* less file having been parsed. It can be used as a hint for future
|
195 |
+
* calls to determine whether or not a rebuild is required.
|
196 |
+
*
|
197 |
+
* The cache structure contains two important keys that may be used
|
198 |
+
* externally:
|
199 |
+
*
|
200 |
+
* compiled: The final compiled CSS
|
201 |
+
* updated: The time (in seconds) the CSS was last compiled
|
202 |
+
*
|
203 |
+
* The cache structure is a plain-ol' PHP associative array and can
|
204 |
+
* be serialized and unserialized without a hitch.
|
205 |
+
*
|
206 |
+
* @param mixed $in Input
|
207 |
+
* @param bool $force Force rebuild?
|
208 |
+
* @return array lessphp cache structure
|
209 |
+
*/
|
210 |
+
public function cachedCompile( $in, $force = false ) {
|
211 |
+
// assume no root
|
212 |
+
$root = null;
|
213 |
+
|
214 |
+
if ( is_string( $in ) ) {
|
215 |
+
$root = $in;
|
216 |
+
} elseif ( is_array( $in ) and isset( $in['root'] ) ) {
|
217 |
+
if ( $force or !isset( $in['files'] ) ) {
|
218 |
+
// If we are forcing a recompile or if for some reason the
|
219 |
+
// structure does not contain any file information we should
|
220 |
+
// specify the root to trigger a rebuild.
|
221 |
+
$root = $in['root'];
|
222 |
+
} elseif ( isset( $in['files'] ) and is_array( $in['files'] ) ) {
|
223 |
+
foreach ( $in['files'] as $fname => $ftime ) {
|
224 |
+
if ( !file_exists( $fname ) or filemtime( $fname ) > $ftime ) {
|
225 |
+
// One of the files we knew about previously has changed
|
226 |
+
// so we should look at our incoming root again.
|
227 |
+
$root = $in['root'];
|
228 |
+
break;
|
229 |
+
}
|
230 |
+
}
|
231 |
+
}
|
232 |
+
} else {
|
233 |
+
// TODO: Throw an exception? We got neither a string nor something
|
234 |
+
// that looks like a compatible lessphp cache structure.
|
235 |
+
return null;
|
236 |
+
}
|
237 |
+
|
238 |
+
if ( $root !== null ) {
|
239 |
+
// If we have a root value which means we should rebuild.
|
240 |
+
$out = array();
|
241 |
+
$out['root'] = $root;
|
242 |
+
$out['compiled'] = $this->compileFile( $root );
|
243 |
+
$out['files'] = $this->allParsedFiles();
|
244 |
+
$out['updated'] = time();
|
245 |
+
return $out;
|
246 |
+
} else {
|
247 |
+
// No changes, pass back the structure
|
248 |
+
// we were given initially.
|
249 |
+
return $in;
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
+
public function ccompile( $in, $out, $less = null ) {
|
254 |
+
if ( $less === null ) {
|
255 |
+
$less = new self;
|
256 |
+
}
|
257 |
+
return $less->checkedCompile( $in, $out );
|
258 |
+
}
|
259 |
+
|
260 |
+
public static function cexecute( $in, $force = false, $less = null ) {
|
261 |
+
if ( $less === null ) {
|
262 |
+
$less = new self;
|
263 |
+
}
|
264 |
+
return $less->cachedCompile( $in, $force );
|
265 |
+
}
|
266 |
+
|
267 |
+
public function allParsedFiles() {
|
268 |
+
return $this->allParsedFiles;
|
269 |
+
}
|
270 |
+
|
271 |
+
protected function addParsedFile( $file ) {
|
272 |
+
$this->allParsedFiles[Less_Parser::AbsPath( $file )] = filemtime( $file );
|
273 |
+
}
|
274 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/.easymin/ignore_prefixes
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
.easymin
|
2 |
+
Autoloader.php
|
app/vendor/wikimedia/less.php/lib/Less/Autoloader.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Autoloader
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage autoload
|
8 |
+
*/
|
9 |
+
class Less_Autoloader {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Registered flag
|
13 |
+
*
|
14 |
+
* @var boolean
|
15 |
+
*/
|
16 |
+
protected static $registered = false;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Library directory
|
20 |
+
*
|
21 |
+
* @var string
|
22 |
+
*/
|
23 |
+
protected static $libDir;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Register the autoloader in the spl autoloader
|
27 |
+
*
|
28 |
+
* @return void
|
29 |
+
* @throws Exception If there was an error in registration
|
30 |
+
*/
|
31 |
+
public static function register() {
|
32 |
+
if ( self::$registered ) {
|
33 |
+
return;
|
34 |
+
}
|
35 |
+
|
36 |
+
self::$libDir = dirname( __FILE__ );
|
37 |
+
|
38 |
+
if ( false === spl_autoload_register( array( 'Less_Autoloader', 'loadClass' ) ) ) {
|
39 |
+
throw new Exception( 'Unable to register Less_Autoloader::loadClass as an autoloading method.' );
|
40 |
+
}
|
41 |
+
|
42 |
+
self::$registered = true;
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Unregisters the autoloader
|
47 |
+
*
|
48 |
+
* @return void
|
49 |
+
*/
|
50 |
+
public static function unregister() {
|
51 |
+
spl_autoload_unregister( array( 'Less_Autoloader', 'loadClass' ) );
|
52 |
+
self::$registered = false;
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Loads the class
|
57 |
+
*
|
58 |
+
* @param string $className The class to load
|
59 |
+
*/
|
60 |
+
public static function loadClass( $className ) {
|
61 |
+
// handle only package classes
|
62 |
+
if ( strpos( $className, 'Less_' ) !== 0 ) {
|
63 |
+
return;
|
64 |
+
}
|
65 |
+
|
66 |
+
$className = substr( $className, 5 );
|
67 |
+
$fileName = self::$libDir . DIRECTORY_SEPARATOR . str_replace( '_', DIRECTORY_SEPARATOR, $className ) . '.php';
|
68 |
+
|
69 |
+
if ( file_exists( $fileName ) ) {
|
70 |
+
require $fileName;
|
71 |
+
return true;
|
72 |
+
} else {
|
73 |
+
throw new Exception( 'file not loadable '.$fileName );
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Cache.php
ADDED
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once dirname( __FILE__ ).'/Version.php';
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Utility for handling the generation and caching of css files
|
7 |
+
*
|
8 |
+
* @package Less
|
9 |
+
* @subpackage cache
|
10 |
+
*
|
11 |
+
*/
|
12 |
+
class Less_Cache {
|
13 |
+
|
14 |
+
// directory less.php can use for storing data
|
15 |
+
public static $cache_dir = false;
|
16 |
+
|
17 |
+
// prefix for the storing data
|
18 |
+
public static $prefix = 'lessphp_';
|
19 |
+
|
20 |
+
// prefix for the storing vars
|
21 |
+
public static $prefix_vars = 'lessphpvars_';
|
22 |
+
|
23 |
+
// specifies the number of seconds after which data created by less.php will be seen as 'garbage' and potentially cleaned up
|
24 |
+
public static $gc_lifetime = 604800;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Save and reuse the results of compiled less files.
|
28 |
+
* The first call to Get() will generate css and save it.
|
29 |
+
* Subsequent calls to Get() with the same arguments will return the same css filename
|
30 |
+
*
|
31 |
+
* @param array $less_files Array of .less files to compile
|
32 |
+
* @param array $parser_options Array of compiler options
|
33 |
+
* @param array $modify_vars Array of variables
|
34 |
+
* @return string Name of the css file
|
35 |
+
*/
|
36 |
+
public static function Get( $less_files, $parser_options = array(), $modify_vars = array() ) {
|
37 |
+
// check $cache_dir
|
38 |
+
if ( isset( $parser_options['cache_dir'] ) ) {
|
39 |
+
Less_Cache::$cache_dir = $parser_options['cache_dir'];
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( empty( Less_Cache::$cache_dir ) ) {
|
43 |
+
throw new Exception( 'cache_dir not set' );
|
44 |
+
}
|
45 |
+
|
46 |
+
if ( isset( $parser_options['prefix'] ) ) {
|
47 |
+
Less_Cache::$prefix = $parser_options['prefix'];
|
48 |
+
}
|
49 |
+
|
50 |
+
if ( empty( Less_Cache::$prefix ) ) {
|
51 |
+
throw new Exception( 'prefix not set' );
|
52 |
+
}
|
53 |
+
|
54 |
+
if ( isset( $parser_options['prefix_vars'] ) ) {
|
55 |
+
Less_Cache::$prefix_vars = $parser_options['prefix_vars'];
|
56 |
+
}
|
57 |
+
|
58 |
+
if ( empty( Less_Cache::$prefix_vars ) ) {
|
59 |
+
throw new Exception( 'prefix_vars not set' );
|
60 |
+
}
|
61 |
+
|
62 |
+
self::CheckCacheDir();
|
63 |
+
$less_files = (array)$less_files;
|
64 |
+
|
65 |
+
// create a file for variables
|
66 |
+
if ( !empty( $modify_vars ) ) {
|
67 |
+
$lessvars = Less_Parser::serializeVars( $modify_vars );
|
68 |
+
$vars_file = Less_Cache::$cache_dir . Less_Cache::$prefix_vars . sha1( $lessvars ) . '.less';
|
69 |
+
|
70 |
+
if ( !file_exists( $vars_file ) ) {
|
71 |
+
file_put_contents( $vars_file, $lessvars );
|
72 |
+
}
|
73 |
+
|
74 |
+
$less_files += array( $vars_file => '/' );
|
75 |
+
}
|
76 |
+
|
77 |
+
// generate name for compiled css file
|
78 |
+
$hash = md5( json_encode( $less_files ) );
|
79 |
+
$list_file = Less_Cache::$cache_dir . Less_Cache::$prefix . $hash . '.list';
|
80 |
+
|
81 |
+
// check cached content
|
82 |
+
if ( !isset( $parser_options['use_cache'] ) || $parser_options['use_cache'] === true ) {
|
83 |
+
if ( file_exists( $list_file ) ) {
|
84 |
+
|
85 |
+
self::ListFiles( $list_file, $list, $cached_name );
|
86 |
+
$compiled_name = self::CompiledName( $list, $hash );
|
87 |
+
|
88 |
+
// if $cached_name is the same as the $compiled name, don't regenerate
|
89 |
+
if ( !$cached_name || $cached_name === $compiled_name ) {
|
90 |
+
|
91 |
+
$output_file = self::OutputFile( $compiled_name, $parser_options );
|
92 |
+
|
93 |
+
if ( $output_file && file_exists( $output_file ) ) {
|
94 |
+
@touch( $list_file );
|
95 |
+
return basename( $output_file ); // for backwards compatibility, we just return the name of the file
|
96 |
+
}
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
$compiled = self::Cache( $less_files, $parser_options );
|
102 |
+
if ( !$compiled ) {
|
103 |
+
return false;
|
104 |
+
}
|
105 |
+
|
106 |
+
$compiled_name = self::CompiledName( $less_files, $hash );
|
107 |
+
$output_file = self::OutputFile( $compiled_name, $parser_options );
|
108 |
+
|
109 |
+
// save the file list
|
110 |
+
$list = $less_files;
|
111 |
+
$list[] = $compiled_name;
|
112 |
+
$cache = implode( "\n", $list );
|
113 |
+
file_put_contents( $list_file, $cache );
|
114 |
+
|
115 |
+
// save the css
|
116 |
+
file_put_contents( $output_file, $compiled );
|
117 |
+
|
118 |
+
// clean up
|
119 |
+
self::CleanCache();
|
120 |
+
|
121 |
+
return basename( $output_file );
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Force the compiler to regenerate the cached css file
|
126 |
+
*
|
127 |
+
* @param array $less_files Array of .less files to compile
|
128 |
+
* @param array $parser_options Array of compiler options
|
129 |
+
* @param array $modify_vars Array of variables
|
130 |
+
* @return string Name of the css file
|
131 |
+
*/
|
132 |
+
public static function Regen( $less_files, $parser_options = array(), $modify_vars = array() ) {
|
133 |
+
$parser_options['use_cache'] = false;
|
134 |
+
return self::Get( $less_files, $parser_options, $modify_vars );
|
135 |
+
}
|
136 |
+
|
137 |
+
public static function Cache( &$less_files, $parser_options = array() ) {
|
138 |
+
// get less.php if it exists
|
139 |
+
$file = dirname( __FILE__ ) . '/Less.php';
|
140 |
+
if ( file_exists( $file ) && !class_exists( 'Less_Parser' ) ) {
|
141 |
+
require_once $file;
|
142 |
+
}
|
143 |
+
|
144 |
+
$parser_options['cache_dir'] = Less_Cache::$cache_dir;
|
145 |
+
$parser = new Less_Parser( $parser_options );
|
146 |
+
|
147 |
+
// combine files
|
148 |
+
foreach ( $less_files as $file_path => $uri_or_less ) {
|
149 |
+
|
150 |
+
// treat as less markup if there are newline characters
|
151 |
+
if ( strpos( $uri_or_less, "\n" ) !== false ) {
|
152 |
+
$parser->Parse( $uri_or_less );
|
153 |
+
continue;
|
154 |
+
}
|
155 |
+
|
156 |
+
$parser->ParseFile( $file_path, $uri_or_less );
|
157 |
+
}
|
158 |
+
|
159 |
+
$compiled = $parser->getCss();
|
160 |
+
|
161 |
+
$less_files = $parser->allParsedFiles();
|
162 |
+
|
163 |
+
return $compiled;
|
164 |
+
}
|
165 |
+
|
166 |
+
private static function OutputFile( $compiled_name, $parser_options ) {
|
167 |
+
// custom output file
|
168 |
+
if ( !empty( $parser_options['output'] ) ) {
|
169 |
+
|
170 |
+
// relative to cache directory?
|
171 |
+
if ( preg_match( '#[\\\\/]#', $parser_options['output'] ) ) {
|
172 |
+
return $parser_options['output'];
|
173 |
+
}
|
174 |
+
|
175 |
+
return Less_Cache::$cache_dir.$parser_options['output'];
|
176 |
+
}
|
177 |
+
|
178 |
+
return Less_Cache::$cache_dir.$compiled_name;
|
179 |
+
}
|
180 |
+
|
181 |
+
private static function CompiledName( $files, $extrahash ) {
|
182 |
+
// save the file list
|
183 |
+
$temp = array( Less_Version::cache_version );
|
184 |
+
foreach ( $files as $file ) {
|
185 |
+
$temp[] = filemtime( $file )."\t".filesize( $file )."\t".$file;
|
186 |
+
}
|
187 |
+
|
188 |
+
return Less_Cache::$prefix.sha1( json_encode( $temp ).$extrahash ).'.css';
|
189 |
+
}
|
190 |
+
|
191 |
+
public static function SetCacheDir( $dir ) {
|
192 |
+
Less_Cache::$cache_dir = $dir;
|
193 |
+
self::CheckCacheDir();
|
194 |
+
}
|
195 |
+
|
196 |
+
public static function CheckCacheDir() {
|
197 |
+
Less_Cache::$cache_dir = str_replace( '\\', '/', Less_Cache::$cache_dir );
|
198 |
+
Less_Cache::$cache_dir = rtrim( Less_Cache::$cache_dir, '/' ).'/';
|
199 |
+
|
200 |
+
if ( !file_exists( Less_Cache::$cache_dir ) ) {
|
201 |
+
if ( !mkdir( Less_Cache::$cache_dir ) ) {
|
202 |
+
throw new Less_Exception_Parser( 'Less.php cache directory couldn\'t be created: '.Less_Cache::$cache_dir );
|
203 |
+
}
|
204 |
+
|
205 |
+
} elseif ( !is_dir( Less_Cache::$cache_dir ) ) {
|
206 |
+
throw new Less_Exception_Parser( 'Less.php cache directory doesn\'t exist: '.Less_Cache::$cache_dir );
|
207 |
+
|
208 |
+
} elseif ( !is_writable( Less_Cache::$cache_dir ) ) {
|
209 |
+
throw new Less_Exception_Parser( 'Less.php cache directory isn\'t writable: '.Less_Cache::$cache_dir );
|
210 |
+
|
211 |
+
}
|
212 |
+
|
213 |
+
}
|
214 |
+
|
215 |
+
/**
|
216 |
+
* Delete unused less.php files
|
217 |
+
*
|
218 |
+
*/
|
219 |
+
public static function CleanCache() {
|
220 |
+
static $clean = false;
|
221 |
+
|
222 |
+
if ( $clean || empty( Less_Cache::$cache_dir ) ) {
|
223 |
+
return;
|
224 |
+
}
|
225 |
+
|
226 |
+
$clean = true;
|
227 |
+
|
228 |
+
// only remove files with extensions created by less.php
|
229 |
+
// css files removed based on the list files
|
230 |
+
$remove_types = array( 'lesscache' => 1,'list' => 1,'less' => 1,'map' => 1 );
|
231 |
+
|
232 |
+
$files = scandir( Less_Cache::$cache_dir );
|
233 |
+
if ( !$files ) {
|
234 |
+
return;
|
235 |
+
}
|
236 |
+
|
237 |
+
$check_time = time() - self::$gc_lifetime;
|
238 |
+
foreach ( $files as $file ) {
|
239 |
+
|
240 |
+
// don't delete if the file wasn't created with less.php
|
241 |
+
if ( strpos( $file, Less_Cache::$prefix ) !== 0 ) {
|
242 |
+
continue;
|
243 |
+
}
|
244 |
+
|
245 |
+
$parts = explode( '.', $file );
|
246 |
+
$type = array_pop( $parts );
|
247 |
+
|
248 |
+
if ( !isset( $remove_types[$type] ) ) {
|
249 |
+
continue;
|
250 |
+
}
|
251 |
+
|
252 |
+
$full_path = Less_Cache::$cache_dir . $file;
|
253 |
+
$mtime = filemtime( $full_path );
|
254 |
+
|
255 |
+
// don't delete if it's a relatively new file
|
256 |
+
if ( $mtime > $check_time ) {
|
257 |
+
continue;
|
258 |
+
}
|
259 |
+
|
260 |
+
// delete the list file and associated css file
|
261 |
+
if ( $type === 'list' ) {
|
262 |
+
self::ListFiles( $full_path, $list, $css_file_name );
|
263 |
+
if ( $css_file_name ) {
|
264 |
+
$css_file = Less_Cache::$cache_dir . $css_file_name;
|
265 |
+
if ( file_exists( $css_file ) ) {
|
266 |
+
unlink( $css_file );
|
267 |
+
}
|
268 |
+
}
|
269 |
+
}
|
270 |
+
|
271 |
+
unlink( $full_path );
|
272 |
+
}
|
273 |
+
|
274 |
+
}
|
275 |
+
|
276 |
+
/**
|
277 |
+
* Get the list of less files and generated css file from a list file
|
278 |
+
*
|
279 |
+
*/
|
280 |
+
static function ListFiles( $list_file, &$list, &$css_file_name ) {
|
281 |
+
$list = explode( "\n", file_get_contents( $list_file ) );
|
282 |
+
|
283 |
+
// pop the cached name that should match $compiled_name
|
284 |
+
$css_file_name = array_pop( $list );
|
285 |
+
|
286 |
+
if ( !preg_match( '/^' . Less_Cache::$prefix . '[a-f0-9]+\.css$/', $css_file_name ) ) {
|
287 |
+
$list[] = $css_file_name;
|
288 |
+
$css_file_name = false;
|
289 |
+
}
|
290 |
+
|
291 |
+
}
|
292 |
+
|
293 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Colors.php
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Utility for css colors
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage color
|
8 |
+
*/
|
9 |
+
class Less_Colors {
|
10 |
+
|
11 |
+
public static $colors = array(
|
12 |
+
'aliceblue' => '#f0f8ff',
|
13 |
+
'antiquewhite' => '#faebd7',
|
14 |
+
'aqua' => '#00ffff',
|
15 |
+
'aquamarine' => '#7fffd4',
|
16 |
+
'azure' => '#f0ffff',
|
17 |
+
'beige' => '#f5f5dc',
|
18 |
+
'bisque' => '#ffe4c4',
|
19 |
+
'black' => '#000000',
|
20 |
+
'blanchedalmond' => '#ffebcd',
|
21 |
+
'blue' => '#0000ff',
|
22 |
+
'blueviolet' => '#8a2be2',
|
23 |
+
'brown' => '#a52a2a',
|
24 |
+
'burlywood' => '#deb887',
|
25 |
+
'cadetblue' => '#5f9ea0',
|
26 |
+
'chartreuse' => '#7fff00',
|
27 |
+
'chocolate' => '#d2691e',
|
28 |
+
'coral' => '#ff7f50',
|
29 |
+
'cornflowerblue' => '#6495ed',
|
30 |
+
'cornsilk' => '#fff8dc',
|
31 |
+
'crimson' => '#dc143c',
|
32 |
+
'cyan' => '#00ffff',
|
33 |
+
'darkblue' => '#00008b',
|
34 |
+
'darkcyan' => '#008b8b',
|
35 |
+
'darkgoldenrod' => '#b8860b',
|
36 |
+
'darkgray' => '#a9a9a9',
|
37 |
+
'darkgrey' => '#a9a9a9',
|
38 |
+
'darkgreen' => '#006400',
|
39 |
+
'darkkhaki' => '#bdb76b',
|
40 |
+
'darkmagenta' => '#8b008b',
|
41 |
+
'darkolivegreen' => '#556b2f',
|
42 |
+
'darkorange' => '#ff8c00',
|
43 |
+
'darkorchid' => '#9932cc',
|
44 |
+
'darkred' => '#8b0000',
|
45 |
+
'darksalmon' => '#e9967a',
|
46 |
+
'darkseagreen' => '#8fbc8f',
|
47 |
+
'darkslateblue' => '#483d8b',
|
48 |
+
'darkslategray' => '#2f4f4f',
|
49 |
+
'darkslategrey' => '#2f4f4f',
|
50 |
+
'darkturquoise' => '#00ced1',
|
51 |
+
'darkviolet' => '#9400d3',
|
52 |
+
'deeppink' => '#ff1493',
|
53 |
+
'deepskyblue' => '#00bfff',
|
54 |
+
'dimgray' => '#696969',
|
55 |
+
'dimgrey' => '#696969',
|
56 |
+
'dodgerblue' => '#1e90ff',
|
57 |
+
'firebrick' => '#b22222',
|
58 |
+
'floralwhite' => '#fffaf0',
|
59 |
+
'forestgreen' => '#228b22',
|
60 |
+
'fuchsia' => '#ff00ff',
|
61 |
+
'gainsboro' => '#dcdcdc',
|
62 |
+
'ghostwhite' => '#f8f8ff',
|
63 |
+
'gold' => '#ffd700',
|
64 |
+
'goldenrod' => '#daa520',
|
65 |
+
'gray' => '#808080',
|
66 |
+
'grey' => '#808080',
|
67 |
+
'green' => '#008000',
|
68 |
+
'greenyellow' => '#adff2f',
|
69 |
+
'honeydew' => '#f0fff0',
|
70 |
+
'hotpink' => '#ff69b4',
|
71 |
+
'indianred' => '#cd5c5c',
|
72 |
+
'indigo' => '#4b0082',
|
73 |
+
'ivory' => '#fffff0',
|
74 |
+
'khaki' => '#f0e68c',
|
75 |
+
'lavender' => '#e6e6fa',
|
76 |
+
'lavenderblush' => '#fff0f5',
|
77 |
+
'lawngreen' => '#7cfc00',
|
78 |
+
'lemonchiffon' => '#fffacd',
|
79 |
+
'lightblue' => '#add8e6',
|
80 |
+
'lightcoral' => '#f08080',
|
81 |
+
'lightcyan' => '#e0ffff',
|
82 |
+
'lightgoldenrodyellow' => '#fafad2',
|
83 |
+
'lightgray' => '#d3d3d3',
|
84 |
+
'lightgrey' => '#d3d3d3',
|
85 |
+
'lightgreen' => '#90ee90',
|
86 |
+
'lightpink' => '#ffb6c1',
|
87 |
+
'lightsalmon' => '#ffa07a',
|
88 |
+
'lightseagreen' => '#20b2aa',
|
89 |
+
'lightskyblue' => '#87cefa',
|
90 |
+
'lightslategray' => '#778899',
|
91 |
+
'lightslategrey' => '#778899',
|
92 |
+
'lightsteelblue' => '#b0c4de',
|
93 |
+
'lightyellow' => '#ffffe0',
|
94 |
+
'lime' => '#00ff00',
|
95 |
+
'limegreen' => '#32cd32',
|
96 |
+
'linen' => '#faf0e6',
|
97 |
+
'magenta' => '#ff00ff',
|
98 |
+
'maroon' => '#800000',
|
99 |
+
'mediumaquamarine' => '#66cdaa',
|
100 |
+
'mediumblue' => '#0000cd',
|
101 |
+
'mediumorchid' => '#ba55d3',
|
102 |
+
'mediumpurple' => '#9370d8',
|
103 |
+
'mediumseagreen' => '#3cb371',
|
104 |
+
'mediumslateblue' => '#7b68ee',
|
105 |
+
'mediumspringgreen' => '#00fa9a',
|
106 |
+
'mediumturquoise' => '#48d1cc',
|
107 |
+
'mediumvioletred' => '#c71585',
|
108 |
+
'midnightblue' => '#191970',
|
109 |
+
'mintcream' => '#f5fffa',
|
110 |
+
'mistyrose' => '#ffe4e1',
|
111 |
+
'moccasin' => '#ffe4b5',
|
112 |
+
'navajowhite' => '#ffdead',
|
113 |
+
'navy' => '#000080',
|
114 |
+
'oldlace' => '#fdf5e6',
|
115 |
+
'olive' => '#808000',
|
116 |
+
'olivedrab' => '#6b8e23',
|
117 |
+
'orange' => '#ffa500',
|
118 |
+
'orangered' => '#ff4500',
|
119 |
+
'orchid' => '#da70d6',
|
120 |
+
'palegoldenrod' => '#eee8aa',
|
121 |
+
'palegreen' => '#98fb98',
|
122 |
+
'paleturquoise' => '#afeeee',
|
123 |
+
'palevioletred' => '#d87093',
|
124 |
+
'papayawhip' => '#ffefd5',
|
125 |
+
'peachpuff' => '#ffdab9',
|
126 |
+
'peru' => '#cd853f',
|
127 |
+
'pink' => '#ffc0cb',
|
128 |
+
'plum' => '#dda0dd',
|
129 |
+
'powderblue' => '#b0e0e6',
|
130 |
+
'purple' => '#800080',
|
131 |
+
'red' => '#ff0000',
|
132 |
+
'rosybrown' => '#bc8f8f',
|
133 |
+
'royalblue' => '#4169e1',
|
134 |
+
'saddlebrown' => '#8b4513',
|
135 |
+
'salmon' => '#fa8072',
|
136 |
+
'sandybrown' => '#f4a460',
|
137 |
+
'seagreen' => '#2e8b57',
|
138 |
+
'seashell' => '#fff5ee',
|
139 |
+
'sienna' => '#a0522d',
|
140 |
+
'silver' => '#c0c0c0',
|
141 |
+
'skyblue' => '#87ceeb',
|
142 |
+
'slateblue' => '#6a5acd',
|
143 |
+
'slategray' => '#708090',
|
144 |
+
'slategrey' => '#708090',
|
145 |
+
'snow' => '#fffafa',
|
146 |
+
'springgreen' => '#00ff7f',
|
147 |
+
'steelblue' => '#4682b4',
|
148 |
+
'tan' => '#d2b48c',
|
149 |
+
'teal' => '#008080',
|
150 |
+
'thistle' => '#d8bfd8',
|
151 |
+
'tomato' => '#ff6347',
|
152 |
+
'turquoise' => '#40e0d0',
|
153 |
+
'violet' => '#ee82ee',
|
154 |
+
'wheat' => '#f5deb3',
|
155 |
+
'white' => '#ffffff',
|
156 |
+
'whitesmoke' => '#f5f5f5',
|
157 |
+
'yellow' => '#ffff00',
|
158 |
+
'yellowgreen' => '#9acd32'
|
159 |
+
);
|
160 |
+
|
161 |
+
public static function hasOwnProperty( $color ) {
|
162 |
+
return isset( self::$colors[$color] );
|
163 |
+
}
|
164 |
+
|
165 |
+
public static function color( $color ) {
|
166 |
+
return self::$colors[$color];
|
167 |
+
}
|
168 |
+
|
169 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Configurable.php
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Configurable
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage Core
|
8 |
+
*/
|
9 |
+
abstract class Less_Configurable {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Array of options
|
13 |
+
*
|
14 |
+
* @var array
|
15 |
+
*/
|
16 |
+
protected $options = array();
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Array of default options
|
20 |
+
*
|
21 |
+
* @var array
|
22 |
+
*/
|
23 |
+
protected $defaultOptions = array();
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Set options
|
27 |
+
*
|
28 |
+
* If $options is an object it will be converted into an array by called
|
29 |
+
* it's toArray method.
|
30 |
+
*
|
31 |
+
* @throws Exception
|
32 |
+
* @param array|object $options
|
33 |
+
*
|
34 |
+
*/
|
35 |
+
public function setOptions( $options ) {
|
36 |
+
$options = array_intersect_key( $options, $this->defaultOptions );
|
37 |
+
$this->options = array_merge( $this->defaultOptions, $this->options, $options );
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Get an option value by name
|
42 |
+
*
|
43 |
+
* If the option is empty or not set a NULL value will be returned.
|
44 |
+
*
|
45 |
+
* @param string $name
|
46 |
+
* @param mixed $default Default value if confiuration of $name is not present
|
47 |
+
* @return mixed
|
48 |
+
*/
|
49 |
+
public function getOption( $name, $default = null ) {
|
50 |
+
if ( isset( $this->options[$name] ) ) {
|
51 |
+
return $this->options[$name];
|
52 |
+
}
|
53 |
+
return $default;
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Set an option
|
58 |
+
*
|
59 |
+
* @param string $name
|
60 |
+
* @param mixed $value
|
61 |
+
*/
|
62 |
+
public function setOption( $name, $value ) {
|
63 |
+
$this->options[$name] = $value;
|
64 |
+
}
|
65 |
+
|
66 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Environment.php
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Environment
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage environment
|
8 |
+
*/
|
9 |
+
class Less_Environment {
|
10 |
+
|
11 |
+
// public $paths = array(); // option - unmodified - paths to search for imports on
|
12 |
+
//public static $files = array(); // list of files that have been imported, used for import-once
|
13 |
+
//public $rootpath; // option - rootpath to append to URL's
|
14 |
+
//public static $strictImports = null; // option -
|
15 |
+
//public $insecure; // option - whether to allow imports from insecure ssl hosts
|
16 |
+
//public $processImports; // option - whether to process imports. if false then imports will not be imported
|
17 |
+
//public $javascriptEnabled; // option - whether JavaScript is enabled. if undefined, defaults to true
|
18 |
+
//public $useFileCache; // browser only - whether to use the per file session cache
|
19 |
+
public $currentFileInfo; // information about the current file - for error reporting and importing and making urls relative etc.
|
20 |
+
|
21 |
+
public $importMultiple = false; // whether we are currently importing multiple copies
|
22 |
+
|
23 |
+
/**
|
24 |
+
* @var array
|
25 |
+
*/
|
26 |
+
public $frames = array();
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @var array
|
30 |
+
*/
|
31 |
+
public $mediaBlocks = array();
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @var array
|
35 |
+
*/
|
36 |
+
public $mediaPath = array();
|
37 |
+
|
38 |
+
public static $parensStack = 0;
|
39 |
+
|
40 |
+
public static $tabLevel = 0;
|
41 |
+
|
42 |
+
public static $lastRule = false;
|
43 |
+
|
44 |
+
public static $_outputMap;
|
45 |
+
|
46 |
+
public static $mixin_stack = 0;
|
47 |
+
|
48 |
+
/**
|
49 |
+
* @var array
|
50 |
+
*/
|
51 |
+
public $functions = array();
|
52 |
+
|
53 |
+
public function Init() {
|
54 |
+
self::$parensStack = 0;
|
55 |
+
self::$tabLevel = 0;
|
56 |
+
self::$lastRule = false;
|
57 |
+
self::$mixin_stack = 0;
|
58 |
+
|
59 |
+
if ( Less_Parser::$options['compress'] ) {
|
60 |
+
|
61 |
+
Less_Environment::$_outputMap = array(
|
62 |
+
',' => ',',
|
63 |
+
': ' => ':',
|
64 |
+
'' => '',
|
65 |
+
' ' => ' ',
|
66 |
+
':' => ' :',
|
67 |
+
'+' => '+',
|
68 |
+
'~' => '~',
|
69 |
+
'>' => '>',
|
70 |
+
'|' => '|',
|
71 |
+
'^' => '^',
|
72 |
+
'^^' => '^^'
|
73 |
+
);
|
74 |
+
|
75 |
+
} else {
|
76 |
+
|
77 |
+
Less_Environment::$_outputMap = array(
|
78 |
+
',' => ', ',
|
79 |
+
': ' => ': ',
|
80 |
+
'' => '',
|
81 |
+
' ' => ' ',
|
82 |
+
':' => ' :',
|
83 |
+
'+' => ' + ',
|
84 |
+
'~' => ' ~ ',
|
85 |
+
'>' => ' > ',
|
86 |
+
'|' => '|',
|
87 |
+
'^' => ' ^ ',
|
88 |
+
'^^' => ' ^^ '
|
89 |
+
);
|
90 |
+
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
public function copyEvalEnv( $frames = array() ) {
|
95 |
+
$new_env = new Less_Environment();
|
96 |
+
$new_env->frames = $frames;
|
97 |
+
return $new_env;
|
98 |
+
}
|
99 |
+
|
100 |
+
public static function isMathOn() {
|
101 |
+
return !Less_Parser::$options['strictMath'] || Less_Environment::$parensStack;
|
102 |
+
}
|
103 |
+
|
104 |
+
public static function isPathRelative( $path ) {
|
105 |
+
return !preg_match( '/^(?:[a-z-]+:|\/)/', $path );
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Canonicalize a path by resolving references to '/./', '/../'
|
110 |
+
* Does not remove leading "../"
|
111 |
+
* @param string path or url
|
112 |
+
* @return string Canonicalized path
|
113 |
+
*
|
114 |
+
*/
|
115 |
+
public static function normalizePath( $path ) {
|
116 |
+
$segments = explode( '/', $path );
|
117 |
+
$segments = array_reverse( $segments );
|
118 |
+
|
119 |
+
$path = array();
|
120 |
+
$path_len = 0;
|
121 |
+
|
122 |
+
while ( $segments ) {
|
123 |
+
$segment = array_pop( $segments );
|
124 |
+
switch ( $segment ) {
|
125 |
+
|
126 |
+
case '.':
|
127 |
+
break;
|
128 |
+
|
129 |
+
case '..':
|
130 |
+
if ( !$path_len || ( $path[$path_len - 1] === '..' ) ) {
|
131 |
+
$path[] = $segment;
|
132 |
+
$path_len++;
|
133 |
+
} else {
|
134 |
+
array_pop( $path );
|
135 |
+
$path_len--;
|
136 |
+
}
|
137 |
+
break;
|
138 |
+
|
139 |
+
default:
|
140 |
+
$path[] = $segment;
|
141 |
+
$path_len++;
|
142 |
+
break;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
return implode( '/', $path );
|
147 |
+
}
|
148 |
+
|
149 |
+
public function unshiftFrame( $frame ) {
|
150 |
+
array_unshift( $this->frames, $frame );
|
151 |
+
}
|
152 |
+
|
153 |
+
public function shiftFrame() {
|
154 |
+
return array_shift( $this->frames );
|
155 |
+
}
|
156 |
+
|
157 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Exception/Chunk.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Chunk Exception
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage exception
|
8 |
+
*/
|
9 |
+
class Less_Exception_Chunk extends Less_Exception_Parser {
|
10 |
+
|
11 |
+
protected $parserCurrentIndex = 0;
|
12 |
+
|
13 |
+
protected $emitFrom = 0;
|
14 |
+
|
15 |
+
protected $input_len;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Constructor
|
19 |
+
*
|
20 |
+
* @param string $input
|
21 |
+
* @param Exception $previous Previous exception
|
22 |
+
* @param integer $index The current parser index
|
23 |
+
* @param Less_FileInfo|string $currentFile The file
|
24 |
+
* @param integer $code The exception code
|
25 |
+
*/
|
26 |
+
public function __construct( $input, Exception $previous = null, $index = null, $currentFile = null, $code = 0 ) {
|
27 |
+
$this->message = 'ParseError: Unexpected input'; // default message
|
28 |
+
|
29 |
+
$this->index = $index;
|
30 |
+
|
31 |
+
$this->currentFile = $currentFile;
|
32 |
+
|
33 |
+
$this->input = $input;
|
34 |
+
$this->input_len = strlen( $input );
|
35 |
+
|
36 |
+
$this->Chunks();
|
37 |
+
$this->genMessage();
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* See less.js chunks()
|
42 |
+
* We don't actually need the chunks
|
43 |
+
*
|
44 |
+
*/
|
45 |
+
protected function Chunks() {
|
46 |
+
$level = 0;
|
47 |
+
$parenLevel = 0;
|
48 |
+
$lastMultiCommentEndBrace = null;
|
49 |
+
$lastOpening = null;
|
50 |
+
$lastMultiComment = null;
|
51 |
+
$lastParen = null;
|
52 |
+
|
53 |
+
for ( $this->parserCurrentIndex = 0; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ) {
|
54 |
+
$cc = $this->CharCode( $this->parserCurrentIndex );
|
55 |
+
if ( ( ( $cc >= 97 ) && ( $cc <= 122 ) ) || ( $cc < 34 ) ) {
|
56 |
+
// a-z or whitespace
|
57 |
+
continue;
|
58 |
+
}
|
59 |
+
|
60 |
+
switch ( $cc ) {
|
61 |
+
|
62 |
+
// (
|
63 |
+
case 40:
|
64 |
+
$parenLevel++;
|
65 |
+
$lastParen = $this->parserCurrentIndex;
|
66 |
+
break;
|
67 |
+
|
68 |
+
// )
|
69 |
+
case 41:
|
70 |
+
$parenLevel--;
|
71 |
+
if ( $parenLevel < 0 ) {
|
72 |
+
return $this->fail( "missing opening `(`" );
|
73 |
+
}
|
74 |
+
break;
|
75 |
+
|
76 |
+
// ;
|
77 |
+
case 59:
|
78 |
+
// if (!$parenLevel) { $this->emitChunk(); }
|
79 |
+
break;
|
80 |
+
|
81 |
+
// {
|
82 |
+
case 123:
|
83 |
+
$level++;
|
84 |
+
$lastOpening = $this->parserCurrentIndex;
|
85 |
+
break;
|
86 |
+
|
87 |
+
// }
|
88 |
+
case 125:
|
89 |
+
$level--;
|
90 |
+
if ( $level < 0 ) {
|
91 |
+
return $this->fail( "missing opening `{`" );
|
92 |
+
|
93 |
+
}
|
94 |
+
// if (!$level && !$parenLevel) { $this->emitChunk(); }
|
95 |
+
break;
|
96 |
+
// \
|
97 |
+
case 92:
|
98 |
+
if ( $this->parserCurrentIndex < $this->input_len - 1 ) { $this->parserCurrentIndex++; break;
|
99 |
+
}
|
100 |
+
return $this->fail( "unescaped `\\`" );
|
101 |
+
|
102 |
+
// ", ' and `
|
103 |
+
case 34:
|
104 |
+
case 39:
|
105 |
+
case 96:
|
106 |
+
$matched = 0;
|
107 |
+
$currentChunkStartIndex = $this->parserCurrentIndex;
|
108 |
+
for ( $this->parserCurrentIndex = $this->parserCurrentIndex + 1; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ) {
|
109 |
+
$cc2 = $this->CharCode( $this->parserCurrentIndex );
|
110 |
+
if ( $cc2 > 96 ) { continue;
|
111 |
+
}
|
112 |
+
if ( $cc2 == $cc ) { $matched = 1; break;
|
113 |
+
}
|
114 |
+
if ( $cc2 == 92 ) { // \
|
115 |
+
if ( $this->parserCurrentIndex == $this->input_len - 1 ) {
|
116 |
+
return $this->fail( "unescaped `\\`" );
|
117 |
+
}
|
118 |
+
$this->parserCurrentIndex++;
|
119 |
+
}
|
120 |
+
}
|
121 |
+
if ( $matched ) { break;
|
122 |
+
}
|
123 |
+
return $this->fail( "unmatched `" . chr( $cc ) . "`", $currentChunkStartIndex );
|
124 |
+
|
125 |
+
// /, check for comment
|
126 |
+
case 47:
|
127 |
+
if ( $parenLevel || ( $this->parserCurrentIndex == $this->input_len - 1 ) ) { break;
|
128 |
+
}
|
129 |
+
$cc2 = $this->CharCode( $this->parserCurrentIndex + 1 );
|
130 |
+
if ( $cc2 == 47 ) {
|
131 |
+
// //, find lnfeed
|
132 |
+
for ( $this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ) {
|
133 |
+
$cc2 = $this->CharCode( $this->parserCurrentIndex );
|
134 |
+
if ( ( $cc2 <= 13 ) && ( ( $cc2 == 10 ) || ( $cc2 == 13 ) ) ) { break;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
} else if ( $cc2 == 42 ) {
|
138 |
+
// /*, find */
|
139 |
+
$lastMultiComment = $currentChunkStartIndex = $this->parserCurrentIndex;
|
140 |
+
for ( $this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len - 1; $this->parserCurrentIndex++ ) {
|
141 |
+
$cc2 = $this->CharCode( $this->parserCurrentIndex );
|
142 |
+
if ( $cc2 == 125 ) { $lastMultiCommentEndBrace = $this->parserCurrentIndex;
|
143 |
+
}
|
144 |
+
if ( $cc2 != 42 ) { continue;
|
145 |
+
}
|
146 |
+
if ( $this->CharCode( $this->parserCurrentIndex + 1 ) == 47 ) { break;
|
147 |
+
}
|
148 |
+
}
|
149 |
+
if ( $this->parserCurrentIndex == $this->input_len - 1 ) {
|
150 |
+
return $this->fail( "missing closing `*/`", $currentChunkStartIndex );
|
151 |
+
}
|
152 |
+
}
|
153 |
+
break;
|
154 |
+
|
155 |
+
// *, check for unmatched */
|
156 |
+
case 42:
|
157 |
+
if ( ( $this->parserCurrentIndex < $this->input_len - 1 ) && ( $this->CharCode( $this->parserCurrentIndex + 1 ) == 47 ) ) {
|
158 |
+
return $this->fail( "unmatched `/*`" );
|
159 |
+
}
|
160 |
+
break;
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
+
if ( $level !== 0 ) {
|
165 |
+
if ( ( $lastMultiComment > $lastOpening ) && ( $lastMultiCommentEndBrace > $lastMultiComment ) ) {
|
166 |
+
return $this->fail( "missing closing `}` or `*/`", $lastOpening );
|
167 |
+
} else {
|
168 |
+
return $this->fail( "missing closing `}`", $lastOpening );
|
169 |
+
}
|
170 |
+
} else if ( $parenLevel !== 0 ) {
|
171 |
+
return $this->fail( "missing closing `)`", $lastParen );
|
172 |
+
}
|
173 |
+
|
174 |
+
// chunk didn't fail
|
175 |
+
|
176 |
+
//$this->emitChunk(true);
|
177 |
+
}
|
178 |
+
|
179 |
+
public function CharCode( $pos ) {
|
180 |
+
return ord( $this->input[$pos] );
|
181 |
+
}
|
182 |
+
|
183 |
+
public function fail( $msg, $index = null ) {
|
184 |
+
if ( !$index ) {
|
185 |
+
$this->index = $this->parserCurrentIndex;
|
186 |
+
} else {
|
187 |
+
$this->index = $index;
|
188 |
+
}
|
189 |
+
$this->message = 'ParseError: '.$msg;
|
190 |
+
}
|
191 |
+
|
192 |
+
/*
|
193 |
+
function emitChunk( $force = false ){
|
194 |
+
$len = $this->parserCurrentIndex - $this->emitFrom;
|
195 |
+
if ((($len < 512) && !$force) || !$len) {
|
196 |
+
return;
|
197 |
+
}
|
198 |
+
$chunks[] = substr($this->input, $this->emitFrom, $this->parserCurrentIndex + 1 - $this->emitFrom );
|
199 |
+
$this->emitFrom = $this->parserCurrentIndex + 1;
|
200 |
+
}
|
201 |
+
*/
|
202 |
+
|
203 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Exception/Compiler.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Compiler Exception
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage exception
|
8 |
+
*/
|
9 |
+
class Less_Exception_Compiler extends Less_Exception_Parser {
|
10 |
+
|
11 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Exception/Parser.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Parser Exception
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage exception
|
8 |
+
*/
|
9 |
+
class Less_Exception_Parser extends Exception {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* The current file
|
13 |
+
*
|
14 |
+
* @var Less_ImportedFile
|
15 |
+
*/
|
16 |
+
public $currentFile;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* The current parser index
|
20 |
+
*
|
21 |
+
* @var integer
|
22 |
+
*/
|
23 |
+
public $index;
|
24 |
+
|
25 |
+
protected $input;
|
26 |
+
|
27 |
+
protected $details = array();
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Constructor
|
31 |
+
*
|
32 |
+
* @param string $message
|
33 |
+
* @param Exception $previous Previous exception
|
34 |
+
* @param integer $index The current parser index
|
35 |
+
* @param Less_FileInfo|string $currentFile The file
|
36 |
+
* @param integer $code The exception code
|
37 |
+
*/
|
38 |
+
public function __construct( $message = null, Exception $previous = null, $index = null, $currentFile = null, $code = 0 ) {
|
39 |
+
if ( PHP_VERSION_ID < 50300 ) {
|
40 |
+
$this->previous = $previous;
|
41 |
+
parent::__construct( $message, $code );
|
42 |
+
} else {
|
43 |
+
parent::__construct( $message, $code, $previous );
|
44 |
+
}
|
45 |
+
|
46 |
+
$this->currentFile = $currentFile;
|
47 |
+
$this->index = $index;
|
48 |
+
|
49 |
+
$this->genMessage();
|
50 |
+
}
|
51 |
+
|
52 |
+
protected function getInput() {
|
53 |
+
if ( !$this->input && $this->currentFile && $this->currentFile['filename'] && file_exists( $this->currentFile['filename'] ) ) {
|
54 |
+
$this->input = file_get_contents( $this->currentFile['filename'] );
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Converts the exception to string
|
60 |
+
*
|
61 |
+
* @return string
|
62 |
+
*/
|
63 |
+
public function genMessage() {
|
64 |
+
if ( $this->currentFile && $this->currentFile['filename'] ) {
|
65 |
+
$this->message .= ' in '.basename( $this->currentFile['filename'] );
|
66 |
+
}
|
67 |
+
|
68 |
+
if ( $this->index !== null ) {
|
69 |
+
$this->getInput();
|
70 |
+
if ( $this->input ) {
|
71 |
+
$line = self::getLineNumber();
|
72 |
+
$this->message .= ' on line '.$line.', column '.self::getColumn();
|
73 |
+
|
74 |
+
$lines = explode( "\n", $this->input );
|
75 |
+
|
76 |
+
$count = count( $lines );
|
77 |
+
$start_line = max( 0, $line - 3 );
|
78 |
+
$last_line = min( $count, $start_line + 6 );
|
79 |
+
$num_len = strlen( $last_line );
|
80 |
+
for ( $i = $start_line; $i < $last_line; $i++ ) {
|
81 |
+
$this->message .= "\n".str_pad( $i + 1, $num_len, '0', STR_PAD_LEFT ).'| '.$lines[$i];
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Returns the line number the error was encountered
|
90 |
+
*
|
91 |
+
* @return integer
|
92 |
+
*/
|
93 |
+
public function getLineNumber() {
|
94 |
+
if ( $this->index ) {
|
95 |
+
// https://bugs.php.net/bug.php?id=49790
|
96 |
+
if ( ini_get( "mbstring.func_overload" ) ) {
|
97 |
+
return substr_count( substr( $this->input, 0, $this->index ), "\n" ) + 1;
|
98 |
+
} else {
|
99 |
+
return substr_count( $this->input, "\n", 0, $this->index ) + 1;
|
100 |
+
}
|
101 |
+
}
|
102 |
+
return 1;
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Returns the column the error was encountered
|
107 |
+
*
|
108 |
+
* @return integer
|
109 |
+
*/
|
110 |
+
public function getColumn() {
|
111 |
+
$part = substr( $this->input, 0, $this->index );
|
112 |
+
$pos = strrpos( $part, "\n" );
|
113 |
+
return $this->index - $pos;
|
114 |
+
}
|
115 |
+
|
116 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Functions.php
ADDED
@@ -0,0 +1,1186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Builtin functions
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage function
|
8 |
+
* @see http://lesscss.org/functions/
|
9 |
+
*/
|
10 |
+
class Less_Functions {
|
11 |
+
|
12 |
+
public $env;
|
13 |
+
public $currentFileInfo;
|
14 |
+
|
15 |
+
function __construct( $env, $currentFileInfo = null ) {
|
16 |
+
$this->env = $env;
|
17 |
+
$this->currentFileInfo = $currentFileInfo;
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @param string $op
|
22 |
+
*/
|
23 |
+
public static function operate( $op, $a, $b ) {
|
24 |
+
switch ( $op ) {
|
25 |
+
case '+':
|
26 |
+
return $a + $b;
|
27 |
+
case '-':
|
28 |
+
return $a - $b;
|
29 |
+
case '*':
|
30 |
+
return $a * $b;
|
31 |
+
case '/':
|
32 |
+
return $a / $b;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
public static function clamp( $val, $max = 1 ) {
|
37 |
+
return min( max( $val, 0 ), $max );
|
38 |
+
}
|
39 |
+
|
40 |
+
public static function fround( $value ) {
|
41 |
+
if ( $value === 0 ) {
|
42 |
+
return $value;
|
43 |
+
}
|
44 |
+
|
45 |
+
if ( Less_Parser::$options['numPrecision'] ) {
|
46 |
+
$p = pow( 10, Less_Parser::$options['numPrecision'] );
|
47 |
+
return round( $value * $p ) / $p;
|
48 |
+
}
|
49 |
+
return $value;
|
50 |
+
}
|
51 |
+
|
52 |
+
public static function number( $n ) {
|
53 |
+
if ( $n instanceof Less_Tree_Dimension ) {
|
54 |
+
return floatval( $n->unit->is( '%' ) ? $n->value / 100 : $n->value );
|
55 |
+
} else if ( is_numeric( $n ) ) {
|
56 |
+
return $n;
|
57 |
+
} else {
|
58 |
+
throw new Less_Exception_Compiler( "color functions take numbers as parameters" );
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
public static function scaled( $n, $size = 255 ) {
|
63 |
+
if ( $n instanceof Less_Tree_Dimension && $n->unit->is( '%' ) ) {
|
64 |
+
return (float)$n->value * $size / 100;
|
65 |
+
} else {
|
66 |
+
return Less_Functions::number( $n );
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
public function rgb( $r = null, $g = null, $b = null ) {
|
71 |
+
if ( is_null( $r ) || is_null( $g ) || is_null( $b ) ) {
|
72 |
+
throw new Less_Exception_Compiler( "rgb expects three parameters" );
|
73 |
+
}
|
74 |
+
return $this->rgba( $r, $g, $b, 1.0 );
|
75 |
+
}
|
76 |
+
|
77 |
+
public function rgba( $r = null, $g = null, $b = null, $a = null ) {
|
78 |
+
$rgb = array( $r, $g, $b );
|
79 |
+
$rgb = array_map( array( 'Less_Functions','scaled' ), $rgb );
|
80 |
+
|
81 |
+
$a = self::number( $a );
|
82 |
+
return new Less_Tree_Color( $rgb, $a );
|
83 |
+
}
|
84 |
+
|
85 |
+
public function hsl( $h, $s, $l ) {
|
86 |
+
return $this->hsla( $h, $s, $l, 1.0 );
|
87 |
+
}
|
88 |
+
|
89 |
+
public function hsla( $h, $s, $l, $a ) {
|
90 |
+
$h = fmod( self::number( $h ), 360 ) / 360; // Classic % operator will change float to int
|
91 |
+
$s = self::clamp( self::number( $s ) );
|
92 |
+
$l = self::clamp( self::number( $l ) );
|
93 |
+
$a = self::clamp( self::number( $a ) );
|
94 |
+
|
95 |
+
$m2 = $l <= 0.5 ? $l * ( $s + 1 ) : $l + $s - $l * $s;
|
96 |
+
|
97 |
+
$m1 = $l * 2 - $m2;
|
98 |
+
|
99 |
+
return $this->rgba( self::hsla_hue( $h + 1 / 3, $m1, $m2 ) * 255,
|
100 |
+
self::hsla_hue( $h, $m1, $m2 ) * 255,
|
101 |
+
self::hsla_hue( $h - 1 / 3, $m1, $m2 ) * 255,
|
102 |
+
$a );
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* @param double $h
|
107 |
+
*/
|
108 |
+
public function hsla_hue( $h, $m1, $m2 ) {
|
109 |
+
$h = $h < 0 ? $h + 1 : ( $h > 1 ? $h - 1 : $h );
|
110 |
+
if ( $h * 6 < 1 ) return $m1 + ( $m2 - $m1 ) * $h * 6; else if ( $h * 2 < 1 ) return $m2; else if ( $h * 3 < 2 ) return $m1 + ( $m2 - $m1 ) * ( 2 / 3 - $h ) * 6; else return $m1;
|
111 |
+
}
|
112 |
+
|
113 |
+
public function hsv( $h, $s, $v ) {
|
114 |
+
return $this->hsva( $h, $s, $v, 1.0 );
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* @param double $a
|
119 |
+
*/
|
120 |
+
public function hsva( $h, $s, $v, $a ) {
|
121 |
+
$h = ( ( Less_Functions::number( $h ) % 360 ) / 360 ) * 360;
|
122 |
+
$s = Less_Functions::number( $s );
|
123 |
+
$v = Less_Functions::number( $v );
|
124 |
+
$a = Less_Functions::number( $a );
|
125 |
+
|
126 |
+
$i = floor( ( $h / 60 ) % 6 );
|
127 |
+
$f = ( $h / 60 ) - $i;
|
128 |
+
|
129 |
+
$vs = array( $v,
|
130 |
+
$v * ( 1 - $s ),
|
131 |
+
$v * ( 1 - $f * $s ),
|
132 |
+
$v * ( 1 - ( 1 - $f ) * $s ) );
|
133 |
+
|
134 |
+
$perm = array( array( 0, 3, 1 ),
|
135 |
+
array( 2, 0, 1 ),
|
136 |
+
array( 1, 0, 3 ),
|
137 |
+
array( 1, 2, 0 ),
|
138 |
+
array( 3, 1, 0 ),
|
139 |
+
array( 0, 1, 2 ) );
|
140 |
+
|
141 |
+
return $this->rgba( $vs[$perm[$i][0]] * 255,
|
142 |
+
$vs[$perm[$i][1]] * 255,
|
143 |
+
$vs[$perm[$i][2]] * 255,
|
144 |
+
$a );
|
145 |
+
}
|
146 |
+
|
147 |
+
public function hue( $color = null ) {
|
148 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
149 |
+
throw new Less_Exception_Compiler( 'The first argument to hue must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
150 |
+
}
|
151 |
+
|
152 |
+
$c = $color->toHSL();
|
153 |
+
return new Less_Tree_Dimension( Less_Parser::round( $c['h'] ) );
|
154 |
+
}
|
155 |
+
|
156 |
+
public function saturation( $color = null ) {
|
157 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
158 |
+
throw new Less_Exception_Compiler( 'The first argument to saturation must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
159 |
+
}
|
160 |
+
|
161 |
+
$c = $color->toHSL();
|
162 |
+
return new Less_Tree_Dimension( Less_Parser::round( $c['s'] * 100 ), '%' );
|
163 |
+
}
|
164 |
+
|
165 |
+
public function lightness( $color = null ) {
|
166 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
167 |
+
throw new Less_Exception_Compiler( 'The first argument to lightness must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
168 |
+
}
|
169 |
+
|
170 |
+
$c = $color->toHSL();
|
171 |
+
return new Less_Tree_Dimension( Less_Parser::round( $c['l'] * 100 ), '%' );
|
172 |
+
}
|
173 |
+
|
174 |
+
public function hsvhue( $color = null ) {
|
175 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
176 |
+
throw new Less_Exception_Compiler( 'The first argument to hsvhue must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
177 |
+
}
|
178 |
+
|
179 |
+
$hsv = $color->toHSV();
|
180 |
+
return new Less_Tree_Dimension( Less_Parser::round( $hsv['h'] ) );
|
181 |
+
}
|
182 |
+
|
183 |
+
public function hsvsaturation( $color = null ) {
|
184 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
185 |
+
throw new Less_Exception_Compiler( 'The first argument to hsvsaturation must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
186 |
+
}
|
187 |
+
|
188 |
+
$hsv = $color->toHSV();
|
189 |
+
return new Less_Tree_Dimension( Less_Parser::round( $hsv['s'] * 100 ), '%' );
|
190 |
+
}
|
191 |
+
|
192 |
+
public function hsvvalue( $color = null ) {
|
193 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
194 |
+
throw new Less_Exception_Compiler( 'The first argument to hsvvalue must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
195 |
+
}
|
196 |
+
|
197 |
+
$hsv = $color->toHSV();
|
198 |
+
return new Less_Tree_Dimension( Less_Parser::round( $hsv['v'] * 100 ), '%' );
|
199 |
+
}
|
200 |
+
|
201 |
+
public function red( $color = null ) {
|
202 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
203 |
+
throw new Less_Exception_Compiler( 'The first argument to red must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
204 |
+
}
|
205 |
+
|
206 |
+
return new Less_Tree_Dimension( $color->rgb[0] );
|
207 |
+
}
|
208 |
+
|
209 |
+
public function green( $color = null ) {
|
210 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
211 |
+
throw new Less_Exception_Compiler( 'The first argument to green must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
212 |
+
}
|
213 |
+
|
214 |
+
return new Less_Tree_Dimension( $color->rgb[1] );
|
215 |
+
}
|
216 |
+
|
217 |
+
public function blue( $color = null ) {
|
218 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
219 |
+
throw new Less_Exception_Compiler( 'The first argument to blue must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
220 |
+
}
|
221 |
+
|
222 |
+
return new Less_Tree_Dimension( $color->rgb[2] );
|
223 |
+
}
|
224 |
+
|
225 |
+
public function alpha( $color = null ) {
|
226 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
227 |
+
throw new Less_Exception_Compiler( 'The first argument to alpha must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
228 |
+
}
|
229 |
+
|
230 |
+
$c = $color->toHSL();
|
231 |
+
return new Less_Tree_Dimension( $c['a'] );
|
232 |
+
}
|
233 |
+
|
234 |
+
public function luma( $color = null ) {
|
235 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
236 |
+
throw new Less_Exception_Compiler( 'The first argument to luma must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
237 |
+
}
|
238 |
+
|
239 |
+
return new Less_Tree_Dimension( Less_Parser::round( $color->luma() * $color->alpha * 100 ), '%' );
|
240 |
+
}
|
241 |
+
|
242 |
+
public function luminance( $color = null ) {
|
243 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
244 |
+
throw new Less_Exception_Compiler( 'The first argument to luminance must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
245 |
+
}
|
246 |
+
|
247 |
+
$luminance =
|
248 |
+
( 0.2126 * $color->rgb[0] / 255 )
|
249 |
+
+ ( 0.7152 * $color->rgb[1] / 255 )
|
250 |
+
+ ( 0.0722 * $color->rgb[2] / 255 );
|
251 |
+
|
252 |
+
return new Less_Tree_Dimension( Less_Parser::round( $luminance * $color->alpha * 100 ), '%' );
|
253 |
+
}
|
254 |
+
|
255 |
+
public function saturate( $color = null, $amount = null ) {
|
256 |
+
// filter: saturate(3.2);
|
257 |
+
// should be kept as is, so check for color
|
258 |
+
if ( $color instanceof Less_Tree_Dimension ) {
|
259 |
+
return null;
|
260 |
+
}
|
261 |
+
|
262 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
263 |
+
throw new Less_Exception_Compiler( 'The first argument to saturate must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
264 |
+
}
|
265 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
266 |
+
throw new Less_Exception_Compiler( 'The second argument to saturate must be a percentage' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
267 |
+
}
|
268 |
+
|
269 |
+
$hsl = $color->toHSL();
|
270 |
+
|
271 |
+
$hsl['s'] += $amount->value / 100;
|
272 |
+
$hsl['s'] = self::clamp( $hsl['s'] );
|
273 |
+
|
274 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
275 |
+
}
|
276 |
+
|
277 |
+
/**
|
278 |
+
* @param Less_Tree_Dimension $amount
|
279 |
+
*/
|
280 |
+
public function desaturate( $color = null, $amount = null ) {
|
281 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
282 |
+
throw new Less_Exception_Compiler( 'The first argument to desaturate must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
283 |
+
}
|
284 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
285 |
+
throw new Less_Exception_Compiler( 'The second argument to desaturate must be a percentage' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
286 |
+
}
|
287 |
+
|
288 |
+
$hsl = $color->toHSL();
|
289 |
+
|
290 |
+
$hsl['s'] -= $amount->value / 100;
|
291 |
+
$hsl['s'] = self::clamp( $hsl['s'] );
|
292 |
+
|
293 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
294 |
+
}
|
295 |
+
|
296 |
+
public function lighten( $color = null, $amount = null ) {
|
297 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
298 |
+
throw new Less_Exception_Compiler( 'The first argument to lighten must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
299 |
+
}
|
300 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
301 |
+
throw new Less_Exception_Compiler( 'The second argument to lighten must be a percentage' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
302 |
+
}
|
303 |
+
|
304 |
+
$hsl = $color->toHSL();
|
305 |
+
|
306 |
+
$hsl['l'] += $amount->value / 100;
|
307 |
+
$hsl['l'] = self::clamp( $hsl['l'] );
|
308 |
+
|
309 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
310 |
+
}
|
311 |
+
|
312 |
+
public function darken( $color = null, $amount = null ) {
|
313 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
314 |
+
throw new Less_Exception_Compiler( 'The first argument to darken must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
315 |
+
}
|
316 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
317 |
+
throw new Less_Exception_Compiler( 'The second argument to darken must be a percentage' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
318 |
+
}
|
319 |
+
|
320 |
+
$hsl = $color->toHSL();
|
321 |
+
$hsl['l'] -= $amount->value / 100;
|
322 |
+
$hsl['l'] = self::clamp( $hsl['l'] );
|
323 |
+
|
324 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
325 |
+
}
|
326 |
+
|
327 |
+
public function fadein( $color = null, $amount = null ) {
|
328 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
329 |
+
throw new Less_Exception_Compiler( 'The first argument to fadein must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
330 |
+
}
|
331 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
332 |
+
throw new Less_Exception_Compiler( 'The second argument to fadein must be a percentage' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
333 |
+
}
|
334 |
+
|
335 |
+
$hsl = $color->toHSL();
|
336 |
+
$hsl['a'] += $amount->value / 100;
|
337 |
+
$hsl['a'] = self::clamp( $hsl['a'] );
|
338 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
339 |
+
}
|
340 |
+
|
341 |
+
public function fadeout( $color = null, $amount = null ) {
|
342 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
343 |
+
throw new Less_Exception_Compiler( 'The first argument to fadeout must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
344 |
+
}
|
345 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
346 |
+
throw new Less_Exception_Compiler( 'The second argument to fadeout must be a percentage' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
347 |
+
}
|
348 |
+
|
349 |
+
$hsl = $color->toHSL();
|
350 |
+
$hsl['a'] -= $amount->value / 100;
|
351 |
+
$hsl['a'] = self::clamp( $hsl['a'] );
|
352 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
353 |
+
}
|
354 |
+
|
355 |
+
public function fade( $color = null, $amount = null ) {
|
356 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
357 |
+
throw new Less_Exception_Compiler( 'The first argument to fade must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
358 |
+
}
|
359 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
360 |
+
throw new Less_Exception_Compiler( 'The second argument to fade must be a percentage' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
361 |
+
}
|
362 |
+
|
363 |
+
$hsl = $color->toHSL();
|
364 |
+
|
365 |
+
$hsl['a'] = $amount->value / 100;
|
366 |
+
$hsl['a'] = self::clamp( $hsl['a'] );
|
367 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
368 |
+
}
|
369 |
+
|
370 |
+
public function spin( $color = null, $amount = null ) {
|
371 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
372 |
+
throw new Less_Exception_Compiler( 'The first argument to spin must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
373 |
+
}
|
374 |
+
if ( !$amount instanceof Less_Tree_Dimension ) {
|
375 |
+
throw new Less_Exception_Compiler( 'The second argument to spin must be a number' . ( $amount instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
376 |
+
}
|
377 |
+
|
378 |
+
$hsl = $color->toHSL();
|
379 |
+
$hue = fmod( $hsl['h'] + $amount->value, 360 );
|
380 |
+
|
381 |
+
$hsl['h'] = $hue < 0 ? 360 + $hue : $hue;
|
382 |
+
|
383 |
+
return $this->hsla( $hsl['h'], $hsl['s'], $hsl['l'], $hsl['a'] );
|
384 |
+
}
|
385 |
+
|
386 |
+
//
|
387 |
+
// Copyright (c) 2006-2009 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein
|
388 |
+
// http://sass-lang.com
|
389 |
+
//
|
390 |
+
|
391 |
+
/**
|
392 |
+
* @param Less_Tree_Color $color1
|
393 |
+
*/
|
394 |
+
public function mix( $color1 = null, $color2 = null, $weight = null ) {
|
395 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
396 |
+
throw new Less_Exception_Compiler( 'The first argument to mix must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
397 |
+
}
|
398 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
399 |
+
throw new Less_Exception_Compiler( 'The second argument to mix must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
400 |
+
}
|
401 |
+
if ( !$weight ) {
|
402 |
+
$weight = new Less_Tree_Dimension( '50', '%' );
|
403 |
+
}
|
404 |
+
if ( !$weight instanceof Less_Tree_Dimension ) {
|
405 |
+
throw new Less_Exception_Compiler( 'The third argument to contrast must be a percentage' . ( $weight instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
406 |
+
}
|
407 |
+
|
408 |
+
$p = $weight->value / 100.0;
|
409 |
+
$w = $p * 2 - 1;
|
410 |
+
$hsl1 = $color1->toHSL();
|
411 |
+
$hsl2 = $color2->toHSL();
|
412 |
+
$a = $hsl1['a'] - $hsl2['a'];
|
413 |
+
|
414 |
+
$w1 = ( ( ( ( $w * $a ) == -1 ) ? $w : ( $w + $a ) / ( 1 + $w * $a ) ) + 1 ) / 2;
|
415 |
+
$w2 = 1 - $w1;
|
416 |
+
|
417 |
+
$rgb = array( $color1->rgb[0] * $w1 + $color2->rgb[0] * $w2,
|
418 |
+
$color1->rgb[1] * $w1 + $color2->rgb[1] * $w2,
|
419 |
+
$color1->rgb[2] * $w1 + $color2->rgb[2] * $w2 );
|
420 |
+
|
421 |
+
$alpha = $color1->alpha * $p + $color2->alpha * ( 1 - $p );
|
422 |
+
|
423 |
+
return new Less_Tree_Color( $rgb, $alpha );
|
424 |
+
}
|
425 |
+
|
426 |
+
public function greyscale( $color ) {
|
427 |
+
return $this->desaturate( $color, new Less_Tree_Dimension( 100, '%' ) );
|
428 |
+
}
|
429 |
+
|
430 |
+
public function contrast( $color, $dark = null, $light = null, $threshold = null ) {
|
431 |
+
// filter: contrast(3.2);
|
432 |
+
// should be kept as is, so check for color
|
433 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
434 |
+
return null;
|
435 |
+
}
|
436 |
+
if ( !$light ) {
|
437 |
+
$light = $this->rgba( 255, 255, 255, 1.0 );
|
438 |
+
}
|
439 |
+
if ( !$dark ) {
|
440 |
+
$dark = $this->rgba( 0, 0, 0, 1.0 );
|
441 |
+
}
|
442 |
+
|
443 |
+
if ( !$dark instanceof Less_Tree_Color ) {
|
444 |
+
throw new Less_Exception_Compiler( 'The second argument to contrast must be a color' . ( $dark instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
445 |
+
}
|
446 |
+
if ( !$light instanceof Less_Tree_Color ) {
|
447 |
+
throw new Less_Exception_Compiler( 'The third argument to contrast must be a color' . ( $light instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
448 |
+
}
|
449 |
+
|
450 |
+
// Figure out which is actually light and dark!
|
451 |
+
if ( $dark->luma() > $light->luma() ) {
|
452 |
+
$t = $light;
|
453 |
+
$light = $dark;
|
454 |
+
$dark = $t;
|
455 |
+
}
|
456 |
+
if ( !$threshold ) {
|
457 |
+
$threshold = 0.43;
|
458 |
+
} else {
|
459 |
+
$threshold = Less_Functions::number( $threshold );
|
460 |
+
}
|
461 |
+
|
462 |
+
if ( $color->luma() < $threshold ) {
|
463 |
+
return $light;
|
464 |
+
} else {
|
465 |
+
return $dark;
|
466 |
+
}
|
467 |
+
}
|
468 |
+
|
469 |
+
public function e( $str ) {
|
470 |
+
if ( is_string( $str ) ) {
|
471 |
+
return new Less_Tree_Anonymous( $str );
|
472 |
+
}
|
473 |
+
return new Less_Tree_Anonymous( $str instanceof Less_Tree_JavaScript ? $str->expression : $str->value );
|
474 |
+
}
|
475 |
+
|
476 |
+
public function escape( $str ) {
|
477 |
+
$revert = array( '%21' => '!', '%2A' => '*', '%27' => "'",'%3F' => '?','%26' => '&','%2C' => ',','%2F' => '/','%40' => '@','%2B' => '+','%24' => '$' );
|
478 |
+
|
479 |
+
return new Less_Tree_Anonymous( strtr( rawurlencode( $str->value ), $revert ) );
|
480 |
+
}
|
481 |
+
|
482 |
+
/**
|
483 |
+
* todo: This function will need some additional work to make it work the same as less.js
|
484 |
+
*
|
485 |
+
*/
|
486 |
+
public function replace( $string, $pattern, $replacement, $flags = null ) {
|
487 |
+
$result = $string->value;
|
488 |
+
|
489 |
+
$expr = '/'.str_replace( '/', '\\/', $pattern->value ).'/';
|
490 |
+
if ( $flags && $flags->value ) {
|
491 |
+
$expr .= self::replace_flags( $flags->value );
|
492 |
+
}
|
493 |
+
|
494 |
+
$result = preg_replace( $expr, $replacement->value, $result );
|
495 |
+
|
496 |
+
if ( property_exists( $string, 'quote' ) ) {
|
497 |
+
return new Less_Tree_Quoted( $string->quote, $result, $string->escaped );
|
498 |
+
}
|
499 |
+
return new Less_Tree_Quoted( '', $result );
|
500 |
+
}
|
501 |
+
|
502 |
+
public static function replace_flags( $flags ) {
|
503 |
+
$flags = str_split( $flags, 1 );
|
504 |
+
$new_flags = '';
|
505 |
+
|
506 |
+
foreach ( $flags as $flag ) {
|
507 |
+
switch ( $flag ) {
|
508 |
+
case 'e':
|
509 |
+
case 'g':
|
510 |
+
break;
|
511 |
+
|
512 |
+
default:
|
513 |
+
$new_flags .= $flag;
|
514 |
+
break;
|
515 |
+
}
|
516 |
+
}
|
517 |
+
|
518 |
+
return $new_flags;
|
519 |
+
}
|
520 |
+
|
521 |
+
public function _percent() {
|
522 |
+
$string = func_get_arg( 0 );
|
523 |
+
|
524 |
+
$args = func_get_args();
|
525 |
+
array_shift( $args );
|
526 |
+
$result = $string->value;
|
527 |
+
|
528 |
+
foreach ( $args as $arg ) {
|
529 |
+
if ( preg_match( '/%[sda]/i', $result, $token ) ) {
|
530 |
+
$token = $token[0];
|
531 |
+
$value = stristr( $token, 's' ) ? $arg->value : $arg->toCSS();
|
532 |
+
$value = preg_match( '/[A-Z]$/', $token ) ? urlencode( $value ) : $value;
|
533 |
+
$result = preg_replace( '/%[sda]/i', $value, $result, 1 );
|
534 |
+
}
|
535 |
+
}
|
536 |
+
$result = str_replace( '%%', '%', $result );
|
537 |
+
|
538 |
+
return new Less_Tree_Quoted( $string->quote, $result, $string->escaped );
|
539 |
+
}
|
540 |
+
|
541 |
+
public function unit( $val, $unit = null ) {
|
542 |
+
if ( !( $val instanceof Less_Tree_Dimension ) ) {
|
543 |
+
throw new Less_Exception_Compiler( 'The first argument to unit must be a number' . ( $val instanceof Less_Tree_Operation ? '. Have you forgotten parenthesis?' : '.' ) );
|
544 |
+
}
|
545 |
+
|
546 |
+
if ( $unit ) {
|
547 |
+
if ( $unit instanceof Less_Tree_Keyword ) {
|
548 |
+
$unit = $unit->value;
|
549 |
+
} else {
|
550 |
+
$unit = $unit->toCSS();
|
551 |
+
}
|
552 |
+
} else {
|
553 |
+
$unit = "";
|
554 |
+
}
|
555 |
+
return new Less_Tree_Dimension( $val->value, $unit );
|
556 |
+
}
|
557 |
+
|
558 |
+
public function convert( $val, $unit ) {
|
559 |
+
return $val->convertTo( $unit->value );
|
560 |
+
}
|
561 |
+
|
562 |
+
public function round( $n, $f = false ) {
|
563 |
+
$fraction = 0;
|
564 |
+
if ( $f !== false ) {
|
565 |
+
$fraction = $f->value;
|
566 |
+
}
|
567 |
+
|
568 |
+
return $this->_math( 'Less_Parser::round', null, $n, $fraction );
|
569 |
+
}
|
570 |
+
|
571 |
+
public function pi() {
|
572 |
+
return new Less_Tree_Dimension( M_PI );
|
573 |
+
}
|
574 |
+
|
575 |
+
public function mod( $a, $b ) {
|
576 |
+
return new Less_Tree_Dimension( $a->value % $b->value, $a->unit );
|
577 |
+
}
|
578 |
+
|
579 |
+
public function pow( $x, $y ) {
|
580 |
+
if ( is_numeric( $x ) && is_numeric( $y ) ) {
|
581 |
+
$x = new Less_Tree_Dimension( $x );
|
582 |
+
$y = new Less_Tree_Dimension( $y );
|
583 |
+
} elseif ( !( $x instanceof Less_Tree_Dimension ) || !( $y instanceof Less_Tree_Dimension ) ) {
|
584 |
+
throw new Less_Exception_Compiler( 'Arguments must be numbers' );
|
585 |
+
}
|
586 |
+
|
587 |
+
return new Less_Tree_Dimension( pow( $x->value, $y->value ), $x->unit );
|
588 |
+
}
|
589 |
+
|
590 |
+
// var mathFunctions = [{name:"ce ...
|
591 |
+
public function ceil( $n ) {
|
592 |
+
return $this->_math( 'ceil', null, $n );
|
593 |
+
}
|
594 |
+
|
595 |
+
public function floor( $n ) {
|
596 |
+
return $this->_math( 'floor', null, $n );
|
597 |
+
}
|
598 |
+
|
599 |
+
public function sqrt( $n ) {
|
600 |
+
return $this->_math( 'sqrt', null, $n );
|
601 |
+
}
|
602 |
+
|
603 |
+
public function abs( $n ) {
|
604 |
+
return $this->_math( 'abs', null, $n );
|
605 |
+
}
|
606 |
+
|
607 |
+
public function tan( $n ) {
|
608 |
+
return $this->_math( 'tan', '', $n );
|
609 |
+
}
|
610 |
+
|
611 |
+
public function sin( $n ) {
|
612 |
+
return $this->_math( 'sin', '', $n );
|
613 |
+
}
|
614 |
+
|
615 |
+
public function cos( $n ) {
|
616 |
+
return $this->_math( 'cos', '', $n );
|
617 |
+
}
|
618 |
+
|
619 |
+
public function atan( $n ) {
|
620 |
+
return $this->_math( 'atan', 'rad', $n );
|
621 |
+
}
|
622 |
+
|
623 |
+
public function asin( $n ) {
|
624 |
+
return $this->_math( 'asin', 'rad', $n );
|
625 |
+
}
|
626 |
+
|
627 |
+
public function acos( $n ) {
|
628 |
+
return $this->_math( 'acos', 'rad', $n );
|
629 |
+
}
|
630 |
+
|
631 |
+
private function _math() {
|
632 |
+
$args = func_get_args();
|
633 |
+
$fn = array_shift( $args );
|
634 |
+
$unit = array_shift( $args );
|
635 |
+
|
636 |
+
if ( $args[0] instanceof Less_Tree_Dimension ) {
|
637 |
+
|
638 |
+
if ( $unit === null ) {
|
639 |
+
$unit = $args[0]->unit;
|
640 |
+
} else {
|
641 |
+
$args[0] = $args[0]->unify();
|
642 |
+
}
|
643 |
+
$args[0] = (float)$args[0]->value;
|
644 |
+
return new Less_Tree_Dimension( call_user_func_array( $fn, $args ), $unit );
|
645 |
+
} else if ( is_numeric( $args[0] ) ) {
|
646 |
+
return call_user_func_array( $fn, $args );
|
647 |
+
} else {
|
648 |
+
throw new Less_Exception_Compiler( "math functions take numbers as parameters" );
|
649 |
+
}
|
650 |
+
}
|
651 |
+
|
652 |
+
/**
|
653 |
+
* @param boolean $isMin
|
654 |
+
*/
|
655 |
+
private function _minmax( $isMin, $args ) {
|
656 |
+
$arg_count = count( $args );
|
657 |
+
|
658 |
+
if ( $arg_count < 1 ) {
|
659 |
+
throw new Less_Exception_Compiler( 'one or more arguments required' );
|
660 |
+
}
|
661 |
+
|
662 |
+
$j = null;
|
663 |
+
$unitClone = null;
|
664 |
+
$unitStatic = null;
|
665 |
+
|
666 |
+
$order = array(); // elems only contains original argument values.
|
667 |
+
$values = array(); // key is the unit.toString() for unified tree.Dimension values,
|
668 |
+
// value is the index into the order array.
|
669 |
+
|
670 |
+
for ( $i = 0; $i < $arg_count; $i++ ) {
|
671 |
+
$current = $args[$i];
|
672 |
+
if ( !( $current instanceof Less_Tree_Dimension ) ) {
|
673 |
+
if ( is_array( $args[$i]->value ) ) {
|
674 |
+
$args[] = $args[$i]->value;
|
675 |
+
}
|
676 |
+
continue;
|
677 |
+
}
|
678 |
+
|
679 |
+
if ( $current->unit->toString() === '' && !$unitClone ) {
|
680 |
+
$temp = new Less_Tree_Dimension( $current->value, $unitClone );
|
681 |
+
$currentUnified = $temp->unify();
|
682 |
+
} else {
|
683 |
+
$currentUnified = $current->unify();
|
684 |
+
}
|
685 |
+
|
686 |
+
if ( $currentUnified->unit->toString() === "" && !$unitStatic ) {
|
687 |
+
$unit = $unitStatic;
|
688 |
+
} else {
|
689 |
+
$unit = $currentUnified->unit->toString();
|
690 |
+
}
|
691 |
+
|
692 |
+
if ( $unit !== '' && !$unitStatic || $unit !== '' && $order[0]->unify()->unit->toString() === "" ) {
|
693 |
+
$unitStatic = $unit;
|
694 |
+
}
|
695 |
+
|
696 |
+
if ( $unit != '' && !$unitClone ) {
|
697 |
+
$unitClone = $current->unit->toString();
|
698 |
+
}
|
699 |
+
|
700 |
+
if ( isset( $values[''] ) && $unit !== '' && $unit === $unitStatic ) {
|
701 |
+
$j = $values[''];
|
702 |
+
} elseif ( isset( $values[$unit] ) ) {
|
703 |
+
$j = $values[$unit];
|
704 |
+
} else {
|
705 |
+
|
706 |
+
if ( $unitStatic && $unit !== $unitStatic ) {
|
707 |
+
throw new Less_Exception_Compiler( 'incompatible types' );
|
708 |
+
}
|
709 |
+
$values[$unit] = count( $order );
|
710 |
+
$order[] = $current;
|
711 |
+
continue;
|
712 |
+
}
|
713 |
+
|
714 |
+
if ( $order[$j]->unit->toString() === "" && $unitClone ) {
|
715 |
+
$temp = new Less_Tree_Dimension( $order[$j]->value, $unitClone );
|
716 |
+
$referenceUnified = $temp->unify();
|
717 |
+
} else {
|
718 |
+
$referenceUnified = $order[$j]->unify();
|
719 |
+
}
|
720 |
+
if ( ( $isMin && $currentUnified->value < $referenceUnified->value ) || ( !$isMin && $currentUnified->value > $referenceUnified->value ) ) {
|
721 |
+
$order[$j] = $current;
|
722 |
+
}
|
723 |
+
}
|
724 |
+
|
725 |
+
if ( count( $order ) == 1 ) {
|
726 |
+
return $order[0];
|
727 |
+
}
|
728 |
+
$args = array();
|
729 |
+
foreach ( $order as $a ) {
|
730 |
+
$args[] = $a->toCSS( $this->env );
|
731 |
+
}
|
732 |
+
return new Less_Tree_Anonymous( ( $isMin ? 'min(' : 'max(' ) . implode( Less_Environment::$_outputMap[','], $args ).')' );
|
733 |
+
}
|
734 |
+
|
735 |
+
public function min() {
|
736 |
+
$args = func_get_args();
|
737 |
+
return $this->_minmax( true, $args );
|
738 |
+
}
|
739 |
+
|
740 |
+
public function max() {
|
741 |
+
$args = func_get_args();
|
742 |
+
return $this->_minmax( false, $args );
|
743 |
+
}
|
744 |
+
|
745 |
+
public function getunit( $n ) {
|
746 |
+
return new Less_Tree_Anonymous( $n->unit );
|
747 |
+
}
|
748 |
+
|
749 |
+
public function argb( $color ) {
|
750 |
+
if ( !$color instanceof Less_Tree_Color ) {
|
751 |
+
throw new Less_Exception_Compiler( 'The first argument to argb must be a color' . ( $color instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
752 |
+
}
|
753 |
+
|
754 |
+
return new Less_Tree_Anonymous( $color->toARGB() );
|
755 |
+
}
|
756 |
+
|
757 |
+
public function percentage( $n ) {
|
758 |
+
return new Less_Tree_Dimension( $n->value * 100, '%' );
|
759 |
+
}
|
760 |
+
|
761 |
+
public function color( $n ) {
|
762 |
+
if ( $n instanceof Less_Tree_Quoted ) {
|
763 |
+
$colorCandidate = $n->value;
|
764 |
+
$returnColor = Less_Tree_Color::fromKeyword( $colorCandidate );
|
765 |
+
if ( $returnColor ) {
|
766 |
+
return $returnColor;
|
767 |
+
}
|
768 |
+
if ( preg_match( '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/', $colorCandidate ) ) {
|
769 |
+
return new Less_Tree_Color( substr( $colorCandidate, 1 ) );
|
770 |
+
}
|
771 |
+
throw new Less_Exception_Compiler( "argument must be a color keyword or 3/6 digit hex e.g. #FFF" );
|
772 |
+
} else {
|
773 |
+
throw new Less_Exception_Compiler( "argument must be a string" );
|
774 |
+
}
|
775 |
+
}
|
776 |
+
|
777 |
+
public function iscolor( $n ) {
|
778 |
+
return $this->_isa( $n, 'Less_Tree_Color' );
|
779 |
+
}
|
780 |
+
|
781 |
+
public function isnumber( $n ) {
|
782 |
+
return $this->_isa( $n, 'Less_Tree_Dimension' );
|
783 |
+
}
|
784 |
+
|
785 |
+
public function isstring( $n ) {
|
786 |
+
return $this->_isa( $n, 'Less_Tree_Quoted' );
|
787 |
+
}
|
788 |
+
|
789 |
+
public function iskeyword( $n ) {
|
790 |
+
return $this->_isa( $n, 'Less_Tree_Keyword' );
|
791 |
+
}
|
792 |
+
|
793 |
+
public function isurl( $n ) {
|
794 |
+
return $this->_isa( $n, 'Less_Tree_Url' );
|
795 |
+
}
|
796 |
+
|
797 |
+
public function ispixel( $n ) {
|
798 |
+
return $this->isunit( $n, 'px' );
|
799 |
+
}
|
800 |
+
|
801 |
+
public function ispercentage( $n ) {
|
802 |
+
return $this->isunit( $n, '%' );
|
803 |
+
}
|
804 |
+
|
805 |
+
public function isem( $n ) {
|
806 |
+
return $this->isunit( $n, 'em' );
|
807 |
+
}
|
808 |
+
|
809 |
+
/**
|
810 |
+
* @param string $unit
|
811 |
+
*/
|
812 |
+
public function isunit( $n, $unit ) {
|
813 |
+
if ( is_object( $unit ) && property_exists( $unit, 'value' ) ) {
|
814 |
+
$unit = $unit->value;
|
815 |
+
}
|
816 |
+
|
817 |
+
return ( $n instanceof Less_Tree_Dimension ) && $n->unit->is( $unit ) ? new Less_Tree_Keyword( 'true' ) : new Less_Tree_Keyword( 'false' );
|
818 |
+
}
|
819 |
+
|
820 |
+
/**
|
821 |
+
* @param string $type
|
822 |
+
*/
|
823 |
+
private function _isa( $n, $type ) {
|
824 |
+
return is_a( $n, $type ) ? new Less_Tree_Keyword( 'true' ) : new Less_Tree_Keyword( 'false' );
|
825 |
+
}
|
826 |
+
|
827 |
+
public function tint( $color, $amount = null ) {
|
828 |
+
return $this->mix( $this->rgb( 255, 255, 255 ), $color, $amount );
|
829 |
+
}
|
830 |
+
|
831 |
+
public function shade( $color, $amount = null ) {
|
832 |
+
return $this->mix( $this->rgb( 0, 0, 0 ), $color, $amount );
|
833 |
+
}
|
834 |
+
|
835 |
+
public function extract( $values, $index ) {
|
836 |
+
$index = (int)$index->value - 1; // (1-based index)
|
837 |
+
// handle non-array values as an array of length 1
|
838 |
+
// return 'undefined' if index is invalid
|
839 |
+
if ( property_exists( $values, 'value' ) && is_array( $values->value ) ) {
|
840 |
+
if ( isset( $values->value[$index] ) ) {
|
841 |
+
return $values->value[$index];
|
842 |
+
}
|
843 |
+
return null;
|
844 |
+
|
845 |
+
} elseif ( (int)$index === 0 ) {
|
846 |
+
return $values;
|
847 |
+
}
|
848 |
+
|
849 |
+
return null;
|
850 |
+
}
|
851 |
+
|
852 |
+
public function length( $values ) {
|
853 |
+
$n = ( property_exists( $values, 'value' ) && is_array( $values->value ) ) ? count( $values->value ) : 1;
|
854 |
+
return new Less_Tree_Dimension( $n );
|
855 |
+
}
|
856 |
+
|
857 |
+
public function datauri( $mimetypeNode, $filePathNode = null ) {
|
858 |
+
$filePath = ( $filePathNode ? $filePathNode->value : null );
|
859 |
+
$mimetype = $mimetypeNode->value;
|
860 |
+
|
861 |
+
$args = 2;
|
862 |
+
if ( !$filePath ) {
|
863 |
+
$filePath = $mimetype;
|
864 |
+
$args = 1;
|
865 |
+
}
|
866 |
+
|
867 |
+
$filePath = str_replace( '\\', '/', $filePath );
|
868 |
+
if ( Less_Environment::isPathRelative( $filePath ) ) {
|
869 |
+
|
870 |
+
if ( Less_Parser::$options['relativeUrls'] ) {
|
871 |
+
$temp = $this->currentFileInfo['currentDirectory'];
|
872 |
+
} else {
|
873 |
+
$temp = $this->currentFileInfo['entryPath'];
|
874 |
+
}
|
875 |
+
|
876 |
+
if ( !empty( $temp ) ) {
|
877 |
+
$filePath = Less_Environment::normalizePath( rtrim( $temp, '/' ).'/'.$filePath );
|
878 |
+
}
|
879 |
+
|
880 |
+
}
|
881 |
+
|
882 |
+
// detect the mimetype if not given
|
883 |
+
if ( $args < 2 ) {
|
884 |
+
|
885 |
+
/* incomplete
|
886 |
+
$mime = require('mime');
|
887 |
+
mimetype = mime.lookup(path);
|
888 |
+
|
889 |
+
// use base 64 unless it's an ASCII or UTF-8 format
|
890 |
+
var charset = mime.charsets.lookup(mimetype);
|
891 |
+
useBase64 = ['US-ASCII', 'UTF-8'].indexOf(charset) < 0;
|
892 |
+
if (useBase64) mimetype += ';base64';
|
893 |
+
*/
|
894 |
+
|
895 |
+
$mimetype = Less_Mime::lookup( $filePath );
|
896 |
+
|
897 |
+
$charset = Less_Mime::charsets_lookup( $mimetype );
|
898 |
+
$useBase64 = !in_array( $charset, array( 'US-ASCII', 'UTF-8' ) );
|
899 |
+
if ( $useBase64 ) { $mimetype .= ';base64';
|
900 |
+
}
|
901 |
+
|
902 |
+
} else {
|
903 |
+
$useBase64 = preg_match( '/;base64$/', $mimetype );
|
904 |
+
}
|
905 |
+
|
906 |
+
if ( file_exists( $filePath ) ) {
|
907 |
+
$buf = @file_get_contents( $filePath );
|
908 |
+
} else {
|
909 |
+
$buf = false;
|
910 |
+
}
|
911 |
+
|
912 |
+
// IE8 cannot handle a data-uri larger than 32KB. If this is exceeded
|
913 |
+
// and the --ieCompat flag is enabled, return a normal url() instead.
|
914 |
+
$DATA_URI_MAX_KB = 32;
|
915 |
+
$fileSizeInKB = round( strlen( $buf ) / 1024 );
|
916 |
+
if ( $fileSizeInKB >= $DATA_URI_MAX_KB ) {
|
917 |
+
$url = new Less_Tree_Url( ( $filePathNode ? $filePathNode : $mimetypeNode ), $this->currentFileInfo );
|
918 |
+
return $url->compile( $this );
|
919 |
+
}
|
920 |
+
|
921 |
+
if ( $buf ) {
|
922 |
+
$buf = $useBase64 ? base64_encode( $buf ) : rawurlencode( $buf );
|
923 |
+
$filePath = '"data:' . $mimetype . ',' . $buf . '"';
|
924 |
+
}
|
925 |
+
|
926 |
+
return new Less_Tree_Url( new Less_Tree_Anonymous( $filePath ) );
|
927 |
+
}
|
928 |
+
|
929 |
+
// svg-gradient
|
930 |
+
public function svggradient( $direction ) {
|
931 |
+
$throw_message = 'svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position]';
|
932 |
+
$arguments = func_get_args();
|
933 |
+
|
934 |
+
if ( count( $arguments ) < 3 ) {
|
935 |
+
throw new Less_Exception_Compiler( $throw_message );
|
936 |
+
}
|
937 |
+
|
938 |
+
$stops = array_slice( $arguments, 1 );
|
939 |
+
$gradientType = 'linear';
|
940 |
+
$rectangleDimension = 'x="0" y="0" width="1" height="1"';
|
941 |
+
$useBase64 = true;
|
942 |
+
$directionValue = $direction->toCSS();
|
943 |
+
|
944 |
+
switch ( $directionValue ) {
|
945 |
+
case "to bottom":
|
946 |
+
$gradientDirectionSvg = 'x1="0%" y1="0%" x2="0%" y2="100%"';
|
947 |
+
break;
|
948 |
+
case "to right":
|
949 |
+
$gradientDirectionSvg = 'x1="0%" y1="0%" x2="100%" y2="0%"';
|
950 |
+
break;
|
951 |
+
case "to bottom right":
|
952 |
+
$gradientDirectionSvg = 'x1="0%" y1="0%" x2="100%" y2="100%"';
|
953 |
+
break;
|
954 |
+
case "to top right":
|
955 |
+
$gradientDirectionSvg = 'x1="0%" y1="100%" x2="100%" y2="0%"';
|
956 |
+
break;
|
957 |
+
case "ellipse":
|
958 |
+
case "ellipse at center":
|
959 |
+
$gradientType = "radial";
|
960 |
+
$gradientDirectionSvg = 'cx="50%" cy="50%" r="75%"';
|
961 |
+
$rectangleDimension = 'x="-50" y="-50" width="101" height="101"';
|
962 |
+
break;
|
963 |
+
default:
|
964 |
+
throw new Less_Exception_Compiler( "svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'" );
|
965 |
+
}
|
966 |
+
|
967 |
+
$returner = '<?xml version="1.0" ?>' .
|
968 |
+
'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none">' .
|
969 |
+
'<' . $gradientType . 'Gradient id="gradient" gradientUnits="userSpaceOnUse" ' . $gradientDirectionSvg . '>';
|
970 |
+
|
971 |
+
for ( $i = 0; $i < count( $stops ); $i++ ) {
|
972 |
+
if ( is_object( $stops[$i] ) && property_exists( $stops[$i], 'value' ) ) {
|
973 |
+
$color = $stops[$i]->value[0];
|
974 |
+
$position = $stops[$i]->value[1];
|
975 |
+
} else {
|
976 |
+
$color = $stops[$i];
|
977 |
+
$position = null;
|
978 |
+
}
|
979 |
+
|
980 |
+
if ( !( $color instanceof Less_Tree_Color ) || ( !( ( $i === 0 || $i + 1 === count( $stops ) ) && $position === null ) && !( $position instanceof Less_Tree_Dimension ) ) ) {
|
981 |
+
throw new Less_Exception_Compiler( $throw_message );
|
982 |
+
}
|
983 |
+
if ( $position ) {
|
984 |
+
$positionValue = $position->toCSS();
|
985 |
+
} elseif ( $i === 0 ) {
|
986 |
+
$positionValue = '0%';
|
987 |
+
} else {
|
988 |
+
$positionValue = '100%';
|
989 |
+
}
|
990 |
+
$alpha = $color->alpha;
|
991 |
+
$returner .= '<stop offset="' . $positionValue . '" stop-color="' . $color->toRGB() . '"' . ( $alpha < 1 ? ' stop-opacity="' . $alpha . '"' : '' ) . '/>';
|
992 |
+
}
|
993 |
+
|
994 |
+
$returner .= '</' . $gradientType . 'Gradient><rect ' . $rectangleDimension . ' fill="url(#gradient)" /></svg>';
|
995 |
+
|
996 |
+
if ( $useBase64 ) {
|
997 |
+
$returner = "'data:image/svg+xml;base64,".base64_encode( $returner )."'";
|
998 |
+
} else {
|
999 |
+
$returner = "'data:image/svg+xml,".$returner."'";
|
1000 |
+
}
|
1001 |
+
|
1002 |
+
return new Less_Tree_URL( new Less_Tree_Anonymous( $returner ) );
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
/**
|
1006 |
+
* Php version of javascript's `encodeURIComponent` function
|
1007 |
+
*
|
1008 |
+
* @param string $string The string to encode
|
1009 |
+
* @return string The encoded string
|
1010 |
+
*/
|
1011 |
+
public static function encodeURIComponent( $string ) {
|
1012 |
+
$revert = array( '%21' => '!', '%2A' => '*', '%27' => "'", '%28' => '(', '%29' => ')' );
|
1013 |
+
return strtr( rawurlencode( $string ), $revert );
|
1014 |
+
}
|
1015 |
+
|
1016 |
+
// Color Blending
|
1017 |
+
// ref: http://www.w3.org/TR/compositing-1
|
1018 |
+
|
1019 |
+
public function colorBlend( $mode, $color1, $color2 ) {
|
1020 |
+
$ab = $color1->alpha; // backdrop
|
1021 |
+
$as = $color2->alpha; // source
|
1022 |
+
$r = array(); // result
|
1023 |
+
|
1024 |
+
$ar = $as + $ab * ( 1 - $as );
|
1025 |
+
for ( $i = 0; $i < 3; $i++ ) {
|
1026 |
+
$cb = $color1->rgb[$i] / 255;
|
1027 |
+
$cs = $color2->rgb[$i] / 255;
|
1028 |
+
$cr = call_user_func( $mode, $cb, $cs );
|
1029 |
+
if ( $ar ) {
|
1030 |
+
$cr = ( $as * $cs + $ab * ( $cb - $as * ( $cb + $cs - $cr ) ) ) / $ar;
|
1031 |
+
}
|
1032 |
+
$r[$i] = $cr * 255;
|
1033 |
+
}
|
1034 |
+
|
1035 |
+
return new Less_Tree_Color( $r, $ar );
|
1036 |
+
}
|
1037 |
+
|
1038 |
+
public function multiply( $color1 = null, $color2 = null ) {
|
1039 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1040 |
+
throw new Less_Exception_Compiler( 'The first argument to multiply must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1041 |
+
}
|
1042 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1043 |
+
throw new Less_Exception_Compiler( 'The second argument to multiply must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1044 |
+
}
|
1045 |
+
|
1046 |
+
return $this->colorBlend( array( $this,'colorBlendMultiply' ), $color1, $color2 );
|
1047 |
+
}
|
1048 |
+
|
1049 |
+
private function colorBlendMultiply( $cb, $cs ) {
|
1050 |
+
return $cb * $cs;
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
public function screen( $color1 = null, $color2 = null ) {
|
1054 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1055 |
+
throw new Less_Exception_Compiler( 'The first argument to screen must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1056 |
+
}
|
1057 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1058 |
+
throw new Less_Exception_Compiler( 'The second argument to screen must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1059 |
+
}
|
1060 |
+
|
1061 |
+
return $this->colorBlend( array( $this,'colorBlendScreen' ), $color1, $color2 );
|
1062 |
+
}
|
1063 |
+
|
1064 |
+
private function colorBlendScreen( $cb, $cs ) {
|
1065 |
+
return $cb + $cs - $cb * $cs;
|
1066 |
+
}
|
1067 |
+
|
1068 |
+
public function overlay( $color1 = null, $color2 = null ) {
|
1069 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1070 |
+
throw new Less_Exception_Compiler( 'The first argument to overlay must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1071 |
+
}
|
1072 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1073 |
+
throw new Less_Exception_Compiler( 'The second argument to overlay must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
return $this->colorBlend( array( $this,'colorBlendOverlay' ), $color1, $color2 );
|
1077 |
+
}
|
1078 |
+
|
1079 |
+
private function colorBlendOverlay( $cb, $cs ) {
|
1080 |
+
$cb *= 2;
|
1081 |
+
return ( $cb <= 1 )
|
1082 |
+
? $this->colorBlendMultiply( $cb, $cs )
|
1083 |
+
: $this->colorBlendScreen( $cb - 1, $cs );
|
1084 |
+
}
|
1085 |
+
|
1086 |
+
public function softlight( $color1 = null, $color2 = null ) {
|
1087 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1088 |
+
throw new Less_Exception_Compiler( 'The first argument to softlight must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1089 |
+
}
|
1090 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1091 |
+
throw new Less_Exception_Compiler( 'The second argument to softlight must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1092 |
+
}
|
1093 |
+
|
1094 |
+
return $this->colorBlend( array( $this,'colorBlendSoftlight' ), $color1, $color2 );
|
1095 |
+
}
|
1096 |
+
|
1097 |
+
private function colorBlendSoftlight( $cb, $cs ) {
|
1098 |
+
$d = 1;
|
1099 |
+
$e = $cb;
|
1100 |
+
if ( $cs > 0.5 ) {
|
1101 |
+
$e = 1;
|
1102 |
+
$d = ( $cb > 0.25 ) ? sqrt( $cb )
|
1103 |
+
: ( ( 16 * $cb - 12 ) * $cb + 4 ) * $cb;
|
1104 |
+
}
|
1105 |
+
return $cb - ( 1 - 2 * $cs ) * $e * ( $d - $cb );
|
1106 |
+
}
|
1107 |
+
|
1108 |
+
public function hardlight( $color1 = null, $color2 = null ) {
|
1109 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1110 |
+
throw new Less_Exception_Compiler( 'The first argument to hardlight must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1111 |
+
}
|
1112 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1113 |
+
throw new Less_Exception_Compiler( 'The second argument to hardlight must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
return $this->colorBlend( array( $this,'colorBlendHardlight' ), $color1, $color2 );
|
1117 |
+
}
|
1118 |
+
|
1119 |
+
private function colorBlendHardlight( $cb, $cs ) {
|
1120 |
+
return $this->colorBlendOverlay( $cs, $cb );
|
1121 |
+
}
|
1122 |
+
|
1123 |
+
public function difference( $color1 = null, $color2 = null ) {
|
1124 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1125 |
+
throw new Less_Exception_Compiler( 'The first argument to difference must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1126 |
+
}
|
1127 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1128 |
+
throw new Less_Exception_Compiler( 'The second argument to difference must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1129 |
+
}
|
1130 |
+
|
1131 |
+
return $this->colorBlend( array( $this,'colorBlendDifference' ), $color1, $color2 );
|
1132 |
+
}
|
1133 |
+
|
1134 |
+
private function colorBlendDifference( $cb, $cs ) {
|
1135 |
+
return abs( $cb - $cs );
|
1136 |
+
}
|
1137 |
+
|
1138 |
+
public function exclusion( $color1 = null, $color2 = null ) {
|
1139 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1140 |
+
throw new Less_Exception_Compiler( 'The first argument to exclusion must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1141 |
+
}
|
1142 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1143 |
+
throw new Less_Exception_Compiler( 'The second argument to exclusion must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1144 |
+
}
|
1145 |
+
|
1146 |
+
return $this->colorBlend( array( $this,'colorBlendExclusion' ), $color1, $color2 );
|
1147 |
+
}
|
1148 |
+
|
1149 |
+
private function colorBlendExclusion( $cb, $cs ) {
|
1150 |
+
return $cb + $cs - 2 * $cb * $cs;
|
1151 |
+
}
|
1152 |
+
|
1153 |
+
public function average( $color1 = null, $color2 = null ) {
|
1154 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1155 |
+
throw new Less_Exception_Compiler( 'The first argument to average must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1156 |
+
}
|
1157 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1158 |
+
throw new Less_Exception_Compiler( 'The second argument to average must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1159 |
+
}
|
1160 |
+
|
1161 |
+
return $this->colorBlend( array( $this,'colorBlendAverage' ), $color1, $color2 );
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
// non-w3c functions:
|
1165 |
+
public function colorBlendAverage( $cb, $cs ) {
|
1166 |
+
return ( $cb + $cs ) / 2;
|
1167 |
+
}
|
1168 |
+
|
1169 |
+
public function negation( $color1 = null, $color2 = null ) {
|
1170 |
+
if ( !$color1 instanceof Less_Tree_Color ) {
|
1171 |
+
throw new Less_Exception_Compiler( 'The first argument to negation must be a color' . ( $color1 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1172 |
+
}
|
1173 |
+
if ( !$color2 instanceof Less_Tree_Color ) {
|
1174 |
+
throw new Less_Exception_Compiler( 'The second argument to negation must be a color' . ( $color2 instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '' ) );
|
1175 |
+
}
|
1176 |
+
|
1177 |
+
return $this->colorBlend( array( $this,'colorBlendNegation' ), $color1, $color2 );
|
1178 |
+
}
|
1179 |
+
|
1180 |
+
public function colorBlendNegation( $cb, $cs ) {
|
1181 |
+
return 1 - abs( $cb + $cs - 1 );
|
1182 |
+
}
|
1183 |
+
|
1184 |
+
// ~ End of Color Blending
|
1185 |
+
|
1186 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Less.php.combine
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
./Parser.php
|
3 |
+
./Colors.php
|
4 |
+
./Environment.php
|
5 |
+
./Functions.php
|
6 |
+
./Mime.php
|
7 |
+
./Tree.php
|
8 |
+
./Output.php
|
9 |
+
./Visitor.php
|
10 |
+
./VisitorReplacing.php
|
11 |
+
./Configurable.php
|
12 |
+
./Tree
|
13 |
+
./Visitor
|
14 |
+
./Exception/Parser.php
|
15 |
+
./Exception/
|
16 |
+
./Output
|
17 |
+
./SourceMap
|
app/vendor/wikimedia/less.php/lib/Less/Mime.php
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Mime lookup
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage node
|
8 |
+
*/
|
9 |
+
class Less_Mime {
|
10 |
+
|
11 |
+
// this map is intentionally incomplete
|
12 |
+
// if you want more, install 'mime' dep
|
13 |
+
static $_types = array(
|
14 |
+
'.htm' => 'text/html',
|
15 |
+
'.html' => 'text/html',
|
16 |
+
'.gif' => 'image/gif',
|
17 |
+
'.jpg' => 'image/jpeg',
|
18 |
+
'.jpeg' => 'image/jpeg',
|
19 |
+
'.png' => 'image/png',
|
20 |
+
'.ttf' => 'application/x-font-ttf',
|
21 |
+
'.otf' => 'application/x-font-otf',
|
22 |
+
'.eot' => 'application/vnd.ms-fontobject',
|
23 |
+
'.woff' => 'application/x-font-woff',
|
24 |
+
'.svg' => 'image/svg+xml',
|
25 |
+
);
|
26 |
+
|
27 |
+
public static function lookup( $filepath ) {
|
28 |
+
$parts = explode( '.', $filepath );
|
29 |
+
$ext = '.'.strtolower( array_pop( $parts ) );
|
30 |
+
|
31 |
+
if ( !isset( self::$_types[$ext] ) ) {
|
32 |
+
return null;
|
33 |
+
}
|
34 |
+
return self::$_types[$ext];
|
35 |
+
}
|
36 |
+
|
37 |
+
public static function charsets_lookup( $type = null ) {
|
38 |
+
// assumes all text types are UTF-8
|
39 |
+
return $type && preg_match( '/^text\//', $type ) ? 'UTF-8' : '';
|
40 |
+
}
|
41 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Output.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Parser output
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage output
|
8 |
+
*/
|
9 |
+
class Less_Output {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Output holder
|
13 |
+
*
|
14 |
+
* @var string
|
15 |
+
*/
|
16 |
+
protected $strs = array();
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Adds a chunk to the stack
|
20 |
+
*
|
21 |
+
* @param string $chunk The chunk to output
|
22 |
+
* @param Less_FileInfo $fileInfo The file information
|
23 |
+
* @param integer $index The index
|
24 |
+
* @param mixed $mapLines
|
25 |
+
*/
|
26 |
+
public function add( $chunk, $fileInfo = null, $index = 0, $mapLines = null ) {
|
27 |
+
$this->strs[] = $chunk;
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Is the output empty?
|
32 |
+
*
|
33 |
+
* @return boolean
|
34 |
+
*/
|
35 |
+
public function isEmpty() {
|
36 |
+
return count( $this->strs ) === 0;
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Converts the output to string
|
41 |
+
*
|
42 |
+
* @return string
|
43 |
+
*/
|
44 |
+
public function toString() {
|
45 |
+
return implode( '', $this->strs );
|
46 |
+
}
|
47 |
+
|
48 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Output/Mapped.php
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Parser output with source map
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage Output
|
8 |
+
*/
|
9 |
+
class Less_Output_Mapped extends Less_Output {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* The source map generator
|
13 |
+
*
|
14 |
+
* @var Less_SourceMap_Generator
|
15 |
+
*/
|
16 |
+
protected $generator;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Current line
|
20 |
+
*
|
21 |
+
* @var integer
|
22 |
+
*/
|
23 |
+
protected $lineNumber = 0;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Current column
|
27 |
+
*
|
28 |
+
* @var integer
|
29 |
+
*/
|
30 |
+
protected $column = 0;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Array of contents map (file and its content)
|
34 |
+
*
|
35 |
+
* @var array
|
36 |
+
*/
|
37 |
+
protected $contentsMap = array();
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Constructor
|
41 |
+
*
|
42 |
+
* @param array $contentsMap Array of filename to contents map
|
43 |
+
* @param Less_SourceMap_Generator $generator
|
44 |
+
*/
|
45 |
+
public function __construct( array $contentsMap, $generator ) {
|
46 |
+
$this->contentsMap = $contentsMap;
|
47 |
+
$this->generator = $generator;
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Adds a chunk to the stack
|
52 |
+
* The $index for less.php may be different from less.js since less.php does not chunkify inputs
|
53 |
+
*
|
54 |
+
* @param string $chunk
|
55 |
+
* @param string $fileInfo
|
56 |
+
* @param integer $index
|
57 |
+
* @param mixed $mapLines
|
58 |
+
*/
|
59 |
+
public function add( $chunk, $fileInfo = null, $index = 0, $mapLines = null ) {
|
60 |
+
// ignore adding empty strings
|
61 |
+
if ( $chunk === '' ) {
|
62 |
+
return;
|
63 |
+
}
|
64 |
+
|
65 |
+
$sourceLines = array();
|
66 |
+
$sourceColumns = ' ';
|
67 |
+
|
68 |
+
if ( $fileInfo ) {
|
69 |
+
|
70 |
+
$url = $fileInfo['currentUri'];
|
71 |
+
|
72 |
+
if ( isset( $this->contentsMap[$url] ) ) {
|
73 |
+
$inputSource = substr( $this->contentsMap[$url], 0, $index );
|
74 |
+
$sourceLines = explode( "\n", $inputSource );
|
75 |
+
$sourceColumns = end( $sourceLines );
|
76 |
+
} else {
|
77 |
+
throw new Exception( 'Filename '.$url.' not in contentsMap' );
|
78 |
+
}
|
79 |
+
|
80 |
+
}
|
81 |
+
|
82 |
+
$lines = explode( "\n", $chunk );
|
83 |
+
$columns = end( $lines );
|
84 |
+
|
85 |
+
if ( $fileInfo ) {
|
86 |
+
|
87 |
+
if ( !$mapLines ) {
|
88 |
+
$this->generator->addMapping(
|
89 |
+
$this->lineNumber + 1, // generated_line
|
90 |
+
$this->column, // generated_column
|
91 |
+
count( $sourceLines ), // original_line
|
92 |
+
strlen( $sourceColumns ), // original_column
|
93 |
+
$fileInfo
|
94 |
+
);
|
95 |
+
} else {
|
96 |
+
for ( $i = 0, $count = count( $lines ); $i < $count; $i++ ) {
|
97 |
+
$this->generator->addMapping(
|
98 |
+
$this->lineNumber + $i + 1, // generated_line
|
99 |
+
$i === 0 ? $this->column : 0, // generated_column
|
100 |
+
count( $sourceLines ) + $i, // original_line
|
101 |
+
$i === 0 ? strlen( $sourceColumns ) : 0, // original_column
|
102 |
+
$fileInfo
|
103 |
+
);
|
104 |
+
}
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
if ( count( $lines ) === 1 ) {
|
109 |
+
$this->column += strlen( $columns );
|
110 |
+
} else {
|
111 |
+
$this->lineNumber += count( $lines ) - 1;
|
112 |
+
$this->column = strlen( $columns );
|
113 |
+
}
|
114 |
+
|
115 |
+
// add only chunk
|
116 |
+
parent::add( $chunk );
|
117 |
+
}
|
118 |
+
|
119 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Parser.php
ADDED
@@ -0,0 +1,2691 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once dirname( __FILE__ ).'/Cache.php';
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Class for parsing and compiling less files into css
|
7 |
+
*
|
8 |
+
* @package Less
|
9 |
+
* @subpackage parser
|
10 |
+
*
|
11 |
+
*/
|
12 |
+
class Less_Parser {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Default parser options
|
16 |
+
*/
|
17 |
+
public static $default_options = array(
|
18 |
+
'compress' => false, // option - whether to compress
|
19 |
+
'strictUnits' => false, // whether units need to evaluate correctly
|
20 |
+
'strictMath' => false, // whether math has to be within parenthesis
|
21 |
+
'relativeUrls' => true, // option - whether to adjust URL's to be relative
|
22 |
+
'urlArgs' => '', // whether to add args into url tokens
|
23 |
+
'numPrecision' => 8,
|
24 |
+
|
25 |
+
'import_dirs' => array(),
|
26 |
+
'import_callback' => null,
|
27 |
+
'cache_dir' => null,
|
28 |
+
'cache_method' => 'php', // false, 'serialize', 'php', 'var_export', 'callback';
|
29 |
+
'cache_callback_get' => null,
|
30 |
+
'cache_callback_set' => null,
|
31 |
+
|
32 |
+
'sourceMap' => false, // whether to output a source map
|
33 |
+
'sourceMapBasepath' => null,
|
34 |
+
'sourceMapWriteTo' => null,
|
35 |
+
'sourceMapURL' => null,
|
36 |
+
|
37 |
+
'indentation' => ' ',
|
38 |
+
|
39 |
+
'plugins' => array(),
|
40 |
+
|
41 |
+
);
|
42 |
+
|
43 |
+
public static $options = array();
|
44 |
+
|
45 |
+
private $input; // Less input string
|
46 |
+
private $input_len; // input string length
|
47 |
+
private $pos; // current index in `input`
|
48 |
+
private $saveStack = array(); // holds state for backtracking
|
49 |
+
private $furthest;
|
50 |
+
private $mb_internal_encoding = ''; // for remember exists value of mbstring.internal_encoding
|
51 |
+
|
52 |
+
/**
|
53 |
+
* @var Less_Environment
|
54 |
+
*/
|
55 |
+
private $env;
|
56 |
+
|
57 |
+
protected $rules = array();
|
58 |
+
|
59 |
+
private static $imports = array();
|
60 |
+
|
61 |
+
public static $has_extends = false;
|
62 |
+
|
63 |
+
public static $next_id = 0;
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Filename to contents of all parsed the files
|
67 |
+
*
|
68 |
+
* @var array
|
69 |
+
*/
|
70 |
+
public static $contentsMap = array();
|
71 |
+
|
72 |
+
/**
|
73 |
+
* @param Less_Environment|array|null $env
|
74 |
+
*/
|
75 |
+
public function __construct( $env = null ) {
|
76 |
+
// Top parser on an import tree must be sure there is one "env"
|
77 |
+
// which will then be passed around by reference.
|
78 |
+
if ( $env instanceof Less_Environment ) {
|
79 |
+
$this->env = $env;
|
80 |
+
} else {
|
81 |
+
$this->SetOptions( Less_Parser::$default_options );
|
82 |
+
$this->Reset( $env );
|
83 |
+
}
|
84 |
+
|
85 |
+
// mbstring.func_overload > 1 bugfix
|
86 |
+
// The encoding value must be set for each source file,
|
87 |
+
// therefore, to conserve resources and improve the speed of this design is taken here
|
88 |
+
if ( ini_get( 'mbstring.func_overload' ) ) {
|
89 |
+
$this->mb_internal_encoding = ini_get( 'mbstring.internal_encoding' );
|
90 |
+
@ini_set( 'mbstring.internal_encoding', 'ascii' );
|
91 |
+
}
|
92 |
+
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Reset the parser state completely
|
97 |
+
*
|
98 |
+
*/
|
99 |
+
public function Reset( $options = null ) {
|
100 |
+
$this->rules = array();
|
101 |
+
self::$imports = array();
|
102 |
+
self::$has_extends = false;
|
103 |
+
self::$imports = array();
|
104 |
+
self::$contentsMap = array();
|
105 |
+
|
106 |
+
$this->env = new Less_Environment( $options );
|
107 |
+
|
108 |
+
// set new options
|
109 |
+
if ( is_array( $options ) ) {
|
110 |
+
$this->SetOptions( Less_Parser::$default_options );
|
111 |
+
$this->SetOptions( $options );
|
112 |
+
}
|
113 |
+
|
114 |
+
$this->env->Init();
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Set one or more compiler options
|
119 |
+
* options: import_dirs, cache_dir, cache_method
|
120 |
+
*
|
121 |
+
*/
|
122 |
+
public function SetOptions( $options ) {
|
123 |
+
foreach ( $options as $option => $value ) {
|
124 |
+
$this->SetOption( $option, $value );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
+
/**
|
129 |
+
* Set one compiler option
|
130 |
+
*
|
131 |
+
*/
|
132 |
+
public function SetOption( $option, $value ) {
|
133 |
+
switch ( $option ) {
|
134 |
+
|
135 |
+
case 'import_dirs':
|
136 |
+
$this->SetImportDirs( $value );
|
137 |
+
return;
|
138 |
+
|
139 |
+
case 'cache_dir':
|
140 |
+
if ( is_string( $value ) ) {
|
141 |
+
Less_Cache::SetCacheDir( $value );
|
142 |
+
Less_Cache::CheckCacheDir();
|
143 |
+
}
|
144 |
+
return;
|
145 |
+
}
|
146 |
+
|
147 |
+
Less_Parser::$options[$option] = $value;
|
148 |
+
}
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Registers a new custom function
|
152 |
+
*
|
153 |
+
* @param string $name function name
|
154 |
+
* @param callable $callback callback
|
155 |
+
*/
|
156 |
+
public function registerFunction( $name, $callback ) {
|
157 |
+
$this->env->functions[$name] = $callback;
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Removed an already registered function
|
162 |
+
*
|
163 |
+
* @param string $name function name
|
164 |
+
*/
|
165 |
+
public function unregisterFunction( $name ) {
|
166 |
+
if ( isset( $this->env->functions[$name] ) )
|
167 |
+
unset( $this->env->functions[$name] );
|
168 |
+
}
|
169 |
+
|
170 |
+
/**
|
171 |
+
* Get the current css buffer
|
172 |
+
*
|
173 |
+
* @return string
|
174 |
+
*/
|
175 |
+
public function getCss() {
|
176 |
+
$precision = ini_get( 'precision' );
|
177 |
+
@ini_set( 'precision', 16 );
|
178 |
+
$locale = setlocale( LC_NUMERIC, 0 );
|
179 |
+
setlocale( LC_NUMERIC, "C" );
|
180 |
+
|
181 |
+
try {
|
182 |
+
|
183 |
+
$root = new Less_Tree_Ruleset( array(), $this->rules );
|
184 |
+
$root->root = true;
|
185 |
+
$root->firstRoot = true;
|
186 |
+
|
187 |
+
$this->PreVisitors( $root );
|
188 |
+
|
189 |
+
self::$has_extends = false;
|
190 |
+
$evaldRoot = $root->compile( $this->env );
|
191 |
+
|
192 |
+
$this->PostVisitors( $evaldRoot );
|
193 |
+
|
194 |
+
if ( Less_Parser::$options['sourceMap'] ) {
|
195 |
+
$generator = new Less_SourceMap_Generator( $evaldRoot, Less_Parser::$contentsMap, Less_Parser::$options );
|
196 |
+
// will also save file
|
197 |
+
// FIXME: should happen somewhere else?
|
198 |
+
$css = $generator->generateCSS();
|
199 |
+
} else {
|
200 |
+
$css = $evaldRoot->toCSS();
|
201 |
+
}
|
202 |
+
|
203 |
+
if ( Less_Parser::$options['compress'] ) {
|
204 |
+
$css = preg_replace( '/(^(\s)+)|((\s)+$)/', '', $css );
|
205 |
+
}
|
206 |
+
|
207 |
+
} catch ( Exception $exc ) {
|
208 |
+
// Intentional fall-through so we can reset environment
|
209 |
+
}
|
210 |
+
|
211 |
+
// reset php settings
|
212 |
+
@ini_set( 'precision', $precision );
|
213 |
+
setlocale( LC_NUMERIC, $locale );
|
214 |
+
|
215 |
+
// If you previously defined $this->mb_internal_encoding
|
216 |
+
// is required to return the encoding as it was before
|
217 |
+
if ( $this->mb_internal_encoding != '' ) {
|
218 |
+
@ini_set( "mbstring.internal_encoding", $this->mb_internal_encoding );
|
219 |
+
$this->mb_internal_encoding = '';
|
220 |
+
}
|
221 |
+
|
222 |
+
// Rethrow exception after we handled resetting the environment
|
223 |
+
if ( !empty( $exc ) ) {
|
224 |
+
throw $exc;
|
225 |
+
}
|
226 |
+
|
227 |
+
return $css;
|
228 |
+
}
|
229 |
+
|
230 |
+
public function findValueOf( $varName ) {
|
231 |
+
foreach ( $this->rules as $rule ) {
|
232 |
+
if ( isset( $rule->variable ) && ( $rule->variable == true ) && ( str_replace( "@", "", $rule->name ) == $varName ) ) {
|
233 |
+
return $this->getVariableValue( $rule );
|
234 |
+
}
|
235 |
+
}
|
236 |
+
return null;
|
237 |
+
}
|
238 |
+
|
239 |
+
/**
|
240 |
+
*
|
241 |
+
* this function gets the private rules variable and returns an array of the found variables
|
242 |
+
* it uses a helper method getVariableValue() that contains the logic ot fetch the value from the rule object
|
243 |
+
*
|
244 |
+
* @return array
|
245 |
+
*/
|
246 |
+
public function getVariables() {
|
247 |
+
$variables = array();
|
248 |
+
|
249 |
+
$not_variable_type = array(
|
250 |
+
'Comment', // this include less comments ( // ) and css comments (/* */)
|
251 |
+
'Import', // do not search variables in included files @import
|
252 |
+
'Ruleset', // selectors (.someclass, #someid, …)
|
253 |
+
'Operation', //
|
254 |
+
);
|
255 |
+
|
256 |
+
// @TODO run compilation if not runned yet
|
257 |
+
foreach ( $this->rules as $key => $rule ) {
|
258 |
+
if ( in_array( $rule->type, $not_variable_type ) ) {
|
259 |
+
continue;
|
260 |
+
}
|
261 |
+
|
262 |
+
// Note: it seems rule->type is always Rule when variable = true
|
263 |
+
if ( $rule->type == 'Rule' && $rule->variable ) {
|
264 |
+
$variables[$rule->name] = $this->getVariableValue( $rule );
|
265 |
+
} else {
|
266 |
+
if ( $rule->type == 'Comment' ) {
|
267 |
+
$variables[] = $this->getVariableValue( $rule );
|
268 |
+
}
|
269 |
+
}
|
270 |
+
}
|
271 |
+
return $variables;
|
272 |
+
}
|
273 |
+
|
274 |
+
public function findVarByName( $var_name ) {
|
275 |
+
foreach ( $this->rules as $rule ) {
|
276 |
+
if ( isset( $rule->variable ) && ( $rule->variable == true ) ) {
|
277 |
+
if ( $rule->name == $var_name ) {
|
278 |
+
return $this->getVariableValue( $rule );
|
279 |
+
}
|
280 |
+
}
|
281 |
+
}
|
282 |
+
return null;
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
*
|
287 |
+
* This method gets the value of the less variable from the rules object.
|
288 |
+
* Since the objects vary here we add the logic for extracting the css/less value.
|
289 |
+
*
|
290 |
+
* @param $var
|
291 |
+
*
|
292 |
+
* @return bool|string
|
293 |
+
*/
|
294 |
+
private function getVariableValue( $var ) {
|
295 |
+
if ( !is_a( $var, 'Less_Tree' ) ) {
|
296 |
+
throw new Exception( 'var is not a Less_Tree object' );
|
297 |
+
}
|
298 |
+
|
299 |
+
switch ( $var->type ) {
|
300 |
+
case 'Color':
|
301 |
+
return $this->rgb2html( $var->rgb );
|
302 |
+
case 'Unit':
|
303 |
+
return $var->value. $var->unit->numerator[0];
|
304 |
+
case 'Variable':
|
305 |
+
return $this->findVarByName( $var->name );
|
306 |
+
case 'Keyword':
|
307 |
+
return $var->value;
|
308 |
+
case 'Rule':
|
309 |
+
return $this->getVariableValue( $var->value );
|
310 |
+
case 'Value':
|
311 |
+
$value = '';
|
312 |
+
foreach ( $var->value as $sub_value ) {
|
313 |
+
$value .= $this->getVariableValue( $sub_value ).' ';
|
314 |
+
}
|
315 |
+
return $value;
|
316 |
+
case 'Quoted':
|
317 |
+
return $var->quote.$var->value.$var->quote;
|
318 |
+
case 'Dimension':
|
319 |
+
$value = $var->value;
|
320 |
+
if ( $var->unit && $var->unit->numerator ) {
|
321 |
+
$value .= $var->unit->numerator[0];
|
322 |
+
}
|
323 |
+
return $value;
|
324 |
+
case 'Expression':
|
325 |
+
$value = "";
|
326 |
+
foreach ( $var->value as $item ) {
|
327 |
+
$value .= $this->getVariableValue( $item )." ";
|
328 |
+
}
|
329 |
+
return $value;
|
330 |
+
case 'Operation':
|
331 |
+
throw new Exception( 'getVariables() require Less to be compiled. please use $parser->getCss() before calling getVariables()' );
|
332 |
+
case 'Comment':
|
333 |
+
case 'Import':
|
334 |
+
case 'Ruleset':
|
335 |
+
default:
|
336 |
+
throw new Exception( "type missing in switch/case getVariableValue for ".$var->type );
|
337 |
+
}
|
338 |
+
return false;
|
339 |
+
}
|
340 |
+
|
341 |
+
private function rgb2html( $r, $g = -1, $b = -1 ) {
|
342 |
+
if ( is_array( $r ) && sizeof( $r ) == 3 )
|
343 |
+
list( $r, $g, $b ) = $r;
|
344 |
+
|
345 |
+
$r = intval( $r ); $g = intval( $g );
|
346 |
+
$b = intval( $b );
|
347 |
+
|
348 |
+
$r = dechex( $r < 0 ? 0 : ( $r > 255 ? 255 : $r ) );
|
349 |
+
$g = dechex( $g < 0 ? 0 : ( $g > 255 ? 255 : $g ) );
|
350 |
+
$b = dechex( $b < 0 ? 0 : ( $b > 255 ? 255 : $b ) );
|
351 |
+
|
352 |
+
$color = ( strlen( $r ) < 2 ? '0' : '' ).$r;
|
353 |
+
$color .= ( strlen( $g ) < 2 ? '0' : '' ).$g;
|
354 |
+
$color .= ( strlen( $b ) < 2 ? '0' : '' ).$b;
|
355 |
+
return '#'.$color;
|
356 |
+
}
|
357 |
+
|
358 |
+
/**
|
359 |
+
* Run pre-compile visitors
|
360 |
+
*
|
361 |
+
*/
|
362 |
+
private function PreVisitors( $root ) {
|
363 |
+
if ( Less_Parser::$options['plugins'] ) {
|
364 |
+
foreach ( Less_Parser::$options['plugins'] as $plugin ) {
|
365 |
+
if ( !empty( $plugin->isPreEvalVisitor ) ) {
|
366 |
+
$plugin->run( $root );
|
367 |
+
}
|
368 |
+
}
|
369 |
+
}
|
370 |
+
}
|
371 |
+
|
372 |
+
/**
|
373 |
+
* Run post-compile visitors
|
374 |
+
*
|
375 |
+
*/
|
376 |
+
private function PostVisitors( $evaldRoot ) {
|
377 |
+
$visitors = array();
|
378 |
+
$visitors[] = new Less_Visitor_joinSelector();
|
379 |
+
if ( self::$has_extends ) {
|
380 |
+
$visitors[] = new Less_Visitor_processExtends();
|
381 |
+
}
|
382 |
+
$visitors[] = new Less_Visitor_toCSS();
|
383 |
+
|
384 |
+
if ( Less_Parser::$options['plugins'] ) {
|
385 |
+
foreach ( Less_Parser::$options['plugins'] as $plugin ) {
|
386 |
+
if ( property_exists( $plugin, 'isPreEvalVisitor' ) && $plugin->isPreEvalVisitor ) {
|
387 |
+
continue;
|
388 |
+
}
|
389 |
+
|
390 |
+
if ( property_exists( $plugin, 'isPreVisitor' ) && $plugin->isPreVisitor ) {
|
391 |
+
array_unshift( $visitors, $plugin );
|
392 |
+
} else {
|
393 |
+
$visitors[] = $plugin;
|
394 |
+
}
|
395 |
+
}
|
396 |
+
}
|
397 |
+
|
398 |
+
for ( $i = 0; $i < count( $visitors ); $i++ ) {
|
399 |
+
$visitors[$i]->run( $evaldRoot );
|
400 |
+
}
|
401 |
+
|
402 |
+
}
|
403 |
+
|
404 |
+
/**
|
405 |
+
* Parse a Less string into css
|
406 |
+
*
|
407 |
+
* @param string $str The string to convert
|
408 |
+
* @param string $uri_root The url of the file
|
409 |
+
* @return Less_Tree_Ruleset|Less_Parser
|
410 |
+
*/
|
411 |
+
public function parse( $str, $file_uri = null ) {
|
412 |
+
if ( !$file_uri ) {
|
413 |
+
$uri_root = '';
|
414 |
+
$filename = 'anonymous-file-'.Less_Parser::$next_id++.'.less';
|
415 |
+
} else {
|
416 |
+
$file_uri = self::WinPath( $file_uri );
|
417 |
+
$filename = $file_uri;
|
418 |
+
$uri_root = dirname( $file_uri );
|
419 |
+
}
|
420 |
+
|
421 |
+
$previousFileInfo = $this->env->currentFileInfo;
|
422 |
+
$uri_root = self::WinPath( $uri_root );
|
423 |
+
$this->SetFileInfo( $filename, $uri_root );
|
424 |
+
|
425 |
+
$this->input = $str;
|
426 |
+
$this->_parse();
|
427 |
+
|
428 |
+
if ( $previousFileInfo ) {
|
429 |
+
$this->env->currentFileInfo = $previousFileInfo;
|
430 |
+
}
|
431 |
+
|
432 |
+
return $this;
|
433 |
+
}
|
434 |
+
|
435 |
+
/**
|
436 |
+
* Parse a Less string from a given file
|
437 |
+
*
|
438 |
+
* @throws Less_Exception_Parser
|
439 |
+
* @param string $filename The file to parse
|
440 |
+
* @param string $uri_root The url of the file
|
441 |
+
* @param bool $returnRoot Indicates whether the return value should be a css string a root node
|
442 |
+
* @return Less_Tree_Ruleset|Less_Parser
|
443 |
+
*/
|
444 |
+
public function parseFile( $filename, $uri_root = '', $returnRoot = false ) {
|
445 |
+
if ( !file_exists( $filename ) ) {
|
446 |
+
$this->Error( sprintf( 'File `%s` not found.', $filename ) );
|
447 |
+
}
|
448 |
+
|
449 |
+
// fix uri_root?
|
450 |
+
// Instead of The mixture of file path for the first argument and directory path for the second argument has bee
|
451 |
+
if ( !$returnRoot && !empty( $uri_root ) && basename( $uri_root ) == basename( $filename ) ) {
|
452 |
+
$uri_root = dirname( $uri_root );
|
453 |
+
}
|
454 |
+
|
455 |
+
$previousFileInfo = $this->env->currentFileInfo;
|
456 |
+
|
457 |
+
if ( $filename ) {
|
458 |
+
$filename = self::AbsPath( $filename, true );
|
459 |
+
}
|
460 |
+
$uri_root = self::WinPath( $uri_root );
|
461 |
+
|
462 |
+
$this->SetFileInfo( $filename, $uri_root );
|
463 |
+
|
464 |
+
self::AddParsedFile( $filename );
|
465 |
+
|
466 |
+
if ( $returnRoot ) {
|
467 |
+
$rules = $this->GetRules( $filename );
|
468 |
+
$return = new Less_Tree_Ruleset( array(), $rules );
|
469 |
+
} else {
|
470 |
+
$this->_parse( $filename );
|
471 |
+
$return = $this;
|
472 |
+
}
|
473 |
+
|
474 |
+
if ( $previousFileInfo ) {
|
475 |
+
$this->env->currentFileInfo = $previousFileInfo;
|
476 |
+
}
|
477 |
+
|
478 |
+
return $return;
|
479 |
+
}
|
480 |
+
|
481 |
+
/**
|
482 |
+
* Allows a user to set variables values
|
483 |
+
* @param array $vars
|
484 |
+
* @return Less_Parser
|
485 |
+
*/
|
486 |
+
public function ModifyVars( $vars ) {
|
487 |
+
$this->input = Less_Parser::serializeVars( $vars );
|
488 |
+
$this->_parse();
|
489 |
+
|
490 |
+
return $this;
|
491 |
+
}
|
492 |
+
|
493 |
+
/**
|
494 |
+
* @param string $filename
|
495 |
+
*/
|
496 |
+
public function SetFileInfo( $filename, $uri_root = '' ) {
|
497 |
+
$filename = Less_Environment::normalizePath( $filename );
|
498 |
+
$dirname = preg_replace( '/[^\/\\\\]*$/', '', $filename );
|
499 |
+
|
500 |
+
if ( !empty( $uri_root ) ) {
|
501 |
+
$uri_root = rtrim( $uri_root, '/' ).'/';
|
502 |
+
}
|
503 |
+
|
504 |
+
$currentFileInfo = array();
|
505 |
+
|
506 |
+
// entry info
|
507 |
+
if ( isset( $this->env->currentFileInfo ) ) {
|
508 |
+
$currentFileInfo['entryPath'] = $this->env->currentFileInfo['entryPath'];
|
509 |
+
$currentFileInfo['entryUri'] = $this->env->currentFileInfo['entryUri'];
|
510 |
+
$currentFileInfo['rootpath'] = $this->env->currentFileInfo['rootpath'];
|
511 |
+
|
512 |
+
} else {
|
513 |
+
$currentFileInfo['entryPath'] = $dirname;
|
514 |
+
$currentFileInfo['entryUri'] = $uri_root;
|
515 |
+
$currentFileInfo['rootpath'] = $dirname;
|
516 |
+
}
|
517 |
+
|
518 |
+
$currentFileInfo['currentDirectory'] = $dirname;
|
519 |
+
$currentFileInfo['currentUri'] = $uri_root.basename( $filename );
|
520 |
+
$currentFileInfo['filename'] = $filename;
|
521 |
+
$currentFileInfo['uri_root'] = $uri_root;
|
522 |
+
|
523 |
+
// inherit reference
|
524 |
+
if ( isset( $this->env->currentFileInfo['reference'] ) && $this->env->currentFileInfo['reference'] ) {
|
525 |
+
$currentFileInfo['reference'] = true;
|
526 |
+
}
|
527 |
+
|
528 |
+
$this->env->currentFileInfo = $currentFileInfo;
|
529 |
+
}
|
530 |
+
|
531 |
+
/**
|
532 |
+
* @deprecated 1.5.1.2
|
533 |
+
*
|
534 |
+
*/
|
535 |
+
public function SetCacheDir( $dir ) {
|
536 |
+
if ( !file_exists( $dir ) ) {
|
537 |
+
if ( mkdir( $dir ) ) {
|
538 |
+
return true;
|
539 |
+
}
|
540 |
+
throw new Less_Exception_Parser( 'Less.php cache directory couldn\'t be created: '.$dir );
|
541 |
+
|
542 |
+
} elseif ( !is_dir( $dir ) ) {
|
543 |
+
throw new Less_Exception_Parser( 'Less.php cache directory doesn\'t exist: '.$dir );
|
544 |
+
|
545 |
+
} elseif ( !is_writable( $dir ) ) {
|
546 |
+
throw new Less_Exception_Parser( 'Less.php cache directory isn\'t writable: '.$dir );
|
547 |
+
|
548 |
+
} else {
|
549 |
+
$dir = self::WinPath( $dir );
|
550 |
+
Less_Cache::$cache_dir = rtrim( $dir, '/' ).'/';
|
551 |
+
return true;
|
552 |
+
}
|
553 |
+
}
|
554 |
+
|
555 |
+
/**
|
556 |
+
* Set a list of directories or callbacks the parser should use for determining import paths
|
557 |
+
*
|
558 |
+
* @param array $dirs
|
559 |
+
*/
|
560 |
+
public function SetImportDirs( $dirs ) {
|
561 |
+
Less_Parser::$options['import_dirs'] = array();
|
562 |
+
|
563 |
+
foreach ( $dirs as $path => $uri_root ) {
|
564 |
+
|
565 |
+
$path = self::WinPath( $path );
|
566 |
+
if ( !empty( $path ) ) {
|
567 |
+
$path = rtrim( $path, '/' ).'/';
|
568 |
+
}
|
569 |
+
|
570 |
+
if ( !is_callable( $uri_root ) ) {
|
571 |
+
$uri_root = self::WinPath( $uri_root );
|
572 |
+
if ( !empty( $uri_root ) ) {
|
573 |
+
$uri_root = rtrim( $uri_root, '/' ).'/';
|
574 |
+
}
|
575 |
+
}
|
576 |
+
|
577 |
+
Less_Parser::$options['import_dirs'][$path] = $uri_root;
|
578 |
+
}
|
579 |
+
}
|
580 |
+
|
581 |
+
/**
|
582 |
+
* @param string $file_path
|
583 |
+
*/
|
584 |
+
private function _parse( $file_path = null ) {
|
585 |
+
$this->rules = array_merge( $this->rules, $this->GetRules( $file_path ) );
|
586 |
+
}
|
587 |
+
|
588 |
+
/**
|
589 |
+
* Return the results of parsePrimary for $file_path
|
590 |
+
* Use cache and save cached results if possible
|
591 |
+
*
|
592 |
+
* @param string|null $file_path
|
593 |
+
*/
|
594 |
+
private function GetRules( $file_path ) {
|
595 |
+
$this->SetInput( $file_path );
|
596 |
+
|
597 |
+
$cache_file = $this->CacheFile( $file_path );
|
598 |
+
if ( $cache_file ) {
|
599 |
+
if ( Less_Parser::$options['cache_method'] == 'callback' ) {
|
600 |
+
if ( is_callable( Less_Parser::$options['cache_callback_get'] ) ) {
|
601 |
+
$cache = call_user_func_array(
|
602 |
+
Less_Parser::$options['cache_callback_get'],
|
603 |
+
array( $this, $file_path, $cache_file )
|
604 |
+
);
|
605 |
+
|
606 |
+
if ( $cache ) {
|
607 |
+
$this->UnsetInput();
|
608 |
+
return $cache;
|
609 |
+
}
|
610 |
+
}
|
611 |
+
|
612 |
+
} elseif ( file_exists( $cache_file ) ) {
|
613 |
+
switch ( Less_Parser::$options['cache_method'] ) {
|
614 |
+
|
615 |
+
// Using serialize
|
616 |
+
// Faster but uses more memory
|
617 |
+
case 'serialize':
|
618 |
+
$cache = unserialize( file_get_contents( $cache_file ) );
|
619 |
+
if ( $cache ) {
|
620 |
+
touch( $cache_file );
|
621 |
+
$this->UnsetInput();
|
622 |
+
return $cache;
|
623 |
+
}
|
624 |
+
break;
|
625 |
+
|
626 |
+
// Using generated php code
|
627 |
+
case 'var_export':
|
628 |
+
case 'php':
|
629 |
+
$this->UnsetInput();
|
630 |
+
return include $cache_file;
|
631 |
+
}
|
632 |
+
}
|
633 |
+
}
|
634 |
+
|
635 |
+
$rules = $this->parsePrimary();
|
636 |
+
|
637 |
+
if ( $this->pos < $this->input_len ) {
|
638 |
+
throw new Less_Exception_Chunk( $this->input, null, $this->furthest, $this->env->currentFileInfo );
|
639 |
+
}
|
640 |
+
|
641 |
+
$this->UnsetInput();
|
642 |
+
|
643 |
+
// save the cache
|
644 |
+
if ( $cache_file ) {
|
645 |
+
if ( Less_Parser::$options['cache_method'] == 'callback' ) {
|
646 |
+
if ( is_callable( Less_Parser::$options['cache_callback_set'] ) ) {
|
647 |
+
call_user_func_array(
|
648 |
+
Less_Parser::$options['cache_callback_set'],
|
649 |
+
array( $this, $file_path, $cache_file, $rules )
|
650 |
+
);
|
651 |
+
}
|
652 |
+
|
653 |
+
} else {
|
654 |
+
// msg('write cache file');
|
655 |
+
switch ( Less_Parser::$options['cache_method'] ) {
|
656 |
+
case 'serialize':
|
657 |
+
file_put_contents( $cache_file, serialize( $rules ) );
|
658 |
+
break;
|
659 |
+
case 'php':
|
660 |
+
file_put_contents( $cache_file, '<?php return '.self::ArgString( $rules ).'; ?>' );
|
661 |
+
break;
|
662 |
+
case 'var_export':
|
663 |
+
// Requires __set_state()
|
664 |
+
file_put_contents( $cache_file, '<?php return '.var_export( $rules, true ).'; ?>' );
|
665 |
+
break;
|
666 |
+
}
|
667 |
+
|
668 |
+
Less_Cache::CleanCache();
|
669 |
+
}
|
670 |
+
}
|
671 |
+
|
672 |
+
return $rules;
|
673 |
+
}
|
674 |
+
|
675 |
+
/**
|
676 |
+
* Set up the input buffer
|
677 |
+
*
|
678 |
+
*/
|
679 |
+
public function SetInput( $file_path ) {
|
680 |
+
if ( $file_path ) {
|
681 |
+
$this->input = file_get_contents( $file_path );
|
682 |
+
}
|
683 |
+
|
684 |
+
$this->pos = $this->furthest = 0;
|
685 |
+
|
686 |
+
// Remove potential UTF Byte Order Mark
|
687 |
+
$this->input = preg_replace( '/\\G\xEF\xBB\xBF/', '', $this->input );
|
688 |
+
$this->input_len = strlen( $this->input );
|
689 |
+
|
690 |
+
if ( Less_Parser::$options['sourceMap'] && $this->env->currentFileInfo ) {
|
691 |
+
$uri = $this->env->currentFileInfo['currentUri'];
|
692 |
+
Less_Parser::$contentsMap[$uri] = $this->input;
|
693 |
+
}
|
694 |
+
|
695 |
+
}
|
696 |
+
|
697 |
+
/**
|
698 |
+
* Free up some memory
|
699 |
+
*
|
700 |
+
*/
|
701 |
+
public function UnsetInput() {
|
702 |
+
unset( $this->input, $this->pos, $this->input_len, $this->furthest );
|
703 |
+
$this->saveStack = array();
|
704 |
+
}
|
705 |
+
|
706 |
+
public function CacheFile( $file_path ) {
|
707 |
+
if ( $file_path && $this->CacheEnabled() ) {
|
708 |
+
|
709 |
+
$env = get_object_vars( $this->env );
|
710 |
+
unset( $env['frames'] );
|
711 |
+
|
712 |
+
$parts = array();
|
713 |
+
$parts[] = $file_path;
|
714 |
+
$parts[] = filesize( $file_path );
|
715 |
+
$parts[] = filemtime( $file_path );
|
716 |
+
$parts[] = $env;
|
717 |
+
$parts[] = Less_Version::cache_version;
|
718 |
+
$parts[] = Less_Parser::$options['cache_method'];
|
719 |
+
return Less_Cache::$cache_dir . Less_Cache::$prefix . base_convert( sha1( json_encode( $parts ) ), 16, 36 ) . '.lesscache';
|
720 |
+
}
|
721 |
+
}
|
722 |
+
|
723 |
+
static function AddParsedFile( $file ) {
|
724 |
+
self::$imports[] = $file;
|
725 |
+
}
|
726 |
+
|
727 |
+
static function AllParsedFiles() {
|
728 |
+
return self::$imports;
|
729 |
+
}
|
730 |
+
|
731 |
+
/**
|
732 |
+
* @param string $file
|
733 |
+
*/
|
734 |
+
static function FileParsed( $file ) {
|
735 |
+
return in_array( $file, self::$imports );
|
736 |
+
}
|
737 |
+
|
738 |
+
function save() {
|
739 |
+
$this->saveStack[] = $this->pos;
|
740 |
+
}
|
741 |
+
|
742 |
+
private function restore() {
|
743 |
+
$this->pos = array_pop( $this->saveStack );
|
744 |
+
}
|
745 |
+
|
746 |
+
private function forget() {
|
747 |
+
array_pop( $this->saveStack );
|
748 |
+
}
|
749 |
+
|
750 |
+
/**
|
751 |
+
* Determine if the character at the specified offset from the current position is a white space.
|
752 |
+
*
|
753 |
+
* @param int $offset
|
754 |
+
*
|
755 |
+
* @return bool
|
756 |
+
*/
|
757 |
+
private function isWhitespace( $offset = 0 ) {
|
758 |
+
return strpos( " \t\n\r\v\f", $this->input[$this->pos + $offset] ) !== false;
|
759 |
+
}
|
760 |
+
|
761 |
+
/**
|
762 |
+
* Parse from a token, regexp or string, and move forward if match
|
763 |
+
*
|
764 |
+
* @param array $toks
|
765 |
+
* @return array
|
766 |
+
*/
|
767 |
+
private function match( $toks ) {
|
768 |
+
// The match is confirmed, add the match length to `this::pos`,
|
769 |
+
// and consume any extra white-space characters (' ' || '\n')
|
770 |
+
// which come after that. The reason for this is that LeSS's
|
771 |
+
// grammar is mostly white-space insensitive.
|
772 |
+
//
|
773 |
+
|
774 |
+
foreach ( $toks as $tok ) {
|
775 |
+
|
776 |
+
$char = $tok[0];
|
777 |
+
|
778 |
+
if ( $char === '/' ) {
|
779 |
+
$match = $this->MatchReg( $tok );
|
780 |
+
|
781 |
+
if ( $match ) {
|
782 |
+
return count( $match ) === 1 ? $match[0] : $match;
|
783 |
+
}
|
784 |
+
|
785 |
+
} elseif ( $char === '#' ) {
|
786 |
+
$match = $this->MatchChar( $tok[1] );
|
787 |
+
|
788 |
+
} else {
|
789 |
+
// Non-terminal, match using a function call
|
790 |
+
$match = $this->$tok();
|
791 |
+
|
792 |
+
}
|
793 |
+
|
794 |
+
if ( $match ) {
|
795 |
+
return $match;
|
796 |
+
}
|
797 |
+
}
|
798 |
+
}
|
799 |
+
|
800 |
+
/**
|
801 |
+
* @param string[] $toks
|
802 |
+
*
|
803 |
+
* @return string
|
804 |
+
*/
|
805 |
+
private function MatchFuncs( $toks ) {
|
806 |
+
if ( $this->pos < $this->input_len ) {
|
807 |
+
foreach ( $toks as $tok ) {
|
808 |
+
$match = $this->$tok();
|
809 |
+
if ( $match ) {
|
810 |
+
return $match;
|
811 |
+
}
|
812 |
+
}
|
813 |
+
}
|
814 |
+
|
815 |
+
}
|
816 |
+
|
817 |
+
// Match a single character in the input,
|
818 |
+
private function MatchChar( $tok ) {
|
819 |
+
if ( ( $this->pos < $this->input_len ) && ( $this->input[$this->pos] === $tok ) ) {
|
820 |
+
$this->skipWhitespace( 1 );
|
821 |
+
return $tok;
|
822 |
+
}
|
823 |
+
}
|
824 |
+
|
825 |
+
// Match a regexp from the current start point
|
826 |
+
private function MatchReg( $tok ) {
|
827 |
+
if ( preg_match( $tok, $this->input, $match, 0, $this->pos ) ) {
|
828 |
+
$this->skipWhitespace( strlen( $match[0] ) );
|
829 |
+
return $match;
|
830 |
+
}
|
831 |
+
}
|
832 |
+
|
833 |
+
/**
|
834 |
+
* Same as match(), but don't change the state of the parser,
|
835 |
+
* just return the match.
|
836 |
+
*
|
837 |
+
* @param string $tok
|
838 |
+
* @return integer
|
839 |
+
*/
|
840 |
+
public function PeekReg( $tok ) {
|
841 |
+
return preg_match( $tok, $this->input, $match, 0, $this->pos );
|
842 |
+
}
|
843 |
+
|
844 |
+
/**
|
845 |
+
* @param string $tok
|
846 |
+
*/
|
847 |
+
public function PeekChar( $tok ) {
|
848 |
+
// return ($this->input[$this->pos] === $tok );
|
849 |
+
return ( $this->pos < $this->input_len ) && ( $this->input[$this->pos] === $tok );
|
850 |
+
}
|
851 |
+
|
852 |
+
/**
|
853 |
+
* @param integer $length
|
854 |
+
*/
|
855 |
+
public function skipWhitespace( $length ) {
|
856 |
+
$this->pos += $length;
|
857 |
+
|
858 |
+
for ( ; $this->pos < $this->input_len; $this->pos++ ) {
|
859 |
+
$c = $this->input[$this->pos];
|
860 |
+
|
861 |
+
if ( ( $c !== "\n" ) && ( $c !== "\r" ) && ( $c !== "\t" ) && ( $c !== ' ' ) ) {
|
862 |
+
break;
|
863 |
+
}
|
864 |
+
}
|
865 |
+
}
|
866 |
+
|
867 |
+
/**
|
868 |
+
* @param string $tok
|
869 |
+
* @param string|null $msg
|
870 |
+
*/
|
871 |
+
public function expect( $tok, $msg = NULL ) {
|
872 |
+
$result = $this->match( array( $tok ) );
|
873 |
+
if ( !$result ) {
|
874 |
+
$this->Error( $msg ? "Expected '" . $tok . "' got '" . $this->input[$this->pos] . "'" : $msg );
|
875 |
+
} else {
|
876 |
+
return $result;
|
877 |
+
}
|
878 |
+
}
|
879 |
+
|
880 |
+
/**
|
881 |
+
* @param string $tok
|
882 |
+
*/
|
883 |
+
public function expectChar( $tok, $msg = null ) {
|
884 |
+
$result = $this->MatchChar( $tok );
|
885 |
+
if ( !$result ) {
|
886 |
+
$msg = $msg ? $msg : "Expected '" . $tok . "' got '" . $this->input[$this->pos] . "'";
|
887 |
+
$this->Error( $msg );
|
888 |
+
} else {
|
889 |
+
return $result;
|
890 |
+
}
|
891 |
+
}
|
892 |
+
|
893 |
+
//
|
894 |
+
// Here in, the parsing rules/functions
|
895 |
+
//
|
896 |
+
// The basic structure of the syntax tree generated is as follows:
|
897 |
+
//
|
898 |
+
// Ruleset -> Rule -> Value -> Expression -> Entity
|
899 |
+
//
|
900 |
+
// Here's some LESS code:
|
901 |
+
//
|
902 |
+
// .class {
|
903 |
+
// color: #fff;
|
904 |
+
// border: 1px solid #000;
|
905 |
+
// width: @w + 4px;
|
906 |
+
// > .child {...}
|
907 |
+
// }
|
908 |
+
//
|
909 |
+
// And here's what the parse tree might look like:
|
910 |
+
//
|
911 |
+
// Ruleset (Selector '.class', [
|
912 |
+
// Rule ("color", Value ([Expression [Color #fff]]))
|
913 |
+
// Rule ("border", Value ([Expression [Dimension 1px][Keyword "solid"][Color #000]]))
|
914 |
+
// Rule ("width", Value ([Expression [Operation "+" [Variable "@w"][Dimension 4px]]]))
|
915 |
+
// Ruleset (Selector [Element '>', '.child'], [...])
|
916 |
+
// ])
|
917 |
+
//
|
918 |
+
// In general, most rules will try to parse a token with the `$()` function, and if the return
|
919 |
+
// value is truly, will return a new node, of the relevant type. Sometimes, we need to check
|
920 |
+
// first, before parsing, that's when we use `peek()`.
|
921 |
+
//
|
922 |
+
|
923 |
+
//
|
924 |
+
// The `primary` rule is the *entry* and *exit* point of the parser.
|
925 |
+
// The rules here can appear at any level of the parse tree.
|
926 |
+
//
|
927 |
+
// The recursive nature of the grammar is an interplay between the `block`
|
928 |
+
// rule, which represents `{ ... }`, the `ruleset` rule, and this `primary` rule,
|
929 |
+
// as represented by this simplified grammar:
|
930 |
+
//
|
931 |
+
// primary → (ruleset | rule)+
|
932 |
+
// ruleset → selector+ block
|
933 |
+
// block → '{' primary '}'
|
934 |
+
//
|
935 |
+
// Only at one point is the primary rule not called from the
|
936 |
+
// block rule: at the root level.
|
937 |
+
//
|
938 |
+
private function parsePrimary() {
|
939 |
+
$root = array();
|
940 |
+
|
941 |
+
while ( true ) {
|
942 |
+
|
943 |
+
if ( $this->pos >= $this->input_len ) {
|
944 |
+
break;
|
945 |
+
}
|
946 |
+
|
947 |
+
$node = $this->parseExtend( true );
|
948 |
+
if ( $node ) {
|
949 |
+
$root = array_merge( $root, $node );
|
950 |
+
continue;
|
951 |
+
}
|
952 |
+
|
953 |
+
// $node = $this->MatchFuncs( array( 'parseMixinDefinition', 'parseRule', 'parseRuleset', 'parseMixinCall', 'parseComment', 'parseDirective'));
|
954 |
+
$node = $this->MatchFuncs( array( 'parseMixinDefinition', 'parseNameValue', 'parseRule', 'parseRuleset', 'parseMixinCall', 'parseComment', 'parseRulesetCall', 'parseDirective' ) );
|
955 |
+
|
956 |
+
if ( $node ) {
|
957 |
+
$root[] = $node;
|
958 |
+
} elseif ( !$this->MatchReg( '/\\G[\s\n;]+/' ) ) {
|
959 |
+
break;
|
960 |
+
}
|
961 |
+
|
962 |
+
if ( $this->PeekChar( '}' ) ) {
|
963 |
+
break;
|
964 |
+
}
|
965 |
+
}
|
966 |
+
|
967 |
+
return $root;
|
968 |
+
}
|
969 |
+
|
970 |
+
// We create a Comment node for CSS comments `/* */`,
|
971 |
+
// but keep the LeSS comments `//` silent, by just skipping
|
972 |
+
// over them.
|
973 |
+
private function parseComment() {
|
974 |
+
if ( $this->input[$this->pos] !== '/' ) {
|
975 |
+
return;
|
976 |
+
}
|
977 |
+
|
978 |
+
if ( $this->input[$this->pos + 1] === '/' ) {
|
979 |
+
$match = $this->MatchReg( '/\\G\/\/.*/' );
|
980 |
+
return $this->NewObj4( 'Less_Tree_Comment', array( $match[0], true, $this->pos, $this->env->currentFileInfo ) );
|
981 |
+
}
|
982 |
+
|
983 |
+
// $comment = $this->MatchReg('/\\G\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/');
|
984 |
+
$comment = $this->MatchReg( '/\\G\/\*(?s).*?\*+\/\n?/' );// not the same as less.js to prevent fatal errors
|
985 |
+
if ( $comment ) {
|
986 |
+
return $this->NewObj4( 'Less_Tree_Comment', array( $comment[0], false, $this->pos, $this->env->currentFileInfo ) );
|
987 |
+
}
|
988 |
+
}
|
989 |
+
|
990 |
+
private function parseComments() {
|
991 |
+
$comments = array();
|
992 |
+
|
993 |
+
while ( $this->pos < $this->input_len ) {
|
994 |
+
$comment = $this->parseComment();
|
995 |
+
if ( !$comment ) {
|
996 |
+
break;
|
997 |
+
}
|
998 |
+
|
999 |
+
$comments[] = $comment;
|
1000 |
+
}
|
1001 |
+
|
1002 |
+
return $comments;
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
//
|
1006 |
+
// A string, which supports escaping " and '
|
1007 |
+
//
|
1008 |
+
// "milky way" 'he\'s the one!'
|
1009 |
+
//
|
1010 |
+
private function parseEntitiesQuoted() {
|
1011 |
+
$j = $this->pos;
|
1012 |
+
$e = false;
|
1013 |
+
$index = $this->pos;
|
1014 |
+
|
1015 |
+
if ( $this->input[$this->pos] === '~' ) {
|
1016 |
+
$j++;
|
1017 |
+
$e = true; // Escaped strings
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
$char = $this->input[$j];
|
1021 |
+
if ( $char !== '"' && $char !== "'" ) {
|
1022 |
+
return;
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
if ( $e ) {
|
1026 |
+
$this->MatchChar( '~' );
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
$matched = $this->MatchQuoted( $char, $j + 1 );
|
1030 |
+
if ( $matched === false ) {
|
1031 |
+
return;
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
$quoted = $char.$matched.$char;
|
1035 |
+
return $this->NewObj5( 'Less_Tree_Quoted', array( $quoted, $matched, $e, $index, $this->env->currentFileInfo ) );
|
1036 |
+
}
|
1037 |
+
|
1038 |
+
/**
|
1039 |
+
* When PCRE JIT is enabled in php, regular expressions don't work for matching quoted strings
|
1040 |
+
*
|
1041 |
+
* $regex = '/\\G\'((?:[^\'\\\\\r\n]|\\\\.|\\\\\r\n|\\\\[\n\r\f])*)\'/';
|
1042 |
+
* $regex = '/\\G"((?:[^"\\\\\r\n]|\\\\.|\\\\\r\n|\\\\[\n\r\f])*)"/';
|
1043 |
+
*
|
1044 |
+
*/
|
1045 |
+
private function MatchQuoted( $quote_char, $i ) {
|
1046 |
+
$matched = '';
|
1047 |
+
while ( $i < $this->input_len ) {
|
1048 |
+
$c = $this->input[$i];
|
1049 |
+
|
1050 |
+
// escaped character
|
1051 |
+
if ( $c === '\\' ) {
|
1052 |
+
$matched .= $c . $this->input[$i + 1];
|
1053 |
+
$i += 2;
|
1054 |
+
continue;
|
1055 |
+
}
|
1056 |
+
|
1057 |
+
if ( $c === $quote_char ) {
|
1058 |
+
$this->pos = $i + 1;
|
1059 |
+
$this->skipWhitespace( 0 );
|
1060 |
+
return $matched;
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
if ( $c === "\r" || $c === "\n" ) {
|
1064 |
+
return false;
|
1065 |
+
}
|
1066 |
+
|
1067 |
+
$i++;
|
1068 |
+
$matched .= $c;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
return false;
|
1072 |
+
}
|
1073 |
+
|
1074 |
+
//
|
1075 |
+
// A catch-all word, such as:
|
1076 |
+
//
|
1077 |
+
// black border-collapse
|
1078 |
+
//
|
1079 |
+
private function parseEntitiesKeyword() {
|
1080 |
+
// $k = $this->MatchReg('/\\G[_A-Za-z-][_A-Za-z0-9-]*/');
|
1081 |
+
$k = $this->MatchReg( '/\\G%|\\G[_A-Za-z-][_A-Za-z0-9-]*/' );
|
1082 |
+
if ( $k ) {
|
1083 |
+
$k = $k[0];
|
1084 |
+
$color = $this->fromKeyword( $k );
|
1085 |
+
if ( $color ) {
|
1086 |
+
return $color;
|
1087 |
+
}
|
1088 |
+
return $this->NewObj1( 'Less_Tree_Keyword', $k );
|
1089 |
+
}
|
1090 |
+
}
|
1091 |
+
|
1092 |
+
// duplicate of Less_Tree_Color::FromKeyword
|
1093 |
+
private function FromKeyword( $keyword ) {
|
1094 |
+
$keyword = strtolower( $keyword );
|
1095 |
+
|
1096 |
+
if ( Less_Colors::hasOwnProperty( $keyword ) ) {
|
1097 |
+
// detect named color
|
1098 |
+
return $this->NewObj1( 'Less_Tree_Color', substr( Less_Colors::color( $keyword ), 1 ) );
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
if ( $keyword === 'transparent' ) {
|
1102 |
+
return $this->NewObj3( 'Less_Tree_Color', array( array( 0, 0, 0 ), 0, true ) );
|
1103 |
+
}
|
1104 |
+
}
|
1105 |
+
|
1106 |
+
//
|
1107 |
+
// A function call
|
1108 |
+
//
|
1109 |
+
// rgb(255, 0, 255)
|
1110 |
+
//
|
1111 |
+
// We also try to catch IE's `alpha()`, but let the `alpha` parser
|
1112 |
+
// deal with the details.
|
1113 |
+
//
|
1114 |
+
// The arguments are parsed with the `entities.arguments` parser.
|
1115 |
+
//
|
1116 |
+
private function parseEntitiesCall() {
|
1117 |
+
$index = $this->pos;
|
1118 |
+
|
1119 |
+
if ( !preg_match( '/\\G([\w-]+|%|progid:[\w\.]+)\(/', $this->input, $name, 0, $this->pos ) ) {
|
1120 |
+
return;
|
1121 |
+
}
|
1122 |
+
$name = $name[1];
|
1123 |
+
$nameLC = strtolower( $name );
|
1124 |
+
|
1125 |
+
if ( $nameLC === 'url' ) {
|
1126 |
+
return null;
|
1127 |
+
}
|
1128 |
+
|
1129 |
+
$this->pos += strlen( $name );
|
1130 |
+
|
1131 |
+
if ( $nameLC === 'alpha' ) {
|
1132 |
+
$alpha_ret = $this->parseAlpha();
|
1133 |
+
if ( $alpha_ret ) {
|
1134 |
+
return $alpha_ret;
|
1135 |
+
}
|
1136 |
+
}
|
1137 |
+
|
1138 |
+
$this->MatchChar( '(' ); // Parse the '(' and consume whitespace.
|
1139 |
+
|
1140 |
+
$args = $this->parseEntitiesArguments();
|
1141 |
+
|
1142 |
+
if ( !$this->MatchChar( ')' ) ) {
|
1143 |
+
return;
|
1144 |
+
}
|
1145 |
+
|
1146 |
+
if ( $name ) {
|
1147 |
+
return $this->NewObj4( 'Less_Tree_Call', array( $name, $args, $index, $this->env->currentFileInfo ) );
|
1148 |
+
}
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
/**
|
1152 |
+
* Parse a list of arguments
|
1153 |
+
*
|
1154 |
+
* @return array
|
1155 |
+
*/
|
1156 |
+
private function parseEntitiesArguments() {
|
1157 |
+
$args = array();
|
1158 |
+
while ( true ) {
|
1159 |
+
$arg = $this->MatchFuncs( array( 'parseEntitiesAssignment','parseExpression' ) );
|
1160 |
+
if ( !$arg ) {
|
1161 |
+
break;
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
$args[] = $arg;
|
1165 |
+
if ( !$this->MatchChar( ',' ) ) {
|
1166 |
+
break;
|
1167 |
+
}
|
1168 |
+
}
|
1169 |
+
return $args;
|
1170 |
+
}
|
1171 |
+
|
1172 |
+
private function parseEntitiesLiteral() {
|
1173 |
+
return $this->MatchFuncs( array( 'parseEntitiesDimension','parseEntitiesColor','parseEntitiesQuoted','parseUnicodeDescriptor' ) );
|
1174 |
+
}
|
1175 |
+
|
1176 |
+
// Assignments are argument entities for calls.
|
1177 |
+
// They are present in ie filter properties as shown below.
|
1178 |
+
//
|
1179 |
+
// filter: progid:DXImageTransform.Microsoft.Alpha( *opacity=50* )
|
1180 |
+
//
|
1181 |
+
private function parseEntitiesAssignment() {
|
1182 |
+
$key = $this->MatchReg( '/\\G\w+(?=\s?=)/' );
|
1183 |
+
if ( !$key ) {
|
1184 |
+
return;
|
1185 |
+
}
|
1186 |
+
|
1187 |
+
if ( !$this->MatchChar( '=' ) ) {
|
1188 |
+
return;
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
$value = $this->parseEntity();
|
1192 |
+
if ( $value ) {
|
1193 |
+
return $this->NewObj2( 'Less_Tree_Assignment', array( $key[0], $value ) );
|
1194 |
+
}
|
1195 |
+
}
|
1196 |
+
|
1197 |
+
//
|
1198 |
+
// Parse url() tokens
|
1199 |
+
//
|
1200 |
+
// We use a specific rule for urls, because they don't really behave like
|
1201 |
+
// standard function calls. The difference is that the argument doesn't have
|
1202 |
+
// to be enclosed within a string, so it can't be parsed as an Expression.
|
1203 |
+
//
|
1204 |
+
private function parseEntitiesUrl() {
|
1205 |
+
if ( $this->input[$this->pos] !== 'u' || !$this->matchReg( '/\\Gurl\(/' ) ) {
|
1206 |
+
return;
|
1207 |
+
}
|
1208 |
+
|
1209 |
+
$value = $this->match( array( 'parseEntitiesQuoted','parseEntitiesVariable','/\\Gdata\:.*?[^\)]+/','/\\G(?:(?:\\\\[\(\)\'"])|[^\(\)\'"])+/' ) );
|
1210 |
+
if ( !$value ) {
|
1211 |
+
$value = '';
|
1212 |
+
}
|
1213 |
+
|
1214 |
+
$this->expectChar( ')' );
|
1215 |
+
|
1216 |
+
if ( isset( $value->value ) || $value instanceof Less_Tree_Variable ) {
|
1217 |
+
return $this->NewObj2( 'Less_Tree_Url', array( $value, $this->env->currentFileInfo ) );
|
1218 |
+
}
|
1219 |
+
|
1220 |
+
return $this->NewObj2( 'Less_Tree_Url', array( $this->NewObj1( 'Less_Tree_Anonymous', $value ), $this->env->currentFileInfo ) );
|
1221 |
+
}
|
1222 |
+
|
1223 |
+
//
|
1224 |
+
// A Variable entity, such as `@fink`, in
|
1225 |
+
//
|
1226 |
+
// width: @fink + 2px
|
1227 |
+
//
|
1228 |
+
// We use a different parser for variable definitions,
|
1229 |
+
// see `parsers.variable`.
|
1230 |
+
//
|
1231 |
+
private function parseEntitiesVariable() {
|
1232 |
+
$index = $this->pos;
|
1233 |
+
if ( $this->PeekChar( '@' ) && ( $name = $this->MatchReg( '/\\G@@?[\w-]+/' ) ) ) {
|
1234 |
+
return $this->NewObj3( 'Less_Tree_Variable', array( $name[0], $index, $this->env->currentFileInfo ) );
|
1235 |
+
}
|
1236 |
+
}
|
1237 |
+
|
1238 |
+
// A variable entity using the protective {} e.g. @{var}
|
1239 |
+
private function parseEntitiesVariableCurly() {
|
1240 |
+
$index = $this->pos;
|
1241 |
+
|
1242 |
+
if ( $this->input_len > ( $this->pos + 1 ) && $this->input[$this->pos] === '@' && ( $curly = $this->MatchReg( '/\\G@\{([\w-]+)\}/' ) ) ) {
|
1243 |
+
return $this->NewObj3( 'Less_Tree_Variable', array( '@'.$curly[1], $index, $this->env->currentFileInfo ) );
|
1244 |
+
}
|
1245 |
+
}
|
1246 |
+
|
1247 |
+
//
|
1248 |
+
// A Hexadecimal color
|
1249 |
+
//
|
1250 |
+
// #4F3C2F
|
1251 |
+
//
|
1252 |
+
// `rgb` and `hsl` colors are parsed through the `entities.call` parser.
|
1253 |
+
//
|
1254 |
+
private function parseEntitiesColor() {
|
1255 |
+
if ( $this->PeekChar( '#' ) && ( $rgb = $this->MatchReg( '/\\G#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/' ) ) ) {
|
1256 |
+
return $this->NewObj1( 'Less_Tree_Color', $rgb[1] );
|
1257 |
+
}
|
1258 |
+
}
|
1259 |
+
|
1260 |
+
//
|
1261 |
+
// A Dimension, that is, a number and a unit
|
1262 |
+
//
|
1263 |
+
// 0.5em 95%
|
1264 |
+
//
|
1265 |
+
private function parseEntitiesDimension() {
|
1266 |
+
$c = @ord( $this->input[$this->pos] );
|
1267 |
+
|
1268 |
+
// Is the first char of the dimension 0-9, '.', '+' or '-'
|
1269 |
+
if ( ( $c > 57 || $c < 43 ) || $c === 47 || $c == 44 ) {
|
1270 |
+
return;
|
1271 |
+
}
|
1272 |
+
|
1273 |
+
$value = $this->MatchReg( '/\\G([+-]?\d*\.?\d+)(%|[a-z]+)?/' );
|
1274 |
+
if ( $value ) {
|
1275 |
+
|
1276 |
+
if ( isset( $value[2] ) ) {
|
1277 |
+
return $this->NewObj2( 'Less_Tree_Dimension', array( $value[1],$value[2] ) );
|
1278 |
+
}
|
1279 |
+
return $this->NewObj1( 'Less_Tree_Dimension', $value[1] );
|
1280 |
+
}
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
//
|
1284 |
+
// A unicode descriptor, as is used in unicode-range
|
1285 |
+
//
|
1286 |
+
// U+0?? or U+00A1-00A9
|
1287 |
+
//
|
1288 |
+
function parseUnicodeDescriptor() {
|
1289 |
+
$ud = $this->MatchReg( '/\\G(U\+[0-9a-fA-F?]+)(\-[0-9a-fA-F?]+)?/' );
|
1290 |
+
if ( $ud ) {
|
1291 |
+
return $this->NewObj1( 'Less_Tree_UnicodeDescriptor', $ud[0] );
|
1292 |
+
}
|
1293 |
+
}
|
1294 |
+
|
1295 |
+
//
|
1296 |
+
// JavaScript code to be evaluated
|
1297 |
+
//
|
1298 |
+
// `window.location.href`
|
1299 |
+
//
|
1300 |
+
private function parseEntitiesJavascript() {
|
1301 |
+
$e = false;
|
1302 |
+
$j = $this->pos;
|
1303 |
+
if ( $this->input[$j] === '~' ) {
|
1304 |
+
$j++;
|
1305 |
+
$e = true;
|
1306 |
+
}
|
1307 |
+
if ( $this->input[$j] !== '`' ) {
|
1308 |
+
return;
|
1309 |
+
}
|
1310 |
+
if ( $e ) {
|
1311 |
+
$this->MatchChar( '~' );
|
1312 |
+
}
|
1313 |
+
$str = $this->MatchReg( '/\\G`([^`]*)`/' );
|
1314 |
+
if ( $str ) {
|
1315 |
+
return $this->NewObj3( 'Less_Tree_Javascript', array( $str[1], $this->pos, $e ) );
|
1316 |
+
}
|
1317 |
+
}
|
1318 |
+
|
1319 |
+
//
|
1320 |
+
// The variable part of a variable definition. Used in the `rule` parser
|
1321 |
+
//
|
1322 |
+
// @fink:
|
1323 |
+
//
|
1324 |
+
private function parseVariable() {
|
1325 |
+
if ( $this->PeekChar( '@' ) && ( $name = $this->MatchReg( '/\\G(@[\w-]+)\s*:/' ) ) ) {
|
1326 |
+
return $name[1];
|
1327 |
+
}
|
1328 |
+
}
|
1329 |
+
|
1330 |
+
//
|
1331 |
+
// The variable part of a variable definition. Used in the `rule` parser
|
1332 |
+
//
|
1333 |
+
// @fink();
|
1334 |
+
//
|
1335 |
+
private function parseRulesetCall() {
|
1336 |
+
if ( $this->input[$this->pos] === '@' && ( $name = $this->MatchReg( '/\\G(@[\w-]+)\s*\(\s*\)\s*;/' ) ) ) {
|
1337 |
+
return $this->NewObj1( 'Less_Tree_RulesetCall', $name[1] );
|
1338 |
+
}
|
1339 |
+
}
|
1340 |
+
|
1341 |
+
//
|
1342 |
+
// extend syntax - used to extend selectors
|
1343 |
+
//
|
1344 |
+
function parseExtend( $isRule = false ) {
|
1345 |
+
$index = $this->pos;
|
1346 |
+
$extendList = array();
|
1347 |
+
|
1348 |
+
if ( !$this->MatchReg( $isRule ? '/\\G&:extend\(/' : '/\\G:extend\(/' ) ) { return;
|
1349 |
+
}
|
1350 |
+
|
1351 |
+
do{
|
1352 |
+
$option = null;
|
1353 |
+
$elements = array();
|
1354 |
+
while ( true ) {
|
1355 |
+
$option = $this->MatchReg( '/\\G(all)(?=\s*(\)|,))/' );
|
1356 |
+
if ( $option ) { break;
|
1357 |
+
}
|
1358 |
+
$e = $this->parseElement();
|
1359 |
+
if ( !$e ) { break;
|
1360 |
+
}
|
1361 |
+
$elements[] = $e;
|
1362 |
+
}
|
1363 |
+
|
1364 |
+
if ( $option ) {
|
1365 |
+
$option = $option[1];
|
1366 |
+
}
|
1367 |
+
|
1368 |
+
$extendList[] = $this->NewObj3( 'Less_Tree_Extend', array( $this->NewObj1( 'Less_Tree_Selector', $elements ), $option, $index ) );
|
1369 |
+
|
1370 |
+
}while ( $this->MatchChar( "," ) );
|
1371 |
+
|
1372 |
+
$this->expect( '/\\G\)/' );
|
1373 |
+
|
1374 |
+
if ( $isRule ) {
|
1375 |
+
$this->expect( '/\\G;/' );
|
1376 |
+
}
|
1377 |
+
|
1378 |
+
return $extendList;
|
1379 |
+
}
|
1380 |
+
|
1381 |
+
//
|
1382 |
+
// A Mixin call, with an optional argument list
|
1383 |
+
//
|
1384 |
+
// #mixins > .square(#fff);
|
1385 |
+
// .rounded(4px, black);
|
1386 |
+
// .button;
|
1387 |
+
//
|
1388 |
+
// The `while` loop is there because mixins can be
|
1389 |
+
// namespaced, but we only support the child and descendant
|
1390 |
+
// selector for now.
|
1391 |
+
//
|
1392 |
+
private function parseMixinCall() {
|
1393 |
+
$char = $this->input[$this->pos];
|
1394 |
+
if ( $char !== '.' && $char !== '#' ) {
|
1395 |
+
return;
|
1396 |
+
}
|
1397 |
+
|
1398 |
+
$index = $this->pos;
|
1399 |
+
$this->save(); // stop us absorbing part of an invalid selector
|
1400 |
+
|
1401 |
+
$elements = $this->parseMixinCallElements();
|
1402 |
+
|
1403 |
+
if ( $elements ) {
|
1404 |
+
|
1405 |
+
if ( $this->MatchChar( '(' ) ) {
|
1406 |
+
$returned = $this->parseMixinArgs( true );
|
1407 |
+
$args = $returned['args'];
|
1408 |
+
$this->expectChar( ')' );
|
1409 |
+
} else {
|
1410 |
+
$args = array();
|
1411 |
+
}
|
1412 |
+
|
1413 |
+
$important = $this->parseImportant();
|
1414 |
+
|
1415 |
+
if ( $this->parseEnd() ) {
|
1416 |
+
$this->forget();
|
1417 |
+
return $this->NewObj5( 'Less_Tree_Mixin_Call', array( $elements, $args, $index, $this->env->currentFileInfo, $important ) );
|
1418 |
+
}
|
1419 |
+
}
|
1420 |
+
|
1421 |
+
$this->restore();
|
1422 |
+
}
|
1423 |
+
|
1424 |
+
private function parseMixinCallElements() {
|
1425 |
+
$elements = array();
|
1426 |
+
$c = null;
|
1427 |
+
|
1428 |
+
while ( true ) {
|
1429 |
+
$elemIndex = $this->pos;
|
1430 |
+
$e = $this->MatchReg( '/\\G[#.](?:[\w-]|\\\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/' );
|
1431 |
+
if ( !$e ) {
|
1432 |
+
break;
|
1433 |
+
}
|
1434 |
+
$elements[] = $this->NewObj4( 'Less_Tree_Element', array( $c, $e[0], $elemIndex, $this->env->currentFileInfo ) );
|
1435 |
+
$c = $this->MatchChar( '>' );
|
1436 |
+
}
|
1437 |
+
|
1438 |
+
return $elements;
|
1439 |
+
}
|
1440 |
+
|
1441 |
+
/**
|
1442 |
+
* @param boolean $isCall
|
1443 |
+
*/
|
1444 |
+
private function parseMixinArgs( $isCall ) {
|
1445 |
+
$expressions = array();
|
1446 |
+
$argsSemiColon = array();
|
1447 |
+
$isSemiColonSeperated = null;
|
1448 |
+
$argsComma = array();
|
1449 |
+
$expressionContainsNamed = null;
|
1450 |
+
$name = null;
|
1451 |
+
$returner = array( 'args' => array(), 'variadic' => false );
|
1452 |
+
|
1453 |
+
$this->save();
|
1454 |
+
|
1455 |
+
while ( true ) {
|
1456 |
+
if ( $isCall ) {
|
1457 |
+
$arg = $this->MatchFuncs( array( 'parseDetachedRuleset','parseExpression' ) );
|
1458 |
+
} else {
|
1459 |
+
$this->parseComments();
|
1460 |
+
if ( $this->input[ $this->pos ] === '.' && $this->MatchReg( '/\\G\.{3}/' ) ) {
|
1461 |
+
$returner['variadic'] = true;
|
1462 |
+
if ( $this->MatchChar( ";" ) && !$isSemiColonSeperated ) {
|
1463 |
+
$isSemiColonSeperated = true;
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
if ( $isSemiColonSeperated ) {
|
1467 |
+
$argsSemiColon[] = array( 'variadic' => true );
|
1468 |
+
} else {
|
1469 |
+
$argsComma[] = array( 'variadic' => true );
|
1470 |
+
}
|
1471 |
+
break;
|
1472 |
+
}
|
1473 |
+
$arg = $this->MatchFuncs( array( 'parseEntitiesVariable','parseEntitiesLiteral','parseEntitiesKeyword' ) );
|
1474 |
+
}
|
1475 |
+
|
1476 |
+
if ( !$arg ) {
|
1477 |
+
break;
|
1478 |
+
}
|
1479 |
+
|
1480 |
+
$nameLoop = null;
|
1481 |
+
if ( $arg instanceof Less_Tree_Expression ) {
|
1482 |
+
$arg->throwAwayComments();
|
1483 |
+
}
|
1484 |
+
$value = $arg;
|
1485 |
+
$val = null;
|
1486 |
+
|
1487 |
+
if ( $isCall ) {
|
1488 |
+
// Variable
|
1489 |
+
if ( property_exists( $arg, 'value' ) && count( $arg->value ) == 1 ) {
|
1490 |
+
$val = $arg->value[0];
|
1491 |
+
}
|
1492 |
+
} else {
|
1493 |
+
$val = $arg;
|
1494 |
+
}
|
1495 |
+
|
1496 |
+
if ( $val instanceof Less_Tree_Variable ) {
|
1497 |
+
|
1498 |
+
if ( $this->MatchChar( ':' ) ) {
|
1499 |
+
if ( $expressions ) {
|
1500 |
+
if ( $isSemiColonSeperated ) {
|
1501 |
+
$this->Error( 'Cannot mix ; and , as delimiter types' );
|
1502 |
+
}
|
1503 |
+
$expressionContainsNamed = true;
|
1504 |
+
}
|
1505 |
+
|
1506 |
+
// we do not support setting a ruleset as a default variable - it doesn't make sense
|
1507 |
+
// However if we do want to add it, there is nothing blocking it, just don't error
|
1508 |
+
// and remove isCall dependency below
|
1509 |
+
$value = null;
|
1510 |
+
if ( $isCall ) {
|
1511 |
+
$value = $this->parseDetachedRuleset();
|
1512 |
+
}
|
1513 |
+
if ( !$value ) {
|
1514 |
+
$value = $this->parseExpression();
|
1515 |
+
}
|
1516 |
+
|
1517 |
+
if ( !$value ) {
|
1518 |
+
if ( $isCall ) {
|
1519 |
+
$this->Error( 'could not understand value for named argument' );
|
1520 |
+
} else {
|
1521 |
+
$this->restore();
|
1522 |
+
$returner['args'] = array();
|
1523 |
+
return $returner;
|
1524 |
+
}
|
1525 |
+
}
|
1526 |
+
|
1527 |
+
$nameLoop = ( $name = $val->name );
|
1528 |
+
} elseif ( !$isCall && $this->MatchReg( '/\\G\.{3}/' ) ) {
|
1529 |
+
$returner['variadic'] = true;
|
1530 |
+
if ( $this->MatchChar( ";" ) && !$isSemiColonSeperated ) {
|
1531 |
+
$isSemiColonSeperated = true;
|
1532 |
+
}
|
1533 |
+
if ( $isSemiColonSeperated ) {
|
1534 |
+
$argsSemiColon[] = array( 'name' => $arg->name, 'variadic' => true );
|
1535 |
+
} else {
|
1536 |
+
$argsComma[] = array( 'name' => $arg->name, 'variadic' => true );
|
1537 |
+
}
|
1538 |
+
break;
|
1539 |
+
} elseif ( !$isCall ) {
|
1540 |
+
$name = $nameLoop = $val->name;
|
1541 |
+
$value = null;
|
1542 |
+
}
|
1543 |
+
}
|
1544 |
+
|
1545 |
+
if ( $value ) {
|
1546 |
+
$expressions[] = $value;
|
1547 |
+
}
|
1548 |
+
|
1549 |
+
$argsComma[] = array( 'name' => $nameLoop, 'value' => $value );
|
1550 |
+
|
1551 |
+
if ( $this->MatchChar( ',' ) ) {
|
1552 |
+
continue;
|
1553 |
+
}
|
1554 |
+
|
1555 |
+
if ( $this->MatchChar( ';' ) || $isSemiColonSeperated ) {
|
1556 |
+
|
1557 |
+
if ( $expressionContainsNamed ) {
|
1558 |
+
$this->Error( 'Cannot mix ; and , as delimiter types' );
|
1559 |
+
}
|
1560 |
+
|
1561 |
+
$isSemiColonSeperated = true;
|
1562 |
+
|
1563 |
+
if ( count( $expressions ) > 1 ) {
|
1564 |
+
$value = $this->NewObj1( 'Less_Tree_Value', $expressions );
|
1565 |
+
}
|
1566 |
+
$argsSemiColon[] = array( 'name' => $name, 'value' => $value );
|
1567 |
+
|
1568 |
+
$name = null;
|
1569 |
+
$expressions = array();
|
1570 |
+
$expressionContainsNamed = false;
|
1571 |
+
}
|
1572 |
+
}
|
1573 |
+
|
1574 |
+
$this->forget();
|
1575 |
+
$returner['args'] = ( $isSemiColonSeperated ? $argsSemiColon : $argsComma );
|
1576 |
+
return $returner;
|
1577 |
+
}
|
1578 |
+
|
1579 |
+
//
|
1580 |
+
// A Mixin definition, with a list of parameters
|
1581 |
+
//
|
1582 |
+
// .rounded (@radius: 2px, @color) {
|
1583 |
+
// ...
|
1584 |
+
// }
|
1585 |
+
//
|
1586 |
+
// Until we have a finer grained state-machine, we have to
|
1587 |
+
// do a look-ahead, to make sure we don't have a mixin call.
|
1588 |
+
// See the `rule` function for more information.
|
1589 |
+
//
|
1590 |
+
// We start by matching `.rounded (`, and then proceed on to
|
1591 |
+
// the argument list, which has optional default values.
|
1592 |
+
// We store the parameters in `params`, with a `value` key,
|
1593 |
+
// if there is a value, such as in the case of `@radius`.
|
1594 |
+
//
|
1595 |
+
// Once we've got our params list, and a closing `)`, we parse
|
1596 |
+
// the `{...}` block.
|
1597 |
+
//
|
1598 |
+
private function parseMixinDefinition() {
|
1599 |
+
$cond = null;
|
1600 |
+
|
1601 |
+
$char = $this->input[$this->pos];
|
1602 |
+
if ( ( $char !== '.' && $char !== '#' ) || ( $char === '{' && $this->PeekReg( '/\\G[^{]*\}/' ) ) ) {
|
1603 |
+
return;
|
1604 |
+
}
|
1605 |
+
|
1606 |
+
$this->save();
|
1607 |
+
|
1608 |
+
$match = $this->MatchReg( '/\\G([#.](?:[\w-]|\\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/' );
|
1609 |
+
if ( $match ) {
|
1610 |
+
$name = $match[1];
|
1611 |
+
|
1612 |
+
$argInfo = $this->parseMixinArgs( false );
|
1613 |
+
$params = $argInfo['args'];
|
1614 |
+
$variadic = $argInfo['variadic'];
|
1615 |
+
|
1616 |
+
// .mixincall("@{a}");
|
1617 |
+
// looks a bit like a mixin definition..
|
1618 |
+
// also
|
1619 |
+
// .mixincall(@a: {rule: set;});
|
1620 |
+
// so we have to be nice and restore
|
1621 |
+
if ( !$this->MatchChar( ')' ) ) {
|
1622 |
+
$this->furthest = $this->pos;
|
1623 |
+
$this->restore();
|
1624 |
+
return;
|
1625 |
+
}
|
1626 |
+
|
1627 |
+
$this->parseComments();
|
1628 |
+
|
1629 |
+
if ( $this->MatchReg( '/\\Gwhen/' ) ) { // Guard
|
1630 |
+
$cond = $this->expect( 'parseConditions', 'Expected conditions' );
|
1631 |
+
}
|
1632 |
+
|
1633 |
+
$ruleset = $this->parseBlock();
|
1634 |
+
|
1635 |
+
if ( is_array( $ruleset ) ) {
|
1636 |
+
$this->forget();
|
1637 |
+
return $this->NewObj5( 'Less_Tree_Mixin_Definition', array( $name, $params, $ruleset, $cond, $variadic ) );
|
1638 |
+
}
|
1639 |
+
|
1640 |
+
$this->restore();
|
1641 |
+
} else {
|
1642 |
+
$this->forget();
|
1643 |
+
}
|
1644 |
+
}
|
1645 |
+
|
1646 |
+
//
|
1647 |
+
// Entities are the smallest recognized token,
|
1648 |
+
// and can be found inside a rule's value.
|
1649 |
+
//
|
1650 |
+
private function parseEntity() {
|
1651 |
+
return $this->MatchFuncs( array( 'parseEntitiesLiteral','parseEntitiesVariable','parseEntitiesUrl','parseEntitiesCall','parseEntitiesKeyword','parseEntitiesJavascript','parseComment' ) );
|
1652 |
+
}
|
1653 |
+
|
1654 |
+
//
|
1655 |
+
// A Rule terminator. Note that we use `peek()` to check for '}',
|
1656 |
+
// because the `block` rule will be expecting it, but we still need to make sure
|
1657 |
+
// it's there, if ';' was omitted.
|
1658 |
+
//
|
1659 |
+
private function parseEnd() {
|
1660 |
+
return $this->MatchChar( ';' ) || $this->PeekChar( '}' );
|
1661 |
+
}
|
1662 |
+
|
1663 |
+
//
|
1664 |
+
// IE's alpha function
|
1665 |
+
//
|
1666 |
+
// alpha(opacity=88)
|
1667 |
+
//
|
1668 |
+
private function parseAlpha() {
|
1669 |
+
if ( !$this->MatchReg( '/\\G\(opacity=/i' ) ) {
|
1670 |
+
return;
|
1671 |
+
}
|
1672 |
+
|
1673 |
+
$value = $this->MatchReg( '/\\G[0-9]+/' );
|
1674 |
+
if ( $value ) {
|
1675 |
+
$value = $value[0];
|
1676 |
+
} else {
|
1677 |
+
$value = $this->parseEntitiesVariable();
|
1678 |
+
if ( !$value ) {
|
1679 |
+
return;
|
1680 |
+
}
|
1681 |
+
}
|
1682 |
+
|
1683 |
+
$this->expectChar( ')' );
|
1684 |
+
return $this->NewObj1( 'Less_Tree_Alpha', $value );
|
1685 |
+
}
|
1686 |
+
|
1687 |
+
//
|
1688 |
+
// A Selector Element
|
1689 |
+
//
|
1690 |
+
// div
|
1691 |
+
// + h1
|
1692 |
+
// #socks
|
1693 |
+
// input[type="text"]
|
1694 |
+
//
|
1695 |
+
// Elements are the building blocks for Selectors,
|
1696 |
+
// they are made out of a `Combinator` (see combinator rule),
|
1697 |
+
// and an element name, such as a tag a class, or `*`.
|
1698 |
+
//
|
1699 |
+
private function parseElement() {
|
1700 |
+
$c = $this->parseCombinator();
|
1701 |
+
$index = $this->pos;
|
1702 |
+
|
1703 |
+
$e = $this->match( array( '/\\G(?:\d+\.\d+|\d+)%/', '/\\G(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/',
|
1704 |
+
'#*', '#&', 'parseAttribute', '/\\G\([^()@]+\)/', '/\\G[\.#](?=@)/', 'parseEntitiesVariableCurly' ) );
|
1705 |
+
|
1706 |
+
if ( is_null( $e ) ) {
|
1707 |
+
$this->save();
|
1708 |
+
if ( $this->MatchChar( '(' ) ) {
|
1709 |
+
if ( ( $v = $this->parseSelector() ) && $this->MatchChar( ')' ) ) {
|
1710 |
+
$e = $this->NewObj1( 'Less_Tree_Paren', $v );
|
1711 |
+
$this->forget();
|
1712 |
+
} else {
|
1713 |
+
$this->restore();
|
1714 |
+
}
|
1715 |
+
} else {
|
1716 |
+
$this->forget();
|
1717 |
+
}
|
1718 |
+
}
|
1719 |
+
|
1720 |
+
if ( !is_null( $e ) ) {
|
1721 |
+
return $this->NewObj4( 'Less_Tree_Element', array( $c, $e, $index, $this->env->currentFileInfo ) );
|
1722 |
+
}
|
1723 |
+
}
|
1724 |
+
|
1725 |
+
//
|
1726 |
+
// Combinators combine elements together, in a Selector.
|
1727 |
+
//
|
1728 |
+
// Because our parser isn't white-space sensitive, special care
|
1729 |
+
// has to be taken, when parsing the descendant combinator, ` `,
|
1730 |
+
// as it's an empty space. We have to check the previous character
|
1731 |
+
// in the input, to see if it's a ` ` character.
|
1732 |
+
//
|
1733 |
+
private function parseCombinator() {
|
1734 |
+
if ( $this->pos < $this->input_len ) {
|
1735 |
+
$c = $this->input[$this->pos];
|
1736 |
+
if ( $c === '>' || $c === '+' || $c === '~' || $c === '|' || $c === '^' ) {
|
1737 |
+
|
1738 |
+
$this->pos++;
|
1739 |
+
if ( $this->input[$this->pos] === '^' ) {
|
1740 |
+
$c = '^^';
|
1741 |
+
$this->pos++;
|
1742 |
+
}
|
1743 |
+
|
1744 |
+
$this->skipWhitespace( 0 );
|
1745 |
+
|
1746 |
+
return $c;
|
1747 |
+
}
|
1748 |
+
|
1749 |
+
if ( $this->pos > 0 && $this->isWhitespace( -1 ) ) {
|
1750 |
+
return ' ';
|
1751 |
+
}
|
1752 |
+
}
|
1753 |
+
}
|
1754 |
+
|
1755 |
+
//
|
1756 |
+
// A CSS selector (see selector below)
|
1757 |
+
// with less extensions e.g. the ability to extend and guard
|
1758 |
+
//
|
1759 |
+
private function parseLessSelector() {
|
1760 |
+
return $this->parseSelector( true );
|
1761 |
+
}
|
1762 |
+
|
1763 |
+
//
|
1764 |
+
// A CSS Selector
|
1765 |
+
//
|
1766 |
+
// .class > div + h1
|
1767 |
+
// li a:hover
|
1768 |
+
//
|
1769 |
+
// Selectors are made out of one or more Elements, see above.
|
1770 |
+
//
|
1771 |
+
private function parseSelector( $isLess = false ) {
|
1772 |
+
$elements = array();
|
1773 |
+
$extendList = array();
|
1774 |
+
$condition = null;
|
1775 |
+
$when = false;
|
1776 |
+
$extend = false;
|
1777 |
+
$e = null;
|
1778 |
+
$c = null;
|
1779 |
+
$index = $this->pos;
|
1780 |
+
|
1781 |
+
while ( ( $isLess && ( $extend = $this->parseExtend() ) ) || ( $isLess && ( $when = $this->MatchReg( '/\\Gwhen/' ) ) ) || ( $e = $this->parseElement() ) ) {
|
1782 |
+
if ( $when ) {
|
1783 |
+
$condition = $this->expect( 'parseConditions', 'expected condition' );
|
1784 |
+
} elseif ( $condition ) {
|
1785 |
+
// error("CSS guard can only be used at the end of selector");
|
1786 |
+
} elseif ( $extend ) {
|
1787 |
+
$extendList = array_merge( $extendList, $extend );
|
1788 |
+
} else {
|
1789 |
+
// if( count($extendList) ){
|
1790 |
+
//error("Extend can only be used at the end of selector");
|
1791 |
+
//}
|
1792 |
+
if ( $this->pos < $this->input_len ) {
|
1793 |
+
$c = $this->input[ $this->pos ];
|
1794 |
+
}
|
1795 |
+
$elements[] = $e;
|
1796 |
+
$e = null;
|
1797 |
+
}
|
1798 |
+
|
1799 |
+
if ( $c === '{' || $c === '}' || $c === ';' || $c === ',' || $c === ')' ) { break;
|
1800 |
+
}
|
1801 |
+
}
|
1802 |
+
|
1803 |
+
if ( $elements ) {
|
1804 |
+
return $this->NewObj5( 'Less_Tree_Selector', array( $elements, $extendList, $condition, $index, $this->env->currentFileInfo ) );
|
1805 |
+
}
|
1806 |
+
if ( $extendList ) {
|
1807 |
+
$this->Error( 'Extend must be used to extend a selector, it cannot be used on its own' );
|
1808 |
+
}
|
1809 |
+
}
|
1810 |
+
|
1811 |
+
private function parseTag() {
|
1812 |
+
return ( $tag = $this->MatchReg( '/\\G[A-Za-z][A-Za-z-]*[0-9]?/' ) ) ? $tag : $this->MatchChar( '*' );
|
1813 |
+
}
|
1814 |
+
|
1815 |
+
private function parseAttribute() {
|
1816 |
+
$val = null;
|
1817 |
+
|
1818 |
+
if ( !$this->MatchChar( '[' ) ) {
|
1819 |
+
return;
|
1820 |
+
}
|
1821 |
+
|
1822 |
+
$key = $this->parseEntitiesVariableCurly();
|
1823 |
+
if ( !$key ) {
|
1824 |
+
$key = $this->expect( '/\\G(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\\\.)+/' );
|
1825 |
+
}
|
1826 |
+
|
1827 |
+
$op = $this->MatchReg( '/\\G[|~*$^]?=/' );
|
1828 |
+
if ( $op ) {
|
1829 |
+
$val = $this->match( array( 'parseEntitiesQuoted','/\\G[0-9]+%/','/\\G[\w-]+/','parseEntitiesVariableCurly' ) );
|
1830 |
+
}
|
1831 |
+
|
1832 |
+
$this->expectChar( ']' );
|
1833 |
+
|
1834 |
+
return $this->NewObj3( 'Less_Tree_Attribute', array( $key, $op === null ? null : $op[0], $val ) );
|
1835 |
+
}
|
1836 |
+
|
1837 |
+
//
|
1838 |
+
// The `block` rule is used by `ruleset` and `mixin.definition`.
|
1839 |
+
// It's a wrapper around the `primary` rule, with added `{}`.
|
1840 |
+
//
|
1841 |
+
private function parseBlock() {
|
1842 |
+
if ( $this->MatchChar( '{' ) ) {
|
1843 |
+
$content = $this->parsePrimary();
|
1844 |
+
if ( $this->MatchChar( '}' ) ) {
|
1845 |
+
return $content;
|
1846 |
+
}
|
1847 |
+
}
|
1848 |
+
}
|
1849 |
+
|
1850 |
+
private function parseBlockRuleset() {
|
1851 |
+
$block = $this->parseBlock();
|
1852 |
+
|
1853 |
+
if ( $block ) {
|
1854 |
+
$block = $this->NewObj2( 'Less_Tree_Ruleset', array( null, $block ) );
|
1855 |
+
}
|
1856 |
+
|
1857 |
+
return $block;
|
1858 |
+
}
|
1859 |
+
|
1860 |
+
private function parseDetachedRuleset() {
|
1861 |
+
$blockRuleset = $this->parseBlockRuleset();
|
1862 |
+
if ( $blockRuleset ) {
|
1863 |
+
return $this->NewObj1( 'Less_Tree_DetachedRuleset', $blockRuleset );
|
1864 |
+
}
|
1865 |
+
}
|
1866 |
+
|
1867 |
+
//
|
1868 |
+
// div, .class, body > p {...}
|
1869 |
+
//
|
1870 |
+
private function parseRuleset() {
|
1871 |
+
$selectors = array();
|
1872 |
+
|
1873 |
+
$this->save();
|
1874 |
+
|
1875 |
+
while ( true ) {
|
1876 |
+
$s = $this->parseLessSelector();
|
1877 |
+
if ( !$s ) {
|
1878 |
+
break;
|
1879 |
+
}
|
1880 |
+
$selectors[] = $s;
|
1881 |
+
$this->parseComments();
|
1882 |
+
|
1883 |
+
if ( $s->condition && count( $selectors ) > 1 ) {
|
1884 |
+
$this->Error( 'Guards are only currently allowed on a single selector.' );
|
1885 |
+
}
|
1886 |
+
|
1887 |
+
if ( !$this->MatchChar( ',' ) ) {
|
1888 |
+
break;
|
1889 |
+
}
|
1890 |
+
if ( $s->condition ) {
|
1891 |
+
$this->Error( 'Guards are only currently allowed on a single selector.' );
|
1892 |
+
}
|
1893 |
+
$this->parseComments();
|
1894 |
+
}
|
1895 |
+
|
1896 |
+
if ( $selectors ) {
|
1897 |
+
$rules = $this->parseBlock();
|
1898 |
+
if ( is_array( $rules ) ) {
|
1899 |
+
$this->forget();
|
1900 |
+
return $this->NewObj2( 'Less_Tree_Ruleset', array( $selectors, $rules ) ); // Less_Environment::$strictImports
|
1901 |
+
}
|
1902 |
+
}
|
1903 |
+
|
1904 |
+
// Backtrack
|
1905 |
+
$this->furthest = $this->pos;
|
1906 |
+
$this->restore();
|
1907 |
+
}
|
1908 |
+
|
1909 |
+
/**
|
1910 |
+
* Custom less.php parse function for finding simple name-value css pairs
|
1911 |
+
* ex: width:100px;
|
1912 |
+
*
|
1913 |
+
*/
|
1914 |
+
private function parseNameValue() {
|
1915 |
+
$index = $this->pos;
|
1916 |
+
$this->save();
|
1917 |
+
|
1918 |
+
// $match = $this->MatchReg('/\\G([a-zA-Z\-]+)\s*:\s*((?:\'")?[a-zA-Z0-9\-% \.,!]+?(?:\'")?)\s*([;}])/');
|
1919 |
+
$match = $this->MatchReg( '/\\G([a-zA-Z\-]+)\s*:\s*([\'"]?[#a-zA-Z0-9\-%\.,]+?[\'"]?) *(! *important)?\s*([;}])/' );
|
1920 |
+
if ( $match ) {
|
1921 |
+
|
1922 |
+
if ( $match[4] == '}' ) {
|
1923 |
+
$this->pos = $index + strlen( $match[0] ) - 1;
|
1924 |
+
}
|
1925 |
+
|
1926 |
+
if ( $match[3] ) {
|
1927 |
+
$match[2] .= ' !important';
|
1928 |
+
}
|
1929 |
+
|
1930 |
+
return $this->NewObj4( 'Less_Tree_NameValue', array( $match[1], $match[2], $index, $this->env->currentFileInfo ) );
|
1931 |
+
}
|
1932 |
+
|
1933 |
+
$this->restore();
|
1934 |
+
}
|
1935 |
+
|
1936 |
+
private function parseRule( $tryAnonymous = null ) {
|
1937 |
+
$merge = false;
|
1938 |
+
$startOfRule = $this->pos;
|
1939 |
+
|
1940 |
+
$c = $this->input[$this->pos];
|
1941 |
+
if ( $c === '.' || $c === '#' || $c === '&' ) {
|
1942 |
+
return;
|
1943 |
+
}
|
1944 |
+
|
1945 |
+
$this->save();
|
1946 |
+
$name = $this->MatchFuncs( array( 'parseVariable','parseRuleProperty' ) );
|
1947 |
+
|
1948 |
+
if ( $name ) {
|
1949 |
+
|
1950 |
+
$isVariable = is_string( $name );
|
1951 |
+
|
1952 |
+
$value = null;
|
1953 |
+
if ( $isVariable ) {
|
1954 |
+
$value = $this->parseDetachedRuleset();
|
1955 |
+
}
|
1956 |
+
|
1957 |
+
$important = null;
|
1958 |
+
if ( !$value ) {
|
1959 |
+
|
1960 |
+
// prefer to try to parse first if its a variable or we are compressing
|
1961 |
+
// but always fallback on the other one
|
1962 |
+
//if( !$tryAnonymous && is_string($name) && $name[0] === '@' ){
|
1963 |
+
if ( !$tryAnonymous && ( Less_Parser::$options['compress'] || $isVariable ) ) {
|
1964 |
+
$value = $this->MatchFuncs( array( 'parseValue','parseAnonymousValue' ) );
|
1965 |
+
} else {
|
1966 |
+
$value = $this->MatchFuncs( array( 'parseAnonymousValue','parseValue' ) );
|
1967 |
+
}
|
1968 |
+
|
1969 |
+
$important = $this->parseImportant();
|
1970 |
+
|
1971 |
+
// a name returned by this.ruleProperty() is always an array of the form:
|
1972 |
+
// [string-1, ..., string-n, ""] or [string-1, ..., string-n, "+"]
|
1973 |
+
// where each item is a tree.Keyword or tree.Variable
|
1974 |
+
if ( !$isVariable && is_array( $name ) ) {
|
1975 |
+
$nm = array_pop( $name );
|
1976 |
+
if ( $nm->value ) {
|
1977 |
+
$merge = $nm->value;
|
1978 |
+
}
|
1979 |
+
}
|
1980 |
+
}
|
1981 |
+
|
1982 |
+
if ( $value && $this->parseEnd() ) {
|
1983 |
+
$this->forget();
|
1984 |
+
return $this->NewObj6( 'Less_Tree_Rule', array( $name, $value, $important, $merge, $startOfRule, $this->env->currentFileInfo ) );
|
1985 |
+
} else {
|
1986 |
+
$this->furthest = $this->pos;
|
1987 |
+
$this->restore();
|
1988 |
+
if ( $value && !$tryAnonymous ) {
|
1989 |
+
return $this->parseRule( true );
|
1990 |
+
}
|
1991 |
+
}
|
1992 |
+
} else {
|
1993 |
+
$this->forget();
|
1994 |
+
}
|
1995 |
+
}
|
1996 |
+
|
1997 |
+
function parseAnonymousValue() {
|
1998 |
+
if ( preg_match( '/\\G([^@+\/\'"*`(;{}-]*);/', $this->input, $match, 0, $this->pos ) ) {
|
1999 |
+
$this->pos += strlen( $match[1] );
|
2000 |
+
return $this->NewObj1( 'Less_Tree_Anonymous', $match[1] );
|
2001 |
+
}
|
2002 |
+
}
|
2003 |
+
|
2004 |
+
//
|
2005 |
+
// An @import directive
|
2006 |
+
//
|
2007 |
+
// @import "lib";
|
2008 |
+
//
|
2009 |
+
// Depending on our environment, importing is done differently:
|
2010 |
+
// In the browser, it's an XHR request, in Node, it would be a
|
2011 |
+
// file-system operation. The function used for importing is
|
2012 |
+
// stored in `import`, which we pass to the Import constructor.
|
2013 |
+
//
|
2014 |
+
private function parseImport() {
|
2015 |
+
$this->save();
|
2016 |
+
|
2017 |
+
$dir = $this->MatchReg( '/\\G@import?\s+/' );
|
2018 |
+
|
2019 |
+
if ( $dir ) {
|
2020 |
+
$options = $this->parseImportOptions();
|
2021 |
+
$path = $this->MatchFuncs( array( 'parseEntitiesQuoted','parseEntitiesUrl' ) );
|
2022 |
+
|
2023 |
+
if ( $path ) {
|
2024 |
+
$features = $this->parseMediaFeatures();
|
2025 |
+
if ( $this->MatchChar( ';' ) ) {
|
2026 |
+
if ( $features ) {
|
2027 |
+
$features = $this->NewObj1( 'Less_Tree_Value', $features );
|
2028 |
+
}
|
2029 |
+
|
2030 |
+
$this->forget();
|
2031 |
+
return $this->NewObj5( 'Less_Tree_Import', array( $path, $features, $options, $this->pos, $this->env->currentFileInfo ) );
|
2032 |
+
}
|
2033 |
+
}
|
2034 |
+
}
|
2035 |
+
|
2036 |
+
$this->restore();
|
2037 |
+
}
|
2038 |
+
|
2039 |
+
private function parseImportOptions() {
|
2040 |
+
$options = array();
|
2041 |
+
|
2042 |
+
// list of options, surrounded by parens
|
2043 |
+
if ( !$this->MatchChar( '(' ) ) {
|
2044 |
+
return $options;
|
2045 |
+
}
|
2046 |
+
do{
|
2047 |
+
$optionName = $this->parseImportOption();
|
2048 |
+
if ( $optionName ) {
|
2049 |
+
$value = true;
|
2050 |
+
switch ( $optionName ) {
|
2051 |
+
case "css":
|
2052 |
+
$optionName = "less";
|
2053 |
+
$value = false;
|
2054 |
+
break;
|
2055 |
+
case "once":
|
2056 |
+
$optionName = "multiple";
|
2057 |
+
$value = false;
|
2058 |
+
break;
|
2059 |
+
}
|
2060 |
+
$options[$optionName] = $value;
|
2061 |
+
if ( !$this->MatchChar( ',' ) ) { break;
|
2062 |
+
}
|
2063 |
+
}
|
2064 |
+
}while ( $optionName );
|
2065 |
+
$this->expectChar( ')' );
|
2066 |
+
return $options;
|
2067 |
+
}
|
2068 |
+
|
2069 |
+
private function parseImportOption() {
|
2070 |
+
$opt = $this->MatchReg( '/\\G(less|css|multiple|once|inline|reference|optional)/' );
|
2071 |
+
if ( $opt ) {
|
2072 |
+
return $opt[1];
|
2073 |
+
}
|
2074 |
+
}
|
2075 |
+
|
2076 |
+
private function parseMediaFeature() {
|
2077 |
+
$nodes = array();
|
2078 |
+
|
2079 |
+
do{
|
2080 |
+
$e = $this->MatchFuncs( array( 'parseEntitiesKeyword','parseEntitiesVariable' ) );
|
2081 |
+
if ( $e ) {
|
2082 |
+
$nodes[] = $e;
|
2083 |
+
} elseif ( $this->MatchChar( '(' ) ) {
|
2084 |
+
$p = $this->parseProperty();
|
2085 |
+
$e = $this->parseValue();
|
2086 |
+
if ( $this->MatchChar( ')' ) ) {
|
2087 |
+
if ( $p && $e ) {
|
2088 |
+
$r = $this->NewObj7( 'Less_Tree_Rule', array( $p, $e, null, null, $this->pos, $this->env->currentFileInfo, true ) );
|
2089 |
+
$nodes[] = $this->NewObj1( 'Less_Tree_Paren', $r );
|
2090 |
+
} elseif ( $e ) {
|
2091 |
+
$nodes[] = $this->NewObj1( 'Less_Tree_Paren', $e );
|
2092 |
+
} else {
|
2093 |
+
return null;
|
2094 |
+
}
|
2095 |
+
} else return null;
|
2096 |
+
}
|
2097 |
+
} while ( $e );
|
2098 |
+
|
2099 |
+
if ( $nodes ) {
|
2100 |
+
return $this->NewObj1( 'Less_Tree_Expression', $nodes );
|
2101 |
+
}
|
2102 |
+
}
|
2103 |
+
|
2104 |
+
private function parseMediaFeatures() {
|
2105 |
+
$features = array();
|
2106 |
+
|
2107 |
+
do{
|
2108 |
+
$e = $this->parseMediaFeature();
|
2109 |
+
if ( $e ) {
|
2110 |
+
$features[] = $e;
|
2111 |
+
if ( !$this->MatchChar( ',' ) ) break;
|
2112 |
+
} else {
|
2113 |
+
$e = $this->parseEntitiesVariable();
|
2114 |
+
if ( $e ) {
|
2115 |
+
$features[] = $e;
|
2116 |
+
if ( !$this->MatchChar( ',' ) ) break;
|
2117 |
+
}
|
2118 |
+
}
|
2119 |
+
} while ( $e );
|
2120 |
+
|
2121 |
+
return $features ? $features : null;
|
2122 |
+
}
|
2123 |
+
|
2124 |
+
private function parseMedia() {
|
2125 |
+
if ( $this->MatchReg( '/\\G@media/' ) ) {
|
2126 |
+
$features = $this->parseMediaFeatures();
|
2127 |
+
$rules = $this->parseBlock();
|
2128 |
+
|
2129 |
+
if ( is_array( $rules ) ) {
|
2130 |
+
return $this->NewObj4( 'Less_Tree_Media', array( $rules, $features, $this->pos, $this->env->currentFileInfo ) );
|
2131 |
+
}
|
2132 |
+
}
|
2133 |
+
}
|
2134 |
+
|
2135 |
+
//
|
2136 |
+
// A CSS Directive
|
2137 |
+
//
|
2138 |
+
// @charset "utf-8";
|
2139 |
+
//
|
2140 |
+
private function parseDirective() {
|
2141 |
+
if ( !$this->PeekChar( '@' ) ) {
|
2142 |
+
return;
|
2143 |
+
}
|
2144 |
+
|
2145 |
+
$rules = null;
|
2146 |
+
$index = $this->pos;
|
2147 |
+
$hasBlock = true;
|
2148 |
+
$hasIdentifier = false;
|
2149 |
+
$hasExpression = false;
|
2150 |
+
$hasUnknown = false;
|
2151 |
+
|
2152 |
+
$value = $this->MatchFuncs( array( 'parseImport','parseMedia' ) );
|
2153 |
+
if ( $value ) {
|
2154 |
+
return $value;
|
2155 |
+
}
|
2156 |
+
|
2157 |
+
$this->save();
|
2158 |
+
|
2159 |
+
$name = $this->MatchReg( '/\\G@[a-z-]+/' );
|
2160 |
+
|
2161 |
+
if ( !$name ) return;
|
2162 |
+
$name = $name[0];
|
2163 |
+
|
2164 |
+
$nonVendorSpecificName = $name;
|
2165 |
+
$pos = strpos( $name, '-', 2 );
|
2166 |
+
if ( $name[1] == '-' && $pos > 0 ) {
|
2167 |
+
$nonVendorSpecificName = "@" . substr( $name, $pos + 1 );
|
2168 |
+
}
|
2169 |
+
|
2170 |
+
switch ( $nonVendorSpecificName ) {
|
2171 |
+
/*
|
2172 |
+
case "@font-face":
|
2173 |
+
case "@viewport":
|
2174 |
+
case "@top-left":
|
2175 |
+
case "@top-left-corner":
|
2176 |
+
case "@top-center":
|
2177 |
+
case "@top-right":
|
2178 |
+
case "@top-right-corner":
|
2179 |
+
case "@bottom-left":
|
2180 |
+
case "@bottom-left-corner":
|
2181 |
+
case "@bottom-center":
|
2182 |
+
case "@bottom-right":
|
2183 |
+
case "@bottom-right-corner":
|
2184 |
+
case "@left-top":
|
2185 |
+
case "@left-middle":
|
2186 |
+
case "@left-bottom":
|
2187 |
+
case "@right-top":
|
2188 |
+
case "@right-middle":
|
2189 |
+
case "@right-bottom":
|
2190 |
+
hasBlock = true;
|
2191 |
+
break;
|
2192 |
+
*/
|
2193 |
+
case "@charset":
|
2194 |
+
$hasIdentifier = true;
|
2195 |
+
$hasBlock = false;
|
2196 |
+
break;
|
2197 |
+
case "@namespace":
|
2198 |
+
$hasExpression = true;
|
2199 |
+
$hasBlock = false;
|
2200 |
+
break;
|
2201 |
+
case "@keyframes":
|
2202 |
+
$hasIdentifier = true;
|
2203 |
+
break;
|
2204 |
+
case "@host":
|
2205 |
+
case "@page":
|
2206 |
+
case "@document":
|
2207 |
+
case "@supports":
|
2208 |
+
$hasUnknown = true;
|
2209 |
+
break;
|
2210 |
+
}
|
2211 |
+
|
2212 |
+
if ( $hasIdentifier ) {
|
2213 |
+
$value = $this->parseEntity();
|
2214 |
+
if ( !$value ) {
|
2215 |
+
$this->error( "expected " . $name . " identifier" );
|
2216 |
+
}
|
2217 |
+
} else if ( $hasExpression ) {
|
2218 |
+
$value = $this->parseExpression();
|
2219 |
+
if ( !$value ) {
|
2220 |
+
$this->error( "expected " . $name. " expression" );
|
2221 |
+
}
|
2222 |
+
} else if ( $hasUnknown ) {
|
2223 |
+
|
2224 |
+
$value = $this->MatchReg( '/\\G[^{;]+/' );
|
2225 |
+
if ( $value ) {
|
2226 |
+
$value = $this->NewObj1( 'Less_Tree_Anonymous', trim( $value[0] ) );
|
2227 |
+
}
|
2228 |
+
}
|
2229 |
+
|
2230 |
+
if ( $hasBlock ) {
|
2231 |
+
$rules = $this->parseBlockRuleset();
|
2232 |
+
}
|
2233 |
+
|
2234 |
+
if ( $rules || ( !$hasBlock && $value && $this->MatchChar( ';' ) ) ) {
|
2235 |
+
$this->forget();
|
2236 |
+
return $this->NewObj5( 'Less_Tree_Directive', array( $name, $value, $rules, $index, $this->env->currentFileInfo ) );
|
2237 |
+
}
|
2238 |
+
|
2239 |
+
$this->restore();
|
2240 |
+
}
|
2241 |
+
|
2242 |
+
//
|
2243 |
+
// A Value is a comma-delimited list of Expressions
|
2244 |
+
//
|
2245 |
+
// font-family: Baskerville, Georgia, serif;
|
2246 |
+
//
|
2247 |
+
// In a Rule, a Value represents everything after the `:`,
|
2248 |
+
// and before the `;`.
|
2249 |
+
//
|
2250 |
+
private function parseValue() {
|
2251 |
+
$expressions = array();
|
2252 |
+
|
2253 |
+
do{
|
2254 |
+
$e = $this->parseExpression();
|
2255 |
+
if ( $e ) {
|
2256 |
+
$expressions[] = $e;
|
2257 |
+
if ( !$this->MatchChar( ',' ) ) {
|
2258 |
+
break;
|
2259 |
+
}
|
2260 |
+
}
|
2261 |
+
}while ( $e );
|
2262 |
+
|
2263 |
+
if ( $expressions ) {
|
2264 |
+
return $this->NewObj1( 'Less_Tree_Value', $expressions );
|
2265 |
+
}
|
2266 |
+
}
|
2267 |
+
|
2268 |
+
private function parseImportant() {
|
2269 |
+
if ( $this->PeekChar( '!' ) && $this->MatchReg( '/\\G! *important/' ) ) {
|
2270 |
+
return ' !important';
|
2271 |
+
}
|
2272 |
+
}
|
2273 |
+
|
2274 |
+
private function parseSub() {
|
2275 |
+
if ( $this->MatchChar( '(' ) ) {
|
2276 |
+
$a = $this->parseAddition();
|
2277 |
+
if ( $a ) {
|
2278 |
+
$this->expectChar( ')' );
|
2279 |
+
return $this->NewObj2( 'Less_Tree_Expression', array( array( $a ), true ) ); // instead of $e->parens = true so the value is cached
|
2280 |
+
}
|
2281 |
+
}
|
2282 |
+
}
|
2283 |
+
|
2284 |
+
/**
|
2285 |
+
* Parses multiplication operation
|
2286 |
+
*
|
2287 |
+
* @return Less_Tree_Operation|null
|
2288 |
+
*/
|
2289 |
+
function parseMultiplication() {
|
2290 |
+
$return = $m = $this->parseOperand();
|
2291 |
+
if ( $return ) {
|
2292 |
+
while ( true ) {
|
2293 |
+
|
2294 |
+
$isSpaced = $this->isWhitespace( -1 );
|
2295 |
+
|
2296 |
+
if ( $this->PeekReg( '/\\G\/[*\/]/' ) ) {
|
2297 |
+
break;
|
2298 |
+
}
|
2299 |
+
|
2300 |
+
$op = $this->MatchChar( '/' );
|
2301 |
+
if ( !$op ) {
|
2302 |
+
$op = $this->MatchChar( '*' );
|
2303 |
+
if ( !$op ) {
|
2304 |
+
break;
|
2305 |
+
}
|
2306 |
+
}
|
2307 |
+
|
2308 |
+
$a = $this->parseOperand();
|
2309 |
+
|
2310 |
+
if ( !$a ) { break;
|
2311 |
+
}
|
2312 |
+
|
2313 |
+
$m->parensInOp = true;
|
2314 |
+
$a->parensInOp = true;
|
2315 |
+
$return = $this->NewObj3( 'Less_Tree_Operation', array( $op, array( $return, $a ), $isSpaced ) );
|
2316 |
+
}
|
2317 |
+
}
|
2318 |
+
return $return;
|
2319 |
+
|
2320 |
+
}
|
2321 |
+
|
2322 |
+
/**
|
2323 |
+
* Parses an addition operation
|
2324 |
+
*
|
2325 |
+
* @return Less_Tree_Operation|null
|
2326 |
+
*/
|
2327 |
+
private function parseAddition() {
|
2328 |
+
$return = $m = $this->parseMultiplication();
|
2329 |
+
if ( $return ) {
|
2330 |
+
while ( true ) {
|
2331 |
+
|
2332 |
+
$isSpaced = $this->isWhitespace( -1 );
|
2333 |
+
|
2334 |
+
$op = $this->MatchReg( '/\\G[-+]\s+/' );
|
2335 |
+
if ( $op ) {
|
2336 |
+
$op = $op[0];
|
2337 |
+
} else {
|
2338 |
+
if ( !$isSpaced ) {
|
2339 |
+
$op = $this->match( array( '#+','#-' ) );
|
2340 |
+
}
|
2341 |
+
if ( !$op ) {
|
2342 |
+
break;
|
2343 |
+
}
|
2344 |
+
}
|
2345 |
+
|
2346 |
+
$a = $this->parseMultiplication();
|
2347 |
+
if ( !$a ) {
|
2348 |
+
break;
|
2349 |
+
}
|
2350 |
+
|
2351 |
+
$m->parensInOp = true;
|
2352 |
+
$a->parensInOp = true;
|
2353 |
+
$return = $this->NewObj3( 'Less_Tree_Operation', array( $op, array( $return, $a ), $isSpaced ) );
|
2354 |
+
}
|
2355 |
+
}
|
2356 |
+
|
2357 |
+
return $return;
|
2358 |
+
}
|
2359 |
+
|
2360 |
+
/**
|
2361 |
+
* Parses the conditions
|
2362 |
+
*
|
2363 |
+
* @return Less_Tree_Condition|null
|
2364 |
+
*/
|
2365 |
+
private function parseConditions() {
|
2366 |
+
$index = $this->pos;
|
2367 |
+
$return = $a = $this->parseCondition();
|
2368 |
+
if ( $a ) {
|
2369 |
+
while ( true ) {
|
2370 |
+
if ( !$this->PeekReg( '/\\G,\s*(not\s*)?\(/' ) || !$this->MatchChar( ',' ) ) {
|
2371 |
+
break;
|
2372 |
+
}
|
2373 |
+
$b = $this->parseCondition();
|
2374 |
+
if ( !$b ) {
|
2375 |
+
break;
|
2376 |
+
}
|
2377 |
+
|
2378 |
+
$return = $this->NewObj4( 'Less_Tree_Condition', array( 'or', $return, $b, $index ) );
|
2379 |
+
}
|
2380 |
+
return $return;
|
2381 |
+
}
|
2382 |
+
}
|
2383 |
+
|
2384 |
+
private function parseCondition() {
|
2385 |
+
$index = $this->pos;
|
2386 |
+
$negate = false;
|
2387 |
+
$c = null;
|
2388 |
+
|
2389 |
+
if ( $this->MatchReg( '/\\Gnot/' ) ) $negate = true;
|
2390 |
+
$this->expectChar( '(' );
|
2391 |
+
$a = $this->MatchFuncs( array( 'parseAddition','parseEntitiesKeyword','parseEntitiesQuoted' ) );
|
2392 |
+
|
2393 |
+
if ( $a ) {
|
2394 |
+
$op = $this->MatchReg( '/\\G(?:>=|<=|=<|[<=>])/' );
|
2395 |
+
if ( $op ) {
|
2396 |
+
$b = $this->MatchFuncs( array( 'parseAddition','parseEntitiesKeyword','parseEntitiesQuoted' ) );
|
2397 |
+
if ( $b ) {
|
2398 |
+
$c = $this->NewObj5( 'Less_Tree_Condition', array( $op[0], $a, $b, $index, $negate ) );
|
2399 |
+
} else {
|
2400 |
+
$this->Error( 'Unexpected expression' );
|
2401 |
+
}
|
2402 |
+
} else {
|
2403 |
+
$k = $this->NewObj1( 'Less_Tree_Keyword', 'true' );
|
2404 |
+
$c = $this->NewObj5( 'Less_Tree_Condition', array( '=', $a, $k, $index, $negate ) );
|
2405 |
+
}
|
2406 |
+
$this->expectChar( ')' );
|
2407 |
+
return $this->MatchReg( '/\\Gand/' ) ? $this->NewObj3( 'Less_Tree_Condition', array( 'and', $c, $this->parseCondition() ) ) : $c;
|
2408 |
+
}
|
2409 |
+
}
|
2410 |
+
|
2411 |
+
/**
|
2412 |
+
* An operand is anything that can be part of an operation,
|
2413 |
+
* such as a Color, or a Variable
|
2414 |
+
*
|
2415 |
+
*/
|
2416 |
+
private function parseOperand() {
|
2417 |
+
$negate = false;
|
2418 |
+
$offset = $this->pos + 1;
|
2419 |
+
if ( $offset >= $this->input_len ) {
|
2420 |
+
return;
|
2421 |
+
}
|
2422 |
+
$char = $this->input[$offset];
|
2423 |
+
if ( $char === '@' || $char === '(' ) {
|
2424 |
+
$negate = $this->MatchChar( '-' );
|
2425 |
+
}
|
2426 |
+
|
2427 |
+
$o = $this->MatchFuncs( array( 'parseSub','parseEntitiesDimension','parseEntitiesColor','parseEntitiesVariable','parseEntitiesCall' ) );
|
2428 |
+
|
2429 |
+
if ( $negate ) {
|
2430 |
+
$o->parensInOp = true;
|
2431 |
+
$o = $this->NewObj1( 'Less_Tree_Negative', $o );
|
2432 |
+
}
|
2433 |
+
|
2434 |
+
return $o;
|
2435 |
+
}
|
2436 |
+
|
2437 |
+
/**
|
2438 |
+
* Expressions either represent mathematical operations,
|
2439 |
+
* or white-space delimited Entities.
|
2440 |
+
*
|
2441 |
+
* 1px solid black
|
2442 |
+
* @var * 2
|
2443 |
+
*
|
2444 |
+
* @return Less_Tree_Expression|null
|
2445 |
+
*/
|
2446 |
+
private function parseExpression() {
|
2447 |
+
$entities = array();
|
2448 |
+
|
2449 |
+
do{
|
2450 |
+
$e = $this->MatchFuncs( array( 'parseAddition','parseEntity' ) );
|
2451 |
+
if ( $e ) {
|
2452 |
+
$entities[] = $e;
|
2453 |
+
// operations do not allow keyword "/" dimension (e.g. small/20px) so we support that here
|
2454 |
+
if ( !$this->PeekReg( '/\\G\/[\/*]/' ) ) {
|
2455 |
+
$delim = $this->MatchChar( '/' );
|
2456 |
+
if ( $delim ) {
|
2457 |
+
$entities[] = $this->NewObj1( 'Less_Tree_Anonymous', $delim );
|
2458 |
+
}
|
2459 |
+
}
|
2460 |
+
}
|
2461 |
+
}while ( $e );
|
2462 |
+
|
2463 |
+
if ( $entities ) {
|
2464 |
+
return $this->NewObj1( 'Less_Tree_Expression', $entities );
|
2465 |
+
}
|
2466 |
+
}
|
2467 |
+
|
2468 |
+
/**
|
2469 |
+
* Parse a property
|
2470 |
+
* eg: 'min-width', 'orientation', etc
|
2471 |
+
*
|
2472 |
+
* @return string
|
2473 |
+
*/
|
2474 |
+
private function parseProperty() {
|
2475 |
+
$name = $this->MatchReg( '/\\G(\*?-?[_a-zA-Z0-9-]+)\s*:/' );
|
2476 |
+
if ( $name ) {
|
2477 |
+
return $name[1];
|
2478 |
+
}
|
2479 |
+
}
|
2480 |
+
|
2481 |
+
/**
|
2482 |
+
* Parse a rule property
|
2483 |
+
* eg: 'color', 'width', 'height', etc
|
2484 |
+
*
|
2485 |
+
* @return string
|
2486 |
+
*/
|
2487 |
+
private function parseRuleProperty() {
|
2488 |
+
$offset = $this->pos;
|
2489 |
+
$name = array();
|
2490 |
+
$index = array();
|
2491 |
+
$length = 0;
|
2492 |
+
|
2493 |
+
$this->rulePropertyMatch( '/\\G(\*?)/', $offset, $length, $index, $name );
|
2494 |
+
while ( $this->rulePropertyMatch( '/\\G((?:[\w-]+)|(?:@\{[\w-]+\}))/', $offset, $length, $index, $name ) ); // !
|
2495 |
+
|
2496 |
+
if ( ( count( $name ) > 1 ) && $this->rulePropertyMatch( '/\\G\s*((?:\+_|\+)?)\s*:/', $offset, $length, $index, $name ) ) {
|
2497 |
+
// at last, we have the complete match now. move forward,
|
2498 |
+
// convert name particles to tree objects and return:
|
2499 |
+
$this->skipWhitespace( $length );
|
2500 |
+
|
2501 |
+
if ( $name[0] === '' ) {
|
2502 |
+
array_shift( $name );
|
2503 |
+
array_shift( $index );
|
2504 |
+
}
|
2505 |
+
foreach ( $name as $k => $s ) {
|
2506 |
+
if ( !$s || $s[0] !== '@' ) {
|
2507 |
+
$name[$k] = $this->NewObj1( 'Less_Tree_Keyword', $s );
|
2508 |
+
} else {
|
2509 |
+
$name[$k] = $this->NewObj3( 'Less_Tree_Variable', array( '@' . substr( $s, 2, -1 ), $index[$k], $this->env->currentFileInfo ) );
|
2510 |
+
}
|
2511 |
+
}
|
2512 |
+
return $name;
|
2513 |
+
}
|
2514 |
+
|
2515 |
+
}
|
2516 |
+
|
2517 |
+
private function rulePropertyMatch( $re, &$offset, &$length, &$index, &$name ) {
|
2518 |
+
preg_match( $re, $this->input, $a, 0, $offset );
|
2519 |
+
if ( $a ) {
|
2520 |
+
$index[] = $this->pos + $length;
|
2521 |
+
$length += strlen( $a[0] );
|
2522 |
+
$offset += strlen( $a[0] );
|
2523 |
+
$name[] = $a[1];
|
2524 |
+
return true;
|
2525 |
+
}
|
2526 |
+
}
|
2527 |
+
|
2528 |
+
public static function serializeVars( $vars ) {
|
2529 |
+
$s = '';
|
2530 |
+
|
2531 |
+
foreach ( $vars as $name => $value ) {
|
2532 |
+
$s .= ( ( $name[0] === '@' ) ? '' : '@' ) . $name .': '. $value . ( ( substr( $value, -1 ) === ';' ) ? '' : ';' );
|
2533 |
+
}
|
2534 |
+
|
2535 |
+
return $s;
|
2536 |
+
}
|
2537 |
+
|
2538 |
+
/**
|
2539 |
+
* Some versions of php have trouble with method_exists($a,$b) if $a is not an object
|
2540 |
+
*
|
2541 |
+
* @param string $b
|
2542 |
+
*/
|
2543 |
+
public static function is_method( $a, $b ) {
|
2544 |
+
return is_object( $a ) && method_exists( $a, $b );
|
2545 |
+
}
|
2546 |
+
|
2547 |
+
/**
|
2548 |
+
* Round numbers similarly to javascript
|
2549 |
+
* eg: 1.499999 to 1 instead of 2
|
2550 |
+
*
|
2551 |
+
*/
|
2552 |
+
public static function round( $i, $precision = 0 ) {
|
2553 |
+
$precision = pow( 10, $precision );
|
2554 |
+
$i = $i * $precision;
|
2555 |
+
|
2556 |
+
$ceil = ceil( $i );
|
2557 |
+
$floor = floor( $i );
|
2558 |
+
if ( ( $ceil - $i ) <= ( $i - $floor ) ) {
|
2559 |
+
return $ceil / $precision;
|
2560 |
+
} else {
|
2561 |
+
return $floor / $precision;
|
2562 |
+
}
|
2563 |
+
}
|
2564 |
+
|
2565 |
+
/**
|
2566 |
+
* Create Less_Tree_* objects and optionally generate a cache string
|
2567 |
+
*
|
2568 |
+
* @return mixed
|
2569 |
+
*/
|
2570 |
+
public function NewObj0( $class ) {
|
2571 |
+
$obj = new $class();
|
2572 |
+
if ( $this->CacheEnabled() ) {
|
2573 |
+
$obj->cache_string = ' new '.$class.'()';
|
2574 |
+
}
|
2575 |
+
return $obj;
|
2576 |
+
}
|
2577 |
+
|
2578 |
+
public function NewObj1( $class, $arg ) {
|
2579 |
+
$obj = new $class( $arg );
|
2580 |
+
if ( $this->CacheEnabled() ) {
|
2581 |
+
$obj->cache_string = ' new '.$class.'('.Less_Parser::ArgString( $arg ).')';
|
2582 |
+
}
|
2583 |
+
return $obj;
|
2584 |
+
}
|
2585 |
+
|
2586 |
+
public function NewObj2( $class, $args ) {
|
2587 |
+
$obj = new $class( $args[0], $args[1] );
|
2588 |
+
if ( $this->CacheEnabled() ) {
|
2589 |
+
$this->ObjCache( $obj, $class, $args );
|
2590 |
+
}
|
2591 |
+
return $obj;
|
2592 |
+
}
|
2593 |
+
|
2594 |
+
public function NewObj3( $class, $args ) {
|
2595 |
+
$obj = new $class( $args[0], $args[1], $args[2] );
|
2596 |
+
if ( $this->CacheEnabled() ) {
|
2597 |
+
$this->ObjCache( $obj, $class, $args );
|
2598 |
+
}
|
2599 |
+
return $obj;
|
2600 |
+
}
|
2601 |
+
|
2602 |
+
public function NewObj4( $class, $args ) {
|
2603 |
+
$obj = new $class( $args[0], $args[1], $args[2], $args[3] );
|
2604 |
+
if ( $this->CacheEnabled() ) {
|
2605 |
+
$this->ObjCache( $obj, $class, $args );
|
2606 |
+
}
|
2607 |
+
return $obj;
|
2608 |
+
}
|
2609 |
+
|
2610 |
+
public function NewObj5( $class, $args ) {
|
2611 |
+
$obj = new $class( $args[0], $args[1], $args[2], $args[3], $args[4] );
|
2612 |
+
if ( $this->CacheEnabled() ) {
|
2613 |
+
$this->ObjCache( $obj, $class, $args );
|
2614 |
+
}
|
2615 |
+
return $obj;
|
2616 |
+
}
|
2617 |
+
|
2618 |
+
public function NewObj6( $class, $args ) {
|
2619 |
+
$obj = new $class( $args[0], $args[1], $args[2], $args[3], $args[4], $args[5] );
|
2620 |
+
if ( $this->CacheEnabled() ) {
|
2621 |
+
$this->ObjCache( $obj, $class, $args );
|
2622 |
+
}
|
2623 |
+
return $obj;
|
2624 |
+
}
|
2625 |
+
|
2626 |
+
public function NewObj7( $class, $args ) {
|
2627 |
+
$obj = new $class( $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6] );
|
2628 |
+
if ( $this->CacheEnabled() ) {
|
2629 |
+
$this->ObjCache( $obj, $class, $args );
|
2630 |
+
}
|
2631 |
+
return $obj;
|
2632 |
+
}
|
2633 |
+
|
2634 |
+
// caching
|
2635 |
+
public function ObjCache( $obj, $class, $args = array() ) {
|
2636 |
+
$obj->cache_string = ' new '.$class.'('. self::ArgCache( $args ).')';
|
2637 |
+
}
|
2638 |
+
|
2639 |
+
public function ArgCache( $args ) {
|
2640 |
+
return implode( ',', array_map( array( 'Less_Parser','ArgString' ), $args ) );
|
2641 |
+
}
|
2642 |
+
|
2643 |
+
/**
|
2644 |
+
* Convert an argument to a string for use in the parser cache
|
2645 |
+
*
|
2646 |
+
* @return string
|
2647 |
+
*/
|
2648 |
+
public static function ArgString( $arg ) {
|
2649 |
+
$type = gettype( $arg );
|
2650 |
+
|
2651 |
+
if ( $type === 'object' ) {
|
2652 |
+
$string = $arg->cache_string;
|
2653 |
+
unset( $arg->cache_string );
|
2654 |
+
return $string;
|
2655 |
+
|
2656 |
+
} elseif ( $type === 'array' ) {
|
2657 |
+
$string = ' Array(';
|
2658 |
+
foreach ( $arg as $k => $a ) {
|
2659 |
+
$string .= var_export( $k, true ).' => '.self::ArgString( $a ).',';
|
2660 |
+
}
|
2661 |
+
return $string . ')';
|
2662 |
+
}
|
2663 |
+
|
2664 |
+
return var_export( $arg, true );
|
2665 |
+
}
|
2666 |
+
|
2667 |
+
public function Error( $msg ) {
|
2668 |
+
throw new Less_Exception_Parser( $msg, null, $this->furthest, $this->env->currentFileInfo );
|
2669 |
+
}
|
2670 |
+
|
2671 |
+
public static function WinPath( $path ) {
|
2672 |
+
return str_replace( '\\', '/', $path );
|
2673 |
+
}
|
2674 |
+
|
2675 |
+
public static function AbsPath( $path, $winPath = false ) {
|
2676 |
+
if ( strpos( $path, '//' ) !== false && preg_match( '_^(https?:)?//\\w+(\\.\\w+)+/\\w+_i', $path ) ) {
|
2677 |
+
return $winPath ? '' : false;
|
2678 |
+
} else {
|
2679 |
+
$path = realpath( $path );
|
2680 |
+
if ( $winPath ) {
|
2681 |
+
$path = self::WinPath( $path );
|
2682 |
+
}
|
2683 |
+
return $path;
|
2684 |
+
}
|
2685 |
+
}
|
2686 |
+
|
2687 |
+
public function CacheEnabled() {
|
2688 |
+
return ( Less_Parser::$options['cache_method'] && ( Less_Cache::$cache_dir || ( Less_Parser::$options['cache_method'] == 'callback' ) ) );
|
2689 |
+
}
|
2690 |
+
|
2691 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/SourceMap/Base64VLQ.php
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Encode / Decode Base64 VLQ.
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage SourceMap
|
8 |
+
*/
|
9 |
+
class Less_SourceMap_Base64VLQ {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Shift
|
13 |
+
*
|
14 |
+
* @var integer
|
15 |
+
*/
|
16 |
+
private $shift = 5;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Mask
|
20 |
+
*
|
21 |
+
* @var integer
|
22 |
+
*/
|
23 |
+
private $mask = 0x1F; // == (1 << shift) == 0b00011111
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Continuation bit
|
27 |
+
*
|
28 |
+
* @var integer
|
29 |
+
*/
|
30 |
+
private $continuationBit = 0x20; // == (mask - 1 ) == 0b00100000
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Char to integer map
|
34 |
+
*
|
35 |
+
* @var array
|
36 |
+
*/
|
37 |
+
private $charToIntMap = array(
|
38 |
+
'A' => 0, 'B' => 1, 'C' => 2, 'D' => 3, 'E' => 4, 'F' => 5, 'G' => 6,
|
39 |
+
'H' => 7,'I' => 8, 'J' => 9, 'K' => 10, 'L' => 11, 'M' => 12, 'N' => 13,
|
40 |
+
'O' => 14, 'P' => 15, 'Q' => 16, 'R' => 17, 'S' => 18, 'T' => 19, 'U' => 20,
|
41 |
+
'V' => 21, 'W' => 22, 'X' => 23, 'Y' => 24, 'Z' => 25, 'a' => 26, 'b' => 27,
|
42 |
+
'c' => 28, 'd' => 29, 'e' => 30, 'f' => 31, 'g' => 32, 'h' => 33, 'i' => 34,
|
43 |
+
'j' => 35, 'k' => 36, 'l' => 37, 'm' => 38, 'n' => 39, 'o' => 40, 'p' => 41,
|
44 |
+
'q' => 42, 'r' => 43, 's' => 44, 't' => 45, 'u' => 46, 'v' => 47, 'w' => 48,
|
45 |
+
'x' => 49, 'y' => 50, 'z' => 51, 0 => 52, 1 => 53, 2 => 54, 3 => 55, 4 => 56,
|
46 |
+
5 => 57, 6 => 58, 7 => 59, 8 => 60, 9 => 61, '+' => 62, '/' => 63,
|
47 |
+
);
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Integer to char map
|
51 |
+
*
|
52 |
+
* @var array
|
53 |
+
*/
|
54 |
+
private $intToCharMap = array(
|
55 |
+
0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D', 4 => 'E', 5 => 'F', 6 => 'G',
|
56 |
+
7 => 'H', 8 => 'I', 9 => 'J', 10 => 'K', 11 => 'L', 12 => 'M', 13 => 'N',
|
57 |
+
14 => 'O', 15 => 'P', 16 => 'Q', 17 => 'R', 18 => 'S', 19 => 'T', 20 => 'U',
|
58 |
+
21 => 'V', 22 => 'W', 23 => 'X', 24 => 'Y', 25 => 'Z', 26 => 'a', 27 => 'b',
|
59 |
+
28 => 'c', 29 => 'd', 30 => 'e', 31 => 'f', 32 => 'g', 33 => 'h', 34 => 'i',
|
60 |
+
35 => 'j', 36 => 'k', 37 => 'l', 38 => 'm', 39 => 'n', 40 => 'o', 41 => 'p',
|
61 |
+
42 => 'q', 43 => 'r', 44 => 's', 45 => 't', 46 => 'u', 47 => 'v', 48 => 'w',
|
62 |
+
49 => 'x', 50 => 'y', 51 => 'z', 52 => '0', 53 => '1', 54 => '2', 55 => '3',
|
63 |
+
56 => '4', 57 => '5', 58 => '6', 59 => '7', 60 => '8', 61 => '9', 62 => '+',
|
64 |
+
63 => '/',
|
65 |
+
);
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Constructor
|
69 |
+
*/
|
70 |
+
public function __construct() {
|
71 |
+
// I leave it here for future reference
|
72 |
+
// foreach(str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/') as $i => $char)
|
73 |
+
// {
|
74 |
+
// $this->charToIntMap[$char] = $i;
|
75 |
+
// $this->intToCharMap[$i] = $char;
|
76 |
+
// }
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Convert from a two-complement value to a value where the sign bit is
|
81 |
+
* is placed in the least significant bit. For example, as decimals:
|
82 |
+
* 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
|
83 |
+
* 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
|
84 |
+
* We generate the value for 32 bit machines, hence -2147483648 becomes 1, not 4294967297,
|
85 |
+
* even on a 64 bit machine.
|
86 |
+
* @param string $aValue
|
87 |
+
*/
|
88 |
+
public function toVLQSigned( $aValue ) {
|
89 |
+
return 0xffffffff & ( $aValue < 0 ? ( ( -$aValue ) << 1 ) + 1 : ( $aValue << 1 ) + 0 );
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Convert to a two-complement value from a value where the sign bit is
|
94 |
+
* is placed in the least significant bit. For example, as decimals:
|
95 |
+
* 2 (10 binary) becomes 1, 3 (11 binary) becomes -1
|
96 |
+
* 4 (100 binary) becomes 2, 5 (101 binary) becomes -2
|
97 |
+
* We assume that the value was generated with a 32 bit machine in mind.
|
98 |
+
* Hence
|
99 |
+
* 1 becomes -2147483648
|
100 |
+
* even on a 64 bit machine.
|
101 |
+
* @param integer $aValue
|
102 |
+
*/
|
103 |
+
public function fromVLQSigned( $aValue ) {
|
104 |
+
return $aValue & 1 ? $this->zeroFill( ~$aValue + 2, 1 ) | ( -1 - 0x7fffffff ) : $this->zeroFill( $aValue, 1 );
|
105 |
+
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* Return the base 64 VLQ encoded value.
|
109 |
+
*
|
110 |
+
* @param string $aValue The value to encode
|
111 |
+
* @return string The encoded value
|
112 |
+
*/
|
113 |
+
public function encode( $aValue ) {
|
114 |
+
$encoded = '';
|
115 |
+
$vlq = $this->toVLQSigned( $aValue );
|
116 |
+
do
|
117 |
+
{
|
118 |
+
$digit = $vlq & $this->mask;
|
119 |
+
$vlq = $this->zeroFill( $vlq, $this->shift );
|
120 |
+
if ( $vlq > 0 ) {
|
121 |
+
$digit |= $this->continuationBit;
|
122 |
+
}
|
123 |
+
$encoded .= $this->base64Encode( $digit );
|
124 |
+
} while ( $vlq > 0 );
|
125 |
+
|
126 |
+
return $encoded;
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Return the value decoded from base 64 VLQ.
|
131 |
+
*
|
132 |
+
* @param string $encoded The encoded value to decode
|
133 |
+
* @return integer The decoded value
|
134 |
+
*/
|
135 |
+
public function decode( $encoded ) {
|
136 |
+
$vlq = 0;
|
137 |
+
$i = 0;
|
138 |
+
do
|
139 |
+
{
|
140 |
+
$digit = $this->base64Decode( $encoded[$i] );
|
141 |
+
$vlq |= ( $digit & $this->mask ) << ( $i * $this->shift );
|
142 |
+
$i++;
|
143 |
+
} while ( $digit & $this->continuationBit );
|
144 |
+
|
145 |
+
return $this->fromVLQSigned( $vlq );
|
146 |
+
}
|
147 |
+
|
148 |
+
/**
|
149 |
+
* Right shift with zero fill.
|
150 |
+
*
|
151 |
+
* @param integer $a number to shift
|
152 |
+
* @param integer $b number of bits to shift
|
153 |
+
* @return integer
|
154 |
+
*/
|
155 |
+
public function zeroFill( $a, $b ) {
|
156 |
+
return ( $a >= 0 ) ? ( $a >> $b ) : ( $a >> $b ) & ( PHP_INT_MAX >> ( $b - 1 ) );
|
157 |
+
}
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Encode single 6-bit digit as base64.
|
161 |
+
*
|
162 |
+
* @param integer $number
|
163 |
+
* @return string
|
164 |
+
* @throws Exception If the number is invalid
|
165 |
+
*/
|
166 |
+
public function base64Encode( $number ) {
|
167 |
+
if ( $number < 0 || $number > 63 ) {
|
168 |
+
throw new Exception( sprintf( 'Invalid number "%s" given. Must be between 0 and 63.', $number ) );
|
169 |
+
}
|
170 |
+
return $this->intToCharMap[$number];
|
171 |
+
}
|
172 |
+
|
173 |
+
/**
|
174 |
+
* Decode single 6-bit digit from base64
|
175 |
+
*
|
176 |
+
* @param string $char
|
177 |
+
* @return number
|
178 |
+
* @throws Exception If the number is invalid
|
179 |
+
*/
|
180 |
+
public function base64Decode( $char ) {
|
181 |
+
if ( !array_key_exists( $char, $this->charToIntMap ) ) {
|
182 |
+
throw new Exception( sprintf( 'Invalid base 64 digit "%s" given.', $char ) );
|
183 |
+
}
|
184 |
+
return $this->charToIntMap[$char];
|
185 |
+
}
|
186 |
+
|
187 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/SourceMap/Generator.php
ADDED
@@ -0,0 +1,354 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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*/
|
9 |
+
class Less_SourceMap_Generator extends Less_Configurable {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* What version of source map does the generator generate?
|
13 |
+
*/
|
14 |
+
private const VERSION = 3;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Array of default options
|
18 |
+
*
|
19 |
+
* @var array
|
20 |
+
*/
|
21 |
+
protected $defaultOptions = array(
|
22 |
+
// an optional source root, useful for relocating source files
|
23 |
+
// on a server or removing repeated values in the 'sources' entry.
|
24 |
+
// This value is prepended to the individual entries in the 'source' field.
|
25 |
+
'sourceRoot' => '',
|
26 |
+
|
27 |
+
// an optional name of the generated code that this source map is associated with.
|
28 |
+
'sourceMapFilename' => null,
|
29 |
+
|
30 |
+
// url of the map
|
31 |
+
'sourceMapURL' => null,
|
32 |
+
|
33 |
+
// absolute path to a file to write the map to
|
34 |
+
'sourceMapWriteTo' => null,
|
35 |
+
|
36 |
+
// output source contents?
|
37 |
+
'outputSourceFiles' => false,
|
38 |
+
|
39 |
+
// base path for filename normalization
|
40 |
+
'sourceMapRootpath' => '',
|
41 |
+
|
42 |
+
// base path for filename normalization
|
43 |
+
'sourceMapBasepath' => ''
|
44 |
+
);
|
45 |
+
|
46 |
+
/**
|
47 |
+
* The base64 VLQ encoder
|
48 |
+
*
|
49 |
+
* @var Less_SourceMap_Base64VLQ
|
50 |
+
*/
|
51 |
+
protected $encoder;
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Array of mappings
|
55 |
+
*
|
56 |
+
* @var array
|
57 |
+
*/
|
58 |
+
protected $mappings = array();
|
59 |
+
|
60 |
+
/**
|
61 |
+
* The root node
|
62 |
+
*
|
63 |
+
* @var Less_Tree_Ruleset
|
64 |
+
*/
|
65 |
+
protected $root;
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Array of contents map
|
69 |
+
*
|
70 |
+
* @var array
|
71 |
+
*/
|
72 |
+
protected $contentsMap = array();
|
73 |
+
|
74 |
+
/**
|
75 |
+
* File to content map
|
76 |
+
*
|
77 |
+
* @var array
|
78 |
+
*/
|
79 |
+
protected $sources = array();
|
80 |
+
protected $source_keys = array();
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Constructor
|
84 |
+
*
|
85 |
+
* @param Less_Tree_Ruleset $root The root node
|
86 |
+
* @param array $options Array of options
|
87 |
+
*/
|
88 |
+
public function __construct( Less_Tree_Ruleset $root, $contentsMap, $options = array() ) {
|
89 |
+
$this->root = $root;
|
90 |
+
$this->contentsMap = $contentsMap;
|
91 |
+
$this->encoder = new Less_SourceMap_Base64VLQ();
|
92 |
+
|
93 |
+
$this->SetOptions( $options );
|
94 |
+
|
95 |
+
$this->options['sourceMapRootpath'] = $this->fixWindowsPath( $this->options['sourceMapRootpath'], true );
|
96 |
+
$this->options['sourceMapBasepath'] = $this->fixWindowsPath( $this->options['sourceMapBasepath'], true );
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Generates the CSS
|
101 |
+
*
|
102 |
+
* @return string
|
103 |
+
*/
|
104 |
+
public function generateCSS() {
|
105 |
+
$output = new Less_Output_Mapped( $this->contentsMap, $this );
|
106 |
+
|
107 |
+
// catch the output
|
108 |
+
$this->root->genCSS( $output );
|
109 |
+
|
110 |
+
$sourceMapUrl = $this->getOption( 'sourceMapURL' );
|
111 |
+
$sourceMapFilename = $this->getOption( 'sourceMapFilename' );
|
112 |
+
$sourceMapContent = $this->generateJson();
|
113 |
+
$sourceMapWriteTo = $this->getOption( 'sourceMapWriteTo' );
|
114 |
+
|
115 |
+
if ( !$sourceMapUrl && $sourceMapFilename ) {
|
116 |
+
$sourceMapUrl = $this->normalizeFilename( $sourceMapFilename );
|
117 |
+
}
|
118 |
+
|
119 |
+
// write map to a file
|
120 |
+
if ( $sourceMapWriteTo ) {
|
121 |
+
$this->saveMap( $sourceMapWriteTo, $sourceMapContent );
|
122 |
+
}
|
123 |
+
|
124 |
+
// inline the map
|
125 |
+
if ( !$sourceMapUrl ) {
|
126 |
+
$sourceMapUrl = sprintf( 'data:application/json,%s', Less_Functions::encodeURIComponent( $sourceMapContent ) );
|
127 |
+
}
|
128 |
+
|
129 |
+
if ( $sourceMapUrl ) {
|
130 |
+
$output->add( sprintf( '/*# sourceMappingURL=%s */', $sourceMapUrl ) );
|
131 |
+
}
|
132 |
+
|
133 |
+
return $output->toString();
|
134 |
+
}
|
135 |
+
|
136 |
+
/**
|
137 |
+
* Saves the source map to a file
|
138 |
+
*
|
139 |
+
* @param string $file The absolute path to a file
|
140 |
+
* @param string $content The content to write
|
141 |
+
* @throws Exception If the file could not be saved
|
142 |
+
*/
|
143 |
+
protected function saveMap( $file, $content ) {
|
144 |
+
$dir = dirname( $file );
|
145 |
+
// directory does not exist
|
146 |
+
if ( !is_dir( $dir ) ) {
|
147 |
+
// FIXME: create the dir automatically?
|
148 |
+
throw new Exception( sprintf( 'The directory "%s" does not exist. Cannot save the source map.', $dir ) );
|
149 |
+
}
|
150 |
+
// FIXME: proper saving, with dir write check!
|
151 |
+
if ( file_put_contents( $file, $content ) === false ) {
|
152 |
+
throw new Exception( sprintf( 'Cannot save the source map to "%s"', $file ) );
|
153 |
+
}
|
154 |
+
return true;
|
155 |
+
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Normalizes the filename
|
159 |
+
*
|
160 |
+
* @param string $filename
|
161 |
+
* @return string
|
162 |
+
*/
|
163 |
+
protected function normalizeFilename( $filename ) {
|
164 |
+
$filename = $this->fixWindowsPath( $filename );
|
165 |
+
|
166 |
+
$rootpath = $this->getOption( 'sourceMapRootpath' );
|
167 |
+
$basePath = $this->getOption( 'sourceMapBasepath' );
|
168 |
+
|
169 |
+
// "Trim" the 'sourceMapBasepath' from the output filename.
|
170 |
+
if ( is_string( $basePath ) && strpos( $filename, $basePath ) === 0 ) {
|
171 |
+
$filename = substr( $filename, strlen( $basePath ) );
|
172 |
+
}
|
173 |
+
|
174 |
+
// Remove extra leading path separators.
|
175 |
+
if ( strpos( $filename, '\\' ) === 0 || strpos( $filename, '/' ) === 0 ) {
|
176 |
+
$filename = substr( $filename, 1 );
|
177 |
+
}
|
178 |
+
|
179 |
+
return $rootpath . $filename;
|
180 |
+
}
|
181 |
+
|
182 |
+
/**
|
183 |
+
* Adds a mapping
|
184 |
+
*
|
185 |
+
* @param integer $generatedLine The line number in generated file
|
186 |
+
* @param integer $generatedColumn The column number in generated file
|
187 |
+
* @param integer $originalLine The line number in original file
|
188 |
+
* @param integer $originalColumn The column number in original file
|
189 |
+
* @param string $sourceFile The original source file
|
190 |
+
*/
|
191 |
+
public function addMapping( $generatedLine, $generatedColumn, $originalLine, $originalColumn, $fileInfo ) {
|
192 |
+
$this->mappings[] = array(
|
193 |
+
'generated_line' => $generatedLine,
|
194 |
+
'generated_column' => $generatedColumn,
|
195 |
+
'original_line' => $originalLine,
|
196 |
+
'original_column' => $originalColumn,
|
197 |
+
'source_file' => $fileInfo['currentUri']
|
198 |
+
);
|
199 |
+
|
200 |
+
$this->sources[$fileInfo['currentUri']] = $fileInfo['filename'];
|
201 |
+
}
|
202 |
+
|
203 |
+
/**
|
204 |
+
* Generates the JSON source map
|
205 |
+
*
|
206 |
+
* @return string
|
207 |
+
* @see https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#
|
208 |
+
*/
|
209 |
+
protected function generateJson() {
|
210 |
+
$sourceMap = array();
|
211 |
+
$mappings = $this->generateMappings();
|
212 |
+
|
213 |
+
// File version (always the first entry in the object) and must be a positive integer.
|
214 |
+
$sourceMap['version'] = self::VERSION;
|
215 |
+
|
216 |
+
// An optional name of the generated code that this source map is associated with.
|
217 |
+
$file = $this->getOption( 'sourceMapFilename' );
|
218 |
+
if ( $file ) {
|
219 |
+
$sourceMap['file'] = $file;
|
220 |
+
}
|
221 |
+
|
222 |
+
// An optional source root, useful for relocating source files on a server or removing repeated values in the 'sources' entry. This value is prepended to the individual entries in the 'source' field.
|
223 |
+
$root = $this->getOption( 'sourceRoot' );
|
224 |
+
if ( $root ) {
|
225 |
+
$sourceMap['sourceRoot'] = $root;
|
226 |
+
}
|
227 |
+
|
228 |
+
// A list of original sources used by the 'mappings' entry.
|
229 |
+
$sourceMap['sources'] = array();
|
230 |
+
foreach ( $this->sources as $source_uri => $source_filename ) {
|
231 |
+
$sourceMap['sources'][] = $this->normalizeFilename( $source_filename );
|
232 |
+
}
|
233 |
+
|
234 |
+
// A list of symbol names used by the 'mappings' entry.
|
235 |
+
$sourceMap['names'] = array();
|
236 |
+
|
237 |
+
// A string with the encoded mapping data.
|
238 |
+
$sourceMap['mappings'] = $mappings;
|
239 |
+
|
240 |
+
if ( $this->getOption( 'outputSourceFiles' ) ) {
|
241 |
+
// An optional list of source content, useful when the 'source' can't be hosted.
|
242 |
+
// The contents are listed in the same order as the sources above.
|
243 |
+
// 'null' may be used if some original sources should be retrieved by name.
|
244 |
+
$sourceMap['sourcesContent'] = $this->getSourcesContent();
|
245 |
+
}
|
246 |
+
|
247 |
+
// less.js compat fixes
|
248 |
+
if ( count( $sourceMap['sources'] ) && empty( $sourceMap['sourceRoot'] ) ) {
|
249 |
+
unset( $sourceMap['sourceRoot'] );
|
250 |
+
}
|
251 |
+
|
252 |
+
return json_encode( $sourceMap );
|
253 |
+
}
|
254 |
+
|
255 |
+
/**
|
256 |
+
* Returns the sources contents
|
257 |
+
*
|
258 |
+
* @return array|null
|
259 |
+
*/
|
260 |
+
protected function getSourcesContent() {
|
261 |
+
if ( empty( $this->sources ) ) {
|
262 |
+
return;
|
263 |
+
}
|
264 |
+
$content = array();
|
265 |
+
foreach ( $this->sources as $sourceFile ) {
|
266 |
+
$content[] = file_get_contents( $sourceFile );
|
267 |
+
}
|
268 |
+
return $content;
|
269 |
+
}
|
270 |
+
|
271 |
+
/**
|
272 |
+
* Generates the mappings string
|
273 |
+
*
|
274 |
+
* @return string
|
275 |
+
*/
|
276 |
+
public function generateMappings() {
|
277 |
+
if ( !count( $this->mappings ) ) {
|
278 |
+
return '';
|
279 |
+
}
|
280 |
+
|
281 |
+
$this->source_keys = array_flip( array_keys( $this->sources ) );
|
282 |
+
|
283 |
+
// group mappings by generated line number.
|
284 |
+
$groupedMap = $groupedMapEncoded = array();
|
285 |
+
foreach ( $this->mappings as $m ) {
|
286 |
+
$groupedMap[$m['generated_line']][] = $m;
|
287 |
+
}
|
288 |
+
ksort( $groupedMap );
|
289 |
+
|
290 |
+
$lastGeneratedLine = $lastOriginalIndex = $lastOriginalLine = $lastOriginalColumn = 0;
|
291 |
+
|
292 |
+
foreach ( $groupedMap as $lineNumber => $line_map ) {
|
293 |
+
while ( ++$lastGeneratedLine < $lineNumber ) {
|
294 |
+
$groupedMapEncoded[] = ';';
|
295 |
+
}
|
296 |
+
|
297 |
+
$lineMapEncoded = array();
|
298 |
+
$lastGeneratedColumn = 0;
|
299 |
+
|
300 |
+
foreach ( $line_map as $m ) {
|
301 |
+
$mapEncoded = $this->encoder->encode( $m['generated_column'] - $lastGeneratedColumn );
|
302 |
+
$lastGeneratedColumn = $m['generated_column'];
|
303 |
+
|
304 |
+
// find the index
|
305 |
+
if ( $m['source_file'] ) {
|
306 |
+
$index = $this->findFileIndex( $m['source_file'] );
|
307 |
+
if ( $index !== false ) {
|
308 |
+
$mapEncoded .= $this->encoder->encode( $index - $lastOriginalIndex );
|
309 |
+
$lastOriginalIndex = $index;
|
310 |
+
|
311 |
+
// lines are stored 0-based in SourceMap spec version 3
|
312 |
+
$mapEncoded .= $this->encoder->encode( $m['original_line'] - 1 - $lastOriginalLine );
|
313 |
+
$lastOriginalLine = $m['original_line'] - 1;
|
314 |
+
|
315 |
+
$mapEncoded .= $this->encoder->encode( $m['original_column'] - $lastOriginalColumn );
|
316 |
+
$lastOriginalColumn = $m['original_column'];
|
317 |
+
}
|
318 |
+
}
|
319 |
+
|
320 |
+
$lineMapEncoded[] = $mapEncoded;
|
321 |
+
}
|
322 |
+
|
323 |
+
$groupedMapEncoded[] = implode( ',', $lineMapEncoded ) . ';';
|
324 |
+
}
|
325 |
+
|
326 |
+
return rtrim( implode( $groupedMapEncoded ), ';' );
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* Finds the index for the filename
|
331 |
+
*
|
332 |
+
* @param string $filename
|
333 |
+
* @return integer|false
|
334 |
+
*/
|
335 |
+
protected function findFileIndex( $filename ) {
|
336 |
+
return $this->source_keys[$filename];
|
337 |
+
}
|
338 |
+
|
339 |
+
/**
|
340 |
+
* fix windows paths
|
341 |
+
* @param string $path
|
342 |
+
* @return string
|
343 |
+
*/
|
344 |
+
public function fixWindowsPath( $path, $addEndSlash = false ) {
|
345 |
+
$slash = ( $addEndSlash ) ? '/' : '';
|
346 |
+
if ( !empty( $path ) ) {
|
347 |
+
$path = str_replace( '\\', '/', $path );
|
348 |
+
$path = rtrim( $path, '/' ) . $slash;
|
349 |
+
}
|
350 |
+
|
351 |
+
return $path;
|
352 |
+
}
|
353 |
+
|
354 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Tree
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree {
|
10 |
+
|
11 |
+
public $cache_string;
|
12 |
+
|
13 |
+
public function toCSS() {
|
14 |
+
$output = new Less_Output();
|
15 |
+
$this->genCSS( $output );
|
16 |
+
return $output->toString();
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Generate CSS by adding it to the output object
|
21 |
+
*
|
22 |
+
* @param Less_Output $output The output
|
23 |
+
* @return void
|
24 |
+
*/
|
25 |
+
public function genCSS( $output ) {
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @param Less_Tree_Ruleset[] $rules
|
30 |
+
*/
|
31 |
+
public static function outputRuleset( $output, $rules ) {
|
32 |
+
$ruleCnt = count( $rules );
|
33 |
+
Less_Environment::$tabLevel++;
|
34 |
+
|
35 |
+
// Compressed
|
36 |
+
if ( Less_Parser::$options['compress'] ) {
|
37 |
+
$output->add( '{' );
|
38 |
+
for ( $i = 0; $i < $ruleCnt; $i++ ) {
|
39 |
+
$rules[$i]->genCSS( $output );
|
40 |
+
}
|
41 |
+
|
42 |
+
$output->add( '}' );
|
43 |
+
Less_Environment::$tabLevel--;
|
44 |
+
return;
|
45 |
+
}
|
46 |
+
|
47 |
+
// Non-compressed
|
48 |
+
$tabSetStr = "\n".str_repeat( Less_Parser::$options['indentation'], Less_Environment::$tabLevel - 1 );
|
49 |
+
$tabRuleStr = $tabSetStr.Less_Parser::$options['indentation'];
|
50 |
+
|
51 |
+
$output->add( " {" );
|
52 |
+
for ( $i = 0; $i < $ruleCnt; $i++ ) {
|
53 |
+
$output->add( $tabRuleStr );
|
54 |
+
$rules[$i]->genCSS( $output );
|
55 |
+
}
|
56 |
+
Less_Environment::$tabLevel--;
|
57 |
+
$output->add( $tabSetStr.'}' );
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
public function accept( $visitor ) {
|
62 |
+
}
|
63 |
+
|
64 |
+
public static function ReferencedArray( $rules ) {
|
65 |
+
foreach ( $rules as $rule ) {
|
66 |
+
if ( method_exists( $rule, 'markReferenced' ) ) {
|
67 |
+
$rule->markReferenced();
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Requires php 5.3+
|
74 |
+
*/
|
75 |
+
public static function __set_state( $args ) {
|
76 |
+
$class = get_called_class();
|
77 |
+
$obj = new $class( null, null, null, null );
|
78 |
+
foreach ( $args as $key => $val ) {
|
79 |
+
$obj->$key = $val;
|
80 |
+
}
|
81 |
+
return $obj;
|
82 |
+
}
|
83 |
+
|
84 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Alpha.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Alpha
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Alpha extends Less_Tree {
|
10 |
+
public $value;
|
11 |
+
public $type = 'Alpha';
|
12 |
+
|
13 |
+
public function __construct( $val ) {
|
14 |
+
$this->value = $val;
|
15 |
+
}
|
16 |
+
|
17 |
+
// function accept( $visitor ){
|
18 |
+
// $this->value = $visitor->visit( $this->value );
|
19 |
+
//}
|
20 |
+
|
21 |
+
public function compile( $env ) {
|
22 |
+
if ( is_object( $this->value ) ) {
|
23 |
+
$this->value = $this->value->compile( $env );
|
24 |
+
}
|
25 |
+
|
26 |
+
return $this;
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* @see Less_Tree::genCSS
|
31 |
+
*/
|
32 |
+
public function genCSS( $output ) {
|
33 |
+
$output->add( "alpha(opacity=" );
|
34 |
+
|
35 |
+
if ( is_string( $this->value ) ) {
|
36 |
+
$output->add( $this->value );
|
37 |
+
} else {
|
38 |
+
$this->value->genCSS( $output );
|
39 |
+
}
|
40 |
+
|
41 |
+
$output->add( ')' );
|
42 |
+
}
|
43 |
+
|
44 |
+
public function toCSS() {
|
45 |
+
return "alpha(opacity=" . ( is_string( $this->value ) ? $this->value : $this->value->toCSS() ) . ")";
|
46 |
+
}
|
47 |
+
|
48 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Anonymous.php
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Anonymous
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Anonymous extends Less_Tree {
|
10 |
+
public $value;
|
11 |
+
public $quote;
|
12 |
+
public $index;
|
13 |
+
public $mapLines;
|
14 |
+
public $currentFileInfo;
|
15 |
+
public $type = 'Anonymous';
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @param integer $index
|
19 |
+
* @param boolean $mapLines
|
20 |
+
*/
|
21 |
+
public function __construct( $value, $index = null, $currentFileInfo = null, $mapLines = null ) {
|
22 |
+
$this->value = $value;
|
23 |
+
$this->index = $index;
|
24 |
+
$this->mapLines = $mapLines;
|
25 |
+
$this->currentFileInfo = $currentFileInfo;
|
26 |
+
}
|
27 |
+
|
28 |
+
public function compile() {
|
29 |
+
return new Less_Tree_Anonymous( $this->value, $this->index, $this->currentFileInfo, $this->mapLines );
|
30 |
+
}
|
31 |
+
|
32 |
+
public function compare( $x ) {
|
33 |
+
if ( !is_object( $x ) ) {
|
34 |
+
return -1;
|
35 |
+
}
|
36 |
+
|
37 |
+
$left = $this->toCSS();
|
38 |
+
$right = $x->toCSS();
|
39 |
+
|
40 |
+
if ( $left === $right ) {
|
41 |
+
return 0;
|
42 |
+
}
|
43 |
+
|
44 |
+
return $left < $right ? -1 : 1;
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* @see Less_Tree::genCSS
|
49 |
+
*/
|
50 |
+
public function genCSS( $output ) {
|
51 |
+
$output->add( $this->value, $this->currentFileInfo, $this->index, $this->mapLines );
|
52 |
+
}
|
53 |
+
|
54 |
+
public function toCSS() {
|
55 |
+
return $this->value;
|
56 |
+
}
|
57 |
+
|
58 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Assignment.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Assignment
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Assignment extends Less_Tree {
|
10 |
+
|
11 |
+
public $key;
|
12 |
+
public $value;
|
13 |
+
public $type = 'Assignment';
|
14 |
+
|
15 |
+
public function __construct( $key, $val ) {
|
16 |
+
$this->key = $key;
|
17 |
+
$this->value = $val;
|
18 |
+
}
|
19 |
+
|
20 |
+
public function accept( $visitor ) {
|
21 |
+
$this->value = $visitor->visitObj( $this->value );
|
22 |
+
}
|
23 |
+
|
24 |
+
public function compile( $env ) {
|
25 |
+
return new Less_Tree_Assignment( $this->key, $this->value->compile( $env ) );
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @see Less_Tree::genCSS
|
30 |
+
*/
|
31 |
+
public function genCSS( $output ) {
|
32 |
+
$output->add( $this->key . '=' );
|
33 |
+
$this->value->genCSS( $output );
|
34 |
+
}
|
35 |
+
|
36 |
+
public function toCss() {
|
37 |
+
return $this->key . '=' . $this->value->toCSS();
|
38 |
+
}
|
39 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Attribute.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Attribute
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Attribute extends Less_Tree {
|
10 |
+
|
11 |
+
public $key;
|
12 |
+
public $op;
|
13 |
+
public $value;
|
14 |
+
public $type = 'Attribute';
|
15 |
+
|
16 |
+
public function __construct( $key, $op, $value ) {
|
17 |
+
$this->key = $key;
|
18 |
+
$this->op = $op;
|
19 |
+
$this->value = $value;
|
20 |
+
}
|
21 |
+
|
22 |
+
public function compile( $env ) {
|
23 |
+
$key_obj = is_object( $this->key );
|
24 |
+
$val_obj = is_object( $this->value );
|
25 |
+
|
26 |
+
if ( !$key_obj && !$val_obj ) {
|
27 |
+
return $this;
|
28 |
+
}
|
29 |
+
|
30 |
+
return new Less_Tree_Attribute(
|
31 |
+
$key_obj ? $this->key->compile( $env ) : $this->key,
|
32 |
+
$this->op,
|
33 |
+
$val_obj ? $this->value->compile( $env ) : $this->value );
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* @see Less_Tree::genCSS
|
38 |
+
*/
|
39 |
+
public function genCSS( $output ) {
|
40 |
+
$output->add( $this->toCSS() );
|
41 |
+
}
|
42 |
+
|
43 |
+
public function toCSS() {
|
44 |
+
$value = $this->key;
|
45 |
+
|
46 |
+
if ( $this->op ) {
|
47 |
+
$value .= $this->op;
|
48 |
+
$value .= ( is_object( $this->value ) ? $this->value->toCSS() : $this->value );
|
49 |
+
}
|
50 |
+
|
51 |
+
return '[' . $value . ']';
|
52 |
+
}
|
53 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Call.php
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Call
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Call extends Less_Tree {
|
10 |
+
public $value;
|
11 |
+
|
12 |
+
public $name;
|
13 |
+
public $args;
|
14 |
+
public $index;
|
15 |
+
public $currentFileInfo;
|
16 |
+
public $type = 'Call';
|
17 |
+
|
18 |
+
public function __construct( $name, $args, $index, $currentFileInfo = null ) {
|
19 |
+
$this->name = $name;
|
20 |
+
$this->args = $args;
|
21 |
+
$this->index = $index;
|
22 |
+
$this->currentFileInfo = $currentFileInfo;
|
23 |
+
}
|
24 |
+
|
25 |
+
public function accept( $visitor ) {
|
26 |
+
$this->args = $visitor->visitArray( $this->args );
|
27 |
+
}
|
28 |
+
|
29 |
+
//
|
30 |
+
// When evaluating a function call,
|
31 |
+
// we either find the function in `tree.functions` [1],
|
32 |
+
// in which case we call it, passing the evaluated arguments,
|
33 |
+
// or we simply print it out as it appeared originally [2].
|
34 |
+
//
|
35 |
+
// The *functions.js* file contains the built-in functions.
|
36 |
+
//
|
37 |
+
// The reason why we evaluate the arguments, is in the case where
|
38 |
+
// we try to pass a variable to a function, like: `saturate(@color)`.
|
39 |
+
// The function should receive the value, not the variable.
|
40 |
+
//
|
41 |
+
public function compile( $env = null ) {
|
42 |
+
$args = array();
|
43 |
+
foreach ( $this->args as $a ) {
|
44 |
+
$args[] = $a->compile( $env );
|
45 |
+
}
|
46 |
+
|
47 |
+
$nameLC = strtolower( $this->name );
|
48 |
+
switch ( $nameLC ) {
|
49 |
+
case '%':
|
50 |
+
$nameLC = '_percent';
|
51 |
+
break;
|
52 |
+
|
53 |
+
case 'get-unit':
|
54 |
+
$nameLC = 'getunit';
|
55 |
+
break;
|
56 |
+
|
57 |
+
case 'data-uri':
|
58 |
+
$nameLC = 'datauri';
|
59 |
+
break;
|
60 |
+
|
61 |
+
case 'svg-gradient':
|
62 |
+
$nameLC = 'svggradient';
|
63 |
+
break;
|
64 |
+
}
|
65 |
+
|
66 |
+
$result = null;
|
67 |
+
if ( $nameLC === 'default' ) {
|
68 |
+
$result = Less_Tree_DefaultFunc::compile();
|
69 |
+
|
70 |
+
} else {
|
71 |
+
|
72 |
+
if ( method_exists( 'Less_Functions', $nameLC ) ) { // 1.
|
73 |
+
try {
|
74 |
+
|
75 |
+
$func = new Less_Functions( $env, $this->currentFileInfo );
|
76 |
+
$result = call_user_func_array( array( $func,$nameLC ), $args );
|
77 |
+
|
78 |
+
} catch ( Exception $e ) {
|
79 |
+
throw new Less_Exception_Compiler( 'error evaluating function `' . $this->name . '` '.$e->getMessage().' index: '. $this->index );
|
80 |
+
}
|
81 |
+
} elseif ( isset( $env->functions[$nameLC] ) && is_callable( $env->functions[$nameLC] ) ) {
|
82 |
+
try {
|
83 |
+
$result = call_user_func_array( $env->functions[$nameLC], $args );
|
84 |
+
} catch ( Exception $e ) {
|
85 |
+
throw new Less_Exception_Compiler( 'error evaluating function `' . $this->name . '` '.$e->getMessage().' index: '. $this->index );
|
86 |
+
}
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
if ( $result !== null ) {
|
91 |
+
return $result;
|
92 |
+
}
|
93 |
+
|
94 |
+
return new Less_Tree_Call( $this->name, $args, $this->index, $this->currentFileInfo );
|
95 |
+
}
|
96 |
+
|
97 |
+
/**
|
98 |
+
* @see Less_Tree::genCSS
|
99 |
+
*/
|
100 |
+
public function genCSS( $output ) {
|
101 |
+
$output->add( $this->name . '(', $this->currentFileInfo, $this->index );
|
102 |
+
$args_len = count( $this->args );
|
103 |
+
for ( $i = 0; $i < $args_len; $i++ ) {
|
104 |
+
$this->args[$i]->genCSS( $output );
|
105 |
+
if ( $i + 1 < $args_len ) {
|
106 |
+
$output->add( ', ' );
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
$output->add( ')' );
|
111 |
+
}
|
112 |
+
|
113 |
+
// public function toCSS(){
|
114 |
+
// return $this->compile()->toCSS();
|
115 |
+
//}
|
116 |
+
|
117 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Color.php
ADDED
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Color
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Color extends Less_Tree {
|
10 |
+
public $rgb;
|
11 |
+
public $alpha;
|
12 |
+
public $isTransparentKeyword;
|
13 |
+
public $type = 'Color';
|
14 |
+
|
15 |
+
public function __construct( $rgb, $a = 1, $isTransparentKeyword = null ) {
|
16 |
+
if ( $isTransparentKeyword ) {
|
17 |
+
$this->rgb = $rgb;
|
18 |
+
$this->alpha = $a;
|
19 |
+
$this->isTransparentKeyword = true;
|
20 |
+
return;
|
21 |
+
}
|
22 |
+
|
23 |
+
$this->rgb = array();
|
24 |
+
if ( is_array( $rgb ) ) {
|
25 |
+
$this->rgb = $rgb;
|
26 |
+
} else if ( strlen( $rgb ) == 6 ) {
|
27 |
+
foreach ( str_split( $rgb, 2 ) as $c ) {
|
28 |
+
$this->rgb[] = hexdec( $c );
|
29 |
+
}
|
30 |
+
} else {
|
31 |
+
foreach ( str_split( $rgb, 1 ) as $c ) {
|
32 |
+
$this->rgb[] = hexdec( $c.$c );
|
33 |
+
}
|
34 |
+
}
|
35 |
+
$this->alpha = is_numeric( $a ) ? $a : 1;
|
36 |
+
}
|
37 |
+
|
38 |
+
public function compile() {
|
39 |
+
return $this;
|
40 |
+
}
|
41 |
+
|
42 |
+
public function luma() {
|
43 |
+
$r = $this->rgb[0] / 255;
|
44 |
+
$g = $this->rgb[1] / 255;
|
45 |
+
$b = $this->rgb[2] / 255;
|
46 |
+
|
47 |
+
$r = ( $r <= 0.03928 ) ? $r / 12.92 : pow( ( ( $r + 0.055 ) / 1.055 ), 2.4 );
|
48 |
+
$g = ( $g <= 0.03928 ) ? $g / 12.92 : pow( ( ( $g + 0.055 ) / 1.055 ), 2.4 );
|
49 |
+
$b = ( $b <= 0.03928 ) ? $b / 12.92 : pow( ( ( $b + 0.055 ) / 1.055 ), 2.4 );
|
50 |
+
|
51 |
+
return 0.2126 * $r + 0.7152 * $g + 0.0722 * $b;
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* @see Less_Tree::genCSS
|
56 |
+
*/
|
57 |
+
public function genCSS( $output ) {
|
58 |
+
$output->add( $this->toCSS() );
|
59 |
+
}
|
60 |
+
|
61 |
+
public function toCSS( $doNotCompress = false ) {
|
62 |
+
$compress = Less_Parser::$options['compress'] && !$doNotCompress;
|
63 |
+
$alpha = Less_Functions::fround( $this->alpha );
|
64 |
+
|
65 |
+
//
|
66 |
+
// If we have some transparency, the only way to represent it
|
67 |
+
// is via `rgba`. Otherwise, we use the hex representation,
|
68 |
+
// which has better compatibility with older browsers.
|
69 |
+
// Values are capped between `0` and `255`, rounded and zero-padded.
|
70 |
+
//
|
71 |
+
if ( $alpha < 1 ) {
|
72 |
+
if ( ( $alpha === 0 || $alpha === 0.0 ) && isset( $this->isTransparentKeyword ) && $this->isTransparentKeyword ) {
|
73 |
+
return 'transparent';
|
74 |
+
}
|
75 |
+
|
76 |
+
$values = array();
|
77 |
+
foreach ( $this->rgb as $c ) {
|
78 |
+
$values[] = Less_Functions::clamp( round( $c ), 255 );
|
79 |
+
}
|
80 |
+
$values[] = $alpha;
|
81 |
+
|
82 |
+
$glue = ( $compress ? ',' : ', ' );
|
83 |
+
return "rgba(" . implode( $glue, $values ) . ")";
|
84 |
+
} else {
|
85 |
+
|
86 |
+
$color = $this->toRGB();
|
87 |
+
|
88 |
+
if ( $compress ) {
|
89 |
+
|
90 |
+
// Convert color to short format
|
91 |
+
if ( $color[1] === $color[2] && $color[3] === $color[4] && $color[5] === $color[6] ) {
|
92 |
+
$color = '#'.$color[1] . $color[3] . $color[5];
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
return $color;
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
//
|
101 |
+
// Operations have to be done per-channel, if not,
|
102 |
+
// channels will spill onto each other. Once we have
|
103 |
+
// our result, in the form of an integer triplet,
|
104 |
+
// we create a new Color node to hold the result.
|
105 |
+
//
|
106 |
+
|
107 |
+
/**
|
108 |
+
* @param string $op
|
109 |
+
*/
|
110 |
+
public function operate( $op, $other ) {
|
111 |
+
$rgb = array();
|
112 |
+
$alpha = $this->alpha * ( 1 - $other->alpha ) + $other->alpha;
|
113 |
+
for ( $c = 0; $c < 3; $c++ ) {
|
114 |
+
$rgb[$c] = Less_Functions::operate( $op, $this->rgb[$c], $other->rgb[$c] );
|
115 |
+
}
|
116 |
+
return new Less_Tree_Color( $rgb, $alpha );
|
117 |
+
}
|
118 |
+
|
119 |
+
public function toRGB() {
|
120 |
+
return $this->toHex( $this->rgb );
|
121 |
+
}
|
122 |
+
|
123 |
+
public function toHSL() {
|
124 |
+
$r = $this->rgb[0] / 255;
|
125 |
+
$g = $this->rgb[1] / 255;
|
126 |
+
$b = $this->rgb[2] / 255;
|
127 |
+
$a = $this->alpha;
|
128 |
+
|
129 |
+
$max = max( $r, $g, $b );
|
130 |
+
$min = min( $r, $g, $b );
|
131 |
+
$l = ( $max + $min ) / 2;
|
132 |
+
$d = $max - $min;
|
133 |
+
|
134 |
+
$h = $s = 0;
|
135 |
+
if ( $max !== $min ) {
|
136 |
+
$s = $l > 0.5 ? $d / ( 2 - $max - $min ) : $d / ( $max + $min );
|
137 |
+
|
138 |
+
switch ( $max ) {
|
139 |
+
case $r: $h = ( $g - $b ) / $d + ( $g < $b ? 6 : 0 );
|
140 |
+
break;
|
141 |
+
case $g: $h = ( $b - $r ) / $d + 2;
|
142 |
+
break;
|
143 |
+
case $b: $h = ( $r - $g ) / $d + 4;
|
144 |
+
break;
|
145 |
+
}
|
146 |
+
$h /= 6;
|
147 |
+
}
|
148 |
+
return array( 'h' => $h * 360, 's' => $s, 'l' => $l, 'a' => $a );
|
149 |
+
}
|
150 |
+
|
151 |
+
// Adapted from http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
|
152 |
+
public function toHSV() {
|
153 |
+
$r = $this->rgb[0] / 255;
|
154 |
+
$g = $this->rgb[1] / 255;
|
155 |
+
$b = $this->rgb[2] / 255;
|
156 |
+
$a = $this->alpha;
|
157 |
+
|
158 |
+
$max = max( $r, $g, $b );
|
159 |
+
$min = min( $r, $g, $b );
|
160 |
+
|
161 |
+
$v = $max;
|
162 |
+
|
163 |
+
$d = $max - $min;
|
164 |
+
if ( $max === 0 ) {
|
165 |
+
$s = 0;
|
166 |
+
} else {
|
167 |
+
$s = $d / $max;
|
168 |
+
}
|
169 |
+
|
170 |
+
$h = 0;
|
171 |
+
if ( $max !== $min ) {
|
172 |
+
switch ( $max ) {
|
173 |
+
case $r: $h = ( $g - $b ) / $d + ( $g < $b ? 6 : 0 );
|
174 |
+
break;
|
175 |
+
case $g: $h = ( $b - $r ) / $d + 2;
|
176 |
+
break;
|
177 |
+
case $b: $h = ( $r - $g ) / $d + 4;
|
178 |
+
break;
|
179 |
+
}
|
180 |
+
$h /= 6;
|
181 |
+
}
|
182 |
+
return array( 'h' => $h * 360, 's' => $s, 'v' => $v, 'a' => $a );
|
183 |
+
}
|
184 |
+
|
185 |
+
public function toARGB() {
|
186 |
+
$argb = array_merge( (array)Less_Parser::round( $this->alpha * 255 ), $this->rgb );
|
187 |
+
return $this->toHex( $argb );
|
188 |
+
}
|
189 |
+
|
190 |
+
public function compare( $x ) {
|
191 |
+
if ( !property_exists( $x, 'rgb' ) ) {
|
192 |
+
return -1;
|
193 |
+
}
|
194 |
+
|
195 |
+
return ( $x->rgb[0] === $this->rgb[0] &&
|
196 |
+
$x->rgb[1] === $this->rgb[1] &&
|
197 |
+
$x->rgb[2] === $this->rgb[2] &&
|
198 |
+
$x->alpha === $this->alpha ) ? 0 : -1;
|
199 |
+
}
|
200 |
+
|
201 |
+
public function toHex( $v ) {
|
202 |
+
$ret = '#';
|
203 |
+
foreach ( $v as $c ) {
|
204 |
+
$c = Less_Functions::clamp( Less_Parser::round( $c ), 255 );
|
205 |
+
if ( $c < 16 ) {
|
206 |
+
$ret .= '0';
|
207 |
+
}
|
208 |
+
$ret .= dechex( $c );
|
209 |
+
}
|
210 |
+
|
211 |
+
return $ret;
|
212 |
+
}
|
213 |
+
|
214 |
+
/**
|
215 |
+
* @param string $keyword
|
216 |
+
*/
|
217 |
+
public static function fromKeyword( $keyword ) {
|
218 |
+
$keyword = strtolower( $keyword );
|
219 |
+
|
220 |
+
if ( Less_Colors::hasOwnProperty( $keyword ) ) {
|
221 |
+
// detect named color
|
222 |
+
return new Less_Tree_Color( substr( Less_Colors::color( $keyword ), 1 ) );
|
223 |
+
}
|
224 |
+
|
225 |
+
if ( $keyword === 'transparent' ) {
|
226 |
+
return new Less_Tree_Color( array( 0, 0, 0 ), 0, true );
|
227 |
+
}
|
228 |
+
}
|
229 |
+
|
230 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Comment.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Comment
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Comment extends Less_Tree {
|
10 |
+
|
11 |
+
public $value;
|
12 |
+
public $silent;
|
13 |
+
public $isReferenced;
|
14 |
+
public $currentFileInfo;
|
15 |
+
public $type = 'Comment';
|
16 |
+
|
17 |
+
public function __construct( $value, $silent, $index = null, $currentFileInfo = null ) {
|
18 |
+
$this->value = $value;
|
19 |
+
$this->silent = !!$silent;
|
20 |
+
$this->currentFileInfo = $currentFileInfo;
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
+
* @see Less_Tree::genCSS
|
25 |
+
*/
|
26 |
+
public function genCSS( $output ) {
|
27 |
+
// if( $this->debugInfo ){
|
28 |
+
//$output->add( tree.debugInfo($env, $this), $this->currentFileInfo, $this->index);
|
29 |
+
//}
|
30 |
+
$output->add( trim( $this->value ) );// TODO shouldn't need to trim, we shouldn't grab the \n
|
31 |
+
}
|
32 |
+
|
33 |
+
public function toCSS() {
|
34 |
+
return Less_Parser::$options['compress'] ? '' : $this->value;
|
35 |
+
}
|
36 |
+
|
37 |
+
public function isSilent() {
|
38 |
+
$isReference = ( $this->currentFileInfo && isset( $this->currentFileInfo['reference'] ) && ( !isset( $this->isReferenced ) || !$this->isReferenced ) );
|
39 |
+
$isCompressed = Less_Parser::$options['compress'] && !preg_match( '/^\/\*!/', $this->value );
|
40 |
+
return $this->silent || $isReference || $isCompressed;
|
41 |
+
}
|
42 |
+
|
43 |
+
public function compile() {
|
44 |
+
return $this;
|
45 |
+
}
|
46 |
+
|
47 |
+
public function markReferenced() {
|
48 |
+
$this->isReferenced = true;
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Condition.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Condition
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Condition extends Less_Tree {
|
10 |
+
|
11 |
+
public $op;
|
12 |
+
public $lvalue;
|
13 |
+
public $rvalue;
|
14 |
+
public $index;
|
15 |
+
public $negate;
|
16 |
+
public $type = 'Condition';
|
17 |
+
|
18 |
+
public function __construct( $op, $l, $r, $i = 0, $negate = false ) {
|
19 |
+
$this->op = trim( $op );
|
20 |
+
$this->lvalue = $l;
|
21 |
+
$this->rvalue = $r;
|
22 |
+
$this->index = $i;
|
23 |
+
$this->negate = $negate;
|
24 |
+
}
|
25 |
+
|
26 |
+
public function accept( $visitor ) {
|
27 |
+
$this->lvalue = $visitor->visitObj( $this->lvalue );
|
28 |
+
$this->rvalue = $visitor->visitObj( $this->rvalue );
|
29 |
+
}
|
30 |
+
|
31 |
+
public function compile( $env ) {
|
32 |
+
$a = $this->lvalue->compile( $env );
|
33 |
+
$b = $this->rvalue->compile( $env );
|
34 |
+
|
35 |
+
switch ( $this->op ) {
|
36 |
+
case 'and':
|
37 |
+
$result = $a && $b;
|
38 |
+
break;
|
39 |
+
|
40 |
+
case 'or':
|
41 |
+
$result = $a || $b;
|
42 |
+
break;
|
43 |
+
|
44 |
+
default:
|
45 |
+
if ( Less_Parser::is_method( $a, 'compare' ) ) {
|
46 |
+
$result = $a->compare( $b );
|
47 |
+
} elseif ( Less_Parser::is_method( $b, 'compare' ) ) {
|
48 |
+
$result = $b->compare( $a );
|
49 |
+
} else {
|
50 |
+
throw new Less_Exception_Compiler( 'Unable to perform comparison', null, $this->index );
|
51 |
+
}
|
52 |
+
|
53 |
+
switch ( $result ) {
|
54 |
+
case -1:
|
55 |
+
$result = $this->op === '<' || $this->op === '=<' || $this->op === '<=';
|
56 |
+
break;
|
57 |
+
|
58 |
+
case 0:
|
59 |
+
$result = $this->op === '=' || $this->op === '>=' || $this->op === '=<' || $this->op === '<=';
|
60 |
+
break;
|
61 |
+
|
62 |
+
case 1:
|
63 |
+
$result = $this->op === '>' || $this->op === '>=';
|
64 |
+
break;
|
65 |
+
}
|
66 |
+
break;
|
67 |
+
}
|
68 |
+
|
69 |
+
return $this->negate ? !$result : $result;
|
70 |
+
}
|
71 |
+
|
72 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/DefaultFunc.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* DefaultFunc
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_DefaultFunc {
|
10 |
+
|
11 |
+
static $error_;
|
12 |
+
static $value_;
|
13 |
+
|
14 |
+
public static function compile() {
|
15 |
+
if ( self::$error_ ) {
|
16 |
+
throw new Exception( self::$error_ );
|
17 |
+
}
|
18 |
+
if ( self::$value_ !== null ) {
|
19 |
+
return self::$value_ ? new Less_Tree_Keyword( 'true' ) : new Less_Tree_Keyword( 'false' );
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
public static function value( $v ) {
|
24 |
+
self::$value_ = $v;
|
25 |
+
}
|
26 |
+
|
27 |
+
public static function error( $e ) {
|
28 |
+
self::$error_ = $e;
|
29 |
+
}
|
30 |
+
|
31 |
+
public static function reset() {
|
32 |
+
self::$value_ = self::$error_ = null;
|
33 |
+
}
|
34 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/DetachedRuleset.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* DetachedRuleset
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_DetachedRuleset extends Less_Tree {
|
10 |
+
|
11 |
+
public $ruleset;
|
12 |
+
public $frames;
|
13 |
+
public $type = 'DetachedRuleset';
|
14 |
+
|
15 |
+
public function __construct( $ruleset, $frames = null ) {
|
16 |
+
$this->ruleset = $ruleset;
|
17 |
+
$this->frames = $frames;
|
18 |
+
}
|
19 |
+
|
20 |
+
public function accept( $visitor ) {
|
21 |
+
$this->ruleset = $visitor->visitObj( $this->ruleset );
|
22 |
+
}
|
23 |
+
|
24 |
+
public function compile( $env ) {
|
25 |
+
if ( $this->frames ) {
|
26 |
+
$frames = $this->frames;
|
27 |
+
} else {
|
28 |
+
$frames = $env->frames;
|
29 |
+
}
|
30 |
+
return new Less_Tree_DetachedRuleset( $this->ruleset, $frames );
|
31 |
+
}
|
32 |
+
|
33 |
+
public function callEval( $env ) {
|
34 |
+
if ( $this->frames ) {
|
35 |
+
return $this->ruleset->compile( $env->copyEvalEnv( array_merge( $this->frames, $env->frames ) ) );
|
36 |
+
}
|
37 |
+
return $this->ruleset->compile( $env );
|
38 |
+
}
|
39 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Dimension.php
ADDED
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Dimension
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Dimension extends Less_Tree {
|
10 |
+
|
11 |
+
public $value;
|
12 |
+
public $unit;
|
13 |
+
public $type = 'Dimension';
|
14 |
+
|
15 |
+
public function __construct( $value, $unit = null ) {
|
16 |
+
$this->value = floatval( $value );
|
17 |
+
|
18 |
+
if ( $unit && ( $unit instanceof Less_Tree_Unit ) ) {
|
19 |
+
$this->unit = $unit;
|
20 |
+
} elseif ( $unit ) {
|
21 |
+
$this->unit = new Less_Tree_Unit( array( $unit ) );
|
22 |
+
} else {
|
23 |
+
$this->unit = new Less_Tree_Unit();
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
public function accept( $visitor ) {
|
28 |
+
$this->unit = $visitor->visitObj( $this->unit );
|
29 |
+
}
|
30 |
+
|
31 |
+
public function compile() {
|
32 |
+
return $this;
|
33 |
+
}
|
34 |
+
|
35 |
+
public function toColor() {
|
36 |
+
return new Less_Tree_Color( array( $this->value, $this->value, $this->value ) );
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* @see Less_Tree::genCSS
|
41 |
+
*/
|
42 |
+
public function genCSS( $output ) {
|
43 |
+
if ( Less_Parser::$options['strictUnits'] && !$this->unit->isSingular() ) {
|
44 |
+
throw new Less_Exception_Compiler( "Multiple units in dimension. Correct the units or use the unit function. Bad unit: ".$this->unit->toString() );
|
45 |
+
}
|
46 |
+
|
47 |
+
$value = Less_Functions::fround( $this->value );
|
48 |
+
$strValue = (string)$value;
|
49 |
+
|
50 |
+
if ( $value !== 0 && $value < 0.000001 && $value > -0.000001 ) {
|
51 |
+
// would be output 1e-6 etc.
|
52 |
+
$strValue = number_format( $strValue, 10 );
|
53 |
+
$strValue = preg_replace( '/\.?0+$/', '', $strValue );
|
54 |
+
}
|
55 |
+
|
56 |
+
if ( Less_Parser::$options['compress'] ) {
|
57 |
+
// Zero values doesn't need a unit
|
58 |
+
if ( $value === 0 && $this->unit->isLength() ) {
|
59 |
+
$output->add( $strValue );
|
60 |
+
return $strValue;
|
61 |
+
}
|
62 |
+
|
63 |
+
// Float values doesn't need a leading zero
|
64 |
+
if ( $value > 0 && $value < 1 && $strValue[0] === '0' ) {
|
65 |
+
$strValue = substr( $strValue, 1 );
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
$output->add( $strValue );
|
70 |
+
$this->unit->genCSS( $output );
|
71 |
+
}
|
72 |
+
|
73 |
+
public function __toString() {
|
74 |
+
return $this->toCSS();
|
75 |
+
}
|
76 |
+
|
77 |
+
// In an operation between two Dimensions,
|
78 |
+
// we default to the first Dimension's unit,
|
79 |
+
// so `1px + 2em` will yield `3px`.
|
80 |
+
|
81 |
+
/**
|
82 |
+
* @param string $op
|
83 |
+
*/
|
84 |
+
public function operate( $op, $other ) {
|
85 |
+
$value = Less_Functions::operate( $op, $this->value, $other->value );
|
86 |
+
$unit = clone $this->unit;
|
87 |
+
|
88 |
+
if ( $op === '+' || $op === '-' ) {
|
89 |
+
|
90 |
+
if ( !$unit->numerator && !$unit->denominator ) {
|
91 |
+
$unit->numerator = $other->unit->numerator;
|
92 |
+
$unit->denominator = $other->unit->denominator;
|
93 |
+
} elseif ( !$other->unit->numerator && !$other->unit->denominator ) {
|
94 |
+
// do nothing
|
95 |
+
} else {
|
96 |
+
$other = $other->convertTo( $this->unit->usedUnits() );
|
97 |
+
|
98 |
+
if ( Less_Parser::$options['strictUnits'] && $other->unit->toString() !== $unit->toCSS() ) {
|
99 |
+
throw new Less_Exception_Compiler( "Incompatible units. Change the units or use the unit function. Bad units: '" . $unit->toString() . "' and " . $other->unit->toString() . "'." );
|
100 |
+
}
|
101 |
+
|
102 |
+
$value = Less_Functions::operate( $op, $this->value, $other->value );
|
103 |
+
}
|
104 |
+
} elseif ( $op === '*' ) {
|
105 |
+
$unit->numerator = array_merge( $unit->numerator, $other->unit->numerator );
|
106 |
+
$unit->denominator = array_merge( $unit->denominator, $other->unit->denominator );
|
107 |
+
sort( $unit->numerator );
|
108 |
+
sort( $unit->denominator );
|
109 |
+
$unit->cancel();
|
110 |
+
} elseif ( $op === '/' ) {
|
111 |
+
$unit->numerator = array_merge( $unit->numerator, $other->unit->denominator );
|
112 |
+
$unit->denominator = array_merge( $unit->denominator, $other->unit->numerator );
|
113 |
+
sort( $unit->numerator );
|
114 |
+
sort( $unit->denominator );
|
115 |
+
$unit->cancel();
|
116 |
+
}
|
117 |
+
return new Less_Tree_Dimension( $value, $unit );
|
118 |
+
}
|
119 |
+
|
120 |
+
public function compare( $other ) {
|
121 |
+
if ( $other instanceof Less_Tree_Dimension ) {
|
122 |
+
|
123 |
+
if ( $this->unit->isEmpty() || $other->unit->isEmpty() ) {
|
124 |
+
$a = $this;
|
125 |
+
$b = $other;
|
126 |
+
} else {
|
127 |
+
$a = $this->unify();
|
128 |
+
$b = $other->unify();
|
129 |
+
if ( $a->unit->compare( $b->unit ) !== 0 ) {
|
130 |
+
return -1;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
$aValue = $a->value;
|
134 |
+
$bValue = $b->value;
|
135 |
+
|
136 |
+
if ( $bValue > $aValue ) {
|
137 |
+
return -1;
|
138 |
+
} elseif ( $bValue < $aValue ) {
|
139 |
+
return 1;
|
140 |
+
} else {
|
141 |
+
return 0;
|
142 |
+
}
|
143 |
+
} else {
|
144 |
+
return -1;
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
public function unify() {
|
149 |
+
return $this->convertTo( array( 'length' => 'px', 'duration' => 's', 'angle' => 'rad' ) );
|
150 |
+
}
|
151 |
+
|
152 |
+
public function convertTo( $conversions ) {
|
153 |
+
$value = $this->value;
|
154 |
+
$unit = clone $this->unit;
|
155 |
+
|
156 |
+
if ( is_string( $conversions ) ) {
|
157 |
+
$derivedConversions = array();
|
158 |
+
foreach ( Less_Tree_UnitConversions::$groups as $i ) {
|
159 |
+
if ( isset( Less_Tree_UnitConversions::${$i}[$conversions] ) ) {
|
160 |
+
$derivedConversions = array( $i => $conversions );
|
161 |
+
}
|
162 |
+
}
|
163 |
+
$conversions = $derivedConversions;
|
164 |
+
}
|
165 |
+
|
166 |
+
foreach ( $conversions as $groupName => $targetUnit ) {
|
167 |
+
$group = Less_Tree_UnitConversions::${$groupName};
|
168 |
+
|
169 |
+
// numerator
|
170 |
+
foreach ( $unit->numerator as $i => $atomicUnit ) {
|
171 |
+
$atomicUnit = $unit->numerator[$i];
|
172 |
+
if ( !isset( $group[$atomicUnit] ) ) {
|
173 |
+
continue;
|
174 |
+
}
|
175 |
+
|
176 |
+
$value = $value * ( $group[$atomicUnit] / $group[$targetUnit] );
|
177 |
+
|
178 |
+
$unit->numerator[$i] = $targetUnit;
|
179 |
+
}
|
180 |
+
|
181 |
+
// denominator
|
182 |
+
foreach ( $unit->denominator as $i => $atomicUnit ) {
|
183 |
+
$atomicUnit = $unit->denominator[$i];
|
184 |
+
if ( !isset( $group[$atomicUnit] ) ) {
|
185 |
+
continue;
|
186 |
+
}
|
187 |
+
|
188 |
+
$value = $value / ( $group[$atomicUnit] / $group[$targetUnit] );
|
189 |
+
|
190 |
+
$unit->denominator[$i] = $targetUnit;
|
191 |
+
}
|
192 |
+
}
|
193 |
+
|
194 |
+
$unit->cancel();
|
195 |
+
|
196 |
+
return new Less_Tree_Dimension( $value, $unit );
|
197 |
+
}
|
198 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Directive.php
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Directive
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Directive extends Less_Tree {
|
10 |
+
|
11 |
+
public $name;
|
12 |
+
public $value;
|
13 |
+
public $rules;
|
14 |
+
public $index;
|
15 |
+
public $isReferenced;
|
16 |
+
public $currentFileInfo;
|
17 |
+
public $debugInfo;
|
18 |
+
public $type = 'Directive';
|
19 |
+
|
20 |
+
public function __construct( $name, $value = null, $rules = null, $index = null, $currentFileInfo = null, $debugInfo = null ) {
|
21 |
+
$this->name = $name;
|
22 |
+
$this->value = $value;
|
23 |
+
if ( $rules ) {
|
24 |
+
$this->rules = $rules;
|
25 |
+
$this->rules->allowImports = true;
|
26 |
+
}
|
27 |
+
|
28 |
+
$this->index = $index;
|
29 |
+
$this->currentFileInfo = $currentFileInfo;
|
30 |
+
$this->debugInfo = $debugInfo;
|
31 |
+
}
|
32 |
+
|
33 |
+
public function accept( $visitor ) {
|
34 |
+
if ( $this->rules ) {
|
35 |
+
$this->rules = $visitor->visitObj( $this->rules );
|
36 |
+
}
|
37 |
+
if ( $this->value ) {
|
38 |
+
$this->value = $visitor->visitObj( $this->value );
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* @see Less_Tree::genCSS
|
44 |
+
*/
|
45 |
+
public function genCSS( $output ) {
|
46 |
+
$value = $this->value;
|
47 |
+
$rules = $this->rules;
|
48 |
+
$output->add( $this->name, $this->currentFileInfo, $this->index );
|
49 |
+
if ( $this->value ) {
|
50 |
+
$output->add( ' ' );
|
51 |
+
$this->value->genCSS( $output );
|
52 |
+
}
|
53 |
+
if ( $this->rules ) {
|
54 |
+
Less_Tree::outputRuleset( $output, array( $this->rules ) );
|
55 |
+
} else {
|
56 |
+
$output->add( ';' );
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
public function compile( $env ) {
|
61 |
+
$value = $this->value;
|
62 |
+
$rules = $this->rules;
|
63 |
+
if ( $value ) {
|
64 |
+
$value = $value->compile( $env );
|
65 |
+
}
|
66 |
+
|
67 |
+
if ( $rules ) {
|
68 |
+
$rules = $rules->compile( $env );
|
69 |
+
$rules->root = true;
|
70 |
+
}
|
71 |
+
|
72 |
+
return new Less_Tree_Directive( $this->name, $value, $rules, $this->index, $this->currentFileInfo, $this->debugInfo );
|
73 |
+
}
|
74 |
+
|
75 |
+
public function variable( $name ) {
|
76 |
+
if ( $this->rules ) {
|
77 |
+
return $this->rules->variable( $name );
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
public function find( $selector ) {
|
82 |
+
if ( $this->rules ) {
|
83 |
+
return $this->rules->find( $selector, $this );
|
84 |
+
}
|
85 |
+
}
|
86 |
+
|
87 |
+
// rulesets: function () { if (this.rules) return tree.Ruleset.prototype.rulesets.apply(this.rules); },
|
88 |
+
|
89 |
+
public function markReferenced() {
|
90 |
+
$this->isReferenced = true;
|
91 |
+
if ( $this->rules ) {
|
92 |
+
Less_Tree::ReferencedArray( $this->rules->rules );
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Element.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Element
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Element extends Less_Tree {
|
10 |
+
|
11 |
+
public $combinator = '';
|
12 |
+
public $value = '';
|
13 |
+
public $index;
|
14 |
+
public $currentFileInfo;
|
15 |
+
public $type = 'Element';
|
16 |
+
|
17 |
+
public $value_is_object = false;
|
18 |
+
|
19 |
+
public function __construct( $combinator, $value, $index = null, $currentFileInfo = null ) {
|
20 |
+
$this->value = $value;
|
21 |
+
$this->value_is_object = is_object( $value );
|
22 |
+
|
23 |
+
if ( $combinator ) {
|
24 |
+
$this->combinator = $combinator;
|
25 |
+
}
|
26 |
+
|
27 |
+
$this->index = $index;
|
28 |
+
$this->currentFileInfo = $currentFileInfo;
|
29 |
+
}
|
30 |
+
|
31 |
+
public function accept( $visitor ) {
|
32 |
+
if ( $this->value_is_object ) { // object or string
|
33 |
+
$this->value = $visitor->visitObj( $this->value );
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
+
public function compile( $env ) {
|
38 |
+
if ( Less_Environment::$mixin_stack ) {
|
39 |
+
return new Less_Tree_Element( $this->combinator, ( $this->value_is_object ? $this->value->compile( $env ) : $this->value ), $this->index, $this->currentFileInfo );
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( $this->value_is_object ) {
|
43 |
+
$this->value = $this->value->compile( $env );
|
44 |
+
}
|
45 |
+
|
46 |
+
return $this;
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* @see Less_Tree::genCSS
|
51 |
+
*/
|
52 |
+
public function genCSS( $output ) {
|
53 |
+
$output->add( $this->toCSS(), $this->currentFileInfo, $this->index );
|
54 |
+
}
|
55 |
+
|
56 |
+
public function toCSS() {
|
57 |
+
if ( $this->value_is_object ) {
|
58 |
+
$value = $this->value->toCSS();
|
59 |
+
} else {
|
60 |
+
$value = $this->value;
|
61 |
+
}
|
62 |
+
|
63 |
+
if ( $value === '' && $this->combinator && $this->combinator === '&' ) {
|
64 |
+
return '';
|
65 |
+
}
|
66 |
+
|
67 |
+
return Less_Environment::$_outputMap[$this->combinator] . $value;
|
68 |
+
}
|
69 |
+
|
70 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Expression.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Expression
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Expression extends Less_Tree {
|
10 |
+
|
11 |
+
public $value = array();
|
12 |
+
public $parens = false;
|
13 |
+
public $parensInOp = false;
|
14 |
+
public $type = 'Expression';
|
15 |
+
|
16 |
+
public function __construct( $value, $parens = null ) {
|
17 |
+
$this->value = $value;
|
18 |
+
$this->parens = $parens;
|
19 |
+
}
|
20 |
+
|
21 |
+
public function accept( $visitor ) {
|
22 |
+
$this->value = $visitor->visitArray( $this->value );
|
23 |
+
}
|
24 |
+
|
25 |
+
public function compile( $env ) {
|
26 |
+
$doubleParen = false;
|
27 |
+
|
28 |
+
if ( $this->parens && !$this->parensInOp ) {
|
29 |
+
Less_Environment::$parensStack++;
|
30 |
+
}
|
31 |
+
|
32 |
+
$returnValue = null;
|
33 |
+
if ( $this->value ) {
|
34 |
+
|
35 |
+
$count = count( $this->value );
|
36 |
+
|
37 |
+
if ( $count > 1 ) {
|
38 |
+
|
39 |
+
$ret = array();
|
40 |
+
foreach ( $this->value as $e ) {
|
41 |
+
$ret[] = $e->compile( $env );
|
42 |
+
}
|
43 |
+
$returnValue = new Less_Tree_Expression( $ret );
|
44 |
+
|
45 |
+
} else {
|
46 |
+
|
47 |
+
if ( ( $this->value[0] instanceof Less_Tree_Expression ) && $this->value[0]->parens && !$this->value[0]->parensInOp ) {
|
48 |
+
$doubleParen = true;
|
49 |
+
}
|
50 |
+
|
51 |
+
$returnValue = $this->value[0]->compile( $env );
|
52 |
+
}
|
53 |
+
|
54 |
+
} else {
|
55 |
+
$returnValue = $this;
|
56 |
+
}
|
57 |
+
|
58 |
+
if ( $this->parens ) {
|
59 |
+
if ( !$this->parensInOp ) {
|
60 |
+
Less_Environment::$parensStack--;
|
61 |
+
|
62 |
+
} elseif ( !Less_Environment::isMathOn() && !$doubleParen ) {
|
63 |
+
$returnValue = new Less_Tree_Paren( $returnValue );
|
64 |
+
|
65 |
+
}
|
66 |
+
}
|
67 |
+
return $returnValue;
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* @see Less_Tree::genCSS
|
72 |
+
*/
|
73 |
+
public function genCSS( $output ) {
|
74 |
+
$val_len = count( $this->value );
|
75 |
+
for ( $i = 0; $i < $val_len; $i++ ) {
|
76 |
+
$this->value[$i]->genCSS( $output );
|
77 |
+
if ( $i + 1 < $val_len ) {
|
78 |
+
$output->add( ' ' );
|
79 |
+
}
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
public function throwAwayComments() {
|
84 |
+
if ( is_array( $this->value ) ) {
|
85 |
+
$new_value = array();
|
86 |
+
foreach ( $this->value as $v ) {
|
87 |
+
if ( $v instanceof Less_Tree_Comment ) {
|
88 |
+
continue;
|
89 |
+
}
|
90 |
+
$new_value[] = $v;
|
91 |
+
}
|
92 |
+
$this->value = $new_value;
|
93 |
+
}
|
94 |
+
}
|
95 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Extend.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Extend
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Extend extends Less_Tree {
|
10 |
+
|
11 |
+
public $selector;
|
12 |
+
public $option;
|
13 |
+
public $index;
|
14 |
+
public $selfSelectors = array();
|
15 |
+
public $allowBefore;
|
16 |
+
public $allowAfter;
|
17 |
+
public $firstExtendOnThisSelectorPath;
|
18 |
+
public $type = 'Extend';
|
19 |
+
public $ruleset;
|
20 |
+
|
21 |
+
public $object_id;
|
22 |
+
public $parent_ids = array();
|
23 |
+
|
24 |
+
/**
|
25 |
+
* @param integer $index
|
26 |
+
*/
|
27 |
+
public function __construct( $selector, $option, $index ) {
|
28 |
+
static $i = 0;
|
29 |
+
$this->selector = $selector;
|
30 |
+
$this->option = $option;
|
31 |
+
$this->index = $index;
|
32 |
+
|
33 |
+
switch ( $option ) {
|
34 |
+
case "all":
|
35 |
+
$this->allowBefore = true;
|
36 |
+
$this->allowAfter = true;
|
37 |
+
break;
|
38 |
+
default:
|
39 |
+
$this->allowBefore = false;
|
40 |
+
$this->allowAfter = false;
|
41 |
+
break;
|
42 |
+
}
|
43 |
+
|
44 |
+
// This must use a string (instead of int) so that array_merge()
|
45 |
+
// preserves keys on arrays that use IDs in their keys.
|
46 |
+
$this->object_id = 'id_' . $i++;
|
47 |
+
|
48 |
+
$this->parent_ids = array(
|
49 |
+
$this->object_id => true
|
50 |
+
);
|
51 |
+
}
|
52 |
+
|
53 |
+
public function accept( $visitor ) {
|
54 |
+
$this->selector = $visitor->visitObj( $this->selector );
|
55 |
+
}
|
56 |
+
|
57 |
+
public function compile( $env ) {
|
58 |
+
Less_Parser::$has_extends = true;
|
59 |
+
$this->selector = $this->selector->compile( $env );
|
60 |
+
return $this;
|
61 |
+
// return new Less_Tree_Extend( $this->selector->compile($env), $this->option, $this->index);
|
62 |
+
}
|
63 |
+
|
64 |
+
public function findSelfSelectors( $selectors ) {
|
65 |
+
$selfElements = array();
|
66 |
+
|
67 |
+
for ( $i = 0, $selectors_len = count( $selectors ); $i < $selectors_len; $i++ ) {
|
68 |
+
$selectorElements = $selectors[$i]->elements;
|
69 |
+
// duplicate the logic in genCSS function inside the selector node.
|
70 |
+
// future TODO - move both logics into the selector joiner visitor
|
71 |
+
if ( $i && $selectorElements && $selectorElements[0]->combinator === "" ) {
|
72 |
+
$selectorElements[0]->combinator = ' ';
|
73 |
+
}
|
74 |
+
$selfElements = array_merge( $selfElements, $selectors[$i]->elements );
|
75 |
+
}
|
76 |
+
|
77 |
+
$this->selfSelectors = array( new Less_Tree_Selector( $selfElements ) );
|
78 |
+
}
|
79 |
+
|
80 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Import.php
ADDED
@@ -0,0 +1,291 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* CSS @import node
|
5 |
+
*
|
6 |
+
* The general strategy here is that we don't want to wait
|
7 |
+
* for the parsing to be completed, before we start importing
|
8 |
+
* the file. That's because in the context of a browser,
|
9 |
+
* most of the time will be spent waiting for the server to respond.
|
10 |
+
*
|
11 |
+
* On creation, we push the import path to our import queue, though
|
12 |
+
* `import,push`, we also pass it a callback, which it'll call once
|
13 |
+
* the file has been fetched, and parsed.
|
14 |
+
*
|
15 |
+
* @package Less
|
16 |
+
* @subpackage tree
|
17 |
+
*/
|
18 |
+
class Less_Tree_Import extends Less_Tree {
|
19 |
+
|
20 |
+
public $options;
|
21 |
+
public $index;
|
22 |
+
public $path;
|
23 |
+
public $features;
|
24 |
+
public $currentFileInfo;
|
25 |
+
public $css;
|
26 |
+
public $skip;
|
27 |
+
public $root;
|
28 |
+
public $type = 'Import';
|
29 |
+
|
30 |
+
public function __construct( $path, $features, $options, $index, $currentFileInfo = null ) {
|
31 |
+
$this->options = $options;
|
32 |
+
$this->index = $index;
|
33 |
+
$this->path = $path;
|
34 |
+
$this->features = $features;
|
35 |
+
$this->currentFileInfo = $currentFileInfo;
|
36 |
+
|
37 |
+
if ( is_array( $options ) ) {
|
38 |
+
$this->options += array( 'inline' => false );
|
39 |
+
|
40 |
+
if ( isset( $this->options['less'] ) || $this->options['inline'] ) {
|
41 |
+
$this->css = !isset( $this->options['less'] ) || !$this->options['less'] || $this->options['inline'];
|
42 |
+
} else {
|
43 |
+
$pathValue = $this->getPath();
|
44 |
+
if ( $pathValue && preg_match( '/css([\?;].*)?$/', $pathValue ) ) {
|
45 |
+
$this->css = true;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
//
|
52 |
+
// The actual import node doesn't return anything, when converted to CSS.
|
53 |
+
// The reason is that it's used at the evaluation stage, so that the rules
|
54 |
+
// it imports can be treated like any other rules.
|
55 |
+
//
|
56 |
+
// In `eval`, we make sure all Import nodes get evaluated, recursively, so
|
57 |
+
// we end up with a flat structure, which can easily be imported in the parent
|
58 |
+
// ruleset.
|
59 |
+
//
|
60 |
+
|
61 |
+
public function accept( $visitor ) {
|
62 |
+
if ( $this->features ) {
|
63 |
+
$this->features = $visitor->visitObj( $this->features );
|
64 |
+
}
|
65 |
+
$this->path = $visitor->visitObj( $this->path );
|
66 |
+
|
67 |
+
if ( !$this->options['inline'] && $this->root ) {
|
68 |
+
$this->root = $visitor->visit( $this->root );
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* @see Less_Tree::genCSS
|
74 |
+
*/
|
75 |
+
public function genCSS( $output ) {
|
76 |
+
if ( $this->css ) {
|
77 |
+
|
78 |
+
$output->add( '@import ', $this->currentFileInfo, $this->index );
|
79 |
+
|
80 |
+
$this->path->genCSS( $output );
|
81 |
+
if ( $this->features ) {
|
82 |
+
$output->add( ' ' );
|
83 |
+
$this->features->genCSS( $output );
|
84 |
+
}
|
85 |
+
$output->add( ';' );
|
86 |
+
}
|
87 |
+
}
|
88 |
+
|
89 |
+
public function toCSS() {
|
90 |
+
$features = $this->features ? ' ' . $this->features->toCSS() : '';
|
91 |
+
|
92 |
+
if ( $this->css ) {
|
93 |
+
return "@import " . $this->path->toCSS() . $features . ";\n";
|
94 |
+
} else {
|
95 |
+
return "";
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* @return string
|
101 |
+
*/
|
102 |
+
public function getPath() {
|
103 |
+
if ( $this->path instanceof Less_Tree_Quoted ) {
|
104 |
+
$path = $this->path->value;
|
105 |
+
$path = ( isset( $this->css ) || preg_match( '/(\.[a-z]*$)|([\?;].*)$/', $path ) ) ? $path : $path . '.less';
|
106 |
+
} else if ( $this->path instanceof Less_Tree_URL ) {
|
107 |
+
$path = $this->path->value->value;
|
108 |
+
} else {
|
109 |
+
return null;
|
110 |
+
}
|
111 |
+
|
112 |
+
// remove query string and fragment
|
113 |
+
return preg_replace( '/[\?#][^\?]*$/', '', $path );
|
114 |
+
}
|
115 |
+
|
116 |
+
public function compileForImport( $env ) {
|
117 |
+
return new Less_Tree_Import( $this->path->compile( $env ), $this->features, $this->options, $this->index, $this->currentFileInfo );
|
118 |
+
}
|
119 |
+
|
120 |
+
public function compilePath( $env ) {
|
121 |
+
$path = $this->path->compile( $env );
|
122 |
+
$rootpath = '';
|
123 |
+
if ( $this->currentFileInfo && $this->currentFileInfo['rootpath'] ) {
|
124 |
+
$rootpath = $this->currentFileInfo['rootpath'];
|
125 |
+
}
|
126 |
+
|
127 |
+
if ( !( $path instanceof Less_Tree_URL ) ) {
|
128 |
+
if ( $rootpath ) {
|
129 |
+
$pathValue = $path->value;
|
130 |
+
// Add the base path if the import is relative
|
131 |
+
if ( $pathValue && Less_Environment::isPathRelative( $pathValue ) ) {
|
132 |
+
$path->value = $this->currentFileInfo['uri_root'].$pathValue;
|
133 |
+
}
|
134 |
+
}
|
135 |
+
$path->value = Less_Environment::normalizePath( $path->value );
|
136 |
+
}
|
137 |
+
|
138 |
+
return $path;
|
139 |
+
}
|
140 |
+
|
141 |
+
public function compile( $env ) {
|
142 |
+
$evald = $this->compileForImport( $env );
|
143 |
+
|
144 |
+
// get path & uri
|
145 |
+
$path_and_uri = null;
|
146 |
+
if ( is_callable( Less_Parser::$options['import_callback'] ) ) {
|
147 |
+
$path_and_uri = call_user_func( Less_Parser::$options['import_callback'], $evald );
|
148 |
+
}
|
149 |
+
|
150 |
+
if ( !$path_and_uri ) {
|
151 |
+
$path_and_uri = $evald->PathAndUri();
|
152 |
+
}
|
153 |
+
|
154 |
+
if ( $path_and_uri ) {
|
155 |
+
list( $full_path, $uri ) = $path_and_uri;
|
156 |
+
} else {
|
157 |
+
$full_path = $uri = $evald->getPath();
|
158 |
+
}
|
159 |
+
|
160 |
+
// import once
|
161 |
+
if ( $evald->skip( $full_path, $env ) ) {
|
162 |
+
return array();
|
163 |
+
}
|
164 |
+
|
165 |
+
if ( $this->options['inline'] ) {
|
166 |
+
// todo needs to reference css file not import
|
167 |
+
//$contents = new Less_Tree_Anonymous($this->root, 0, array('filename'=>$this->importedFilename), true );
|
168 |
+
|
169 |
+
Less_Parser::AddParsedFile( $full_path );
|
170 |
+
$contents = new Less_Tree_Anonymous( file_get_contents( $full_path ), 0, array(), true );
|
171 |
+
|
172 |
+
if ( $this->features ) {
|
173 |
+
return new Less_Tree_Media( array( $contents ), $this->features->value );
|
174 |
+
}
|
175 |
+
|
176 |
+
return array( $contents );
|
177 |
+
}
|
178 |
+
|
179 |
+
// optional (need to be before "CSS" to support optional CSS imports. CSS should be checked only if empty($this->currentFileInfo))
|
180 |
+
if ( isset( $this->options['optional'] ) && $this->options['optional'] && !file_exists( $full_path ) && ( !$evald->css || !empty( $this->currentFileInfo ) ) ) {
|
181 |
+
return array();
|
182 |
+
}
|
183 |
+
|
184 |
+
// css ?
|
185 |
+
if ( $evald->css ) {
|
186 |
+
$features = ( $evald->features ? $evald->features->compile( $env ) : null );
|
187 |
+
return new Less_Tree_Import( $this->compilePath( $env ), $features, $this->options, $this->index );
|
188 |
+
}
|
189 |
+
|
190 |
+
return $this->ParseImport( $full_path, $uri, $env );
|
191 |
+
}
|
192 |
+
|
193 |
+
/**
|
194 |
+
* Using the import directories, get the full absolute path and uri of the import
|
195 |
+
*
|
196 |
+
* @param Less_Tree_Import $evald
|
197 |
+
*/
|
198 |
+
public function PathAndUri() {
|
199 |
+
$evald_path = $this->getPath();
|
200 |
+
|
201 |
+
if ( $evald_path ) {
|
202 |
+
|
203 |
+
$import_dirs = array();
|
204 |
+
|
205 |
+
if ( Less_Environment::isPathRelative( $evald_path ) ) {
|
206 |
+
// if the path is relative, the file should be in the current directory
|
207 |
+
if ( $this->currentFileInfo ) {
|
208 |
+
$import_dirs[ $this->currentFileInfo['currentDirectory'] ] = $this->currentFileInfo['uri_root'];
|
209 |
+
}
|
210 |
+
|
211 |
+
} else {
|
212 |
+
// otherwise, the file should be relative to the server root
|
213 |
+
if ( $this->currentFileInfo ) {
|
214 |
+
$import_dirs[ $this->currentFileInfo['entryPath'] ] = $this->currentFileInfo['entryUri'];
|
215 |
+
}
|
216 |
+
// if the user supplied entryPath isn't the actual root
|
217 |
+
$import_dirs[ $_SERVER['DOCUMENT_ROOT'] ] = '';
|
218 |
+
|
219 |
+
}
|
220 |
+
|
221 |
+
// always look in user supplied import directories
|
222 |
+
$import_dirs = array_merge( $import_dirs, Less_Parser::$options['import_dirs'] );
|
223 |
+
|
224 |
+
foreach ( $import_dirs as $rootpath => $rooturi ) {
|
225 |
+
if ( is_callable( $rooturi ) ) {
|
226 |
+
list( $path, $uri ) = call_user_func( $rooturi, $evald_path );
|
227 |
+
if ( is_string( $path ) ) {
|
228 |
+
$full_path = $path;
|
229 |
+
return array( $full_path, $uri );
|
230 |
+
}
|
231 |
+
} elseif ( !empty( $rootpath ) ) {
|
232 |
+
|
233 |
+
$path = rtrim( $rootpath, '/\\' ).'/'.ltrim( $evald_path, '/\\' );
|
234 |
+
|
235 |
+
if ( file_exists( $path ) ) {
|
236 |
+
$full_path = Less_Environment::normalizePath( $path );
|
237 |
+
$uri = Less_Environment::normalizePath( dirname( $rooturi.$evald_path ) );
|
238 |
+
return array( $full_path, $uri );
|
239 |
+
} elseif ( file_exists( $path.'.less' ) ) {
|
240 |
+
$full_path = Less_Environment::normalizePath( $path.'.less' );
|
241 |
+
$uri = Less_Environment::normalizePath( dirname( $rooturi.$evald_path.'.less' ) );
|
242 |
+
return array( $full_path, $uri );
|
243 |
+
}
|
244 |
+
}
|
245 |
+
}
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* Parse the import url and return the rules
|
251 |
+
*
|
252 |
+
* @return Less_Tree_Media|array
|
253 |
+
*/
|
254 |
+
public function ParseImport( $full_path, $uri, $env ) {
|
255 |
+
$import_env = clone $env;
|
256 |
+
if ( ( isset( $this->options['reference'] ) && $this->options['reference'] ) || isset( $this->currentFileInfo['reference'] ) ) {
|
257 |
+
$import_env->currentFileInfo['reference'] = true;
|
258 |
+
}
|
259 |
+
|
260 |
+
if ( ( isset( $this->options['multiple'] ) && $this->options['multiple'] ) ) {
|
261 |
+
$import_env->importMultiple = true;
|
262 |
+
}
|
263 |
+
|
264 |
+
$parser = new Less_Parser( $import_env );
|
265 |
+
$root = $parser->parseFile( $full_path, $uri, true );
|
266 |
+
|
267 |
+
$ruleset = new Less_Tree_Ruleset( array(), $root->rules );
|
268 |
+
$ruleset->evalImports( $import_env );
|
269 |
+
|
270 |
+
return $this->features ? new Less_Tree_Media( $ruleset->rules, $this->features->value ) : $ruleset->rules;
|
271 |
+
}
|
272 |
+
|
273 |
+
/**
|
274 |
+
* Should the import be skipped?
|
275 |
+
*
|
276 |
+
* @return boolean|null
|
277 |
+
*/
|
278 |
+
private function Skip( $path, $env ) {
|
279 |
+
$path = Less_Parser::AbsPath( $path, true );
|
280 |
+
|
281 |
+
if ( $path && Less_Parser::FileParsed( $path ) ) {
|
282 |
+
|
283 |
+
if ( isset( $this->currentFileInfo['reference'] ) ) {
|
284 |
+
return true;
|
285 |
+
}
|
286 |
+
|
287 |
+
return !isset( $this->options['multiple'] ) && !$env->importMultiple;
|
288 |
+
}
|
289 |
+
|
290 |
+
}
|
291 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Javascript.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Javascript
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Javascript extends Less_Tree {
|
10 |
+
|
11 |
+
public $type = 'Javascript';
|
12 |
+
public $escaped;
|
13 |
+
public $expression;
|
14 |
+
public $index;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* @param boolean $index
|
18 |
+
* @param boolean $escaped
|
19 |
+
*/
|
20 |
+
public function __construct( $string, $index, $escaped ) {
|
21 |
+
$this->escaped = $escaped;
|
22 |
+
$this->expression = $string;
|
23 |
+
$this->index = $index;
|
24 |
+
}
|
25 |
+
|
26 |
+
public function compile() {
|
27 |
+
return new Less_Tree_Anonymous( '/* Sorry, can not do JavaScript evaluation in PHP... :( */' );
|
28 |
+
}
|
29 |
+
|
30 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Keyword.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Keyword
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Keyword extends Less_Tree {
|
10 |
+
|
11 |
+
public $value;
|
12 |
+
public $type = 'Keyword';
|
13 |
+
|
14 |
+
/**
|
15 |
+
* @param string $value
|
16 |
+
*/
|
17 |
+
public function __construct( $value ) {
|
18 |
+
$this->value = $value;
|
19 |
+
}
|
20 |
+
|
21 |
+
public function compile() {
|
22 |
+
return $this;
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @see Less_Tree::genCSS
|
27 |
+
*/
|
28 |
+
public function genCSS( $output ) {
|
29 |
+
if ( $this->value === '%' ) {
|
30 |
+
throw new Less_Exception_Compiler( "Invalid % without number" );
|
31 |
+
}
|
32 |
+
|
33 |
+
$output->add( $this->value );
|
34 |
+
}
|
35 |
+
|
36 |
+
public function compare( $other ) {
|
37 |
+
if ( $other instanceof Less_Tree_Keyword ) {
|
38 |
+
return $other->value === $this->value ? 0 : 1;
|
39 |
+
} else {
|
40 |
+
return -1;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Media.php
ADDED
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Media
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Media extends Less_Tree {
|
10 |
+
|
11 |
+
public $features;
|
12 |
+
public $rules;
|
13 |
+
public $index;
|
14 |
+
public $currentFileInfo;
|
15 |
+
public $isReferenced;
|
16 |
+
public $type = 'Media';
|
17 |
+
|
18 |
+
public function __construct( $value = array(), $features = array(), $index = null, $currentFileInfo = null ) {
|
19 |
+
$this->index = $index;
|
20 |
+
$this->currentFileInfo = $currentFileInfo;
|
21 |
+
|
22 |
+
$selectors = $this->emptySelectors();
|
23 |
+
|
24 |
+
$this->features = new Less_Tree_Value( $features );
|
25 |
+
|
26 |
+
$this->rules = array( new Less_Tree_Ruleset( $selectors, $value ) );
|
27 |
+
$this->rules[0]->allowImports = true;
|
28 |
+
}
|
29 |
+
|
30 |
+
public function accept( $visitor ) {
|
31 |
+
$this->features = $visitor->visitObj( $this->features );
|
32 |
+
$this->rules = $visitor->visitArray( $this->rules );
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* @see Less_Tree::genCSS
|
37 |
+
*/
|
38 |
+
public function genCSS( $output ) {
|
39 |
+
$output->add( '@media ', $this->currentFileInfo, $this->index );
|
40 |
+
$this->features->genCSS( $output );
|
41 |
+
Less_Tree::outputRuleset( $output, $this->rules );
|
42 |
+
|
43 |
+
}
|
44 |
+
|
45 |
+
public function compile( $env ) {
|
46 |
+
$media = new Less_Tree_Media( array(), array(), $this->index, $this->currentFileInfo );
|
47 |
+
|
48 |
+
$strictMathBypass = false;
|
49 |
+
if ( Less_Parser::$options['strictMath'] === false ) {
|
50 |
+
$strictMathBypass = true;
|
51 |
+
Less_Parser::$options['strictMath'] = true;
|
52 |
+
}
|
53 |
+
|
54 |
+
$media->features = $this->features->compile( $env );
|
55 |
+
|
56 |
+
if ( $strictMathBypass ) {
|
57 |
+
Less_Parser::$options['strictMath'] = false;
|
58 |
+
}
|
59 |
+
|
60 |
+
$env->mediaPath[] = $media;
|
61 |
+
$env->mediaBlocks[] = $media;
|
62 |
+
|
63 |
+
array_unshift( $env->frames, $this->rules[0] );
|
64 |
+
$media->rules = array( $this->rules[0]->compile( $env ) );
|
65 |
+
array_shift( $env->frames );
|
66 |
+
|
67 |
+
array_pop( $env->mediaPath );
|
68 |
+
|
69 |
+
return !$env->mediaPath ? $media->compileTop( $env ) : $media->compileNested( $env );
|
70 |
+
}
|
71 |
+
|
72 |
+
public function variable( $name ) {
|
73 |
+
return $this->rules[0]->variable( $name );
|
74 |
+
}
|
75 |
+
|
76 |
+
public function find( $selector ) {
|
77 |
+
return $this->rules[0]->find( $selector, $this );
|
78 |
+
}
|
79 |
+
|
80 |
+
public function emptySelectors() {
|
81 |
+
$el = new Less_Tree_Element( '', '&', $this->index, $this->currentFileInfo );
|
82 |
+
$sels = array( new Less_Tree_Selector( array( $el ), array(), null, $this->index, $this->currentFileInfo ) );
|
83 |
+
$sels[0]->mediaEmpty = true;
|
84 |
+
return $sels;
|
85 |
+
}
|
86 |
+
|
87 |
+
public function markReferenced() {
|
88 |
+
$this->rules[0]->markReferenced();
|
89 |
+
$this->isReferenced = true;
|
90 |
+
Less_Tree::ReferencedArray( $this->rules[0]->rules );
|
91 |
+
}
|
92 |
+
|
93 |
+
// evaltop
|
94 |
+
public function compileTop( $env ) {
|
95 |
+
$result = $this;
|
96 |
+
|
97 |
+
if ( count( $env->mediaBlocks ) > 1 ) {
|
98 |
+
$selectors = $this->emptySelectors();
|
99 |
+
$result = new Less_Tree_Ruleset( $selectors, $env->mediaBlocks );
|
100 |
+
$result->multiMedia = true;
|
101 |
+
}
|
102 |
+
|
103 |
+
$env->mediaBlocks = array();
|
104 |
+
$env->mediaPath = array();
|
105 |
+
|
106 |
+
return $result;
|
107 |
+
}
|
108 |
+
|
109 |
+
public function compileNested( $env ) {
|
110 |
+
$path = array_merge( $env->mediaPath, array( $this ) );
|
111 |
+
|
112 |
+
// Extract the media-query conditions separated with `,` (OR).
|
113 |
+
foreach ( $path as $key => $p ) {
|
114 |
+
$value = $p->features instanceof Less_Tree_Value ? $p->features->value : $p->features;
|
115 |
+
$path[$key] = is_array( $value ) ? $value : array( $value );
|
116 |
+
}
|
117 |
+
|
118 |
+
// Trace all permutations to generate the resulting media-query.
|
119 |
+
//
|
120 |
+
// (a, b and c) with nested (d, e) ->
|
121 |
+
// a and d
|
122 |
+
// a and e
|
123 |
+
// b and c and d
|
124 |
+
// b and c and e
|
125 |
+
|
126 |
+
$permuted = $this->permute( $path );
|
127 |
+
$expressions = array();
|
128 |
+
foreach ( $permuted as $path ) {
|
129 |
+
|
130 |
+
for ( $i = 0, $len = count( $path ); $i < $len; $i++ ) {
|
131 |
+
$path[$i] = Less_Parser::is_method( $path[$i], 'toCSS' ) ? $path[$i] : new Less_Tree_Anonymous( $path[$i] );
|
132 |
+
}
|
133 |
+
|
134 |
+
for ( $i = count( $path ) - 1; $i > 0; $i-- ) {
|
135 |
+
array_splice( $path, $i, 0, array( new Less_Tree_Anonymous( 'and' ) ) );
|
136 |
+
}
|
137 |
+
|
138 |
+
$expressions[] = new Less_Tree_Expression( $path );
|
139 |
+
}
|
140 |
+
$this->features = new Less_Tree_Value( $expressions );
|
141 |
+
|
142 |
+
// Fake a tree-node that doesn't output anything.
|
143 |
+
return new Less_Tree_Ruleset( array(), array() );
|
144 |
+
}
|
145 |
+
|
146 |
+
public function permute( $arr ) {
|
147 |
+
if ( !$arr )
|
148 |
+
return array();
|
149 |
+
|
150 |
+
if ( count( $arr ) == 1 )
|
151 |
+
return $arr[0];
|
152 |
+
|
153 |
+
$result = array();
|
154 |
+
$rest = $this->permute( array_slice( $arr, 1 ) );
|
155 |
+
foreach ( $rest as $r ) {
|
156 |
+
foreach ( $arr[0] as $a ) {
|
157 |
+
$result[] = array_merge(
|
158 |
+
is_array( $a ) ? $a : array( $a ),
|
159 |
+
is_array( $r ) ? $r : array( $r )
|
160 |
+
);
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
+
return $result;
|
165 |
+
}
|
166 |
+
|
167 |
+
public function bubbleSelectors( $selectors ) {
|
168 |
+
if ( !$selectors ) return;
|
169 |
+
|
170 |
+
$this->rules = array( new Less_Tree_Ruleset( $selectors, array( $this->rules[0] ) ) );
|
171 |
+
}
|
172 |
+
|
173 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Mixin/Call.php
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Less_Tree_Mixin_Call extends Less_Tree {
|
4 |
+
|
5 |
+
public $selector;
|
6 |
+
public $arguments;
|
7 |
+
public $index;
|
8 |
+
public $currentFileInfo;
|
9 |
+
|
10 |
+
public $important;
|
11 |
+
public $type = 'MixinCall';
|
12 |
+
|
13 |
+
/**
|
14 |
+
* less.js: tree.mixin.Call
|
15 |
+
*
|
16 |
+
*/
|
17 |
+
public function __construct( $elements, $args, $index, $currentFileInfo, $important = false ) {
|
18 |
+
$this->selector = new Less_Tree_Selector( $elements );
|
19 |
+
$this->arguments = $args;
|
20 |
+
$this->index = $index;
|
21 |
+
$this->currentFileInfo = $currentFileInfo;
|
22 |
+
$this->important = $important;
|
23 |
+
}
|
24 |
+
|
25 |
+
// function accept($visitor){
|
26 |
+
// $this->selector = $visitor->visit($this->selector);
|
27 |
+
// $this->arguments = $visitor->visit($this->arguments);
|
28 |
+
//}
|
29 |
+
|
30 |
+
public function compile( $env ) {
|
31 |
+
$rules = array();
|
32 |
+
$match = false;
|
33 |
+
$isOneFound = false;
|
34 |
+
$candidates = array();
|
35 |
+
$defaultUsed = false;
|
36 |
+
$conditionResult = array();
|
37 |
+
|
38 |
+
$args = array();
|
39 |
+
foreach ( $this->arguments as $a ) {
|
40 |
+
$args[] = array( 'name' => $a['name'], 'value' => $a['value']->compile( $env ) );
|
41 |
+
}
|
42 |
+
|
43 |
+
foreach ( $env->frames as $frame ) {
|
44 |
+
|
45 |
+
$mixins = $frame->find( $this->selector );
|
46 |
+
|
47 |
+
if ( !$mixins ) {
|
48 |
+
continue;
|
49 |
+
}
|
50 |
+
|
51 |
+
$isOneFound = true;
|
52 |
+
$defNone = 0;
|
53 |
+
$defTrue = 1;
|
54 |
+
$defFalse = 2;
|
55 |
+
|
56 |
+
// To make `default()` function independent of definition order we have two "subpasses" here.
|
57 |
+
// At first we evaluate each guard *twice* (with `default() == true` and `default() == false`),
|
58 |
+
// and build candidate list with corresponding flags. Then, when we know all possible matches,
|
59 |
+
// we make a final decision.
|
60 |
+
|
61 |
+
$mixins_len = count( $mixins );
|
62 |
+
for ( $m = 0; $m < $mixins_len; $m++ ) {
|
63 |
+
$mixin = $mixins[$m];
|
64 |
+
|
65 |
+
if ( $this->IsRecursive( $env, $mixin ) ) {
|
66 |
+
continue;
|
67 |
+
}
|
68 |
+
|
69 |
+
if ( $mixin->matchArgs( $args, $env ) ) {
|
70 |
+
|
71 |
+
$candidate = array( 'mixin' => $mixin, 'group' => $defNone );
|
72 |
+
|
73 |
+
if ( $mixin instanceof Less_Tree_Ruleset ) {
|
74 |
+
|
75 |
+
for ( $f = 0; $f < 2; $f++ ) {
|
76 |
+
Less_Tree_DefaultFunc::value( $f );
|
77 |
+
$conditionResult[$f] = $mixin->matchCondition( $args, $env );
|
78 |
+
}
|
79 |
+
if ( $conditionResult[0] || $conditionResult[1] ) {
|
80 |
+
if ( $conditionResult[0] != $conditionResult[1] ) {
|
81 |
+
$candidate['group'] = $conditionResult[1] ? $defTrue : $defFalse;
|
82 |
+
}
|
83 |
+
|
84 |
+
$candidates[] = $candidate;
|
85 |
+
}
|
86 |
+
} else {
|
87 |
+
$candidates[] = $candidate;
|
88 |
+
}
|
89 |
+
|
90 |
+
$match = true;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
Less_Tree_DefaultFunc::reset();
|
95 |
+
|
96 |
+
$count = array( 0, 0, 0 );
|
97 |
+
for ( $m = 0; $m < count( $candidates ); $m++ ) {
|
98 |
+
$count[ $candidates[$m]['group'] ]++;
|
99 |
+
}
|
100 |
+
|
101 |
+
if ( $count[$defNone] > 0 ) {
|
102 |
+
$defaultResult = $defFalse;
|
103 |
+
} else {
|
104 |
+
$defaultResult = $defTrue;
|
105 |
+
if ( ( $count[$defTrue] + $count[$defFalse] ) > 1 ) {
|
106 |
+
throw new Exception( 'Ambiguous use of `default()` found when matching for `' . $this->format( $args ) . '`' );
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
$candidates_length = count( $candidates );
|
111 |
+
$length_1 = ( $candidates_length == 1 );
|
112 |
+
|
113 |
+
for ( $m = 0; $m < $candidates_length; $m++ ) {
|
114 |
+
$candidate = $candidates[$m]['group'];
|
115 |
+
if ( ( $candidate === $defNone ) || ( $candidate === $defaultResult ) ) {
|
116 |
+
try{
|
117 |
+
$mixin = $candidates[$m]['mixin'];
|
118 |
+
if ( !( $mixin instanceof Less_Tree_Mixin_Definition ) ) {
|
119 |
+
$mixin = new Less_Tree_Mixin_Definition( '', array(), $mixin->rules, null, false );
|
120 |
+
$mixin->originalRuleset = $mixins[$m]->originalRuleset;
|
121 |
+
}
|
122 |
+
$rules = array_merge( $rules, $mixin->evalCall( $env, $args, $this->important )->rules );
|
123 |
+
} catch ( Exception $e ) {
|
124 |
+
// throw new Less_Exception_Compiler($e->getMessage(), $e->index, null, $this->currentFileInfo['filename']);
|
125 |
+
throw new Less_Exception_Compiler( $e->getMessage(), null, null, $this->currentFileInfo );
|
126 |
+
}
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
if ( $match ) {
|
131 |
+
if ( !$this->currentFileInfo || !isset( $this->currentFileInfo['reference'] ) || !$this->currentFileInfo['reference'] ) {
|
132 |
+
Less_Tree::ReferencedArray( $rules );
|
133 |
+
}
|
134 |
+
|
135 |
+
return $rules;
|
136 |
+
}
|
137 |
+
}
|
138 |
+
|
139 |
+
if ( $isOneFound ) {
|
140 |
+
throw new Less_Exception_Compiler( 'No matching definition was found for `'.$this->Format( $args ).'`', null, $this->index, $this->currentFileInfo );
|
141 |
+
|
142 |
+
} else {
|
143 |
+
throw new Less_Exception_Compiler( trim( $this->selector->toCSS() ) . " is undefined in ".$this->currentFileInfo['filename'], null, $this->index );
|
144 |
+
}
|
145 |
+
|
146 |
+
}
|
147 |
+
|
148 |
+
/**
|
149 |
+
* Format the args for use in exception messages
|
150 |
+
*
|
151 |
+
*/
|
152 |
+
private function Format( $args ) {
|
153 |
+
$message = array();
|
154 |
+
if ( $args ) {
|
155 |
+
foreach ( $args as $a ) {
|
156 |
+
$argValue = '';
|
157 |
+
if ( $a['name'] ) {
|
158 |
+
$argValue .= $a['name'] . ':';
|
159 |
+
}
|
160 |
+
if ( is_object( $a['value'] ) ) {
|
161 |
+
$argValue .= $a['value']->toCSS();
|
162 |
+
} else {
|
163 |
+
$argValue .= '???';
|
164 |
+
}
|
165 |
+
$message[] = $argValue;
|
166 |
+
}
|
167 |
+
}
|
168 |
+
return implode( ', ', $message );
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Are we in a recursive mixin call?
|
173 |
+
*
|
174 |
+
* @return bool
|
175 |
+
*/
|
176 |
+
private function IsRecursive( $env, $mixin ) {
|
177 |
+
foreach ( $env->frames as $recur_frame ) {
|
178 |
+
if ( !( $mixin instanceof Less_Tree_Mixin_Definition ) ) {
|
179 |
+
|
180 |
+
if ( $mixin === $recur_frame ) {
|
181 |
+
return true;
|
182 |
+
}
|
183 |
+
|
184 |
+
if ( isset( $recur_frame->originalRuleset ) && $mixin->ruleset_id === $recur_frame->originalRuleset ) {
|
185 |
+
return true;
|
186 |
+
}
|
187 |
+
}
|
188 |
+
}
|
189 |
+
|
190 |
+
return false;
|
191 |
+
}
|
192 |
+
|
193 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php
ADDED
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Less_Tree_Mixin_Definition extends Less_Tree_Ruleset {
|
4 |
+
public $name;
|
5 |
+
public $selectors;
|
6 |
+
public $params;
|
7 |
+
public $arity = 0;
|
8 |
+
public $rules;
|
9 |
+
public $lookups = array();
|
10 |
+
public $required = 0;
|
11 |
+
public $frames = array();
|
12 |
+
public $condition;
|
13 |
+
public $variadic;
|
14 |
+
public $type = 'MixinDefinition';
|
15 |
+
|
16 |
+
// less.js : /lib/less/tree/mixin.js : tree.mixin.Definition
|
17 |
+
public function __construct( $name, $params, $rules, $condition, $variadic = false, $frames = array() ) {
|
18 |
+
$this->name = $name;
|
19 |
+
$this->selectors = array( new Less_Tree_Selector( array( new Less_Tree_Element( null, $name ) ) ) );
|
20 |
+
|
21 |
+
$this->params = $params;
|
22 |
+
$this->condition = $condition;
|
23 |
+
$this->variadic = $variadic;
|
24 |
+
$this->rules = $rules;
|
25 |
+
|
26 |
+
if ( $params ) {
|
27 |
+
$this->arity = count( $params );
|
28 |
+
foreach ( $params as $p ) {
|
29 |
+
if ( !isset( $p['name'] ) || ( $p['name'] && !isset( $p['value'] ) ) ) {
|
30 |
+
$this->required++;
|
31 |
+
}
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
$this->frames = $frames;
|
36 |
+
$this->SetRulesetIndex();
|
37 |
+
}
|
38 |
+
|
39 |
+
// function accept( $visitor ){
|
40 |
+
// $this->params = $visitor->visit($this->params);
|
41 |
+
// $this->rules = $visitor->visit($this->rules);
|
42 |
+
// $this->condition = $visitor->visit($this->condition);
|
43 |
+
//}
|
44 |
+
|
45 |
+
public function toCSS() {
|
46 |
+
return '';
|
47 |
+
}
|
48 |
+
|
49 |
+
// less.js : /lib/less/tree/mixin.js : tree.mixin.Definition.evalParams
|
50 |
+
public function compileParams( $env, $mixinFrames, $args = array(), &$evaldArguments = array() ) {
|
51 |
+
$frame = new Less_Tree_Ruleset( null, array() );
|
52 |
+
$params = $this->params;
|
53 |
+
$mixinEnv = null;
|
54 |
+
$argsLength = 0;
|
55 |
+
|
56 |
+
if ( $args ) {
|
57 |
+
$argsLength = count( $args );
|
58 |
+
for ( $i = 0; $i < $argsLength; $i++ ) {
|
59 |
+
$arg = $args[$i];
|
60 |
+
|
61 |
+
if ( $arg && $arg['name'] ) {
|
62 |
+
$isNamedFound = false;
|
63 |
+
|
64 |
+
foreach ( $params as $j => $param ) {
|
65 |
+
if ( !isset( $evaldArguments[$j] ) && $arg['name'] === $params[$j]['name'] ) {
|
66 |
+
$evaldArguments[$j] = $arg['value']->compile( $env );
|
67 |
+
array_unshift( $frame->rules, new Less_Tree_Rule( $arg['name'], $arg['value']->compile( $env ) ) );
|
68 |
+
$isNamedFound = true;
|
69 |
+
break;
|
70 |
+
}
|
71 |
+
}
|
72 |
+
if ( $isNamedFound ) {
|
73 |
+
array_splice( $args, $i, 1 );
|
74 |
+
$i--;
|
75 |
+
$argsLength--;
|
76 |
+
continue;
|
77 |
+
} else {
|
78 |
+
throw new Less_Exception_Compiler( "Named argument for " . $this->name .' '.$args[$i]['name'] . ' not found' );
|
79 |
+
}
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
$argIndex = 0;
|
85 |
+
foreach ( $params as $i => $param ) {
|
86 |
+
|
87 |
+
if ( isset( $evaldArguments[$i] ) ) { continue;
|
88 |
+
}
|
89 |
+
|
90 |
+
$arg = null;
|
91 |
+
if ( isset( $args[$argIndex] ) ) {
|
92 |
+
$arg = $args[$argIndex];
|
93 |
+
}
|
94 |
+
|
95 |
+
if ( isset( $param['name'] ) && $param['name'] ) {
|
96 |
+
|
97 |
+
if ( isset( $param['variadic'] ) ) {
|
98 |
+
$varargs = array();
|
99 |
+
for ( $j = $argIndex; $j < $argsLength; $j++ ) {
|
100 |
+
$varargs[] = $args[$j]['value']->compile( $env );
|
101 |
+
}
|
102 |
+
$expression = new Less_Tree_Expression( $varargs );
|
103 |
+
array_unshift( $frame->rules, new Less_Tree_Rule( $param['name'], $expression->compile( $env ) ) );
|
104 |
+
} else {
|
105 |
+
$val = ( $arg && $arg['value'] ) ? $arg['value'] : false;
|
106 |
+
|
107 |
+
if ( $val ) {
|
108 |
+
$val = $val->compile( $env );
|
109 |
+
} else if ( isset( $param['value'] ) ) {
|
110 |
+
|
111 |
+
if ( !$mixinEnv ) {
|
112 |
+
$mixinEnv = new Less_Environment();
|
113 |
+
$mixinEnv->frames = array_merge( array( $frame ), $mixinFrames );
|
114 |
+
}
|
115 |
+
|
116 |
+
$val = $param['value']->compile( $mixinEnv );
|
117 |
+
$frame->resetCache();
|
118 |
+
} else {
|
119 |
+
throw new Less_Exception_Compiler( "Wrong number of arguments for " . $this->name . " (" . $argsLength . ' for ' . $this->arity . ")" );
|
120 |
+
}
|
121 |
+
|
122 |
+
array_unshift( $frame->rules, new Less_Tree_Rule( $param['name'], $val ) );
|
123 |
+
$evaldArguments[$i] = $val;
|
124 |
+
}
|
125 |
+
}
|
126 |
+
|
127 |
+
if ( isset( $param['variadic'] ) && $args ) {
|
128 |
+
for ( $j = $argIndex; $j < $argsLength; $j++ ) {
|
129 |
+
$evaldArguments[$j] = $args[$j]['value']->compile( $env );
|
130 |
+
}
|
131 |
+
}
|
132 |
+
$argIndex++;
|
133 |
+
}
|
134 |
+
|
135 |
+
ksort( $evaldArguments );
|
136 |
+
$evaldArguments = array_values( $evaldArguments );
|
137 |
+
|
138 |
+
return $frame;
|
139 |
+
}
|
140 |
+
|
141 |
+
public function compile( $env ) {
|
142 |
+
if ( $this->frames ) {
|
143 |
+
return new Less_Tree_Mixin_Definition( $this->name, $this->params, $this->rules, $this->condition, $this->variadic, $this->frames );
|
144 |
+
}
|
145 |
+
return new Less_Tree_Mixin_Definition( $this->name, $this->params, $this->rules, $this->condition, $this->variadic, $env->frames );
|
146 |
+
}
|
147 |
+
|
148 |
+
public function evalCall( $env, $args = NULL, $important = NULL ) {
|
149 |
+
Less_Environment::$mixin_stack++;
|
150 |
+
|
151 |
+
$_arguments = array();
|
152 |
+
|
153 |
+
if ( $this->frames ) {
|
154 |
+
$mixinFrames = array_merge( $this->frames, $env->frames );
|
155 |
+
} else {
|
156 |
+
$mixinFrames = $env->frames;
|
157 |
+
}
|
158 |
+
|
159 |
+
$frame = $this->compileParams( $env, $mixinFrames, $args, $_arguments );
|
160 |
+
|
161 |
+
$ex = new Less_Tree_Expression( $_arguments );
|
162 |
+
array_unshift( $frame->rules, new Less_Tree_Rule( '@arguments', $ex->compile( $env ) ) );
|
163 |
+
|
164 |
+
$ruleset = new Less_Tree_Ruleset( null, $this->rules );
|
165 |
+
$ruleset->originalRuleset = $this->ruleset_id;
|
166 |
+
|
167 |
+
$ruleSetEnv = new Less_Environment();
|
168 |
+
$ruleSetEnv->frames = array_merge( array( $this, $frame ), $mixinFrames );
|
169 |
+
$ruleset = $ruleset->compile( $ruleSetEnv );
|
170 |
+
|
171 |
+
if ( $important ) {
|
172 |
+
$ruleset = $ruleset->makeImportant();
|
173 |
+
}
|
174 |
+
|
175 |
+
Less_Environment::$mixin_stack--;
|
176 |
+
|
177 |
+
return $ruleset;
|
178 |
+
}
|
179 |
+
|
180 |
+
public function matchCondition( $args, $env ) {
|
181 |
+
if ( !$this->condition ) {
|
182 |
+
return true;
|
183 |
+
}
|
184 |
+
|
185 |
+
// set array to prevent error on array_merge
|
186 |
+
if ( !is_array( $this->frames ) ) {
|
187 |
+
$this->frames = array();
|
188 |
+
}
|
189 |
+
|
190 |
+
$frame = $this->compileParams( $env, array_merge( $this->frames, $env->frames ), $args );
|
191 |
+
|
192 |
+
$compile_env = new Less_Environment();
|
193 |
+
$compile_env->frames = array_merge(
|
194 |
+
array( $frame ), // the parameter variables
|
195 |
+
$this->frames, // the parent namespace/mixin frames
|
196 |
+
$env->frames // the current environment frames
|
197 |
+
);
|
198 |
+
|
199 |
+
$compile_env->functions = $env->functions;
|
200 |
+
|
201 |
+
return (bool)$this->condition->compile( $compile_env );
|
202 |
+
}
|
203 |
+
|
204 |
+
public function matchArgs( $args, $env = NULL ) {
|
205 |
+
$argsLength = count( $args );
|
206 |
+
|
207 |
+
if ( !$this->variadic ) {
|
208 |
+
if ( $argsLength < $this->required ) {
|
209 |
+
return false;
|
210 |
+
}
|
211 |
+
if ( $argsLength > count( $this->params ) ) {
|
212 |
+
return false;
|
213 |
+
}
|
214 |
+
} else {
|
215 |
+
if ( $argsLength < ( $this->required - 1 ) ) {
|
216 |
+
return false;
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
+
$len = min( $argsLength, $this->arity );
|
221 |
+
|
222 |
+
for ( $i = 0; $i < $len; $i++ ) {
|
223 |
+
if ( !isset( $this->params[$i]['name'] ) && !isset( $this->params[$i]['variadic'] ) ) {
|
224 |
+
if ( $args[$i]['value']->compile( $env )->toCSS() != $this->params[$i]['value']->compile( $env )->toCSS() ) {
|
225 |
+
return false;
|
226 |
+
}
|
227 |
+
}
|
228 |
+
}
|
229 |
+
|
230 |
+
return true;
|
231 |
+
}
|
232 |
+
|
233 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/NameValue.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* A simple css name-value pair
|
5 |
+
* ex: width:100px;
|
6 |
+
*
|
7 |
+
* In bootstrap, there are about 600-1,000 simple name-value pairs (depending on how forgiving the match is) -vs- 6,020 dynamic rules (Less_Tree_Rule)
|
8 |
+
* Using the name-value object can speed up bootstrap compilation slightly, but it breaks color keyword interpretation: color:red -> color:#FF0000;
|
9 |
+
*
|
10 |
+
* @package Less
|
11 |
+
* @subpackage tree
|
12 |
+
*/
|
13 |
+
class Less_Tree_NameValue extends Less_Tree {
|
14 |
+
|
15 |
+
public $name;
|
16 |
+
public $value;
|
17 |
+
public $index;
|
18 |
+
public $currentFileInfo;
|
19 |
+
public $type = 'NameValue';
|
20 |
+
public $important = '';
|
21 |
+
|
22 |
+
public function __construct( $name, $value = null, $index = null, $currentFileInfo = null ) {
|
23 |
+
$this->name = $name;
|
24 |
+
$this->value = $value;
|
25 |
+
$this->index = $index;
|
26 |
+
$this->currentFileInfo = $currentFileInfo;
|
27 |
+
}
|
28 |
+
|
29 |
+
public function genCSS( $output ) {
|
30 |
+
$output->add(
|
31 |
+
$this->name
|
32 |
+
. Less_Environment::$_outputMap[': ']
|
33 |
+
. $this->value
|
34 |
+
. $this->important
|
35 |
+
. ( ( ( Less_Environment::$lastRule && Less_Parser::$options['compress'] ) ) ? "" : ";" ),
|
36 |
+
$this->currentFileInfo, $this->index );
|
37 |
+
}
|
38 |
+
|
39 |
+
public function compile( $env ) {
|
40 |
+
return $this;
|
41 |
+
}
|
42 |
+
|
43 |
+
public function makeImportant() {
|
44 |
+
$new = new Less_Tree_NameValue( $this->name, $this->value, $this->index, $this->currentFileInfo );
|
45 |
+
$new->important = ' !important';
|
46 |
+
return $new;
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Negative.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Negative
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Negative extends Less_Tree {
|
10 |
+
|
11 |
+
public $value;
|
12 |
+
public $type = 'Negative';
|
13 |
+
|
14 |
+
public function __construct( $node ) {
|
15 |
+
$this->value = $node;
|
16 |
+
}
|
17 |
+
|
18 |
+
// function accept($visitor) {
|
19 |
+
// $this->value = $visitor->visit($this->value);
|
20 |
+
//}
|
21 |
+
|
22 |
+
/**
|
23 |
+
* @see Less_Tree::genCSS
|
24 |
+
*/
|
25 |
+
public function genCSS( $output ) {
|
26 |
+
$output->add( '-' );
|
27 |
+
$this->value->genCSS( $output );
|
28 |
+
}
|
29 |
+
|
30 |
+
public function compile( $env ) {
|
31 |
+
if ( Less_Environment::isMathOn() ) {
|
32 |
+
$ret = new Less_Tree_Operation( '*', array( new Less_Tree_Dimension( -1 ), $this->value ) );
|
33 |
+
return $ret->compile( $env );
|
34 |
+
}
|
35 |
+
return new Less_Tree_Negative( $this->value->compile( $env ) );
|
36 |
+
}
|
37 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Operation.php
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Operation
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Operation extends Less_Tree {
|
10 |
+
|
11 |
+
public $op;
|
12 |
+
public $operands;
|
13 |
+
public $isSpaced;
|
14 |
+
public $type = 'Operation';
|
15 |
+
|
16 |
+
/**
|
17 |
+
* @param string $op
|
18 |
+
*/
|
19 |
+
public function __construct( $op, $operands, $isSpaced = false ) {
|
20 |
+
$this->op = trim( $op );
|
21 |
+
$this->operands = $operands;
|
22 |
+
$this->isSpaced = $isSpaced;
|
23 |
+
}
|
24 |
+
|
25 |
+
public function accept( $visitor ) {
|
26 |
+
$this->operands = $visitor->visitArray( $this->operands );
|
27 |
+
}
|
28 |
+
|
29 |
+
public function compile( $env ) {
|
30 |
+
$a = $this->operands[0]->compile( $env );
|
31 |
+
$b = $this->operands[1]->compile( $env );
|
32 |
+
|
33 |
+
if ( Less_Environment::isMathOn() ) {
|
34 |
+
|
35 |
+
if ( $a instanceof Less_Tree_Dimension && $b instanceof Less_Tree_Color ) {
|
36 |
+
$a = $a->toColor();
|
37 |
+
|
38 |
+
} elseif ( $b instanceof Less_Tree_Dimension && $a instanceof Less_Tree_Color ) {
|
39 |
+
$b = $b->toColor();
|
40 |
+
|
41 |
+
}
|
42 |
+
|
43 |
+
if ( !method_exists( $a, 'operate' ) ) {
|
44 |
+
throw new Less_Exception_Compiler( "Operation on an invalid type" );
|
45 |
+
}
|
46 |
+
|
47 |
+
return $a->operate( $this->op, $b );
|
48 |
+
}
|
49 |
+
|
50 |
+
return new Less_Tree_Operation( $this->op, array( $a, $b ), $this->isSpaced );
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* @see Less_Tree::genCSS
|
55 |
+
*/
|
56 |
+
public function genCSS( $output ) {
|
57 |
+
$this->operands[0]->genCSS( $output );
|
58 |
+
if ( $this->isSpaced ) {
|
59 |
+
$output->add( " " );
|
60 |
+
}
|
61 |
+
$output->add( $this->op );
|
62 |
+
if ( $this->isSpaced ) {
|
63 |
+
$output->add( ' ' );
|
64 |
+
}
|
65 |
+
$this->operands[1]->genCSS( $output );
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Paren.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Paren
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Paren extends Less_Tree {
|
10 |
+
|
11 |
+
public $value;
|
12 |
+
public $type = 'Paren';
|
13 |
+
|
14 |
+
public function __construct( $value ) {
|
15 |
+
$this->value = $value;
|
16 |
+
}
|
17 |
+
|
18 |
+
public function accept( $visitor ) {
|
19 |
+
$this->value = $visitor->visitObj( $this->value );
|
20 |
+
}
|
21 |
+
|
22 |
+
/**
|
23 |
+
* @see Less_Tree::genCSS
|
24 |
+
*/
|
25 |
+
public function genCSS( $output ) {
|
26 |
+
$output->add( '(' );
|
27 |
+
$this->value->genCSS( $output );
|
28 |
+
$output->add( ')' );
|
29 |
+
}
|
30 |
+
|
31 |
+
public function compile( $env ) {
|
32 |
+
return new Less_Tree_Paren( $this->value->compile( $env ) );
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Quoted.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Quoted
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Quoted extends Less_Tree {
|
10 |
+
public $escaped;
|
11 |
+
public $value;
|
12 |
+
public $quote;
|
13 |
+
public $index;
|
14 |
+
public $currentFileInfo;
|
15 |
+
public $type = 'Quoted';
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @param string $str
|
19 |
+
*/
|
20 |
+
public function __construct( $str, $content = '', $escaped = false, $index = false, $currentFileInfo = null ) {
|
21 |
+
$this->escaped = $escaped;
|
22 |
+
$this->value = $content;
|
23 |
+
if ( $str ) {
|
24 |
+
$this->quote = $str[0];
|
25 |
+
}
|
26 |
+
$this->index = $index;
|
27 |
+
$this->currentFileInfo = $currentFileInfo;
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* @see Less_Tree::genCSS
|
32 |
+
*/
|
33 |
+
public function genCSS( $output ) {
|
34 |
+
if ( !$this->escaped ) {
|
35 |
+
$output->add( $this->quote, $this->currentFileInfo, $this->index );
|
36 |
+
}
|
37 |
+
$output->add( $this->value );
|
38 |
+
if ( !$this->escaped ) {
|
39 |
+
$output->add( $this->quote );
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
+
public function compile( $env ) {
|
44 |
+
$value = $this->value;
|
45 |
+
if ( preg_match_all( '/`([^`]+)`/', $this->value, $matches ) ) {
|
46 |
+
foreach ( $matches as $i => $match ) {
|
47 |
+
$js = new Less_Tree_JavaScript( $matches[1], $this->index, true );
|
48 |
+
$js = $js->compile()->value;
|
49 |
+
$value = str_replace( $matches[0][$i], $js, $value );
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
if ( preg_match_all( '/@\{([\w-]+)\}/', $value, $matches ) ) {
|
54 |
+
foreach ( $matches[1] as $i => $match ) {
|
55 |
+
$v = new Less_Tree_Variable( '@' . $match, $this->index, $this->currentFileInfo );
|
56 |
+
$v = $v->compile( $env );
|
57 |
+
$v = ( $v instanceof Less_Tree_Quoted ) ? $v->value : $v->toCSS();
|
58 |
+
$value = str_replace( $matches[0][$i], $v, $value );
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
return new Less_Tree_Quoted( $this->quote . $value . $this->quote, $value, $this->escaped, $this->index, $this->currentFileInfo );
|
63 |
+
}
|
64 |
+
|
65 |
+
public function compare( $x ) {
|
66 |
+
if ( !Less_Parser::is_method( $x, 'toCSS' ) ) {
|
67 |
+
return -1;
|
68 |
+
}
|
69 |
+
|
70 |
+
$left = $this->toCSS();
|
71 |
+
$right = $x->toCSS();
|
72 |
+
|
73 |
+
if ( $left === $right ) {
|
74 |
+
return 0;
|
75 |
+
}
|
76 |
+
|
77 |
+
return $left < $right ? -1 : 1;
|
78 |
+
}
|
79 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Rule.php
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Rule
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Rule extends Less_Tree {
|
10 |
+
|
11 |
+
public $name;
|
12 |
+
public $value;
|
13 |
+
public $important;
|
14 |
+
public $merge;
|
15 |
+
public $index;
|
16 |
+
public $inline;
|
17 |
+
public $variable;
|
18 |
+
public $currentFileInfo;
|
19 |
+
public $type = 'Rule';
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @param string $important
|
23 |
+
*/
|
24 |
+
public function __construct( $name, $value = null, $important = null, $merge = null, $index = null, $currentFileInfo = null, $inline = false ) {
|
25 |
+
$this->name = $name;
|
26 |
+
$this->value = ( $value instanceof Less_Tree_Value || $value instanceof Less_Tree_Ruleset ) ? $value : new Less_Tree_Value( array( $value ) );
|
27 |
+
$this->important = $important ? ' ' . trim( $important ) : '';
|
28 |
+
$this->merge = $merge;
|
29 |
+
$this->index = $index;
|
30 |
+
$this->currentFileInfo = $currentFileInfo;
|
31 |
+
$this->inline = $inline;
|
32 |
+
$this->variable = ( is_string( $name ) && $name[0] === '@' );
|
33 |
+
}
|
34 |
+
|
35 |
+
public function accept( $visitor ) {
|
36 |
+
$this->value = $visitor->visitObj( $this->value );
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* @see Less_Tree::genCSS
|
41 |
+
*/
|
42 |
+
public function genCSS( $output ) {
|
43 |
+
$output->add( $this->name . Less_Environment::$_outputMap[': '], $this->currentFileInfo, $this->index );
|
44 |
+
try{
|
45 |
+
$this->value->genCSS( $output );
|
46 |
+
|
47 |
+
}catch ( Less_Exception_Parser $e ) {
|
48 |
+
$e->index = $this->index;
|
49 |
+
$e->currentFile = $this->currentFileInfo;
|
50 |
+
throw $e;
|
51 |
+
}
|
52 |
+
$output->add( $this->important . ( ( $this->inline || ( Less_Environment::$lastRule && Less_Parser::$options['compress'] ) ) ? "" : ";" ), $this->currentFileInfo, $this->index );
|
53 |
+
}
|
54 |
+
|
55 |
+
public function compile( $env ) {
|
56 |
+
$name = $this->name;
|
57 |
+
if ( is_array( $name ) ) {
|
58 |
+
// expand 'primitive' name directly to get
|
59 |
+
// things faster (~10% for benchmark.less):
|
60 |
+
if ( count( $name ) === 1 && $name[0] instanceof Less_Tree_Keyword ) {
|
61 |
+
$name = $name[0]->value;
|
62 |
+
} else {
|
63 |
+
$name = $this->CompileName( $env, $name );
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
$strictMathBypass = Less_Parser::$options['strictMath'];
|
68 |
+
if ( $name === "font" && !Less_Parser::$options['strictMath'] ) {
|
69 |
+
Less_Parser::$options['strictMath'] = true;
|
70 |
+
}
|
71 |
+
|
72 |
+
try {
|
73 |
+
$evaldValue = $this->value->compile( $env );
|
74 |
+
|
75 |
+
if ( !$this->variable && $evaldValue->type === "DetachedRuleset" ) {
|
76 |
+
throw new Less_Exception_Compiler( "Rulesets cannot be evaluated on a property.", null, $this->index, $this->currentFileInfo );
|
77 |
+
}
|
78 |
+
|
79 |
+
if ( Less_Environment::$mixin_stack ) {
|
80 |
+
$return = new Less_Tree_Rule( $name, $evaldValue, $this->important, $this->merge, $this->index, $this->currentFileInfo, $this->inline );
|
81 |
+
} else {
|
82 |
+
$this->name = $name;
|
83 |
+
$this->value = $evaldValue;
|
84 |
+
$return = $this;
|
85 |
+
}
|
86 |
+
|
87 |
+
}catch ( Less_Exception_Parser $e ) {
|
88 |
+
if ( !is_numeric( $e->index ) ) {
|
89 |
+
$e->index = $this->index;
|
90 |
+
$e->currentFile = $this->currentFileInfo;
|
91 |
+
}
|
92 |
+
throw $e;
|
93 |
+
}
|
94 |
+
|
95 |
+
Less_Parser::$options['strictMath'] = $strictMathBypass;
|
96 |
+
|
97 |
+
return $return;
|
98 |
+
}
|
99 |
+
|
100 |
+
public function CompileName( $env, $name ) {
|
101 |
+
$output = new Less_Output();
|
102 |
+
foreach ( $name as $n ) {
|
103 |
+
$n->compile( $env )->genCSS( $output );
|
104 |
+
}
|
105 |
+
return $output->toString();
|
106 |
+
}
|
107 |
+
|
108 |
+
public function makeImportant() {
|
109 |
+
return new Less_Tree_Rule( $this->name, $this->value, '!important', $this->merge, $this->index, $this->currentFileInfo, $this->inline );
|
110 |
+
}
|
111 |
+
|
112 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php
ADDED
@@ -0,0 +1,621 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Ruleset
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Ruleset extends Less_Tree {
|
10 |
+
|
11 |
+
protected $lookups;
|
12 |
+
public $_variables;
|
13 |
+
public $_rulesets;
|
14 |
+
|
15 |
+
public $strictImports;
|
16 |
+
|
17 |
+
public $selectors;
|
18 |
+
public $rules;
|
19 |
+
public $root;
|
20 |
+
public $allowImports;
|
21 |
+
public $paths;
|
22 |
+
public $firstRoot;
|
23 |
+
public $type = 'Ruleset';
|
24 |
+
public $multiMedia;
|
25 |
+
public $allExtends;
|
26 |
+
|
27 |
+
public $ruleset_id;
|
28 |
+
public $originalRuleset;
|
29 |
+
|
30 |
+
public $first_oelements;
|
31 |
+
|
32 |
+
public function SetRulesetIndex() {
|
33 |
+
$this->ruleset_id = Less_Parser::$next_id++;
|
34 |
+
$this->originalRuleset = $this->ruleset_id;
|
35 |
+
|
36 |
+
if ( $this->selectors ) {
|
37 |
+
foreach ( $this->selectors as $sel ) {
|
38 |
+
if ( $sel->_oelements ) {
|
39 |
+
$this->first_oelements[$sel->_oelements[0]] = true;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
public function __construct( $selectors, $rules, $strictImports = null ) {
|
46 |
+
$this->selectors = $selectors;
|
47 |
+
$this->rules = $rules;
|
48 |
+
$this->lookups = array();
|
49 |
+
$this->strictImports = $strictImports;
|
50 |
+
$this->SetRulesetIndex();
|
51 |
+
}
|
52 |
+
|
53 |
+
public function accept( $visitor ) {
|
54 |
+
if ( $this->paths ) {
|
55 |
+
$paths_len = count( $this->paths );
|
56 |
+
for ( $i = 0,$paths_len; $i < $paths_len; $i++ ) {
|
57 |
+
$this->paths[$i] = $visitor->visitArray( $this->paths[$i] );
|
58 |
+
}
|
59 |
+
} elseif ( $this->selectors ) {
|
60 |
+
$this->selectors = $visitor->visitArray( $this->selectors );
|
61 |
+
}
|
62 |
+
|
63 |
+
if ( $this->rules ) {
|
64 |
+
$this->rules = $visitor->visitArray( $this->rules );
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
public function compile( $env ) {
|
69 |
+
$ruleset = $this->PrepareRuleset( $env );
|
70 |
+
|
71 |
+
// Store the frames around mixin definitions,
|
72 |
+
// so they can be evaluated like closures when the time comes.
|
73 |
+
$rsRuleCnt = count( $ruleset->rules );
|
74 |
+
for ( $i = 0; $i < $rsRuleCnt; $i++ ) {
|
75 |
+
if ( $ruleset->rules[$i] instanceof Less_Tree_Mixin_Definition || $ruleset->rules[$i] instanceof Less_Tree_DetachedRuleset ) {
|
76 |
+
$ruleset->rules[$i] = $ruleset->rules[$i]->compile( $env );
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
$mediaBlockCount = 0;
|
81 |
+
if ( $env instanceof Less_Environment ) {
|
82 |
+
$mediaBlockCount = count( $env->mediaBlocks );
|
83 |
+
}
|
84 |
+
|
85 |
+
// Evaluate mixin calls.
|
86 |
+
$this->EvalMixinCalls( $ruleset, $env, $rsRuleCnt );
|
87 |
+
|
88 |
+
// Evaluate everything else
|
89 |
+
for ( $i = 0; $i < $rsRuleCnt; $i++ ) {
|
90 |
+
if ( !( $ruleset->rules[$i] instanceof Less_Tree_Mixin_Definition || $ruleset->rules[$i] instanceof Less_Tree_DetachedRuleset ) ) {
|
91 |
+
$ruleset->rules[$i] = $ruleset->rules[$i]->compile( $env );
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
// Evaluate everything else
|
96 |
+
for ( $i = 0; $i < $rsRuleCnt; $i++ ) {
|
97 |
+
$rule = $ruleset->rules[$i];
|
98 |
+
|
99 |
+
// for rulesets, check if it is a css guard and can be removed
|
100 |
+
if ( $rule instanceof Less_Tree_Ruleset && $rule->selectors && count( $rule->selectors ) === 1 ) {
|
101 |
+
|
102 |
+
// check if it can be folded in (e.g. & where)
|
103 |
+
if ( $rule->selectors[0]->isJustParentSelector() ) {
|
104 |
+
array_splice( $ruleset->rules, $i--, 1 );
|
105 |
+
$rsRuleCnt--;
|
106 |
+
|
107 |
+
for ( $j = 0; $j < count( $rule->rules ); $j++ ) {
|
108 |
+
$subRule = $rule->rules[$j];
|
109 |
+
if ( !( $subRule instanceof Less_Tree_Rule ) || !$subRule->variable ) {
|
110 |
+
array_splice( $ruleset->rules, ++$i, 0, array( $subRule ) );
|
111 |
+
$rsRuleCnt++;
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
// Pop the stack
|
120 |
+
$env->shiftFrame();
|
121 |
+
|
122 |
+
if ( $mediaBlockCount ) {
|
123 |
+
$len = count( $env->mediaBlocks );
|
124 |
+
for ( $i = $mediaBlockCount; $i < $len; $i++ ) {
|
125 |
+
$env->mediaBlocks[$i]->bubbleSelectors( $ruleset->selectors );
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
return $ruleset;
|
130 |
+
}
|
131 |
+
|
132 |
+
/**
|
133 |
+
* Compile Less_Tree_Mixin_Call objects
|
134 |
+
*
|
135 |
+
* @param Less_Tree_Ruleset $ruleset
|
136 |
+
* @param integer $rsRuleCnt
|
137 |
+
*/
|
138 |
+
private function EvalMixinCalls( $ruleset, $env, &$rsRuleCnt ) {
|
139 |
+
for ( $i = 0; $i < $rsRuleCnt; $i++ ) {
|
140 |
+
$rule = $ruleset->rules[$i];
|
141 |
+
|
142 |
+
if ( $rule instanceof Less_Tree_Mixin_Call ) {
|
143 |
+
$rule = $rule->compile( $env );
|
144 |
+
|
145 |
+
$temp = array();
|
146 |
+
foreach ( $rule as $r ) {
|
147 |
+
if ( ( $r instanceof Less_Tree_Rule ) && $r->variable ) {
|
148 |
+
// do not pollute the scope if the variable is
|
149 |
+
// already there. consider returning false here
|
150 |
+
// but we need a way to "return" variable from mixins
|
151 |
+
if ( !$ruleset->variable( $r->name ) ) {
|
152 |
+
$temp[] = $r;
|
153 |
+
}
|
154 |
+
} else {
|
155 |
+
$temp[] = $r;
|
156 |
+
}
|
157 |
+
}
|
158 |
+
$temp_count = count( $temp ) - 1;
|
159 |
+
array_splice( $ruleset->rules, $i, 1, $temp );
|
160 |
+
$rsRuleCnt += $temp_count;
|
161 |
+
$i += $temp_count;
|
162 |
+
$ruleset->resetCache();
|
163 |
+
|
164 |
+
} elseif ( $rule instanceof Less_Tree_RulesetCall ) {
|
165 |
+
|
166 |
+
$rule = $rule->compile( $env );
|
167 |
+
$rules = array();
|
168 |
+
foreach ( $rule->rules as $r ) {
|
169 |
+
if ( ( $r instanceof Less_Tree_Rule ) && $r->variable ) {
|
170 |
+
continue;
|
171 |
+
}
|
172 |
+
$rules[] = $r;
|
173 |
+
}
|
174 |
+
|
175 |
+
array_splice( $ruleset->rules, $i, 1, $rules );
|
176 |
+
$temp_count = count( $rules );
|
177 |
+
$rsRuleCnt += $temp_count - 1;
|
178 |
+
$i += $temp_count - 1;
|
179 |
+
$ruleset->resetCache();
|
180 |
+
}
|
181 |
+
|
182 |
+
}
|
183 |
+
}
|
184 |
+
|
185 |
+
/**
|
186 |
+
* Compile the selectors and create a new ruleset object for the compile() method
|
187 |
+
*
|
188 |
+
*/
|
189 |
+
private function PrepareRuleset( $env ) {
|
190 |
+
$hasOnePassingSelector = false;
|
191 |
+
$selectors = array();
|
192 |
+
if ( $this->selectors ) {
|
193 |
+
Less_Tree_DefaultFunc::error( "it is currently only allowed in parametric mixin guards," );
|
194 |
+
|
195 |
+
foreach ( $this->selectors as $s ) {
|
196 |
+
$selector = $s->compile( $env );
|
197 |
+
$selectors[] = $selector;
|
198 |
+
if ( $selector->evaldCondition ) {
|
199 |
+
$hasOnePassingSelector = true;
|
200 |
+
}
|
201 |
+
}
|
202 |
+
|
203 |
+
Less_Tree_DefaultFunc::reset();
|
204 |
+
} else {
|
205 |
+
$hasOnePassingSelector = true;
|
206 |
+
}
|
207 |
+
|
208 |
+
if ( $this->rules && $hasOnePassingSelector ) {
|
209 |
+
$rules = $this->rules;
|
210 |
+
} else {
|
211 |
+
$rules = array();
|
212 |
+
}
|
213 |
+
|
214 |
+
$ruleset = new Less_Tree_Ruleset( $selectors, $rules, $this->strictImports );
|
215 |
+
|
216 |
+
$ruleset->originalRuleset = $this->ruleset_id;
|
217 |
+
|
218 |
+
$ruleset->root = $this->root;
|
219 |
+
$ruleset->firstRoot = $this->firstRoot;
|
220 |
+
$ruleset->allowImports = $this->allowImports;
|
221 |
+
|
222 |
+
// push the current ruleset to the frames stack
|
223 |
+
$env->unshiftFrame( $ruleset );
|
224 |
+
|
225 |
+
// Evaluate imports
|
226 |
+
if ( $ruleset->root || $ruleset->allowImports || !$ruleset->strictImports ) {
|
227 |
+
$ruleset->evalImports( $env );
|
228 |
+
}
|
229 |
+
|
230 |
+
return $ruleset;
|
231 |
+
}
|
232 |
+
|
233 |
+
function evalImports( $env ) {
|
234 |
+
$rules_len = count( $this->rules );
|
235 |
+
for ( $i = 0; $i < $rules_len; $i++ ) {
|
236 |
+
$rule = $this->rules[$i];
|
237 |
+
|
238 |
+
if ( $rule instanceof Less_Tree_Import ) {
|
239 |
+
$rules = $rule->compile( $env );
|
240 |
+
if ( is_array( $rules ) ) {
|
241 |
+
array_splice( $this->rules, $i, 1, $rules );
|
242 |
+
$temp_count = count( $rules ) - 1;
|
243 |
+
$i += $temp_count;
|
244 |
+
$rules_len += $temp_count;
|
245 |
+
} else {
|
246 |
+
array_splice( $this->rules, $i, 1, array( $rules ) );
|
247 |
+
}
|
248 |
+
|
249 |
+
$this->resetCache();
|
250 |
+
}
|
251 |
+
}
|
252 |
+
}
|
253 |
+
|
254 |
+
function makeImportant() {
|
255 |
+
$important_rules = array();
|
256 |
+
foreach ( $this->rules as $rule ) {
|
257 |
+
if ( $rule instanceof Less_Tree_Rule || $rule instanceof Less_Tree_Ruleset || $rule instanceof Less_Tree_NameValue ) {
|
258 |
+
$important_rules[] = $rule->makeImportant();
|
259 |
+
} else {
|
260 |
+
$important_rules[] = $rule;
|
261 |
+
}
|
262 |
+
}
|
263 |
+
|
264 |
+
return new Less_Tree_Ruleset( $this->selectors, $important_rules, $this->strictImports );
|
265 |
+
}
|
266 |
+
|
267 |
+
public function matchArgs( $args ) {
|
268 |
+
return !$args;
|
269 |
+
}
|
270 |
+
|
271 |
+
// lets you call a css selector with a guard
|
272 |
+
public function matchCondition( $args, $env ) {
|
273 |
+
$lastSelector = end( $this->selectors );
|
274 |
+
|
275 |
+
if ( !$lastSelector->evaldCondition ) {
|
276 |
+
return false;
|
277 |
+
}
|
278 |
+
if ( $lastSelector->condition && !$lastSelector->condition->compile( $env->copyEvalEnv( $env->frames ) ) ) {
|
279 |
+
return false;
|
280 |
+
}
|
281 |
+
return true;
|
282 |
+
}
|
283 |
+
|
284 |
+
function resetCache() {
|
285 |
+
$this->_rulesets = null;
|
286 |
+
$this->_variables = null;
|
287 |
+
$this->lookups = array();
|
288 |
+
}
|
289 |
+
|
290 |
+
public function variables() {
|
291 |
+
$this->_variables = array();
|
292 |
+
foreach ( $this->rules as $r ) {
|
293 |
+
if ( $r instanceof Less_Tree_Rule && $r->variable === true ) {
|
294 |
+
$this->_variables[$r->name] = $r;
|
295 |
+
}
|
296 |
+
}
|
297 |
+
}
|
298 |
+
|
299 |
+
public function variable( $name ) {
|
300 |
+
if ( is_null( $this->_variables ) ) {
|
301 |
+
$this->variables();
|
302 |
+
}
|
303 |
+
return isset( $this->_variables[$name] ) ? $this->_variables[$name] : null;
|
304 |
+
}
|
305 |
+
|
306 |
+
public function find( $selector, $self = null ) {
|
307 |
+
$key = implode( ' ', $selector->_oelements );
|
308 |
+
|
309 |
+
if ( !isset( $this->lookups[$key] ) ) {
|
310 |
+
|
311 |
+
if ( !$self ) {
|
312 |
+
$self = $this->ruleset_id;
|
313 |
+
}
|
314 |
+
|
315 |
+
$this->lookups[$key] = array();
|
316 |
+
|
317 |
+
$first_oelement = $selector->_oelements[0];
|
318 |
+
|
319 |
+
foreach ( $this->rules as $rule ) {
|
320 |
+
if ( $rule instanceof Less_Tree_Ruleset && $rule->ruleset_id != $self ) {
|
321 |
+
|
322 |
+
if ( isset( $rule->first_oelements[$first_oelement] ) ) {
|
323 |
+
|
324 |
+
foreach ( $rule->selectors as $ruleSelector ) {
|
325 |
+
$match = $selector->match( $ruleSelector );
|
326 |
+
if ( $match ) {
|
327 |
+
if ( $selector->elements_len > $match ) {
|
328 |
+
$this->lookups[$key] = array_merge( $this->lookups[$key], $rule->find( new Less_Tree_Selector( array_slice( $selector->elements, $match ) ), $self ) );
|
329 |
+
} else {
|
330 |
+
$this->lookups[$key][] = $rule;
|
331 |
+
}
|
332 |
+
break;
|
333 |
+
}
|
334 |
+
}
|
335 |
+
}
|
336 |
+
}
|
337 |
+
}
|
338 |
+
}
|
339 |
+
|
340 |
+
return $this->lookups[$key];
|
341 |
+
}
|
342 |
+
|
343 |
+
/**
|
344 |
+
* @see Less_Tree::genCSS
|
345 |
+
*/
|
346 |
+
public function genCSS( $output ) {
|
347 |
+
if ( !$this->root ) {
|
348 |
+
Less_Environment::$tabLevel++;
|
349 |
+
}
|
350 |
+
|
351 |
+
$tabRuleStr = $tabSetStr = '';
|
352 |
+
if ( !Less_Parser::$options['compress'] ) {
|
353 |
+
if ( Less_Environment::$tabLevel ) {
|
354 |
+
$tabRuleStr = "\n".str_repeat( Less_Parser::$options['indentation'], Less_Environment::$tabLevel );
|
355 |
+
$tabSetStr = "\n".str_repeat( Less_Parser::$options['indentation'], Less_Environment::$tabLevel - 1 );
|
356 |
+
} else {
|
357 |
+
$tabSetStr = $tabRuleStr = "\n";
|
358 |
+
}
|
359 |
+
}
|
360 |
+
|
361 |
+
$ruleNodes = array();
|
362 |
+
$rulesetNodes = array();
|
363 |
+
foreach ( $this->rules as $rule ) {
|
364 |
+
|
365 |
+
$class = get_class( $rule );
|
366 |
+
if ( ( $class === 'Less_Tree_Media' ) || ( $class === 'Less_Tree_Directive' ) || ( $this->root && $class === 'Less_Tree_Comment' ) || ( $class === 'Less_Tree_Ruleset' && $rule->rules ) ) {
|
367 |
+
$rulesetNodes[] = $rule;
|
368 |
+
} else {
|
369 |
+
$ruleNodes[] = $rule;
|
370 |
+
}
|
371 |
+
}
|
372 |
+
|
373 |
+
// If this is the root node, we don't render
|
374 |
+
// a selector, or {}.
|
375 |
+
if ( !$this->root ) {
|
376 |
+
|
377 |
+
/*
|
378 |
+
debugInfo = tree.debugInfo(env, this, tabSetStr);
|
379 |
+
|
380 |
+
if (debugInfo) {
|
381 |
+
output.add(debugInfo);
|
382 |
+
output.add(tabSetStr);
|
383 |
+
}
|
384 |
+
*/
|
385 |
+
|
386 |
+
$paths_len = count( $this->paths );
|
387 |
+
for ( $i = 0; $i < $paths_len; $i++ ) {
|
388 |
+
$path = $this->paths[$i];
|
389 |
+
$firstSelector = true;
|
390 |
+
|
391 |
+
foreach ( $path as $p ) {
|
392 |
+
$p->genCSS( $output, $firstSelector );
|
393 |
+
$firstSelector = false;
|
394 |
+
}
|
395 |
+
|
396 |
+
if ( $i + 1 < $paths_len ) {
|
397 |
+
$output->add( ',' . $tabSetStr );
|
398 |
+
}
|
399 |
+
}
|
400 |
+
|
401 |
+
$output->add( ( Less_Parser::$options['compress'] ? '{' : " {" ) . $tabRuleStr );
|
402 |
+
}
|
403 |
+
|
404 |
+
// Compile rules and rulesets
|
405 |
+
$ruleNodes_len = count( $ruleNodes );
|
406 |
+
$rulesetNodes_len = count( $rulesetNodes );
|
407 |
+
for ( $i = 0; $i < $ruleNodes_len; $i++ ) {
|
408 |
+
$rule = $ruleNodes[$i];
|
409 |
+
|
410 |
+
// @page{ directive ends up with root elements inside it, a mix of rules and rulesets
|
411 |
+
// In this instance we do not know whether it is the last property
|
412 |
+
if ( $i + 1 === $ruleNodes_len && ( !$this->root || $rulesetNodes_len === 0 || $this->firstRoot ) ) {
|
413 |
+
Less_Environment::$lastRule = true;
|
414 |
+
}
|
415 |
+
|
416 |
+
$rule->genCSS( $output );
|
417 |
+
|
418 |
+
if ( !Less_Environment::$lastRule ) {
|
419 |
+
$output->add( $tabRuleStr );
|
420 |
+
} else {
|
421 |
+
Less_Environment::$lastRule = false;
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
if ( !$this->root ) {
|
426 |
+
$output->add( $tabSetStr . '}' );
|
427 |
+
Less_Environment::$tabLevel--;
|
428 |
+
}
|
429 |
+
|
430 |
+
$firstRuleset = true;
|
431 |
+
$space = ( $this->root ? $tabRuleStr : $tabSetStr );
|
432 |
+
for ( $i = 0; $i < $rulesetNodes_len; $i++ ) {
|
433 |
+
|
434 |
+
if ( $ruleNodes_len && $firstRuleset ) {
|
435 |
+
$output->add( $space );
|
436 |
+
} elseif ( !$firstRuleset ) {
|
437 |
+
$output->add( $space );
|
438 |
+
}
|
439 |
+
$firstRuleset = false;
|
440 |
+
$rulesetNodes[$i]->genCSS( $output );
|
441 |
+
}
|
442 |
+
|
443 |
+
if ( !Less_Parser::$options['compress'] && $this->firstRoot ) {
|
444 |
+
$output->add( "\n" );
|
445 |
+
}
|
446 |
+
|
447 |
+
}
|
448 |
+
|
449 |
+
function markReferenced() {
|
450 |
+
if ( !$this->selectors ) {
|
451 |
+
return;
|
452 |
+
}
|
453 |
+
foreach ( $this->selectors as $selector ) {
|
454 |
+
$selector->markReferenced();
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
public function joinSelectors( $context, $selectors ) {
|
459 |
+
$paths = array();
|
460 |
+
if ( is_array( $selectors ) ) {
|
461 |
+
foreach ( $selectors as $selector ) {
|
462 |
+
$this->joinSelector( $paths, $context, $selector );
|
463 |
+
}
|
464 |
+
}
|
465 |
+
return $paths;
|
466 |
+
}
|
467 |
+
|
468 |
+
public function joinSelector( &$paths, $context, $selector ) {
|
469 |
+
$hasParentSelector = false;
|
470 |
+
|
471 |
+
foreach ( $selector->elements as $el ) {
|
472 |
+
if ( $el->value === '&' ) {
|
473 |
+
$hasParentSelector = true;
|
474 |
+
}
|
475 |
+
}
|
476 |
+
|
477 |
+
if ( !$hasParentSelector ) {
|
478 |
+
if ( $context ) {
|
479 |
+
foreach ( $context as $context_el ) {
|
480 |
+
$paths[] = array_merge( $context_el, array( $selector ) );
|
481 |
+
}
|
482 |
+
} else {
|
483 |
+
$paths[] = array( $selector );
|
484 |
+
}
|
485 |
+
return;
|
486 |
+
}
|
487 |
+
|
488 |
+
// The paths are [[Selector]]
|
489 |
+
// The first list is a list of comma separated selectors
|
490 |
+
// The inner list is a list of inheritance separated selectors
|
491 |
+
// e.g.
|
492 |
+
// .a, .b {
|
493 |
+
// .c {
|
494 |
+
// }
|
495 |
+
// }
|
496 |
+
// == [[.a] [.c]] [[.b] [.c]]
|
497 |
+
//
|
498 |
+
|
499 |
+
// the elements from the current selector so far
|
500 |
+
$currentElements = array();
|
501 |
+
// the current list of new selectors to add to the path.
|
502 |
+
// We will build it up. We initiate it with one empty selector as we "multiply" the new selectors
|
503 |
+
// by the parents
|
504 |
+
$newSelectors = array( array() );
|
505 |
+
|
506 |
+
foreach ( $selector->elements as $el ) {
|
507 |
+
|
508 |
+
// non parent reference elements just get added
|
509 |
+
if ( $el->value !== '&' ) {
|
510 |
+
$currentElements[] = $el;
|
511 |
+
} else {
|
512 |
+
// the new list of selectors to add
|
513 |
+
$selectorsMultiplied = array();
|
514 |
+
|
515 |
+
// merge the current list of non parent selector elements
|
516 |
+
// on to the current list of selectors to add
|
517 |
+
if ( $currentElements ) {
|
518 |
+
$this->mergeElementsOnToSelectors( $currentElements, $newSelectors );
|
519 |
+
}
|
520 |
+
|
521 |
+
// loop through our current selectors
|
522 |
+
foreach ( $newSelectors as $sel ) {
|
523 |
+
|
524 |
+
// if we don't have any parent paths, the & might be in a mixin so that it can be used
|
525 |
+
// whether there are parents or not
|
526 |
+
if ( !$context ) {
|
527 |
+
// the combinator used on el should now be applied to the next element instead so that
|
528 |
+
// it is not lost
|
529 |
+
if ( $sel ) {
|
530 |
+
$sel[0]->elements = array_slice( $sel[0]->elements, 0 );
|
531 |
+
$sel[0]->elements[] = new Less_Tree_Element( $el->combinator, '', $el->index, $el->currentFileInfo );
|
532 |
+
}
|
533 |
+
$selectorsMultiplied[] = $sel;
|
534 |
+
} else {
|
535 |
+
|
536 |
+
// and the parent selectors
|
537 |
+
foreach ( $context as $parentSel ) {
|
538 |
+
// We need to put the current selectors
|
539 |
+
// then join the last selector's elements on to the parents selectors
|
540 |
+
|
541 |
+
// our new selector path
|
542 |
+
$newSelectorPath = array();
|
543 |
+
// selectors from the parent after the join
|
544 |
+
$afterParentJoin = array();
|
545 |
+
$newJoinedSelectorEmpty = true;
|
546 |
+
|
547 |
+
// construct the joined selector - if & is the first thing this will be empty,
|
548 |
+
// if not newJoinedSelector will be the last set of elements in the selector
|
549 |
+
if ( $sel ) {
|
550 |
+
$newSelectorPath = $sel;
|
551 |
+
$lastSelector = array_pop( $newSelectorPath );
|
552 |
+
$newJoinedSelector = $selector->createDerived( array_slice( $lastSelector->elements, 0 ) );
|
553 |
+
$newJoinedSelectorEmpty = false;
|
554 |
+
} else {
|
555 |
+
$newJoinedSelector = $selector->createDerived( array() );
|
556 |
+
}
|
557 |
+
|
558 |
+
// put together the parent selectors after the join
|
559 |
+
if ( count( $parentSel ) > 1 ) {
|
560 |
+
$afterParentJoin = array_merge( $afterParentJoin, array_slice( $parentSel, 1 ) );
|
561 |
+
}
|
562 |
+
|
563 |
+
if ( $parentSel ) {
|
564 |
+
$newJoinedSelectorEmpty = false;
|
565 |
+
|
566 |
+
// join the elements so far with the first part of the parent
|
567 |
+
$newJoinedSelector->elements[] = new Less_Tree_Element( $el->combinator, $parentSel[0]->elements[0]->value, $el->index, $el->currentFileInfo );
|
568 |
+
|
569 |
+
$newJoinedSelector->elements = array_merge( $newJoinedSelector->elements, array_slice( $parentSel[0]->elements, 1 ) );
|
570 |
+
}
|
571 |
+
|
572 |
+
if ( !$newJoinedSelectorEmpty ) {
|
573 |
+
// now add the joined selector
|
574 |
+
$newSelectorPath[] = $newJoinedSelector;
|
575 |
+
}
|
576 |
+
|
577 |
+
// and the rest of the parent
|
578 |
+
$newSelectorPath = array_merge( $newSelectorPath, $afterParentJoin );
|
579 |
+
|
580 |
+
// add that to our new set of selectors
|
581 |
+
$selectorsMultiplied[] = $newSelectorPath;
|
582 |
+
}
|
583 |
+
}
|
584 |
+
}
|
585 |
+
|
586 |
+
// our new selectors has been multiplied, so reset the state
|
587 |
+
$newSelectors = $selectorsMultiplied;
|
588 |
+
$currentElements = array();
|
589 |
+
}
|
590 |
+
}
|
591 |
+
|
592 |
+
// if we have any elements left over (e.g. .a& .b == .b)
|
593 |
+
// add them on to all the current selectors
|
594 |
+
if ( $currentElements ) {
|
595 |
+
$this->mergeElementsOnToSelectors( $currentElements, $newSelectors );
|
596 |
+
}
|
597 |
+
foreach ( $newSelectors as $new_sel ) {
|
598 |
+
if ( $new_sel ) {
|
599 |
+
$paths[] = $new_sel;
|
600 |
+
}
|
601 |
+
}
|
602 |
+
}
|
603 |
+
|
604 |
+
function mergeElementsOnToSelectors( $elements, &$selectors ) {
|
605 |
+
if ( !$selectors ) {
|
606 |
+
$selectors[] = array( new Less_Tree_Selector( $elements ) );
|
607 |
+
return;
|
608 |
+
}
|
609 |
+
|
610 |
+
foreach ( $selectors as &$sel ) {
|
611 |
+
|
612 |
+
// if the previous thing in sel is a parent this needs to join on to it
|
613 |
+
if ( $sel ) {
|
614 |
+
$last = count( $sel ) - 1;
|
615 |
+
$sel[$last] = $sel[$last]->createDerived( array_merge( $sel[$last]->elements, $elements ) );
|
616 |
+
} else {
|
617 |
+
$sel[] = new Less_Tree_Selector( $elements );
|
618 |
+
}
|
619 |
+
}
|
620 |
+
}
|
621 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/RulesetCall.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* RulesetCall
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_RulesetCall extends Less_Tree {
|
10 |
+
|
11 |
+
public $variable;
|
12 |
+
public $type = "RulesetCall";
|
13 |
+
|
14 |
+
public function __construct( $variable ) {
|
15 |
+
$this->variable = $variable;
|
16 |
+
}
|
17 |
+
|
18 |
+
public function accept( $visitor ) {
|
19 |
+
}
|
20 |
+
|
21 |
+
public function compile( $env ) {
|
22 |
+
$variable = new Less_Tree_Variable( $this->variable );
|
23 |
+
$detachedRuleset = $variable->compile( $env );
|
24 |
+
return $detachedRuleset->callEval( $env );
|
25 |
+
}
|
26 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Selector.php
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Selector
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Selector extends Less_Tree {
|
10 |
+
|
11 |
+
public $elements;
|
12 |
+
public $condition;
|
13 |
+
public $extendList = array();
|
14 |
+
public $_css;
|
15 |
+
public $index;
|
16 |
+
public $evaldCondition = false;
|
17 |
+
public $type = 'Selector';
|
18 |
+
public $currentFileInfo = array();
|
19 |
+
public $isReferenced;
|
20 |
+
public $mediaEmpty;
|
21 |
+
|
22 |
+
public $elements_len = 0;
|
23 |
+
|
24 |
+
public $_oelements;
|
25 |
+
public $_oelements_assoc;
|
26 |
+
public $_oelements_len;
|
27 |
+
public $cacheable = true;
|
28 |
+
|
29 |
+
/**
|
30 |
+
* @param boolean $isReferenced
|
31 |
+
*/
|
32 |
+
public function __construct( $elements, $extendList = array(), $condition = null, $index = null, $currentFileInfo = null, $isReferenced = null ) {
|
33 |
+
$this->elements = $elements;
|
34 |
+
$this->elements_len = count( $elements );
|
35 |
+
$this->extendList = $extendList;
|
36 |
+
$this->condition = $condition;
|
37 |
+
if ( $currentFileInfo ) {
|
38 |
+
$this->currentFileInfo = $currentFileInfo;
|
39 |
+
}
|
40 |
+
$this->isReferenced = $isReferenced;
|
41 |
+
if ( !$condition ) {
|
42 |
+
$this->evaldCondition = true;
|
43 |
+
}
|
44 |
+
|
45 |
+
$this->CacheElements();
|
46 |
+
}
|
47 |
+
|
48 |
+
public function accept( $visitor ) {
|
49 |
+
$this->elements = $visitor->visitArray( $this->elements );
|
50 |
+
$this->extendList = $visitor->visitArray( $this->extendList );
|
51 |
+
if ( $this->condition ) {
|
52 |
+
$this->condition = $visitor->visitObj( $this->condition );
|
53 |
+
}
|
54 |
+
|
55 |
+
if ( $visitor instanceof Less_Visitor_extendFinder ) {
|
56 |
+
$this->CacheElements();
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
public function createDerived( $elements, $extendList = null, $evaldCondition = null ) {
|
61 |
+
$newSelector = new Less_Tree_Selector( $elements, ( $extendList ? $extendList : $this->extendList ), null, $this->index, $this->currentFileInfo, $this->isReferenced );
|
62 |
+
$newSelector->evaldCondition = $evaldCondition ? $evaldCondition : $this->evaldCondition;
|
63 |
+
return $newSelector;
|
64 |
+
}
|
65 |
+
|
66 |
+
public function match( $other ) {
|
67 |
+
if ( !$other->_oelements || ( $this->elements_len < $other->_oelements_len ) ) {
|
68 |
+
return 0;
|
69 |
+
}
|
70 |
+
|
71 |
+
for ( $i = 0; $i < $other->_oelements_len; $i++ ) {
|
72 |
+
if ( $this->elements[$i]->value !== $other->_oelements[$i] ) {
|
73 |
+
return 0;
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
return $other->_oelements_len; // return number of matched elements
|
78 |
+
}
|
79 |
+
|
80 |
+
public function CacheElements() {
|
81 |
+
$this->_oelements = array();
|
82 |
+
$this->_oelements_assoc = array();
|
83 |
+
|
84 |
+
$css = '';
|
85 |
+
|
86 |
+
foreach ( $this->elements as $v ) {
|
87 |
+
|
88 |
+
$css .= $v->combinator;
|
89 |
+
if ( !$v->value_is_object ) {
|
90 |
+
$css .= $v->value;
|
91 |
+
continue;
|
92 |
+
}
|
93 |
+
|
94 |
+
if ( !property_exists( $v->value, 'value' ) || !is_string( $v->value->value ) ) {
|
95 |
+
$this->cacheable = false;
|
96 |
+
return;
|
97 |
+
}
|
98 |
+
$css .= $v->value->value;
|
99 |
+
}
|
100 |
+
|
101 |
+
$this->_oelements_len = preg_match_all( '/[,&#\.\w-](?:[\w-]|(?:\\\\.))*/', $css, $matches );
|
102 |
+
if ( $this->_oelements_len ) {
|
103 |
+
$this->_oelements = $matches[0];
|
104 |
+
|
105 |
+
if ( $this->_oelements[0] === '&' ) {
|
106 |
+
array_shift( $this->_oelements );
|
107 |
+
$this->_oelements_len--;
|
108 |
+
}
|
109 |
+
|
110 |
+
$this->_oelements_assoc = array_fill_keys( $this->_oelements, true );
|
111 |
+
}
|
112 |
+
}
|
113 |
+
|
114 |
+
public function isJustParentSelector() {
|
115 |
+
return !$this->mediaEmpty &&
|
116 |
+
count( $this->elements ) === 1 &&
|
117 |
+
$this->elements[0]->value === '&' &&
|
118 |
+
( $this->elements[0]->combinator === ' ' || $this->elements[0]->combinator === '' );
|
119 |
+
}
|
120 |
+
|
121 |
+
public function compile( $env ) {
|
122 |
+
$elements = array();
|
123 |
+
foreach ( $this->elements as $el ) {
|
124 |
+
$elements[] = $el->compile( $env );
|
125 |
+
}
|
126 |
+
|
127 |
+
$extendList = array();
|
128 |
+
foreach ( $this->extendList as $el ) {
|
129 |
+
$extendList[] = $el->compile( $el );
|
130 |
+
}
|
131 |
+
|
132 |
+
$evaldCondition = false;
|
133 |
+
if ( $this->condition ) {
|
134 |
+
$evaldCondition = $this->condition->compile( $env );
|
135 |
+
}
|
136 |
+
|
137 |
+
return $this->createDerived( $elements, $extendList, $evaldCondition );
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* @see Less_Tree::genCSS
|
142 |
+
*/
|
143 |
+
public function genCSS( $output, $firstSelector = true ) {
|
144 |
+
if ( !$firstSelector && $this->elements[0]->combinator === "" ) {
|
145 |
+
$output->add( ' ', $this->currentFileInfo, $this->index );
|
146 |
+
}
|
147 |
+
|
148 |
+
foreach ( $this->elements as $element ) {
|
149 |
+
$element->genCSS( $output );
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
+
public function markReferenced() {
|
154 |
+
$this->isReferenced = true;
|
155 |
+
}
|
156 |
+
|
157 |
+
public function getIsReferenced() {
|
158 |
+
return !isset( $this->currentFileInfo['reference'] ) || !$this->currentFileInfo['reference'] || $this->isReferenced;
|
159 |
+
}
|
160 |
+
|
161 |
+
public function getIsOutput() {
|
162 |
+
return $this->evaldCondition;
|
163 |
+
}
|
164 |
+
|
165 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/UnicodeDescriptor.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* UnicodeDescriptor
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_UnicodeDescriptor extends Less_Tree {
|
10 |
+
|
11 |
+
public $value;
|
12 |
+
public $type = 'UnicodeDescriptor';
|
13 |
+
|
14 |
+
public function __construct( $value ) {
|
15 |
+
$this->value = $value;
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* @see Less_Tree::genCSS
|
20 |
+
*/
|
21 |
+
public function genCSS( $output ) {
|
22 |
+
$output->add( $this->value );
|
23 |
+
}
|
24 |
+
|
25 |
+
public function compile() {
|
26 |
+
return $this;
|
27 |
+
}
|
28 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Unit.php
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Unit
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Unit extends Less_Tree {
|
10 |
+
|
11 |
+
var $numerator = array();
|
12 |
+
var $denominator = array();
|
13 |
+
public $backupUnit;
|
14 |
+
public $type = 'Unit';
|
15 |
+
|
16 |
+
public function __construct( $numerator = array(), $denominator = array(), $backupUnit = null ) {
|
17 |
+
$this->numerator = $numerator;
|
18 |
+
$this->denominator = $denominator;
|
19 |
+
$this->backupUnit = $backupUnit;
|
20 |
+
}
|
21 |
+
|
22 |
+
public function __clone() {
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @see Less_Tree::genCSS
|
27 |
+
*/
|
28 |
+
public function genCSS( $output ) {
|
29 |
+
if ( $this->numerator ) {
|
30 |
+
$output->add( $this->numerator[0] );
|
31 |
+
} elseif ( $this->denominator ) {
|
32 |
+
$output->add( $this->denominator[0] );
|
33 |
+
} elseif ( !Less_Parser::$options['strictUnits'] && $this->backupUnit ) {
|
34 |
+
$output->add( $this->backupUnit );
|
35 |
+
return;
|
36 |
+
}
|
37 |
+
}
|
38 |
+
|
39 |
+
public function toString() {
|
40 |
+
$returnStr = implode( '*', $this->numerator );
|
41 |
+
foreach ( $this->denominator as $d ) {
|
42 |
+
$returnStr .= '/'.$d;
|
43 |
+
}
|
44 |
+
return $returnStr;
|
45 |
+
}
|
46 |
+
|
47 |
+
public function __toString() {
|
48 |
+
return $this->toString();
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* @param Less_Tree_Unit $other
|
53 |
+
*/
|
54 |
+
public function compare( $other ) {
|
55 |
+
return $this->is( $other->toString() ) ? 0 : -1;
|
56 |
+
}
|
57 |
+
|
58 |
+
public function is( $unitString ) {
|
59 |
+
return $this->toString() === $unitString;
|
60 |
+
}
|
61 |
+
|
62 |
+
public function isLength() {
|
63 |
+
$css = $this->toCSS();
|
64 |
+
return !!preg_match( '/px|em|%|in|cm|mm|pc|pt|ex/', $css );
|
65 |
+
}
|
66 |
+
|
67 |
+
public function isAngle() {
|
68 |
+
return isset( Less_Tree_UnitConversions::$angle[$this->toCSS()] );
|
69 |
+
}
|
70 |
+
|
71 |
+
public function isEmpty() {
|
72 |
+
return !$this->numerator && !$this->denominator;
|
73 |
+
}
|
74 |
+
|
75 |
+
public function isSingular() {
|
76 |
+
return count( $this->numerator ) <= 1 && !$this->denominator;
|
77 |
+
}
|
78 |
+
|
79 |
+
public function usedUnits() {
|
80 |
+
$result = array();
|
81 |
+
|
82 |
+
foreach ( Less_Tree_UnitConversions::$groups as $groupName ) {
|
83 |
+
$group = Less_Tree_UnitConversions::${$groupName};
|
84 |
+
|
85 |
+
foreach ( $this->numerator as $atomicUnit ) {
|
86 |
+
if ( isset( $group[$atomicUnit] ) && !isset( $result[$groupName] ) ) {
|
87 |
+
$result[$groupName] = $atomicUnit;
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
foreach ( $this->denominator as $atomicUnit ) {
|
92 |
+
if ( isset( $group[$atomicUnit] ) && !isset( $result[$groupName] ) ) {
|
93 |
+
$result[$groupName] = $atomicUnit;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
+
return $result;
|
99 |
+
}
|
100 |
+
|
101 |
+
public function cancel() {
|
102 |
+
$counter = array();
|
103 |
+
$backup = null;
|
104 |
+
|
105 |
+
foreach ( $this->numerator as $atomicUnit ) {
|
106 |
+
if ( !$backup ) {
|
107 |
+
$backup = $atomicUnit;
|
108 |
+
}
|
109 |
+
$counter[$atomicUnit] = ( isset( $counter[$atomicUnit] ) ? $counter[$atomicUnit] : 0 ) + 1;
|
110 |
+
}
|
111 |
+
|
112 |
+
foreach ( $this->denominator as $atomicUnit ) {
|
113 |
+
if ( !$backup ) {
|
114 |
+
$backup = $atomicUnit;
|
115 |
+
}
|
116 |
+
$counter[$atomicUnit] = ( isset( $counter[$atomicUnit] ) ? $counter[$atomicUnit] : 0 ) - 1;
|
117 |
+
}
|
118 |
+
|
119 |
+
$this->numerator = array();
|
120 |
+
$this->denominator = array();
|
121 |
+
|
122 |
+
foreach ( $counter as $atomicUnit => $count ) {
|
123 |
+
if ( $count > 0 ) {
|
124 |
+
for ( $i = 0; $i < $count; $i++ ) {
|
125 |
+
$this->numerator[] = $atomicUnit;
|
126 |
+
}
|
127 |
+
} elseif ( $count < 0 ) {
|
128 |
+
for ( $i = 0; $i < -$count; $i++ ) {
|
129 |
+
$this->denominator[] = $atomicUnit;
|
130 |
+
}
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
if ( !$this->numerator && !$this->denominator && $backup ) {
|
135 |
+
$this->backupUnit = $backup;
|
136 |
+
}
|
137 |
+
|
138 |
+
sort( $this->numerator );
|
139 |
+
sort( $this->denominator );
|
140 |
+
}
|
141 |
+
|
142 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/UnitConversions.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* UnitConversions
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_UnitConversions {
|
10 |
+
|
11 |
+
public static $groups = array( 'length','duration','angle' );
|
12 |
+
|
13 |
+
public static $length = array(
|
14 |
+
'm' => 1,
|
15 |
+
'cm' => 0.01,
|
16 |
+
'mm' => 0.001,
|
17 |
+
'in' => 0.0254,
|
18 |
+
'px' => 0.000264583, // 0.0254 / 96,
|
19 |
+
'pt' => 0.000352778, // 0.0254 / 72,
|
20 |
+
'pc' => 0.004233333, // 0.0254 / 72 * 12
|
21 |
+
);
|
22 |
+
|
23 |
+
public static $duration = array(
|
24 |
+
's' => 1,
|
25 |
+
'ms' => 0.001
|
26 |
+
);
|
27 |
+
|
28 |
+
public static $angle = array(
|
29 |
+
'rad' => 0.1591549430919, // 1/(2*M_PI),
|
30 |
+
'deg' => 0.002777778, // 1/360,
|
31 |
+
'grad' => 0.0025, // 1/400,
|
32 |
+
'turn' => 1
|
33 |
+
);
|
34 |
+
|
35 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Url.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Url
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Url extends Less_Tree {
|
10 |
+
|
11 |
+
public $attrs;
|
12 |
+
public $value;
|
13 |
+
public $currentFileInfo;
|
14 |
+
public $isEvald;
|
15 |
+
public $type = 'Url';
|
16 |
+
|
17 |
+
public function __construct( $value, $currentFileInfo = null, $isEvald = null ) {
|
18 |
+
$this->value = $value;
|
19 |
+
$this->currentFileInfo = $currentFileInfo;
|
20 |
+
$this->isEvald = $isEvald;
|
21 |
+
}
|
22 |
+
|
23 |
+
public function accept( $visitor ) {
|
24 |
+
$this->value = $visitor->visitObj( $this->value );
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @see Less_Tree::genCSS
|
29 |
+
*/
|
30 |
+
public function genCSS( $output ) {
|
31 |
+
$output->add( 'url(' );
|
32 |
+
$this->value->genCSS( $output );
|
33 |
+
$output->add( ')' );
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* @param Less_Functions $ctx
|
38 |
+
*/
|
39 |
+
public function compile( $ctx ) {
|
40 |
+
$val = $this->value->compile( $ctx );
|
41 |
+
|
42 |
+
if ( !$this->isEvald ) {
|
43 |
+
// Add the base path if the URL is relative
|
44 |
+
if ( Less_Parser::$options['relativeUrls']
|
45 |
+
&& $this->currentFileInfo
|
46 |
+
&& is_string( $val->value )
|
47 |
+
&& Less_Environment::isPathRelative( $val->value )
|
48 |
+
) {
|
49 |
+
$rootpath = $this->currentFileInfo['uri_root'];
|
50 |
+
if ( !$val->quote ) {
|
51 |
+
$rootpath = preg_replace( '/[\(\)\'"\s]/', '\\$1', $rootpath );
|
52 |
+
}
|
53 |
+
$val->value = $rootpath . $val->value;
|
54 |
+
}
|
55 |
+
|
56 |
+
$val->value = Less_Environment::normalizePath( $val->value );
|
57 |
+
}
|
58 |
+
|
59 |
+
// Add cache buster if enabled
|
60 |
+
if ( Less_Parser::$options['urlArgs'] ) {
|
61 |
+
if ( !preg_match( '/^\s*data:/', $val->value ) ) {
|
62 |
+
$delimiter = strpos( $val->value, '?' ) === false ? '?' : '&';
|
63 |
+
$urlArgs = $delimiter . Less_Parser::$options['urlArgs'];
|
64 |
+
$hash_pos = strpos( $val->value, '#' );
|
65 |
+
if ( $hash_pos !== false ) {
|
66 |
+
$val->value = substr_replace( $val->value, $urlArgs, $hash_pos, 0 );
|
67 |
+
} else {
|
68 |
+
$val->value .= $urlArgs;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
return new Less_Tree_URL( $val, $this->currentFileInfo, true );
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Value.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Value
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Value extends Less_Tree {
|
10 |
+
|
11 |
+
public $type = 'Value';
|
12 |
+
public $value;
|
13 |
+
|
14 |
+
public function __construct( $value ) {
|
15 |
+
$this->value = $value;
|
16 |
+
}
|
17 |
+
|
18 |
+
public function accept( $visitor ) {
|
19 |
+
$this->value = $visitor->visitArray( $this->value );
|
20 |
+
}
|
21 |
+
|
22 |
+
public function compile( $env ) {
|
23 |
+
$ret = array();
|
24 |
+
$i = 0;
|
25 |
+
foreach ( $this->value as $i => $v ) {
|
26 |
+
$ret[] = $v->compile( $env );
|
27 |
+
}
|
28 |
+
if ( $i > 0 ) {
|
29 |
+
return new Less_Tree_Value( $ret );
|
30 |
+
}
|
31 |
+
return $ret[0];
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* @see Less_Tree::genCSS
|
36 |
+
*/
|
37 |
+
function genCSS( $output ) {
|
38 |
+
$len = count( $this->value );
|
39 |
+
for ( $i = 0; $i < $len; $i++ ) {
|
40 |
+
$this->value[$i]->genCSS( $output );
|
41 |
+
if ( $i + 1 < $len ) {
|
42 |
+
$output->add( Less_Environment::$_outputMap[','] );
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Tree/Variable.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Variable
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage tree
|
8 |
+
*/
|
9 |
+
class Less_Tree_Variable extends Less_Tree {
|
10 |
+
|
11 |
+
public $name;
|
12 |
+
public $index;
|
13 |
+
public $currentFileInfo;
|
14 |
+
public $evaluating = false;
|
15 |
+
public $type = 'Variable';
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @param string $name
|
19 |
+
*/
|
20 |
+
public function __construct( $name, $index = null, $currentFileInfo = null ) {
|
21 |
+
$this->name = $name;
|
22 |
+
$this->index = $index;
|
23 |
+
$this->currentFileInfo = $currentFileInfo;
|
24 |
+
}
|
25 |
+
|
26 |
+
public function compile( $env ) {
|
27 |
+
if ( $this->name[1] === '@' ) {
|
28 |
+
$v = new Less_Tree_Variable( substr( $this->name, 1 ), $this->index + 1, $this->currentFileInfo );
|
29 |
+
$name = '@' . $v->compile( $env )->value;
|
30 |
+
} else {
|
31 |
+
$name = $this->name;
|
32 |
+
}
|
33 |
+
|
34 |
+
if ( $this->evaluating ) {
|
35 |
+
throw new Less_Exception_Compiler( "Recursive variable definition for " . $name, null, $this->index, $this->currentFileInfo );
|
36 |
+
}
|
37 |
+
|
38 |
+
$this->evaluating = true;
|
39 |
+
|
40 |
+
foreach ( $env->frames as $frame ) {
|
41 |
+
if ( $v = $frame->variable( $name ) ) {
|
42 |
+
$r = $v->value->compile( $env );
|
43 |
+
$this->evaluating = false;
|
44 |
+
return $r;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
throw new Less_Exception_Compiler( "variable " . $name . " is undefined in file ".$this->currentFileInfo["filename"], null, $this->index, $this->currentFileInfo );
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Version.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Release numbers
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage version
|
8 |
+
*/
|
9 |
+
class Less_Version {
|
10 |
+
|
11 |
+
public const version = '3.1.0'; // The current build number of less.php
|
12 |
+
public const less_version = '2.5.3'; // The less.js version that this build should be compatible with
|
13 |
+
public const cache_version = '253'; // The parser cache version
|
14 |
+
|
15 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Visitor.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Visitor
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage visitor
|
8 |
+
*/
|
9 |
+
class Less_Visitor {
|
10 |
+
|
11 |
+
protected $methods = array();
|
12 |
+
protected $_visitFnCache = array();
|
13 |
+
|
14 |
+
public function __construct() {
|
15 |
+
$this->_visitFnCache = get_class_methods( get_class( $this ) );
|
16 |
+
$this->_visitFnCache = array_flip( $this->_visitFnCache );
|
17 |
+
}
|
18 |
+
|
19 |
+
public function visitObj( $node ) {
|
20 |
+
$funcName = 'visit'.$node->type;
|
21 |
+
if ( isset( $this->_visitFnCache[$funcName] ) ) {
|
22 |
+
|
23 |
+
$visitDeeper = true;
|
24 |
+
$this->$funcName( $node, $visitDeeper );
|
25 |
+
|
26 |
+
if ( $visitDeeper ) {
|
27 |
+
$node->accept( $this );
|
28 |
+
}
|
29 |
+
|
30 |
+
$funcName = $funcName . "Out";
|
31 |
+
if ( isset( $this->_visitFnCache[$funcName] ) ) {
|
32 |
+
$this->$funcName( $node );
|
33 |
+
}
|
34 |
+
|
35 |
+
} else {
|
36 |
+
$node->accept( $this );
|
37 |
+
}
|
38 |
+
|
39 |
+
return $node;
|
40 |
+
}
|
41 |
+
|
42 |
+
public function visitArray( $nodes ) {
|
43 |
+
array_map( array( $this,'visitObj' ), $nodes );
|
44 |
+
return $nodes;
|
45 |
+
}
|
46 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Visitor/extendFinder.php
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Extend Finder Visitor
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage visitor
|
8 |
+
*/
|
9 |
+
class Less_Visitor_extendFinder extends Less_Visitor {
|
10 |
+
|
11 |
+
public $contexts = array();
|
12 |
+
public $allExtendsStack;
|
13 |
+
public $foundExtends;
|
14 |
+
|
15 |
+
public function __construct() {
|
16 |
+
$this->contexts = array();
|
17 |
+
$this->allExtendsStack = array( array() );
|
18 |
+
parent::__construct();
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @param Less_Tree_Ruleset $root
|
23 |
+
*/
|
24 |
+
public function run( $root ) {
|
25 |
+
$root = $this->visitObj( $root );
|
26 |
+
$root->allExtends =& $this->allExtendsStack[0];
|
27 |
+
return $root;
|
28 |
+
}
|
29 |
+
|
30 |
+
public function visitRule( $ruleNode, &$visitDeeper ) {
|
31 |
+
$visitDeeper = false;
|
32 |
+
}
|
33 |
+
|
34 |
+
public function visitMixinDefinition( $mixinDefinitionNode, &$visitDeeper ) {
|
35 |
+
$visitDeeper = false;
|
36 |
+
}
|
37 |
+
|
38 |
+
public function visitRuleset( $rulesetNode ) {
|
39 |
+
if ( $rulesetNode->root ) {
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
|
43 |
+
$allSelectorsExtendList = array();
|
44 |
+
|
45 |
+
// get &:extend(.a); rules which apply to all selectors in this ruleset
|
46 |
+
if ( $rulesetNode->rules ) {
|
47 |
+
foreach ( $rulesetNode->rules as $rule ) {
|
48 |
+
if ( $rule instanceof Less_Tree_Extend ) {
|
49 |
+
$allSelectorsExtendList[] = $rule;
|
50 |
+
$rulesetNode->extendOnEveryPath = true;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
// now find every selector and apply the extends that apply to all extends
|
56 |
+
// and the ones which apply to an individual extend
|
57 |
+
foreach ( $rulesetNode->paths as $selectorPath ) {
|
58 |
+
$selector = end( $selectorPath ); // $selectorPath[ count($selectorPath)-1];
|
59 |
+
|
60 |
+
$j = 0;
|
61 |
+
foreach ( $selector->extendList as $extend ) {
|
62 |
+
$this->allExtendsStackPush( $rulesetNode, $selectorPath, $extend, $j );
|
63 |
+
}
|
64 |
+
foreach ( $allSelectorsExtendList as $extend ) {
|
65 |
+
$this->allExtendsStackPush( $rulesetNode, $selectorPath, $extend, $j );
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
$this->contexts[] = $rulesetNode->selectors;
|
70 |
+
}
|
71 |
+
|
72 |
+
public function allExtendsStackPush( $rulesetNode, $selectorPath, $extend, &$j ) {
|
73 |
+
$this->foundExtends = true;
|
74 |
+
$extend = clone $extend;
|
75 |
+
$extend->findSelfSelectors( $selectorPath );
|
76 |
+
$extend->ruleset = $rulesetNode;
|
77 |
+
if ( $j === 0 ) {
|
78 |
+
$extend->firstExtendOnThisSelectorPath = true;
|
79 |
+
}
|
80 |
+
|
81 |
+
$end_key = count( $this->allExtendsStack ) - 1;
|
82 |
+
$this->allExtendsStack[$end_key][] = $extend;
|
83 |
+
$j++;
|
84 |
+
}
|
85 |
+
|
86 |
+
public function visitRulesetOut( $rulesetNode ) {
|
87 |
+
if ( !is_object( $rulesetNode ) || !$rulesetNode->root ) {
|
88 |
+
array_pop( $this->contexts );
|
89 |
+
}
|
90 |
+
}
|
91 |
+
|
92 |
+
public function visitMedia( $mediaNode ) {
|
93 |
+
$mediaNode->allExtends = array();
|
94 |
+
$this->allExtendsStack[] =& $mediaNode->allExtends;
|
95 |
+
}
|
96 |
+
|
97 |
+
public function visitMediaOut() {
|
98 |
+
array_pop( $this->allExtendsStack );
|
99 |
+
}
|
100 |
+
|
101 |
+
public function visitDirective( $directiveNode ) {
|
102 |
+
$directiveNode->allExtends = array();
|
103 |
+
$this->allExtendsStack[] =& $directiveNode->allExtends;
|
104 |
+
}
|
105 |
+
|
106 |
+
public function visitDirectiveOut() {
|
107 |
+
array_pop( $this->allExtendsStack );
|
108 |
+
}
|
109 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Visitor/import.php
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
class Less_Visitor_import extends Less_VisitorReplacing{
|
5 |
+
|
6 |
+
public $_visitor;
|
7 |
+
public $_importer;
|
8 |
+
public $importCount;
|
9 |
+
|
10 |
+
function __construct( $evalEnv ){
|
11 |
+
$this->env = $evalEnv;
|
12 |
+
$this->importCount = 0;
|
13 |
+
parent::__construct();
|
14 |
+
}
|
15 |
+
|
16 |
+
|
17 |
+
function run( $root ){
|
18 |
+
$root = $this->visitObj($root);
|
19 |
+
$this->isFinished = true;
|
20 |
+
|
21 |
+
//if( $this->importCount === 0) {
|
22 |
+
// $this->_finish();
|
23 |
+
//}
|
24 |
+
}
|
25 |
+
|
26 |
+
function visitImport($importNode, &$visitDeeper ){
|
27 |
+
$importVisitor = $this;
|
28 |
+
$inlineCSS = $importNode->options['inline'];
|
29 |
+
|
30 |
+
if( !$importNode->css || $inlineCSS ){
|
31 |
+
$evaldImportNode = $importNode->compileForImport($this->env);
|
32 |
+
|
33 |
+
if( $evaldImportNode && (!$evaldImportNode->css || $inlineCSS) ){
|
34 |
+
$importNode = $evaldImportNode;
|
35 |
+
$this->importCount++;
|
36 |
+
$env = clone $this->env;
|
37 |
+
|
38 |
+
if( (isset($importNode->options['multiple']) && $importNode->options['multiple']) ){
|
39 |
+
$env->importMultiple = true;
|
40 |
+
}
|
41 |
+
|
42 |
+
//get path & uri
|
43 |
+
$path_and_uri = null;
|
44 |
+
if( is_callable(Less_Parser::$options['import_callback']) ){
|
45 |
+
$path_and_uri = call_user_func(Less_Parser::$options['import_callback'],$importNode);
|
46 |
+
}
|
47 |
+
|
48 |
+
if( !$path_and_uri ){
|
49 |
+
$path_and_uri = $importNode->PathAndUri();
|
50 |
+
}
|
51 |
+
|
52 |
+
if( $path_and_uri ){
|
53 |
+
list($full_path, $uri) = $path_and_uri;
|
54 |
+
}else{
|
55 |
+
$full_path = $uri = $importNode->getPath();
|
56 |
+
}
|
57 |
+
|
58 |
+
|
59 |
+
//import once
|
60 |
+
if( $importNode->skip( $full_path, $env) ){
|
61 |
+
return array();
|
62 |
+
}
|
63 |
+
|
64 |
+
if( $importNode->options['inline'] ){
|
65 |
+
//todo needs to reference css file not import
|
66 |
+
//$contents = new Less_Tree_Anonymous($importNode->root, 0, array('filename'=>$importNode->importedFilename), true );
|
67 |
+
|
68 |
+
Less_Parser::AddParsedFile($full_path);
|
69 |
+
$contents = new Less_Tree_Anonymous( file_get_contents($full_path), 0, array(), true );
|
70 |
+
|
71 |
+
if( $importNode->features ){
|
72 |
+
return new Less_Tree_Media( array($contents), $importNode->features->value );
|
73 |
+
}
|
74 |
+
|
75 |
+
return array( $contents );
|
76 |
+
}
|
77 |
+
|
78 |
+
|
79 |
+
// css ?
|
80 |
+
if( $importNode->css ){
|
81 |
+
$features = ( $importNode->features ? $importNode->features->compile($env) : null );
|
82 |
+
return new Less_Tree_Import( $importNode->compilePath( $env), $features, $importNode->options, $this->index);
|
83 |
+
}
|
84 |
+
|
85 |
+
return $importNode->ParseImport( $full_path, $uri, $env );
|
86 |
+
}
|
87 |
+
|
88 |
+
}
|
89 |
+
|
90 |
+
$visitDeeper = false;
|
91 |
+
return $importNode;
|
92 |
+
}
|
93 |
+
|
94 |
+
|
95 |
+
function visitRule( $ruleNode, &$visitDeeper ){
|
96 |
+
$visitDeeper = false;
|
97 |
+
return $ruleNode;
|
98 |
+
}
|
99 |
+
|
100 |
+
function visitDirective($directiveNode, $visitArgs){
|
101 |
+
array_unshift($this->env->frames,$directiveNode);
|
102 |
+
return $directiveNode;
|
103 |
+
}
|
104 |
+
|
105 |
+
function visitDirectiveOut($directiveNode) {
|
106 |
+
array_shift($this->env->frames);
|
107 |
+
}
|
108 |
+
|
109 |
+
function visitMixinDefinition($mixinDefinitionNode, $visitArgs) {
|
110 |
+
array_unshift($this->env->frames,$mixinDefinitionNode);
|
111 |
+
return $mixinDefinitionNode;
|
112 |
+
}
|
113 |
+
|
114 |
+
function visitMixinDefinitionOut($mixinDefinitionNode) {
|
115 |
+
array_shift($this->env->frames);
|
116 |
+
}
|
117 |
+
|
118 |
+
function visitRuleset($rulesetNode, $visitArgs) {
|
119 |
+
array_unshift($this->env->frames,$rulesetNode);
|
120 |
+
return $rulesetNode;
|
121 |
+
}
|
122 |
+
|
123 |
+
function visitRulesetOut($rulesetNode) {
|
124 |
+
array_shift($this->env->frames);
|
125 |
+
}
|
126 |
+
|
127 |
+
function visitMedia($mediaNode, $visitArgs) {
|
128 |
+
array_unshift($this->env->frames, $mediaNode->ruleset);
|
129 |
+
return $mediaNode;
|
130 |
+
}
|
131 |
+
|
132 |
+
function visitMediaOut($mediaNode) {
|
133 |
+
array_shift($this->env->frames);
|
134 |
+
}
|
135 |
+
|
136 |
+
}
|
137 |
+
*/
|
app/vendor/wikimedia/less.php/lib/Less/Visitor/joinSelector.php
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Join Selector Visitor
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage visitor
|
8 |
+
*/
|
9 |
+
class Less_Visitor_joinSelector extends Less_Visitor {
|
10 |
+
|
11 |
+
public $contexts = array( array() );
|
12 |
+
|
13 |
+
/**
|
14 |
+
* @param Less_Tree_Ruleset $root
|
15 |
+
*/
|
16 |
+
public function run( $root ) {
|
17 |
+
return $this->visitObj( $root );
|
18 |
+
}
|
19 |
+
|
20 |
+
public function visitRule( $ruleNode, &$visitDeeper ) {
|
21 |
+
$visitDeeper = false;
|
22 |
+
}
|
23 |
+
|
24 |
+
public function visitMixinDefinition( $mixinDefinitionNode, &$visitDeeper ) {
|
25 |
+
$visitDeeper = false;
|
26 |
+
}
|
27 |
+
|
28 |
+
public function visitRuleset( $rulesetNode ) {
|
29 |
+
$paths = array();
|
30 |
+
|
31 |
+
if ( !$rulesetNode->root ) {
|
32 |
+
$selectors = array();
|
33 |
+
|
34 |
+
if ( $rulesetNode->selectors && $rulesetNode->selectors ) {
|
35 |
+
foreach ( $rulesetNode->selectors as $selector ) {
|
36 |
+
if ( $selector->getIsOutput() ) {
|
37 |
+
$selectors[] = $selector;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( !$selectors ) {
|
43 |
+
$rulesetNode->selectors = null;
|
44 |
+
$rulesetNode->rules = null;
|
45 |
+
} else {
|
46 |
+
$context = end( $this->contexts ); // $context = $this->contexts[ count($this->contexts) - 1];
|
47 |
+
$paths = $rulesetNode->joinSelectors( $context, $selectors );
|
48 |
+
}
|
49 |
+
|
50 |
+
$rulesetNode->paths = $paths;
|
51 |
+
}
|
52 |
+
|
53 |
+
$this->contexts[] = $paths; // different from less.js. Placed after joinSelectors() so that $this->contexts will get correct $paths
|
54 |
+
}
|
55 |
+
|
56 |
+
public function visitRulesetOut() {
|
57 |
+
array_pop( $this->contexts );
|
58 |
+
}
|
59 |
+
|
60 |
+
public function visitMedia( $mediaNode ) {
|
61 |
+
$context = end( $this->contexts ); // $context = $this->contexts[ count($this->contexts) - 1];
|
62 |
+
|
63 |
+
if ( !count( $context ) || ( is_object( $context[0] ) && $context[0]->multiMedia ) ) {
|
64 |
+
$mediaNode->rules[0]->root = true;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Visitor/processExtends.php
ADDED
@@ -0,0 +1,441 @@
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Process Extends Visitor
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage visitor
|
8 |
+
*/
|
9 |
+
class Less_Visitor_processExtends extends Less_Visitor {
|
10 |
+
|
11 |
+
public $allExtendsStack;
|
12 |
+
|
13 |
+
/**
|
14 |
+
* @param Less_Tree_Ruleset $root
|
15 |
+
*/
|
16 |
+
public function run( $root ) {
|
17 |
+
$extendFinder = new Less_Visitor_extendFinder();
|
18 |
+
$extendFinder->run( $root );
|
19 |
+
if ( !$extendFinder->foundExtends ) {
|
20 |
+
return $root;
|
21 |
+
}
|
22 |
+
|
23 |
+
$root->allExtends = $this->doExtendChaining( $root->allExtends, $root->allExtends );
|
24 |
+
|
25 |
+
$this->allExtendsStack = array();
|
26 |
+
$this->allExtendsStack[] = &$root->allExtends;
|
27 |
+
|
28 |
+
return $this->visitObj( $root );
|
29 |
+
}
|
30 |
+
|
31 |
+
private function doExtendChaining( $extendsList, $extendsListTarget, $iterationCount = 0 ) {
|
32 |
+
//
|
33 |
+
// chaining is different from normal extension.. if we extend an extend then we are not just copying, altering and pasting
|
34 |
+
// the selector we would do normally, but we are also adding an extend with the same target selector
|
35 |
+
// this means this new extend can then go and alter other extends
|
36 |
+
//
|
37 |
+
// this method deals with all the chaining work - without it, extend is flat and doesn't work on other extend selectors
|
38 |
+
// this is also the most expensive.. and a match on one selector can cause an extension of a selector we had already processed if
|
39 |
+
// we look at each selector at a time, as is done in visitRuleset
|
40 |
+
|
41 |
+
$extendsToAdd = array();
|
42 |
+
|
43 |
+
// loop through comparing every extend with every target extend.
|
44 |
+
// a target extend is the one on the ruleset we are looking at copy/edit/pasting in place
|
45 |
+
// e.g. .a:extend(.b) {} and .b:extend(.c) {} then the first extend extends the second one
|
46 |
+
// and the second is the target.
|
47 |
+
// the separation into two lists allows us to process a subset of chains with a bigger set, as is the
|
48 |
+
// case when processing media queries
|
49 |
+
for ( $extendIndex = 0, $extendsList_len = count( $extendsList ); $extendIndex < $extendsList_len; $extendIndex++ ) {
|
50 |
+
for ( $targetExtendIndex = 0; $targetExtendIndex < count( $extendsListTarget ); $targetExtendIndex++ ) {
|
51 |
+
|
52 |
+
$extend = $extendsList[$extendIndex];
|
53 |
+
$targetExtend = $extendsListTarget[$targetExtendIndex];
|
54 |
+
|
55 |
+
// Optimisation: Explicit reference, <https://github.com/wikimedia/less.php/pull/14>
|
56 |
+
if ( \array_key_exists( $targetExtend->object_id, $extend->parent_ids ) ) {
|
57 |
+
// ignore circular references
|
58 |
+
continue;
|
59 |
+
}
|
60 |
+
|
61 |
+
// find a match in the target extends self selector (the bit before :extend)
|
62 |
+
$selectorPath = array( $targetExtend->selfSelectors[0] );
|
63 |
+
$matches = $this->findMatch( $extend, $selectorPath );
|
64 |
+
|
65 |
+
if ( $matches ) {
|
66 |
+
|
67 |
+
// we found a match, so for each self selector..
|
68 |
+
foreach ( $extend->selfSelectors as $selfSelector ) {
|
69 |
+
|
70 |
+
// process the extend as usual
|
71 |
+
$newSelector = $this->extendSelector( $matches, $selectorPath, $selfSelector );
|
72 |
+
|
73 |
+
// but now we create a new extend from it
|
74 |
+
$newExtend = new Less_Tree_Extend( $targetExtend->selector, $targetExtend->option, 0 );
|
75 |
+
$newExtend->selfSelectors = $newSelector;
|
76 |
+
|
77 |
+
// add the extend onto the list of extends for that selector
|
78 |
+
end( $newSelector )->extendList = array( $newExtend );
|
79 |
+
// $newSelector[ count($newSelector)-1]->extendList = array($newExtend);
|
80 |
+
|
81 |
+
// record that we need to add it.
|
82 |
+
$extendsToAdd[] = $newExtend;
|
83 |
+
$newExtend->ruleset = $targetExtend->ruleset;
|
84 |
+
|
85 |
+
// remember its parents for circular references
|
86 |
+
$newExtend->parent_ids = array_merge( $newExtend->parent_ids, $targetExtend->parent_ids, $extend->parent_ids );
|
87 |
+
|
88 |
+
// only process the selector once.. if we have :extend(.a,.b) then multiple
|
89 |
+
// extends will look at the same selector path, so when extending
|
90 |
+
// we know that any others will be duplicates in terms of what is added to the css
|
91 |
+
if ( $targetExtend->firstExtendOnThisSelectorPath ) {
|
92 |
+
$newExtend->firstExtendOnThisSelectorPath = true;
|
93 |
+
$targetExtend->ruleset->paths[] = $newSelector;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
}
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
if ( $extendsToAdd ) {
|
101 |
+
// try to detect circular references to stop a stack overflow.
|
102 |
+
// may no longer be needed. $this->extendChainCount++;
|
103 |
+
if ( $iterationCount > 100 ) {
|
104 |
+
|
105 |
+
try{
|
106 |
+
$selectorOne = $extendsToAdd[0]->selfSelectors[0]->toCSS();
|
107 |
+
$selectorTwo = $extendsToAdd[0]->selector->toCSS();
|
108 |
+
}catch ( Exception $e ) {
|
109 |
+
$selectorOne = "{unable to calculate}";
|
110 |
+
$selectorTwo = "{unable to calculate}";
|
111 |
+
}
|
112 |
+
|
113 |
+
throw new Less_Exception_Parser( "extend circular reference detected. One of the circular extends is currently:" . $selectorOne . ":extend(" . $selectorTwo . ")" );
|
114 |
+
}
|
115 |
+
|
116 |
+
// now process the new extends on the existing rules so that we can handle a extending b extending c ectending d extending e...
|
117 |
+
$extendsToAdd = $this->doExtendChaining( $extendsToAdd, $extendsListTarget, $iterationCount + 1 );
|
118 |
+
}
|
119 |
+
|
120 |
+
return array_merge( $extendsList, $extendsToAdd );
|
121 |
+
}
|
122 |
+
|
123 |
+
protected function visitRule( $ruleNode, &$visitDeeper ) {
|
124 |
+
$visitDeeper = false;
|
125 |
+
}
|
126 |
+
|
127 |
+
protected function visitMixinDefinition( $mixinDefinitionNode, &$visitDeeper ) {
|
128 |
+
$visitDeeper = false;
|
129 |
+
}
|
130 |
+
|
131 |
+
protected function visitSelector( $selectorNode, &$visitDeeper ) {
|
132 |
+
$visitDeeper = false;
|
133 |
+
}
|
134 |
+
|
135 |
+
protected function visitRuleset( $rulesetNode ) {
|
136 |
+
if ( $rulesetNode->root ) {
|
137 |
+
return;
|
138 |
+
}
|
139 |
+
|
140 |
+
$allExtends = end( $this->allExtendsStack );
|
141 |
+
$paths_len = count( $rulesetNode->paths );
|
142 |
+
|
143 |
+
// look at each selector path in the ruleset, find any extend matches and then copy, find and replace
|
144 |
+
foreach ( $allExtends as $allExtend ) {
|
145 |
+
for ( $pathIndex = 0; $pathIndex < $paths_len; $pathIndex++ ) {
|
146 |
+
|
147 |
+
// extending extends happens initially, before the main pass
|
148 |
+
if ( isset( $rulesetNode->extendOnEveryPath ) && $rulesetNode->extendOnEveryPath ) {
|
149 |
+
continue;
|
150 |
+
}
|
151 |
+
|
152 |
+
$selectorPath = $rulesetNode->paths[$pathIndex];
|
153 |
+
|
154 |
+
if ( end( $selectorPath )->extendList ) {
|
155 |
+
continue;
|
156 |
+
}
|
157 |
+
|
158 |
+
$this->ExtendMatch( $rulesetNode, $allExtend, $selectorPath );
|
159 |
+
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
+
private function ExtendMatch( $rulesetNode, $extend, $selectorPath ) {
|
165 |
+
$matches = $this->findMatch( $extend, $selectorPath );
|
166 |
+
|
167 |
+
if ( $matches ) {
|
168 |
+
foreach ( $extend->selfSelectors as $selfSelector ) {
|
169 |
+
$rulesetNode->paths[] = $this->extendSelector( $matches, $selectorPath, $selfSelector );
|
170 |
+
}
|
171 |
+
}
|
172 |
+
}
|
173 |
+
|
174 |
+
private function findMatch( $extend, $haystackSelectorPath ) {
|
175 |
+
if ( !$this->HasMatches( $extend, $haystackSelectorPath ) ) {
|
176 |
+
return false;
|
177 |
+
}
|
178 |
+
|
179 |
+
//
|
180 |
+
// look through the haystack selector path to try and find the needle - extend.selector
|
181 |
+
// returns an array of selector matches that can then be replaced
|
182 |
+
//
|
183 |
+
$needleElements = $extend->selector->elements;
|
184 |
+
$potentialMatches = array();
|
185 |
+
$potentialMatches_len = 0;
|
186 |
+
$potentialMatch = null;
|
187 |
+
$matches = array();
|
188 |
+
|
189 |
+
// loop through the haystack elements
|
190 |
+
$haystack_path_len = count( $haystackSelectorPath );
|
191 |
+
for ( $haystackSelectorIndex = 0; $haystackSelectorIndex < $haystack_path_len; $haystackSelectorIndex++ ) {
|
192 |
+
$hackstackSelector = $haystackSelectorPath[$haystackSelectorIndex];
|
193 |
+
|
194 |
+
$haystack_elements_len = count( $hackstackSelector->elements );
|
195 |
+
for ( $hackstackElementIndex = 0; $hackstackElementIndex < $haystack_elements_len; $hackstackElementIndex++ ) {
|
196 |
+
|
197 |
+
$haystackElement = $hackstackSelector->elements[$hackstackElementIndex];
|
198 |
+
|
199 |
+
// if we allow elements before our match we can add a potential match every time. otherwise only at the first element.
|
200 |
+
if ( $extend->allowBefore || ( $haystackSelectorIndex === 0 && $hackstackElementIndex === 0 ) ) {
|
201 |
+
$potentialMatches[] = array( 'pathIndex' => $haystackSelectorIndex, 'index' => $hackstackElementIndex, 'matched' => 0, 'initialCombinator' => $haystackElement->combinator );
|
202 |
+
$potentialMatches_len++;
|
203 |
+
}
|
204 |
+
|
205 |
+
for ( $i = 0; $i < $potentialMatches_len; $i++ ) {
|
206 |
+
|
207 |
+
$potentialMatch = &$potentialMatches[$i];
|
208 |
+
$potentialMatch = $this->PotentialMatch( $potentialMatch, $needleElements, $haystackElement, $hackstackElementIndex );
|
209 |
+
|
210 |
+
// if we are still valid and have finished, test whether we have elements after and whether these are allowed
|
211 |
+
if ( $potentialMatch && $potentialMatch['matched'] === $extend->selector->elements_len ) {
|
212 |
+
$potentialMatch['finished'] = true;
|
213 |
+
|
214 |
+
if ( !$extend->allowAfter && ( $hackstackElementIndex + 1 < $haystack_elements_len || $haystackSelectorIndex + 1 < $haystack_path_len ) ) {
|
215 |
+
$potentialMatch = null;
|
216 |
+
}
|
217 |
+
}
|
218 |
+
|
219 |
+
// if null we remove, if not, we are still valid, so either push as a valid match or continue
|
220 |
+
if ( $potentialMatch ) {
|
221 |
+
if ( $potentialMatch['finished'] ) {
|
222 |
+
$potentialMatch['length'] = $extend->selector->elements_len;
|
223 |
+
$potentialMatch['endPathIndex'] = $haystackSelectorIndex;
|
224 |
+
$potentialMatch['endPathElementIndex'] = $hackstackElementIndex + 1; // index after end of match
|
225 |
+
$potentialMatches = array(); // we don't allow matches to overlap, so start matching again
|
226 |
+
$potentialMatches_len = 0;
|
227 |
+
$matches[] = $potentialMatch;
|
228 |
+
}
|
229 |
+
continue;
|
230 |
+
}
|
231 |
+
|
232 |
+
array_splice( $potentialMatches, $i, 1 );
|
233 |
+
$potentialMatches_len--;
|
234 |
+
$i--;
|
235 |
+
}
|
236 |
+
}
|
237 |
+
}
|
238 |
+
|
239 |
+
return $matches;
|
240 |
+
}
|
241 |
+
|
242 |
+
// Before going through all the nested loops, lets check to see if a match is possible
|
243 |
+
// Reduces Bootstrap 3.1 compile time from ~6.5s to ~5.6s
|
244 |
+
private function HasMatches( $extend, $haystackSelectorPath ) {
|
245 |
+
if ( !$extend->selector->cacheable ) {
|
246 |
+
return true;
|
247 |
+
}
|
248 |
+
|
249 |
+
$first_el = $extend->selector->_oelements[0];
|
250 |
+
|
251 |
+
foreach ( $haystackSelectorPath as $hackstackSelector ) {
|
252 |
+
if ( !$hackstackSelector->cacheable ) {
|
253 |
+
return true;
|
254 |
+
}
|
255 |
+
|
256 |
+
// Optimisation: Explicit reference, <https://github.com/wikimedia/less.php/pull/14>
|
257 |
+
if ( \array_key_exists( $first_el, $hackstackSelector->_oelements_assoc ) ) {
|
258 |
+
return true;
|
259 |
+
}
|
260 |
+
}
|
261 |
+
|
262 |
+
return false;
|
263 |
+
}
|
264 |
+
|
265 |
+
/**
|
266 |
+
* @param integer $hackstackElementIndex
|
267 |
+
*/
|
268 |
+
private function PotentialMatch( $potentialMatch, $needleElements, $haystackElement, $hackstackElementIndex ) {
|
269 |
+
if ( $potentialMatch['matched'] > 0 ) {
|
270 |
+
|
271 |
+
// selectors add " " onto the first element. When we use & it joins the selectors together, but if we don't
|
272 |
+
// then each selector in haystackSelectorPath has a space before it added in the toCSS phase. so we need to work out
|
273 |
+
// what the resulting combinator will be
|
274 |
+
$targetCombinator = $haystackElement->combinator;
|
275 |
+
if ( $targetCombinator === '' && $hackstackElementIndex === 0 ) {
|
276 |
+
$targetCombinator = ' ';
|
277 |
+
}
|
278 |
+
|
279 |
+
if ( $needleElements[ $potentialMatch['matched'] ]->combinator !== $targetCombinator ) {
|
280 |
+
return null;
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
// if we don't match, null our match to indicate failure
|
285 |
+
if ( !$this->isElementValuesEqual( $needleElements[$potentialMatch['matched'] ]->value, $haystackElement->value ) ) {
|
286 |
+
return null;
|
287 |
+
}
|
288 |
+
|
289 |
+
$potentialMatch['finished'] = false;
|
290 |
+
$potentialMatch['matched']++;
|
291 |
+
|
292 |
+
return $potentialMatch;
|
293 |
+
}
|
294 |
+
|
295 |
+
private function isElementValuesEqual( $elementValue1, $elementValue2 ) {
|
296 |
+
if ( $elementValue1 === $elementValue2 ) {
|
297 |
+
return true;
|
298 |
+
}
|
299 |
+
|
300 |
+
if ( is_string( $elementValue1 ) || is_string( $elementValue2 ) ) {
|
301 |
+
return false;
|
302 |
+
}
|
303 |
+
|
304 |
+
if ( $elementValue1 instanceof Less_Tree_Attribute ) {
|
305 |
+
return $this->isAttributeValuesEqual( $elementValue1, $elementValue2 );
|
306 |
+
}
|
307 |
+
|
308 |
+
$elementValue1 = $elementValue1->value;
|
309 |
+
if ( $elementValue1 instanceof Less_Tree_Selector ) {
|
310 |
+
return $this->isSelectorValuesEqual( $elementValue1, $elementValue2 );
|
311 |
+
}
|
312 |
+
|
313 |
+
return false;
|
314 |
+
}
|
315 |
+
|
316 |
+
/**
|
317 |
+
* @param Less_Tree_Selector $elementValue1
|
318 |
+
*/
|
319 |
+
private function isSelectorValuesEqual( $elementValue1, $elementValue2 ) {
|
320 |
+
$elementValue2 = $elementValue2->value;
|
321 |
+
if ( !( $elementValue2 instanceof Less_Tree_Selector ) || $elementValue1->elements_len !== $elementValue2->elements_len ) {
|
322 |
+
return false;
|
323 |
+
}
|
324 |
+
|
325 |
+
for ( $i = 0; $i < $elementValue1->elements_len; $i++ ) {
|
326 |
+
|
327 |
+
if ( $elementValue1->elements[$i]->combinator !== $elementValue2->elements[$i]->combinator ) {
|
328 |
+
if ( $i !== 0 || ( $elementValue1->elements[$i]->combinator || ' ' ) !== ( $elementValue2->elements[$i]->combinator || ' ' ) ) {
|
329 |
+
return false;
|
330 |
+
}
|
331 |
+
}
|
332 |
+
|
333 |
+
if ( !$this->isElementValuesEqual( $elementValue1->elements[$i]->value, $elementValue2->elements[$i]->value ) ) {
|
334 |
+
return false;
|
335 |
+
}
|
336 |
+
}
|
337 |
+
|
338 |
+
return true;
|
339 |
+
}
|
340 |
+
|
341 |
+
/**
|
342 |
+
* @param Less_Tree_Attribute $elementValue1
|
343 |
+
*/
|
344 |
+
private function isAttributeValuesEqual( $elementValue1, $elementValue2 ) {
|
345 |
+
if ( $elementValue1->op !== $elementValue2->op || $elementValue1->key !== $elementValue2->key ) {
|
346 |
+
return false;
|
347 |
+
}
|
348 |
+
|
349 |
+
if ( !$elementValue1->value || !$elementValue2->value ) {
|
350 |
+
if ( $elementValue1->value || $elementValue2->value ) {
|
351 |
+
return false;
|
352 |
+
}
|
353 |
+
return true;
|
354 |
+
}
|
355 |
+
|
356 |
+
$elementValue1 = ( $elementValue1->value->value ? $elementValue1->value->value : $elementValue1->value );
|
357 |
+
$elementValue2 = ( $elementValue2->value->value ? $elementValue2->value->value : $elementValue2->value );
|
358 |
+
|
359 |
+
return $elementValue1 === $elementValue2;
|
360 |
+
}
|
361 |
+
|
362 |
+
private function extendSelector( $matches, $selectorPath, $replacementSelector ) {
|
363 |
+
// for a set of matches, replace each match with the replacement selector
|
364 |
+
|
365 |
+
$currentSelectorPathIndex = 0;
|
366 |
+
$currentSelectorPathElementIndex = 0;
|
367 |
+
$path = array();
|
368 |
+
$selectorPath_len = count( $selectorPath );
|
369 |
+
|
370 |
+
for ( $matchIndex = 0, $matches_len = count( $matches ); $matchIndex < $matches_len; $matchIndex++ ) {
|
371 |
+
|
372 |
+
$match = $matches[$matchIndex];
|
373 |
+
$selector = $selectorPath[ $match['pathIndex'] ];
|
374 |
+
|
375 |
+
$firstElement = new Less_Tree_Element(
|
376 |
+
$match['initialCombinator'],
|
377 |
+
$replacementSelector->elements[0]->value,
|
378 |
+
$replacementSelector->elements[0]->index,
|
379 |
+
$replacementSelector->elements[0]->currentFileInfo
|
380 |
+
);
|
381 |
+
|
382 |
+
if ( $match['pathIndex'] > $currentSelectorPathIndex && $currentSelectorPathElementIndex > 0 ) {
|
383 |
+
$last_path = end( $path );
|
384 |
+
$last_path->elements = array_merge( $last_path->elements, array_slice( $selectorPath[$currentSelectorPathIndex]->elements, $currentSelectorPathElementIndex ) );
|
385 |
+
$currentSelectorPathElementIndex = 0;
|
386 |
+
$currentSelectorPathIndex++;
|
387 |
+
}
|
388 |
+
|
389 |
+
$newElements = array_merge(
|
390 |
+
array_slice( $selector->elements, $currentSelectorPathElementIndex, ( $match['index'] - $currentSelectorPathElementIndex ) ), // last parameter of array_slice is different than the last parameter of javascript's slice
|
391 |
+
array( $firstElement ),
|
392 |
+
array_slice( $replacementSelector->elements, 1 )
|
393 |
+
);
|
394 |
+
|
395 |
+
if ( $currentSelectorPathIndex === $match['pathIndex'] && $matchIndex > 0 ) {
|
396 |
+
$last_key = count( $path ) - 1;
|
397 |
+
$path[$last_key]->elements = array_merge( $path[$last_key]->elements, $newElements );
|
398 |
+
} else {
|
399 |
+
$path = array_merge( $path, array_slice( $selectorPath, $currentSelectorPathIndex, $match['pathIndex'] ) );
|
400 |
+
$path[] = new Less_Tree_Selector( $newElements );
|
401 |
+
}
|
402 |
+
|
403 |
+
$currentSelectorPathIndex = $match['endPathIndex'];
|
404 |
+
$currentSelectorPathElementIndex = $match['endPathElementIndex'];
|
405 |
+
if ( $currentSelectorPathElementIndex >= count( $selectorPath[$currentSelectorPathIndex]->elements ) ) {
|
406 |
+
$currentSelectorPathElementIndex = 0;
|
407 |
+
$currentSelectorPathIndex++;
|
408 |
+
}
|
409 |
+
}
|
410 |
+
|
411 |
+
if ( $currentSelectorPathIndex < $selectorPath_len && $currentSelectorPathElementIndex > 0 ) {
|
412 |
+
$last_path = end( $path );
|
413 |
+
$last_path->elements = array_merge( $last_path->elements, array_slice( $selectorPath[$currentSelectorPathIndex]->elements, $currentSelectorPathElementIndex ) );
|
414 |
+
$currentSelectorPathIndex++;
|
415 |
+
}
|
416 |
+
|
417 |
+
$slice_len = $selectorPath_len - $currentSelectorPathIndex;
|
418 |
+
$path = array_merge( $path, array_slice( $selectorPath, $currentSelectorPathIndex, $slice_len ) );
|
419 |
+
|
420 |
+
return $path;
|
421 |
+
}
|
422 |
+
|
423 |
+
protected function visitMedia( $mediaNode ) {
|
424 |
+
$newAllExtends = array_merge( $mediaNode->allExtends, end( $this->allExtendsStack ) );
|
425 |
+
$this->allExtendsStack[] = $this->doExtendChaining( $newAllExtends, $mediaNode->allExtends );
|
426 |
+
}
|
427 |
+
|
428 |
+
protected function visitMediaOut() {
|
429 |
+
array_pop( $this->allExtendsStack );
|
430 |
+
}
|
431 |
+
|
432 |
+
protected function visitDirective( $directiveNode ) {
|
433 |
+
$newAllExtends = array_merge( $directiveNode->allExtends, end( $this->allExtendsStack ) );
|
434 |
+
$this->allExtendsStack[] = $this->doExtendChaining( $newAllExtends, $directiveNode->allExtends );
|
435 |
+
}
|
436 |
+
|
437 |
+
protected function visitDirectiveOut() {
|
438 |
+
array_pop( $this->allExtendsStack );
|
439 |
+
}
|
440 |
+
|
441 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/Visitor/toCSS.php
ADDED
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* toCSS Visitor
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage visitor
|
8 |
+
*/
|
9 |
+
class Less_Visitor_toCSS extends Less_VisitorReplacing {
|
10 |
+
|
11 |
+
private $charset;
|
12 |
+
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
}
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @param Less_Tree_Ruleset $root
|
19 |
+
*/
|
20 |
+
public function run( $root ) {
|
21 |
+
return $this->visitObj( $root );
|
22 |
+
}
|
23 |
+
|
24 |
+
public function visitRule( $ruleNode ) {
|
25 |
+
if ( $ruleNode->variable ) {
|
26 |
+
return array();
|
27 |
+
}
|
28 |
+
return $ruleNode;
|
29 |
+
}
|
30 |
+
|
31 |
+
public function visitMixinDefinition( $mixinNode ) {
|
32 |
+
// mixin definitions do not get eval'd - this means they keep state
|
33 |
+
// so we have to clear that state here so it isn't used if toCSS is called twice
|
34 |
+
$mixinNode->frames = array();
|
35 |
+
return array();
|
36 |
+
}
|
37 |
+
|
38 |
+
public function visitExtend() {
|
39 |
+
return array();
|
40 |
+
}
|
41 |
+
|
42 |
+
public function visitComment( $commentNode ) {
|
43 |
+
if ( $commentNode->isSilent() ) {
|
44 |
+
return array();
|
45 |
+
}
|
46 |
+
return $commentNode;
|
47 |
+
}
|
48 |
+
|
49 |
+
public function visitMedia( $mediaNode, &$visitDeeper ) {
|
50 |
+
$mediaNode->accept( $this );
|
51 |
+
$visitDeeper = false;
|
52 |
+
|
53 |
+
if ( !$mediaNode->rules ) {
|
54 |
+
return array();
|
55 |
+
}
|
56 |
+
return $mediaNode;
|
57 |
+
}
|
58 |
+
|
59 |
+
public function visitDirective( $directiveNode ) {
|
60 |
+
if ( isset( $directiveNode->currentFileInfo['reference'] ) && ( !property_exists( $directiveNode, 'isReferenced' ) || !$directiveNode->isReferenced ) ) {
|
61 |
+
return array();
|
62 |
+
}
|
63 |
+
if ( $directiveNode->name === '@charset' ) {
|
64 |
+
// Only output the debug info together with subsequent @charset definitions
|
65 |
+
// a comment (or @media statement) before the actual @charset directive would
|
66 |
+
// be considered illegal css as it has to be on the first line
|
67 |
+
if ( isset( $this->charset ) && $this->charset ) {
|
68 |
+
|
69 |
+
// if( $directiveNode->debugInfo ){
|
70 |
+
// $comment = new Less_Tree_Comment('/* ' . str_replace("\n",'',$directiveNode->toCSS())." */\n");
|
71 |
+
// $comment->debugInfo = $directiveNode->debugInfo;
|
72 |
+
// return $this->visit($comment);
|
73 |
+
//}
|
74 |
+
|
75 |
+
return array();
|
76 |
+
}
|
77 |
+
$this->charset = true;
|
78 |
+
}
|
79 |
+
return $directiveNode;
|
80 |
+
}
|
81 |
+
|
82 |
+
public function checkPropertiesInRoot( $rulesetNode ) {
|
83 |
+
if ( !$rulesetNode->firstRoot ) {
|
84 |
+
return;
|
85 |
+
}
|
86 |
+
|
87 |
+
foreach ( $rulesetNode->rules as $ruleNode ) {
|
88 |
+
if ( $ruleNode instanceof Less_Tree_Rule && !$ruleNode->variable ) {
|
89 |
+
$msg = "properties must be inside selector blocks, they cannot be in the root. Index ".$ruleNode->index.( $ruleNode->currentFileInfo ? ( ' Filename: '.$ruleNode->currentFileInfo['filename'] ) : null );
|
90 |
+
throw new Less_Exception_Compiler( $msg );
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
public function visitRuleset( $rulesetNode, &$visitDeeper ) {
|
96 |
+
$visitDeeper = false;
|
97 |
+
|
98 |
+
$this->checkPropertiesInRoot( $rulesetNode );
|
99 |
+
|
100 |
+
if ( $rulesetNode->root ) {
|
101 |
+
return $this->visitRulesetRoot( $rulesetNode );
|
102 |
+
}
|
103 |
+
|
104 |
+
$rulesets = array();
|
105 |
+
$rulesetNode->paths = $this->visitRulesetPaths( $rulesetNode );
|
106 |
+
|
107 |
+
// Compile rules and rulesets
|
108 |
+
$nodeRuleCnt = $rulesetNode->rules ? count( $rulesetNode->rules ) : 0;
|
109 |
+
for ( $i = 0; $i < $nodeRuleCnt; ) {
|
110 |
+
$rule = $rulesetNode->rules[$i];
|
111 |
+
|
112 |
+
if ( property_exists( $rule, 'rules' ) ) {
|
113 |
+
// visit because we are moving them out from being a child
|
114 |
+
$rulesets[] = $this->visitObj( $rule );
|
115 |
+
array_splice( $rulesetNode->rules, $i, 1 );
|
116 |
+
$nodeRuleCnt--;
|
117 |
+
continue;
|
118 |
+
}
|
119 |
+
$i++;
|
120 |
+
}
|
121 |
+
|
122 |
+
// accept the visitor to remove rules and refactor itself
|
123 |
+
// then we can decide now whether we want it or not
|
124 |
+
if ( $nodeRuleCnt > 0 ) {
|
125 |
+
$rulesetNode->accept( $this );
|
126 |
+
|
127 |
+
if ( $rulesetNode->rules ) {
|
128 |
+
|
129 |
+
if ( count( $rulesetNode->rules ) > 1 ) {
|
130 |
+
$this->_mergeRules( $rulesetNode->rules );
|
131 |
+
$this->_removeDuplicateRules( $rulesetNode->rules );
|
132 |
+
}
|
133 |
+
|
134 |
+
// now decide whether we keep the ruleset
|
135 |
+
if ( $rulesetNode->paths ) {
|
136 |
+
// array_unshift($rulesets, $rulesetNode);
|
137 |
+
array_splice( $rulesets, 0, 0, array( $rulesetNode ) );
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
}
|
142 |
+
|
143 |
+
if ( count( $rulesets ) === 1 ) {
|
144 |
+
return $rulesets[0];
|
145 |
+
}
|
146 |
+
return $rulesets;
|
147 |
+
}
|
148 |
+
|
149 |
+
/**
|
150 |
+
* Helper function for visitiRuleset
|
151 |
+
*
|
152 |
+
* return array|Less_Tree_Ruleset
|
153 |
+
*/
|
154 |
+
private function visitRulesetRoot( $rulesetNode ) {
|
155 |
+
$rulesetNode->accept( $this );
|
156 |
+
if ( $rulesetNode->firstRoot || $rulesetNode->rules ) {
|
157 |
+
return $rulesetNode;
|
158 |
+
}
|
159 |
+
return array();
|
160 |
+
}
|
161 |
+
|
162 |
+
/**
|
163 |
+
* Helper function for visitRuleset()
|
164 |
+
*
|
165 |
+
* @return array
|
166 |
+
*/
|
167 |
+
private function visitRulesetPaths( $rulesetNode ) {
|
168 |
+
$paths = array();
|
169 |
+
foreach ( $rulesetNode->paths as $p ) {
|
170 |
+
if ( $p[0]->elements[0]->combinator === ' ' ) {
|
171 |
+
$p[0]->elements[0]->combinator = '';
|
172 |
+
}
|
173 |
+
|
174 |
+
foreach ( $p as $pi ) {
|
175 |
+
if ( $pi->getIsReferenced() && $pi->getIsOutput() ) {
|
176 |
+
$paths[] = $p;
|
177 |
+
break;
|
178 |
+
}
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
return $paths;
|
183 |
+
}
|
184 |
+
|
185 |
+
protected function _removeDuplicateRules( &$rules ) {
|
186 |
+
// remove duplicates
|
187 |
+
$ruleCache = array();
|
188 |
+
for ( $i = count( $rules ) - 1; $i >= 0; $i-- ) {
|
189 |
+
$rule = $rules[$i];
|
190 |
+
if ( $rule instanceof Less_Tree_Rule || $rule instanceof Less_Tree_NameValue ) {
|
191 |
+
|
192 |
+
if ( !isset( $ruleCache[$rule->name] ) ) {
|
193 |
+
$ruleCache[$rule->name] = $rule;
|
194 |
+
} else {
|
195 |
+
$ruleList =& $ruleCache[$rule->name];
|
196 |
+
|
197 |
+
if ( $ruleList instanceof Less_Tree_Rule || $ruleList instanceof Less_Tree_NameValue ) {
|
198 |
+
$ruleList = $ruleCache[$rule->name] = array( $ruleCache[$rule->name]->toCSS() );
|
199 |
+
}
|
200 |
+
|
201 |
+
$ruleCSS = $rule->toCSS();
|
202 |
+
if ( array_search( $ruleCSS, $ruleList ) !== false ) {
|
203 |
+
array_splice( $rules, $i, 1 );
|
204 |
+
} else {
|
205 |
+
$ruleList[] = $ruleCSS;
|
206 |
+
}
|
207 |
+
}
|
208 |
+
}
|
209 |
+
}
|
210 |
+
}
|
211 |
+
|
212 |
+
protected function _mergeRules( &$rules ) {
|
213 |
+
$groups = array();
|
214 |
+
|
215 |
+
// obj($rules);
|
216 |
+
|
217 |
+
$rules_len = count( $rules );
|
218 |
+
for ( $i = 0; $i < $rules_len; $i++ ) {
|
219 |
+
$rule = $rules[$i];
|
220 |
+
|
221 |
+
if ( ( $rule instanceof Less_Tree_Rule ) && $rule->merge ) {
|
222 |
+
|
223 |
+
$key = $rule->name;
|
224 |
+
if ( $rule->important ) {
|
225 |
+
$key .= ',!';
|
226 |
+
}
|
227 |
+
|
228 |
+
if ( !isset( $groups[$key] ) ) {
|
229 |
+
$groups[$key] = array();
|
230 |
+
} else {
|
231 |
+
array_splice( $rules, $i--, 1 );
|
232 |
+
$rules_len--;
|
233 |
+
}
|
234 |
+
|
235 |
+
$groups[$key][] = $rule;
|
236 |
+
}
|
237 |
+
}
|
238 |
+
|
239 |
+
foreach ( $groups as $parts ) {
|
240 |
+
|
241 |
+
if ( count( $parts ) > 1 ) {
|
242 |
+
$rule = $parts[0];
|
243 |
+
$spacedGroups = array();
|
244 |
+
$lastSpacedGroup = array();
|
245 |
+
$parts_mapped = array();
|
246 |
+
foreach ( $parts as $p ) {
|
247 |
+
if ( $p->merge === '+' ) {
|
248 |
+
if ( $lastSpacedGroup ) {
|
249 |
+
$spacedGroups[] = self::toExpression( $lastSpacedGroup );
|
250 |
+
}
|
251 |
+
$lastSpacedGroup = array();
|
252 |
+
}
|
253 |
+
$lastSpacedGroup[] = $p;
|
254 |
+
}
|
255 |
+
|
256 |
+
$spacedGroups[] = self::toExpression( $lastSpacedGroup );
|
257 |
+
$rule->value = self::toValue( $spacedGroups );
|
258 |
+
}
|
259 |
+
}
|
260 |
+
|
261 |
+
}
|
262 |
+
|
263 |
+
public static function toExpression( $values ) {
|
264 |
+
$mapped = array();
|
265 |
+
foreach ( $values as $p ) {
|
266 |
+
$mapped[] = $p->value;
|
267 |
+
}
|
268 |
+
return new Less_Tree_Expression( $mapped );
|
269 |
+
}
|
270 |
+
|
271 |
+
public static function toValue( $values ) {
|
272 |
+
// return new Less_Tree_Value($values); ??
|
273 |
+
|
274 |
+
$mapped = array();
|
275 |
+
foreach ( $values as $p ) {
|
276 |
+
$mapped[] = $p;
|
277 |
+
}
|
278 |
+
return new Less_Tree_Value( $mapped );
|
279 |
+
}
|
280 |
+
}
|
app/vendor/wikimedia/less.php/lib/Less/VisitorReplacing.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Replacing Visitor
|
5 |
+
*
|
6 |
+
* @package Less
|
7 |
+
* @subpackage visitor
|
8 |
+
*/
|
9 |
+
class Less_VisitorReplacing extends Less_Visitor {
|
10 |
+
|
11 |
+
public function visitObj( $node ) {
|
12 |
+
$funcName = 'visit'.$node->type;
|
13 |
+
if ( isset( $this->_visitFnCache[$funcName] ) ) {
|
14 |
+
|
15 |
+
$visitDeeper = true;
|
16 |
+
$node = $this->$funcName( $node, $visitDeeper );
|
17 |
+
|
18 |
+
if ( $node ) {
|
19 |
+
if ( $visitDeeper && is_object( $node ) ) {
|
20 |
+
$node->accept( $this );
|
21 |
+
}
|
22 |
+
|
23 |
+
$funcName = $funcName . "Out";
|
24 |
+
if ( isset( $this->_visitFnCache[$funcName] ) ) {
|
25 |
+
$this->$funcName( $node );
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
} else {
|
30 |
+
$node->accept( $this );
|
31 |
+
}
|
32 |
+
|
33 |
+
return $node;
|
34 |
+
}
|
35 |
+
|
36 |
+
public function visitArray( $nodes ) {
|
37 |
+
$newNodes = array();
|
38 |
+
foreach ( $nodes as $node ) {
|
39 |
+
$evald = $this->visitObj( $node );
|
40 |
+
if ( $evald ) {
|
41 |
+
if ( is_array( $evald ) ) {
|
42 |
+
self::flatten( $evald, $newNodes );
|
43 |
+
} else {
|
44 |
+
$newNodes[] = $evald;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
48 |
+
return $newNodes;
|
49 |
+
}
|
50 |
+
|
51 |
+
public function flatten( $arr, &$out ) {
|
52 |
+
foreach ( $arr as $item ) {
|
53 |
+
if ( !is_array( $item ) ) {
|
54 |
+
$out[] = $item;
|
55 |
+
continue;
|
56 |
+
}
|
57 |
+
|
58 |
+
foreach ( $item as $nestedItem ) {
|
59 |
+
if ( is_array( $nestedItem ) ) {
|
60 |
+
self::flatten( $nestedItem, $out );
|
61 |
+
} else {
|
62 |
+
$out[] = $nestedItem;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
return $out;
|
68 |
+
}
|
69 |
+
|
70 |
+
}
|
assets/js/asset_manager_core_js.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/* Matomo Javascript - cb=
|
2 |
|
3 |
/*!
|
4 |
* Matomo - free/libre analytics platform
|
@@ -871,10 +871,11 @@ else{locationSplit=location.href.split('#');if(typeof locationSplit[1]!='undefin
|
|
871 |
return hashStr;},getSearchFromUrl:function(url){var searchStr="";if(url&&url.match(/\?/)){searchStr=url.substring(url.indexOf("?"),url.length);}else{searchStr=location.search;}
|
872 |
return searchStr;},extractKeyValuePairsFromQueryString:function(queryString){var pairs=queryString.split('&');var result={};for(var i=0;i!=pairs.length;++i){var pair=pairs[i].split('=');var key=pair.shift();result[key]=pair.join('=');}
|
873 |
return result;},getValuesFromUrl:function(url){var searchString=this._removeHashFromUrl(url).split('?')[1]||'';return this.extractKeyValuePairsFromQueryString(searchString);},getValueFromUrl:function(param,url){var searchString=this._removeHashFromUrl(url);return broadcast.getParamValue(param,searchString);},getValueFromHash:function(param,url){var hashStr=broadcast.getHashFromUrl(url);if(hashStr.substr(0,1)=='#'){hashStr=hashStr.substr(1);}
|
874 |
-
hashStr=hashStr.split('#')[0];return broadcast.getParamValue(param,hashStr);},getParamValue:function(param,url){var lookFor=param+'=';
|
875 |
-
|
876 |
-
|
877 |
-
|
|
|
878 |
return value;}},getHash:function(){return broadcast.getHashFromUrl().replace(/^#/,'').split('#')[0];},_removeHashFromUrl:function(url){var searchString='';if(url){var urlParts=url.split('#');searchString=urlParts[0];}else{searchString=window.location.search;}
|
879 |
return searchString;}};
|
880 |
/*!
|
@@ -883,9 +884,10 @@ return searchString;}};
|
|
883 |
* @link https://matomo.org
|
884 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
885 |
*/
|
886 |
-
var Piwik_Popover=(function(){var container=false;var isOpen=false;var closeCallback=false;var isProgrammaticClose=false;var createContainer=function(){if(container===false){container=$(document.createElement('div')).attr('id','Piwik_Popover');}};var openPopover=function(title,dialogClass){createContainer();var options={title:title,modal:true,width:'1050px',resizable:false,autoOpen:true,open:function(event,ui){if(dialogClass){$(this).parent().addClass(dialogClass).attr('style','');}
|
887 |
-
$('.ui-widget-overlay').on('click.popover',function(){broadcast.resetPopoverStack();container.dialog('close');});var self=this;
|
888 |
-
$('body > .ui-tooltip').remove();if(!isProgrammaticClose||isEscapeKey(event)){broadcast.propagateNewPopoverParameter(false);}
|
|
|
889 |
if(height){loading.height(height);}
|
890 |
if(!isOpen){openPopover(null,dialogClass);}
|
891 |
this.setContent(loading);this.setTitle('');if(height){var offset=loading.height()-p1.outerHeight();if(popoverSubject){offset-=p2.outerHeight();}
|
@@ -897,8 +899,8 @@ if(titleText.length>60){$('.tooltip',container.parentNode).tooltip({track:true,i
|
|
897 |
container.html(html);container.children().each(function(i,childNode){piwikHelper.compileAngularComponents(childNode);});centerPopover();},showError:function(title,message,backLabel){var error=$(document.createElement('div')).addClass('Piwik_Popover_Error');var p=$(document.createElement('p')).addClass('Piwik_Popover_Error_Title');error.append(p.html(title));if(message){p=$(document.createElement('p')).addClass('Piwik_Popover_Error_Message');error.append(p.html(message));}
|
898 |
if(backLabel){var back=$(document.createElement('a')).addClass('Piwik_Popover_Error_Back');back.attr('href','#').click(function(){history.back();return false;});error.append(back.html(backLabel));}
|
899 |
if(!isOpen){openPopover();}
|
900 |
-
this.setContent(error);},onClose:function(callback){closeCallback=callback;},close:function(){if(isOpen){isProgrammaticClose=true;container.dialog('close');isProgrammaticClose=false;}},createPopupAndLoadUrl:function(url,loadingName,dialogClass,ajaxRequest){var
|
901 |
-
Piwik_Popover.setContent(html);setPopoverTitleIfOneFoundInContainer();
|
902 |
ajaxRequest.addParams(piwikHelper.getArrayFromQueryString(url),'get');ajaxRequest.setCallback(callback);ajaxRequest.setFormat('html');ajaxRequest.send();},isOpen:function(){return isOpen;}};})();
|
903 |
/*!
|
904 |
* Matomo - free/libre analytics platform
|
@@ -949,14 +951,12 @@ function removePaddingFromWidth(elem,labelWidth){var paddingLeft=elem.css('paddi
|
|
949 |
setMaxTableWidthIfNeeded(domElem,1200);var isTableVisualization=this.jsViewDataTable&&typeof this.jsViewDataTable==='string'&&typeof this.jsViewDataTable.indexOf==='function'&&this.jsViewDataTable.indexOf('table')!==-1;if(isTableVisualization){var tableWidth=getTableWidth(domElem);var labelColumnMinWidth=getLabelColumnMinWidth(domElem);var labelColumnMaxWidth=getLabelColumnMaxWidth(domElem);var labelColumnWidth=getLabelWidth(domElem,tableWidth,125,440);if(labelColumnMinWidth>labelColumnWidth){labelColumnWidth=labelColumnMinWidth;}
|
950 |
if(labelColumnMaxWidth&&labelColumnMaxWidth<labelColumnWidth){labelColumnWidth=labelColumnMaxWidth;}
|
951 |
if(labelColumnWidth){$('td.label',domElem).each(function(){$(this).width(removePaddingFromWidth($(this),labelColumnWidth));});}
|
952 |
-
$('td span.label',domElem).each(function(){self.tooltip($(this));});
|
953 |
if(!self.windowResizeTableAttached){self.windowResizeTableAttached=true;var timeout=null;var resizeDataTable=function(){if(timeout){clearTimeout(timeout);}
|
954 |
timeout=setTimeout(function(){var isInDom=domElem&&domElem[0]&&document&&document.body&&document.body.contains(domElem[0]);if(isInDom){if(isTableVisualization){$('td.label',domElem).width('');}
|
955 |
self.setFixWidthToMakeEllipsisWork(domElem);}else{$(window).off('resize',resizeDataTable);}
|
956 |
timeout=null;},Math.floor((Math.random()*80)+220));}
|
957 |
-
$(window).on('resize',resizeDataTable);self._resizeDataTable=resizeDataTable;}},
|
958 |
-
if(!$domNodeToSetOverflow||!$domNodeToSetOverflow.length){return;}
|
959 |
-
var tableWidth=domElem.width();var dataTableWidth=domElem.find('table.dataTable').width();var widthToCheckElementIsActuallyThere=10;var normalOverlapBecauseTableIsFullWidth=showScrollbarIfMoreThanThisPxOverlap||51;if(tableWidth>widthToCheckElementIsActuallyThere&&dataTableWidth>widthToCheckElementIsActuallyThere&&(dataTableWidth-tableWidth)>normalOverlapBecauseTableIsFullWidth){$domNodeToSetOverflow.css('overflow-y','scroll');}else if($domNodeToSetOverflow.css('overflow-y')==='scroll'){$domNodeToSetOverflow.css('overflow-y','auto');}},handleLimit:function(domElem){var tableRowLimits=this.props.datatable_row_limits||piwik.config.datatable_row_limits,evolutionLimits={day:[8,30,60,90,180],week:[4,12,26,52,104],month:[3,6,12,24,36,120],year:[3,5,10]};if(!parseInt(this.param.flat)){evolutionLimits.day.push(365,500);evolutionLimits.week.push(500);}
|
960 |
var self=this;if(typeof self.parentId!="undefined"&&self.parentId!=''){$('.limitSelection',domElem).remove();return;}
|
961 |
if(self.props.disable_all_rows_filter_limit){var tempTableRowLimits=[];tableRowLimits.forEach(function(limit){if(limit!=-1){tempTableRowLimits.push(limit);}});tableRowLimits=tempTableRowLimits;}
|
962 |
var setLimitValue,numbers,limitParamName;if(self.param.viewDataTable=='graphEvolution'){limitParamName='evolution_'+self.param.period+'_last_n';numbers=evolutionLimits[self.param.period]||tableRowLimits;setLimitValue=function(params,limit){params[limitParamName]=limit;};}
|
@@ -1227,12 +1227,12 @@ var piwikAppConfig=angular.module('piwikApp.config');for(var index in piwik.conf
|
|
1227 |
* @link https://matomo.org
|
1228 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
1229 |
*/
|
1230 |
-
(function(){angular.module('piwikApp.service').service('piwik',piwikService);piwikService.$inject=['piwikPeriods'];function piwikService(piwikPeriods){var originalTitle;piwik.helper=piwikHelper;piwik.broadcast=broadcast;piwik.updatePeriodParamsFromUrl=updatePeriodParamsFromUrl;piwik.updateDateInTitle=updateDateInTitle;piwik.hasUserCapability=hasUserCapability;return piwik;function hasUserCapability(capability){return angular.isArray(piwik.userCapabilities)&&piwik.userCapabilities.indexOf(capability)!==-1;}
|
1231 |
-
function updatePeriodParamsFromUrl(){var date=
|
1232 |
if(piwik.period===period&&piwik.currentDateString===date){return;}
|
1233 |
piwik.period=period;var dateRange=piwikPeriods.parse(period,date).getDateRange();piwik.startDateString=piwikPeriods.format(dateRange[0]);piwik.endDateString=piwikPeriods.format(dateRange[1]);updateDateInTitle(date,period);if(piwik.period==='range'){date=piwik.startDateString+','+piwik.endDateString;}
|
1234 |
piwik.currentDateString=date;}
|
1235 |
-
function isValidPeriod(periodStr,dateStr){try{piwikPeriods.
|
1236 |
function updateDateInTitle(date,period){if(!$('.top_controls #periodString').length){return;}
|
1237 |
originalTitle=originalTitle||document.title;if(0===originalTitle.indexOf(piwik.siteName)){var dateString=' - '+piwikPeriods.parse(period,date).getPrettyString()+' ';document.title=piwik.siteName+dateString+originalTitle.substr(piwik.siteName.length);}}}
|
1238 |
angular.module('piwikApp.service').run(initPiwikService);initPiwikService.$inject=['piwik','$rootScope'];function initPiwikService(piwik,$rootScope){$rootScope.$on('$locationChangeSuccess',piwik.updatePeriodParamsFromUrl);}})();
|
@@ -1282,7 +1282,7 @@ return{withTokenInUrl:withTokenInUrl,bulkFetch:bulkFetch,post:post,fetch:fetch,a
|
|
1282 |
* @link https://matomo.org
|
1283 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
1284 |
*/
|
1285 |
-
(function(){angular.module('piwikApp.service').service('piwikUrl',piwikUrl);piwikUrl.$inject=['$location','
|
1286 |
return broadcast.getValueFromUrl(paramName,$window.location.search);}}})();
|
1287 |
/*!
|
1288 |
* Matomo - free/libre analytics platform
|
@@ -1330,8 +1330,11 @@ periods[name]=periodClass;periodOrder.push(name);}
|
|
1330 |
function singleDatePeriodFactory(periodClass){return function(strDate){return new periodClass(parseDate(strDate));};}
|
1331 |
function format(date){return $.datepicker.formatDate('yy-mm-dd',date);}
|
1332 |
function parseDate(strDate){if(strDate instanceof Date){return strDate;}
|
1333 |
-
if(strDate==='today'||strDate==='now'){return getToday();}
|
1334 |
if(strDate==='yesterday'||strDate==='yesterdaySameTime'){var yesterday=getToday();yesterday.setDate(yesterday.getDate()-1);return yesterday;}
|
|
|
|
|
|
|
1335 |
try{return $.datepicker.parseDate('yy-mm-dd',strDate);}catch(err){console.error(err.message||err);throw err;}}
|
1336 |
function getToday(){var date=new Date(Date.now());date.setTime(date.getTime()+date.getTimezoneOffset()*60*1000);date.setHours(date.getHours()+((piwik.timezoneOffset||0)/ 3600));date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0);return date;}})();
|
1337 |
/*!
|
@@ -1656,7 +1659,7 @@ if(model.isLoading){if(model.currentRequest){model.currentRequest.abort();}else
|
|
1656 |
model.isLoading=true;if(!limitPromise){limitPromise=piwikApi.fetch({method:'SitesManager.getNumWebsitesToDisplayPerPage'});}
|
1657 |
return limitPromise.then(function(response){var limit=response.value;var methodToCall='SitesManager.getPatternMatchSites';if(model.onlySitesWithAdminAccess){methodToCall='SitesManager.getSitesWithAdminAccess';}
|
1658 |
model.currentRequest=piwikApi.fetch({method:methodToCall,limit:limit,pattern:term});return model.currentRequest;}).then(function(response){if(angular.isDefined(response)){return updateWebsitesList(response);}}).finally(function(){model.isLoading=false;model.currentRequest=null;});}
|
1659 |
-
function loadSite(idsite){if(idsite=='all'){
|
1660 |
function sortSites(websites){return $filter('orderBy')(websites,'+name');}
|
1661 |
function loadInitialSites(){if(initialSites){model.sites=initialSites;return;}
|
1662 |
searchSite('%').then(function(){initialSites=model.sites});}}})();
|
@@ -1875,11 +1878,12 @@ $timeout(function(){popover.dialog();$('.exportFullUrl, .btn',popover).tooltip({
|
|
1875 |
* @link https://matomo.org
|
1876 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
1877 |
*/
|
1878 |
-
(function(){angular.module('piwikApp').controller('ReportingPageController',ReportingPageController);ReportingPageController.$inject=['$scope','piwik','$rootScope','$location','reportingPageModel','reportingPagesModel','notifications','piwikUrl'];function ReportingPageController($scope,piwik,$rootScope,$location,pageModel,pagesModel,notifications,piwikUrl){pageModel.resetPage();$scope.pageModel=pageModel;var currentCategory=null;var currentSubcategory=null;var currentPeriod=null;var currentDate=null;var currentSegment=null;var currentCompareDates=null;var currentComparePeriods=null;var currentCompareSegments=null;function renderInitialPage(){var $search=$location.search();currentPeriod
|
1879 |
$scope.renderPage=function(category,subcategory){if(!category||!subcategory){pageModel.resetPage();$scope.loading=false;return;}
|
1880 |
-
|
|
|
1881 |
pageModel.fetchPage(category,subcategory).then(function(){if(!pageModel.page){var page=pagesModel.findPageInCategory(category);if(page&&page.subcategory){var $search=$location.search();$search.subcategory=page.subcategory.id;$location.search($search);return;}}
|
1882 |
-
$scope.hasNoPage=!pageModel.page;$scope.loading=false;});};$scope.loading=true;renderInitialPage();$rootScope.$on('$locationChangeSuccess',function(){var $search=$location.search();var category=$search.category;var subcategory=$search.subcategory;var period
|
1883 |
currentPeriod=period;currentDate=date;currentSegment=segment;currentCompareDates=compareDates;currentComparePeriods=comparePeriods;currentCompareSegments=compareSegments;$scope.renderPage(category,subcategory);});$rootScope.$on('loadPage',function(event,category,subcategory){$scope.renderPage(category,subcategory);});}})();
|
1884 |
/*!
|
1885 |
* Matomo - free/libre analytics platform
|
@@ -2111,9 +2115,12 @@ function isCompareRangeValid(){try{piwikPeriods.parseDate(vm.compareStartDate);}
|
|
2111 |
try{piwikPeriods.parseDate(vm.compareEndDate);}catch(e){return false;}
|
2112 |
return true;}
|
2113 |
function removeUnrecognizedPeriods(){vm.periods=vm.periods.filter(function(periodLabel){return piwikPeriods.isRecognizedPeriod(periodLabel);});}
|
2114 |
-
function updateSelectedValuesFromHash(){var strDate=piwikUrl.getSearchParam('date');var strPeriod=piwikUrl.getSearchParam('period');vm.periodValue=strPeriod;vm.selectedPeriod=strPeriod;vm.dateValue=vm.startRangeDate=vm.endRangeDate=null;
|
|
|
2115 |
function getPeriodDisplayText(periodLabel){return piwikPeriods.get(periodLabel).getDisplayText();}
|
2116 |
-
function getCurrentlyViewingText(){var date;if(vm.periodValue==='range'){
|
|
|
|
|
2117 |
try{return piwikPeriods.parse(vm.periodValue,date).getPrettyString();}catch(e){return _pk_translate('General_Error');}}
|
2118 |
function changeViewedPeriod(period){if(period===vm.periodValue){return;}
|
2119 |
if(period==='range'){return;}
|
@@ -2936,7 +2943,7 @@ var unbind=$rootScope.$on('$locationChangeSuccess',onLocationChange);scope.$on('
|
|
2936 |
* @link https://matomo.org
|
2937 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
2938 |
*/
|
2939 |
-
(function(){angular.module('piwikApp').controller('CampaignBuilderController',CampaignBuilderController);CampaignBuilderController.$inject=['$scope'];function CampaignBuilderController($scope){this.hasExtraPlugin=$scope.hasExtraPlugin;this.reset=function(){this.websiteUrl='';this.campaignName='';this.campaignKeyword='';this.campaignSource='';this.campaignMedium='';this.campaignContent='';this.campaignGroup='';this.campaignPlacement='';this.generatedUrl='';};this.generateUrl=function(){this.generatedUrl=String(this.websiteUrl);if(this.generatedUrl.indexOf('http')!==0){this.generatedUrl='https://'+this.generatedUrl.trim();}
|
2940 |
var urlHashPos=this.generatedUrl.indexOf('#');var urlHash='';if(urlHashPos>=0){urlHash=this.generatedUrl.substr(urlHashPos);this.generatedUrl=this.generatedUrl.substr(0,urlHashPos);}
|
2941 |
if(this.generatedUrl.indexOf('/',10)<0&&this.generatedUrl.indexOf("?")<0){this.generatedUrl+='/';}
|
2942 |
var campaignName=encodeURIComponent(this.campaignName.trim());if(this.generatedUrl.indexOf('?')>0||this.generatedUrl.indexOf('#')>0){this.generatedUrl+='&';}else{this.generatedUrl+='?';}
|
@@ -2944,6 +2951,7 @@ this.generatedUrl+='mtm_campaign='+campaignName;if(this.campaignKeyword){this.ge
|
|
2944 |
if(this.campaignSource){this.generatedUrl+='&mtm_source='+encodeURIComponent(this.campaignSource.trim());}
|
2945 |
if(this.campaignMedium){this.generatedUrl+='&mtm_medium='+encodeURIComponent(this.campaignMedium.trim());}
|
2946 |
if(this.campaignContent){this.generatedUrl+='&mtm_content='+encodeURIComponent(this.campaignContent.trim());}
|
|
|
2947 |
if(this.campaignGroup){this.generatedUrl+='&mtm_group='+encodeURIComponent(this.campaignGroup.trim());}
|
2948 |
if(this.campaignPlacement){this.generatedUrl+='&mtm_placement='+encodeURIComponent(this.campaignPlacement.trim());}
|
2949 |
this.generatedUrl+=urlHash;$('#urlCampaignBuilderResult').effect("highlight",{},1500);};this.reset();}})();
|
1 |
+
/* Matomo Javascript - cb=8ae71823b222eac8bb1f2bf2b5706cc1*/
|
2 |
|
3 |
/*!
|
4 |
* Matomo - free/libre analytics platform
|
871 |
return hashStr;},getSearchFromUrl:function(url){var searchStr="";if(url&&url.match(/\?/)){searchStr=url.substring(url.indexOf("?"),url.length);}else{searchStr=location.search;}
|
872 |
return searchStr;},extractKeyValuePairsFromQueryString:function(queryString){var pairs=queryString.split('&');var result={};for(var i=0;i!=pairs.length;++i){var pair=pairs[i].split('=');var key=pair.shift();result[key]=pair.join('=');}
|
873 |
return result;},getValuesFromUrl:function(url){var searchString=this._removeHashFromUrl(url).split('?')[1]||'';return this.extractKeyValuePairsFromQueryString(searchString);},getValueFromUrl:function(param,url){var searchString=this._removeHashFromUrl(url);return broadcast.getParamValue(param,searchString);},getValueFromHash:function(param,url){var hashStr=broadcast.getHashFromUrl(url);if(hashStr.substr(0,1)=='#'){hashStr=hashStr.substr(1);}
|
874 |
+
hashStr=hashStr.split('#')[0];return broadcast.getParamValue(param,hashStr);},getParamValue:function(param,url){var lookFor=param+'=';if(url.indexOf('?')>=0){url=url.substr(url.indexOf('?')+1);}
|
875 |
+
var urlPieces=url.split('&');for(var i=urlPieces.length-1;i>=0;i--){if(urlPieces[i].indexOf(lookFor)===0){return getSingleValue(urlPieces[i]);}}
|
876 |
+
lookFor=param+'[]=';var result=[];for(var j=0;j<urlPieces.length;j++){if(urlPieces[j].indexOf(lookFor)===0){result.push(getSingleValue(urlPieces[j]));}else if(decodeURIComponent(urlPieces[j]).indexOf(lookFor)===0){result.push(getSingleValue(decodeURIComponent(urlPieces[j])));}}
|
877 |
+
return result.length?result:'';function getSingleValue(urlPart){var startPos=urlPart.indexOf("=");if(startPos===-1){return'';}
|
878 |
+
var value=urlPart.substring(startPos+1);if(param!='segment'&¶m!='popover'&¶m!='compareSegments'){value=value.replace(/[^_%~\*\+\-\<\>!@\$\.()=,;0-9a-zA-Z]/gi,'');}
|
879 |
return value;}},getHash:function(){return broadcast.getHashFromUrl().replace(/^#/,'').split('#')[0];},_removeHashFromUrl:function(url){var searchString='';if(url){var urlParts=url.split('#');searchString=urlParts[0];}else{searchString=window.location.search;}
|
880 |
return searchString;}};
|
881 |
/*!
|
884 |
* @link https://matomo.org
|
885 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
886 |
*/
|
887 |
+
var Piwik_Popover=(function(){var container=false;var isOpen=false;var closeCallback=false;var isProgrammaticClose=false;var scrollTopPosition=0;var createContainer=function(){if(container===false){container=$(document.createElement('div')).attr('id','Piwik_Popover');}};var openPopover=function(title,dialogClass){createContainer();var options={title:title,modal:true,width:'1050px',resizable:false,autoOpen:true,open:function(event,ui){if(dialogClass){$(this).parent().addClass(dialogClass).attr('style','');}
|
888 |
+
$('.ui-widget-overlay').on('click.popover',function(){broadcast.resetPopoverStack();container.dialog('close');});var self=this;scrollTopPosition=$(window).scrollTop();$('#root').css({position:'fixed',height:$(window).height+scrollTopPosition,width:'100%',top:-scrollTopPosition});window.scrollTo(0,0);centerPopover();},close:function(event,ui){container.find('div.jqplot-target').trigger('piwikDestroyPlot');container[0].innerHTML='';container.dialog('destroy').remove();globalAjaxQueue.abort();$('.ui-widget-overlay').off('click.popover');isOpen=false;require('piwik/UI').UIControl.cleanupUnusedControls();if(typeof closeCallback=='function'){closeCallback();closeCallback=false;}
|
889 |
+
$('body > .ui-tooltip').remove();if(!isProgrammaticClose||isEscapeKey(event)){broadcast.propagateNewPopoverParameter(false);}
|
890 |
+
$('#root').css({position:'',height:'',width:'',top:''});window.scrollTo(0,scrollTopPosition);}};container.dialog(options);container.data("uiDialog")._title=function(title){title.html(this.options.title);};isOpen=true;};var centerPopover=function(){if(container!==false){$('.ui-dialog').css({margin:'0 0'});container.dialog("option","position",{my:'center',at:'center',of:'.ui-widget-overlay',collision:'fit'});$('.ui-dialog').css({margin:'15px 0'});}};return{showLoading:function(popoverName,popoverSubject,height,dialogClass){var loading=$(document.createElement('div')).addClass('Piwik_Popover_Loading');var loadingMessage=popoverSubject?translations.General_LoadingPopoverFor:translations.General_LoadingPopover;loadingMessage=sprintf(loadingMessage,popoverName);var p1=$(document.createElement('p')).addClass('Piwik_Popover_Loading_Name');loading.append(p1.text(loadingMessage));var p2;if(popoverSubject){popoverSubject=piwikHelper.addBreakpointsToUrl(popoverSubject);p1.addClass('Piwik_Popover_Loading_NameWithSubject');p2=$(document.createElement('p')).addClass('Piwik_Popover_Loading_Subject');loading.append(p2.html(popoverSubject));}
|
891 |
if(height){loading.height(height);}
|
892 |
if(!isOpen){openPopover(null,dialogClass);}
|
893 |
this.setContent(loading);this.setTitle('');if(height){var offset=loading.height()-p1.outerHeight();if(popoverSubject){offset-=p2.outerHeight();}
|
899 |
container.html(html);container.children().each(function(i,childNode){piwikHelper.compileAngularComponents(childNode);});centerPopover();},showError:function(title,message,backLabel){var error=$(document.createElement('div')).addClass('Piwik_Popover_Error');var p=$(document.createElement('p')).addClass('Piwik_Popover_Error_Title');error.append(p.html(title));if(message){p=$(document.createElement('p')).addClass('Piwik_Popover_Error_Message');error.append(p.html(message));}
|
900 |
if(backLabel){var back=$(document.createElement('a')).addClass('Piwik_Popover_Error_Back');back.attr('href','#').click(function(){history.back();return false;});error.append(back.html(backLabel));}
|
901 |
if(!isOpen){openPopover();}
|
902 |
+
this.setContent(error);},onClose:function(callback){closeCallback=callback;},close:function(){if(isOpen){isProgrammaticClose=true;container.dialog('close');isProgrammaticClose=false;}},createPopupAndLoadUrl:function(url,loadingName,dialogClass,ajaxRequest){var box=Piwik_Popover.showLoading(loadingName,null,null,dialogClass);var callback=function(html){function setPopoverTitleIfOneFoundInContainer(){var title=$('h1,h2',container);if(title.length==1){Piwik_Popover.setTitle(title.text());$(title).hide();}}
|
903 |
+
Piwik_Popover.setContent(html);setPopoverTitleIfOneFoundInContainer();};if('undefined'===typeof ajaxRequest){ajaxRequest=new ajaxHelper();}
|
904 |
ajaxRequest.addParams(piwikHelper.getArrayFromQueryString(url),'get');ajaxRequest.setCallback(callback);ajaxRequest.setFormat('html');ajaxRequest.send();},isOpen:function(){return isOpen;}};})();
|
905 |
/*!
|
906 |
* Matomo - free/libre analytics platform
|
951 |
setMaxTableWidthIfNeeded(domElem,1200);var isTableVisualization=this.jsViewDataTable&&typeof this.jsViewDataTable==='string'&&typeof this.jsViewDataTable.indexOf==='function'&&this.jsViewDataTable.indexOf('table')!==-1;if(isTableVisualization){var tableWidth=getTableWidth(domElem);var labelColumnMinWidth=getLabelColumnMinWidth(domElem);var labelColumnMaxWidth=getLabelColumnMaxWidth(domElem);var labelColumnWidth=getLabelWidth(domElem,tableWidth,125,440);if(labelColumnMinWidth>labelColumnWidth){labelColumnWidth=labelColumnMinWidth;}
|
952 |
if(labelColumnMaxWidth&&labelColumnMaxWidth<labelColumnWidth){labelColumnWidth=labelColumnMaxWidth;}
|
953 |
if(labelColumnWidth){$('td.label',domElem).each(function(){$(this).width(removePaddingFromWidth($(this),labelColumnWidth));});}
|
954 |
+
$('td span.label',domElem).each(function(){self.tooltip($(this));});}
|
955 |
if(!self.windowResizeTableAttached){self.windowResizeTableAttached=true;var timeout=null;var resizeDataTable=function(){if(timeout){clearTimeout(timeout);}
|
956 |
timeout=setTimeout(function(){var isInDom=domElem&&domElem[0]&&document&&document.body&&document.body.contains(domElem[0]);if(isInDom){if(isTableVisualization){$('td.label',domElem).width('');}
|
957 |
self.setFixWidthToMakeEllipsisWork(domElem);}else{$(window).off('resize',resizeDataTable);}
|
958 |
timeout=null;},Math.floor((Math.random()*80)+220));}
|
959 |
+
$(window).on('resize',resizeDataTable);self._resizeDataTable=resizeDataTable;}},handleLimit:function(domElem){var tableRowLimits=this.props.datatable_row_limits||piwik.config.datatable_row_limits,evolutionLimits={day:[8,30,60,90,180],week:[4,12,26,52,104],month:[3,6,12,24,36,120],year:[3,5,10]};if(!parseInt(this.param.flat)){evolutionLimits.day.push(365,500);evolutionLimits.week.push(500);}
|
|
|
|
|
960 |
var self=this;if(typeof self.parentId!="undefined"&&self.parentId!=''){$('.limitSelection',domElem).remove();return;}
|
961 |
if(self.props.disable_all_rows_filter_limit){var tempTableRowLimits=[];tableRowLimits.forEach(function(limit){if(limit!=-1){tempTableRowLimits.push(limit);}});tableRowLimits=tempTableRowLimits;}
|
962 |
var setLimitValue,numbers,limitParamName;if(self.param.viewDataTable=='graphEvolution'){limitParamName='evolution_'+self.param.period+'_last_n';numbers=evolutionLimits[self.param.period]||tableRowLimits;setLimitValue=function(params,limit){params[limitParamName]=limit;};}
|
1227 |
* @link https://matomo.org
|
1228 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
1229 |
*/
|
1230 |
+
(function(){angular.module('piwikApp.service').service('piwik',piwikService);piwikService.$inject=['piwikPeriods','piwikUrl'];function piwikService(piwikPeriods,piwikUrl){var originalTitle;piwik.helper=piwikHelper;piwik.broadcast=broadcast;piwik.updatePeriodParamsFromUrl=updatePeriodParamsFromUrl;piwik.updateDateInTitle=updateDateInTitle;piwik.hasUserCapability=hasUserCapability;return piwik;function hasUserCapability(capability){return angular.isArray(piwik.userCapabilities)&&piwik.userCapabilities.indexOf(capability)!==-1;}
|
1231 |
+
function updatePeriodParamsFromUrl(){var date=piwikUrl.getSearchParam('date');var period=piwikUrl.getSearchParam('period');if(!isValidPeriod(period,date)){return;}
|
1232 |
if(piwik.period===period&&piwik.currentDateString===date){return;}
|
1233 |
piwik.period=period;var dateRange=piwikPeriods.parse(period,date).getDateRange();piwik.startDateString=piwikPeriods.format(dateRange[0]);piwik.endDateString=piwikPeriods.format(dateRange[1]);updateDateInTitle(date,period);if(piwik.period==='range'){date=piwik.startDateString+','+piwik.endDateString;}
|
1234 |
piwik.currentDateString=date;}
|
1235 |
+
function isValidPeriod(periodStr,dateStr){try{piwikPeriods.parse(periodStr,dateStr);return true;}catch(e){return false;}}
|
1236 |
function updateDateInTitle(date,period){if(!$('.top_controls #periodString').length){return;}
|
1237 |
originalTitle=originalTitle||document.title;if(0===originalTitle.indexOf(piwik.siteName)){var dateString=' - '+piwikPeriods.parse(period,date).getPrettyString()+' ';document.title=piwik.siteName+dateString+originalTitle.substr(piwik.siteName.length);}}}
|
1238 |
angular.module('piwikApp.service').run(initPiwikService);initPiwikService.$inject=['piwik','$rootScope'];function initPiwikService(piwik,$rootScope){$rootScope.$on('$locationChangeSuccess',piwik.updatePeriodParamsFromUrl);}})();
|
1282 |
* @link https://matomo.org
|
1283 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
1284 |
*/
|
1285 |
+
(function(){angular.module('piwikApp.service').service('piwikUrl',piwikUrl);piwikUrl.$inject=['$location','$window'];function piwikUrl($location,$window){var model={getSearchParam:getSearchParam};return model;function getSearchParam(paramName){var hash=$window.location.href.split('#');if(hash&&hash[1]&&(new RegExp(paramName+'(\\[]|=)')).test(decodeURIComponent(hash[1]))){var valueFromHash=broadcast.getValueFromHash(paramName,$window.location.href);if(valueFromHash||(paramName!=='date'&¶mName!=='period'&¶mName!=='idSite')){return valueFromHash;}}
|
1286 |
return broadcast.getValueFromUrl(paramName,$window.location.search);}}})();
|
1287 |
/*!
|
1288 |
* Matomo - free/libre analytics platform
|
1330 |
function singleDatePeriodFactory(periodClass){return function(strDate){return new periodClass(parseDate(strDate));};}
|
1331 |
function format(date){return $.datepicker.formatDate('yy-mm-dd',date);}
|
1332 |
function parseDate(strDate){if(strDate instanceof Date){return strDate;}
|
1333 |
+
strDate=decodeURIComponent(strDate);if(strDate==='today'||strDate==='now'){return getToday();}
|
1334 |
if(strDate==='yesterday'||strDate==='yesterdaySameTime'){var yesterday=getToday();yesterday.setDate(yesterday.getDate()-1);return yesterday;}
|
1335 |
+
if(strDate.match(/last[ -]?week/i)){var lastWeek=getToday();lastWeek.setDate(lastWeek.getDate()-7);return lastWeek;}
|
1336 |
+
if(strDate.match(/last[ -]?month/i)){var lastMonth=getToday();lastMonth.setMonth(lastMonth.getMonth()-1);return lastMonth;}
|
1337 |
+
if(strDate.match(/last[ -]?year/i)){var lastYear=getToday();lastYear.setFullYear(lastYear.getFullYear()-1);return lastYear;}
|
1338 |
try{return $.datepicker.parseDate('yy-mm-dd',strDate);}catch(err){console.error(err.message||err);throw err;}}
|
1339 |
function getToday(){var date=new Date(Date.now());date.setTime(date.getTime()+date.getTimezoneOffset()*60*1000);date.setHours(date.getHours()+((piwik.timezoneOffset||0)/ 3600));date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0);return date;}})();
|
1340 |
/*!
|
1659 |
model.isLoading=true;if(!limitPromise){limitPromise=piwikApi.fetch({method:'SitesManager.getNumWebsitesToDisplayPerPage'});}
|
1660 |
return limitPromise.then(function(response){var limit=response.value;var methodToCall='SitesManager.getPatternMatchSites';if(model.onlySitesWithAdminAccess){methodToCall='SitesManager.getSitesWithAdminAccess';}
|
1661 |
model.currentRequest=piwikApi.fetch({method:methodToCall,limit:limit,pattern:term});return model.currentRequest;}).then(function(response){if(angular.isDefined(response)){return updateWebsitesList(response);}}).finally(function(){model.isLoading=false;model.currentRequest=null;});}
|
1662 |
+
function loadSite(idsite){if(idsite=='all'){document.location.href=piwikHelper.getCurrentQueryStringWithParametersModified(piwikHelper.getQueryStringFromParameters({module:'MultiSites',action:'index',date:piwik.currentDateString,period:piwik.period}));}else{piwik.broadcast.propagateNewPage('segment=&idSite='+idsite,false);}}
|
1663 |
function sortSites(websites){return $filter('orderBy')(websites,'+name');}
|
1664 |
function loadInitialSites(){if(initialSites){model.sites=initialSites;return;}
|
1665 |
searchSite('%').then(function(){initialSites=model.sites});}}})();
|
1878 |
* @link https://matomo.org
|
1879 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
1880 |
*/
|
1881 |
+
(function(){angular.module('piwikApp').controller('ReportingPageController',ReportingPageController);ReportingPageController.$inject=['$scope','piwik','$rootScope','$location','reportingPageModel','reportingPagesModel','notifications','piwikUrl','piwikPeriods'];function ReportingPageController($scope,piwik,$rootScope,$location,pageModel,pagesModel,notifications,piwikUrl,$piwikPeriods){pageModel.resetPage();$scope.pageModel=pageModel;var currentCategory=null;var currentSubcategory=null;var currentPeriod=null;var currentDate=null;var currentSegment=null;var currentCompareDates=null;var currentComparePeriods=null;var currentCompareSegments=null;function renderInitialPage(){var $search=$location.search();currentPeriod=piwikUrl.getSearchParam('period');currentDate=piwikUrl.getSearchParam('date');currentSegment=$search.segment;currentCompareSegments=piwikUrl.getSearchParam('compareSegments');currentCompareDates=piwikUrl.getSearchParam('compareDates');currentComparePeriods=piwikUrl.getSearchParam('comparePeriods');$scope.renderPage($search.category,$search.subcategory);}
|
1882 |
$scope.renderPage=function(category,subcategory){if(!category||!subcategory){pageModel.resetPage();$scope.loading=false;return;}
|
1883 |
+
var UI=require('piwik/UI');try{$piwikPeriods.parse(currentPeriod,currentDate);}catch(e){var notification=new UI.Notification();var attributes={};attributes.id='invalidDate';attributes.animate=false;attributes.context='error';notification.show(_pk_translate('CoreHome_DateInvalid'),attributes);pageModel.resetPage();$scope.loading=false;return;}
|
1884 |
+
(new UI.Notification()).remove('invalidDate');$rootScope.$emit('piwikPageChange',{});currentCategory=category;currentSubcategory=subcategory;notifications.clearTransientNotifications();if(category==='Dashboard_Dashboard'&&$.isNumeric(subcategory)&&$('[piwik-dashboard]').length){$scope.loading=true;var element=$('[piwik-dashboard]');var scope=angular.element(element).scope();scope.fetchDashboard(parseInt(subcategory,10)).then(function(){$scope.loading=false;},function(){$scope.loading=false;});return;}
|
1885 |
pageModel.fetchPage(category,subcategory).then(function(){if(!pageModel.page){var page=pagesModel.findPageInCategory(category);if(page&&page.subcategory){var $search=$location.search();$search.subcategory=page.subcategory.id;$location.search($search);return;}}
|
1886 |
+
$scope.hasNoPage=!pageModel.page;$scope.loading=false;});};$scope.loading=true;renderInitialPage();$rootScope.$on('$locationChangeSuccess',function(){var $search=$location.search();var category=$search.category;var subcategory=$search.subcategory;var period=piwikUrl.getSearchParam('period');var date=piwikUrl.getSearchParam('date');var segment=$search.segment;var compareSegments=piwikUrl.getSearchParam('compareSegments');var compareDates=piwikUrl.getSearchParam('compareDates');var comparePeriods=piwikUrl.getSearchParam('comparePeriods');if(category===currentCategory&&subcategory===currentSubcategory&&period===currentPeriod&&date===currentDate&&segment===currentSegment&&JSON.stringify(compareDates)===JSON.stringify(currentCompareDates)&&JSON.stringify(comparePeriods)===JSON.stringify(currentComparePeriods)&&JSON.stringify(compareSegments)===JSON.stringify(currentCompareSegments)){return;}
|
1887 |
currentPeriod=period;currentDate=date;currentSegment=segment;currentCompareDates=compareDates;currentComparePeriods=comparePeriods;currentCompareSegments=compareSegments;$scope.renderPage(category,subcategory);});$rootScope.$on('loadPage',function(event,category,subcategory){$scope.renderPage(category,subcategory);});}})();
|
1888 |
/*!
|
1889 |
* Matomo - free/libre analytics platform
|
2115 |
try{piwikPeriods.parseDate(vm.compareEndDate);}catch(e){return false;}
|
2116 |
return true;}
|
2117 |
function removeUnrecognizedPeriods(){vm.periods=vm.periods.filter(function(periodLabel){return piwikPeriods.isRecognizedPeriod(periodLabel);});}
|
2118 |
+
function updateSelectedValuesFromHash(){var strDate=piwikUrl.getSearchParam('date');var strPeriod=piwikUrl.getSearchParam('period');vm.periodValue=strPeriod;vm.selectedPeriod=strPeriod;vm.dateValue=vm.startRangeDate=vm.endRangeDate=null;try{piwikPeriods.parse(strPeriod,strDate);}catch(e){return;}
|
2119 |
+
if(strPeriod==='range'){var period=piwikPeriods.get(strPeriod).parse(strDate);vm.dateValue=period.startDate;vm.startRangeDate=formatDate(period.startDate);vm.endRangeDate=formatDate(period.endDate);}else{vm.dateValue=piwikPeriods.parseDate(strDate);setRangeStartEndFromPeriod(strPeriod,strDate);}}
|
2120 |
function getPeriodDisplayText(periodLabel){return piwikPeriods.get(periodLabel).getDisplayText();}
|
2121 |
+
function getCurrentlyViewingText(){var date;if(vm.periodValue==='range'){if(!vm.startRangeDate||!vm.endRangeDate){return _pk_translate('General_Error');}
|
2122 |
+
date=vm.startRangeDate+','+vm.endRangeDate;}else{if(!vm.dateValue){return _pk_translate('General_Error');}
|
2123 |
+
date=formatDate(vm.dateValue);}
|
2124 |
try{return piwikPeriods.parse(vm.periodValue,date).getPrettyString();}catch(e){return _pk_translate('General_Error');}}
|
2125 |
function changeViewedPeriod(period){if(period===vm.periodValue){return;}
|
2126 |
if(period==='range'){return;}
|
2943 |
* @link https://matomo.org
|
2944 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
2945 |
*/
|
2946 |
+
(function(){angular.module('piwikApp').controller('CampaignBuilderController',CampaignBuilderController);CampaignBuilderController.$inject=['$scope'];function CampaignBuilderController($scope){this.hasExtraPlugin=$scope.hasExtraPlugin;this.reset=function(){this.websiteUrl='';this.campaignName='';this.campaignKeyword='';this.campaignSource='';this.campaignMedium='';this.campaignId='';this.campaignContent='';this.campaignGroup='';this.campaignPlacement='';this.generatedUrl='';};this.generateUrl=function(){this.generatedUrl=String(this.websiteUrl);if(this.generatedUrl.indexOf('http')!==0){this.generatedUrl='https://'+this.generatedUrl.trim();}
|
2947 |
var urlHashPos=this.generatedUrl.indexOf('#');var urlHash='';if(urlHashPos>=0){urlHash=this.generatedUrl.substr(urlHashPos);this.generatedUrl=this.generatedUrl.substr(0,urlHashPos);}
|
2948 |
if(this.generatedUrl.indexOf('/',10)<0&&this.generatedUrl.indexOf("?")<0){this.generatedUrl+='/';}
|
2949 |
var campaignName=encodeURIComponent(this.campaignName.trim());if(this.generatedUrl.indexOf('?')>0||this.generatedUrl.indexOf('#')>0){this.generatedUrl+='&';}else{this.generatedUrl+='?';}
|
2951 |
if(this.campaignSource){this.generatedUrl+='&mtm_source='+encodeURIComponent(this.campaignSource.trim());}
|
2952 |
if(this.campaignMedium){this.generatedUrl+='&mtm_medium='+encodeURIComponent(this.campaignMedium.trim());}
|
2953 |
if(this.campaignContent){this.generatedUrl+='&mtm_content='+encodeURIComponent(this.campaignContent.trim());}
|
2954 |
+
if(this.campaignId){this.generatedUrl+='&mtm_cid='+encodeURIComponent(this.campaignId.trim());}
|
2955 |
if(this.campaignGroup){this.generatedUrl+='&mtm_group='+encodeURIComponent(this.campaignGroup.trim());}
|
2956 |
if(this.campaignPlacement){this.generatedUrl+='&mtm_placement='+encodeURIComponent(this.campaignPlacement.trim());}
|
2957 |
this.generatedUrl+=urlHash;$('#urlCampaignBuilderResult').effect("highlight",{},1500);};this.reset();}})();
|
classes/WpMatomo.php
CHANGED
@@ -157,15 +157,33 @@ class WpMatomo {
|
|
157 |
return is_super_admin();
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
public static function is_safe_mode() {
|
161 |
if ( defined( 'MATOMO_SAFE_MODE' ) && MATOMO_SAFE_MODE) {
|
162 |
return true;
|
163 |
}
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
}
|
170 |
|
171 |
public function add_settings_link( $links ) {
|
157 |
return is_super_admin();
|
158 |
}
|
159 |
|
160 |
+
private static function get_active_plugins()
|
161 |
+
{
|
162 |
+
$plugins = [];
|
163 |
+
if (is_multisite()) {
|
164 |
+
$muplugins = get_site_option( 'active_sitewide_plugins' );
|
165 |
+
$plugins = array_keys($muplugins);
|
166 |
+
}
|
167 |
+
$plugins = array_merge((array) get_option( 'active_plugins', array() ), $plugins);
|
168 |
+
|
169 |
+
return $plugins;
|
170 |
+
}
|
171 |
+
|
172 |
public static function is_safe_mode() {
|
173 |
if ( defined( 'MATOMO_SAFE_MODE' ) && MATOMO_SAFE_MODE) {
|
174 |
return true;
|
175 |
}
|
176 |
|
177 |
+
// we are not using is_plugin_active() for performance reasons
|
178 |
+
$active_plugins = self::get_active_plugins();
|
179 |
+
|
180 |
+
if (in_array('cookiebot/cookiebot.php', $active_plugins)
|
181 |
+
|| in_array('wp-rss-aggregator/wp-rss-aggregator.php', $active_plugins)
|
182 |
+
|| in_array('wp-defender/wp-defender.php', $active_plugins)) {
|
183 |
+
return true;
|
184 |
+
}
|
185 |
+
|
186 |
+
return false;
|
187 |
}
|
188 |
|
189 |
public function add_settings_link( $links ) {
|
classes/WpMatomo/Admin/SystemReport.php
CHANGED
@@ -57,6 +57,7 @@ class SystemReport {
|
|
57 |
'secupress', // see #369 depending on setting might have issues
|
58 |
'cookiebot', // see https://wordpress.org/support/topic/critical-error-after-upgrade/ conflict re php-di version
|
59 |
'wp-rss-aggregator', // see https://wordpress.org/support/topic/critical-error-after-upgrade/ conflict re php-di version
|
|
|
60 |
);
|
61 |
|
62 |
private $valid_tabs = array( 'troubleshooting' );
|
@@ -1377,6 +1378,12 @@ class SystemReport {
|
|
1377 |
}
|
1378 |
}
|
1379 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1380 |
return $rows;
|
1381 |
}
|
1382 |
|
57 |
'secupress', // see #369 depending on setting might have issues
|
58 |
'cookiebot', // see https://wordpress.org/support/topic/critical-error-after-upgrade/ conflict re php-di version
|
59 |
'wp-rss-aggregator', // see https://wordpress.org/support/topic/critical-error-after-upgrade/ conflict re php-di version
|
60 |
+
'wp-defender', // see https://wordpress.org/support/topic/critical-error-after-upgrade/ conflict re php-di version
|
61 |
);
|
62 |
|
63 |
private $valid_tabs = array( 'troubleshooting' );
|
1378 |
}
|
1379 |
}
|
1380 |
|
1381 |
+
$rows[] = array(
|
1382 |
+
'name' => 'Theme',
|
1383 |
+
'value' => function_exists('get_template') ? get_template() : '',
|
1384 |
+
'comment' => get_option('stylesheet')
|
1385 |
+
);
|
1386 |
+
|
1387 |
return $rows;
|
1388 |
}
|
1389 |
|
classes/WpMatomo/AjaxTracker.php
CHANGED
@@ -45,8 +45,10 @@ class AjaxTracker extends \MatomoTracker {
|
|
45 |
$this->urlReferrer = false;
|
46 |
$this->pageUrl = ! empty( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : false;
|
47 |
|
48 |
-
|
49 |
-
|
|
|
|
|
50 |
|
51 |
if ( $this->loadVisitorIdCookie() ) {
|
52 |
if ( ! empty( $this->cookieVisitorId ) ) {
|
45 |
$this->urlReferrer = false;
|
46 |
$this->pageUrl = ! empty( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : false;
|
47 |
|
48 |
+
if ( ! $settings->get_global_option( 'disable_cookies' ) ) {
|
49 |
+
$cookie_domain = $settings->get_tracking_cookie_domain();
|
50 |
+
$this->enableCookies( $cookie_domain );
|
51 |
+
}
|
52 |
|
53 |
if ( $this->loadVisitorIdCookie() ) {
|
54 |
if ( ! empty( $this->cookieVisitorId ) ) {
|
matomo.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Description: The #1 Google Analytics alternative that gives you full control over your data and protects the privacy for your users. Free, secure and open.
|
5 |
* Author: Matomo
|
6 |
* Author URI: https://matomo.org
|
7 |
-
* Version: 4.0
|
8 |
* Domain Path: /languages
|
9 |
* WC requires at least: 2.4.0
|
10 |
* WC tested up to: 4.8.0
|
@@ -196,6 +196,12 @@ function matomo_add_plugin( $plugins_directory, $wp_plugin_file, $is_marketplace
|
|
196 |
);
|
197 |
}
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
|
200 |
require_once __DIR__ . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'WpMatomo.php';
|
201 |
require 'shared.php';
|
4 |
* Description: The #1 Google Analytics alternative that gives you full control over your data and protects the privacy for your users. Free, secure and open.
|
5 |
* Author: Matomo
|
6 |
* Author URI: https://matomo.org
|
7 |
+
* Version: 4.1.0
|
8 |
* Domain Path: /languages
|
9 |
* WC requires at least: 2.4.0
|
10 |
* WC tested up to: 4.8.0
|
196 |
);
|
197 |
}
|
198 |
|
199 |
+
if (matomo_is_app_request() || !empty($GLOBALS['MATOMO_LOADED_DIRECTLY'])) {
|
200 |
+
// prevent layout being broken when thegem theme is used. their lazy items class causes the reporting UI to not appear
|
201 |
+
// because it creates a JS error because of escaping " too often. only breaks when " Activate image loading optimization (for desktops)"
|
202 |
+
// is enabled in the general theme settings
|
203 |
+
add_filter('thegem_lazy_items_need_process_content', '__return_false', 99999999, $args = 0);
|
204 |
+
}
|
205 |
|
206 |
require_once __DIR__ . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'WpMatomo.php';
|
207 |
require 'shared.php';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: matomo,piwik,analytics,statistics,stats,tracking,ecommerce
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 4.0
|
8 |
Requires PHP: 7.2.5
|
9 |
License: GPLv3 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
4 |
Tags: matomo,piwik,analytics,statistics,stats,tracking,ecommerce
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 4.1.0
|
8 |
Requires PHP: 7.2.5
|
9 |
License: GPLv3 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|