<?php
namespace Modules\Admin\About;

class Controller extends \App\Mvc\ControllerAbstract
{

	/**
	 * (non-PHPdoc)
	 * @see \App\Mvc\Controller\Window\PaginatedListing\PaginatedListing::initialize()
	 */
	protected function initialize()
	{
		parent::initialize();

		$this->actionsCfg['index'] = ['checkSection' => false,  'checkOption' => false,];
		$this->actionsCfg['licenses'] = ['checkSection' => false,  'checkOption' => false,];
	}


	/**
	 * Action index
	 * @param Array $R
	 * @return \Engine\Mvc\Response\Html
	 */
	public function actionIndex($R)
	{
		// instantiate the view
		$view = new View_Index($this);

		// render the view
		return new \Engine\Mvc\Response\Html($view->render());
	}


	public function actionLicenses($R)
	{
		// collect license sources (core + plugins via event)
		$collector = new \Modules\Admin\About\Model\SourcesCollector();
		$collector->addSource('core', APP_REAL_PATH . 'composer.lock', APP_REAL_PATH . 'vendor');

		// manually inject core non-PHP libraries from _3parties
		$this->addCore3partiesLibraries($collector);

		// let plugins register their own vendor sources (composer and/or manual)
		\Engine\Plugins\Manager::getInstance()->executeEvent(
			'Modules\Admin\About-collectLicenseSources',
			['collector' => $collector]
		);

		// read and merge all libraries
		$reader = new \Modules\Admin\About\Model\LicenseReader();
		$libraries = $reader->loadFromSources($collector);

		// instantiate the view
		$view = new View_Licenses($this);
		$view->setOutputVar('libraries', $libraries);

		// render the view
		return new \Engine\Mvc\Response\Html($view->render());
	}


	/**
	 * Manually registers core non-PHP OSS libraries from _3parties.
	 * @param \Modules\Admin\About\Model\SourcesCollector $collector
	 */
	protected function addCore3partiesLibraries(\Modules\Admin\About\Model\SourcesCollector $collector): void
	{

		$collector->addManualLibrary('D3.js', 'v3.5.17', 'BSD-3-Clause', 'Data-Driven Documents - JavaScript visualization library', 'core', 'https://d3js.org', 'Copyright 2010-2023 Mike Bostock
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.');

		$collector->addManualLibrary('NVD3', '1.x', 'Apache-2.0', 'Re-usable charts for D3.js', 'core', 'https://nvd3.org');

		$collector->addManualLibrary('Prototype.js', '1.x', 'MIT', 'JavaScript framework for web development', 'core', 'http://prototypejs.org', 'Prototype is Copyright © 2005-2007 Sam Stephenson. It is freely distributable under the terms of an MIT-style license.
Copyright (c) 2005-2010 Sam Stephenson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The Prototype documentation is Copyright © 2007 The Prototype Core Team. It is released under the Creative Commons Attribution-ShareAlike 3.0 license.');

		$collector->addManualLibrary('script.aculo.us', '1.x', 'MIT', 'JavaScript UI effects and controls library', 'core', 'https://script.aculo.us');

		$collector->addManualLibrary('SunEditor', '2.x', 'MIT', 'Pure JavaScript based WYSIWYG web editor', 'core', 'https://github.com/nicksagona/suneditor');

		$collector->addManualLibrary('overlib', '4.x', 'Artistic License', 'JavaScript popup library', 'core', 'http://www.bosrup.com/web/overlib/');

		$collector->addManualLibrary('XRegExp', '3.x', 'MIT', 'Extended JavaScript regular expressions', 'core', 'https://xregexp.com', 'The MIT License (MIT)
Copyright © 2026 <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.');

		$collector->addManualLibrary('vkBeautify', '1.x', 'MIT', 'JavaScript plugin to pretty-print XML and JSON', 'core', 'https://github.com/nicksagona/vkbeautify');

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

		$collector->addManualLibrary('coolestCalendar', '1.x', 'MIT', 'JavaScript calendar widget', 'core');

		$collector->addManualLibrary('Apache FOP', '2.x', 'Apache-2.0', 'XSL-FO print formatter for PDF generation', 'core', 'https://xmlgraphics.apache.org/fop/', 'All new Apache™ FOP releases will be licensed under the Apache™ License, version 2.0. Releases until version 0.20.5 are released under the Apache™ License, version 1.1.
To inspect the license terms please consult the LICENSE and NOTICE files in the root directory of the distribution. The full license text can also be accessed via the web from the Apache Licenses page.
Apache FOP comes with a number of libraries all of which are currently coming from within the Apache Software Foundation. These libraries are all licensed under one of the Apache License versions. There is one exception which is "xml-apis.jar" which contains code licensed by the W3C. Please consult the license files included with the libraries in the "lib" directory for details.');

		// DTM fonts
		$collector->addManualLibrary('FiraSans', '4.x', 'SIL-OFL-1.1', 'Humanist sans-serif typeface designed for Firefox OS, supporting Latin and Cyrillic scripts', 'core', 'https://github.com/mozilla/Fira',
			'Copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('HanaMinA', '2.x', 'IPA Font License v1.0', 'Hanazono Mincho typeface covering CJK unified ideographs for Japanese and Chinese PDF documents', 'core', 'https://fonts.jp/hanazono/',
			'Copyright (c) 2010-2023 The Hanazono Font Project
The Licensor provides the Font Software under the terms of the IPA Font License Agreement v1.0. Any use, reproduction or distribution of the Font Software or any exercise of rights under the Agreement constitutes the Recipient\'s acceptance of the Agreement.
1. The Font Software may be used, copied and distributed without modification.
2. Modified versions may be redistributed provided they do not use any Reserved Font Name and include the original copyright notice and this Agreement.
3. The name of the Copyright Holder shall not be used to promote or endorse Modified Versions without explicit written permission.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE FONT SOFTWARE.');

		$collector->addManualLibrary('LiberationMono', '2.x', 'SIL-OFL-1.1', 'Monospace font metrically compatible with Courier New', 'core', 'https://github.com/liberationfonts/liberation-fonts',
			'Copyright (c) 2012 Red Hat, Inc., with Reserved Font Name Liberation.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('LiberationSans', '2.x', 'SIL-OFL-1.1', 'Sans-serif font metrically compatible with Arial', 'core', 'https://github.com/liberationfonts/liberation-fonts',
			'Copyright (c) 2012 Red Hat, Inc., with Reserved Font Name Liberation.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('LiberationSerif', '2.x', 'SIL-OFL-1.1', 'Serif font metrically compatible with Times New Roman', 'core', 'https://github.com/liberationfonts/liberation-fonts',
			'Copyright (c) 2012 Red Hat, Inc., with Reserved Font Name Liberation.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('NotoSans', '2.x', 'SIL-OFL-1.1', 'Universal sans-serif font covering Latin, Greek and Cyrillic scripts with no tofu (missing glyph boxes)', 'core', 'https://fonts.google.com/noto/specimen/Noto+Sans',
			'Copyright 2022 The Noto Project Authors.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('NotoSansCJKjp', '2.x', 'SIL-OFL-1.1', 'Noto CJK sans-serif font with comprehensive Japanese character support for PDF generation', 'core', 'https://github.com/notofonts/noto-cjk',
			'Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name Noto.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('NotoSansMono', '2.x', 'SIL-OFL-1.1', 'Noto monospace sans-serif font for code and tabular content in PDF documents', 'core', 'https://fonts.google.com/noto/specimen/Noto+Sans+Mono',
			'Copyright 2022 The Noto Project Authors.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('NotoSerif', '2.x', 'SIL-OFL-1.1', 'Universal serif font covering Latin, Greek and Cyrillic scripts with no tofu (missing glyph boxes)', 'core', 'https://fonts.google.com/noto/specimen/Noto+Serif',
			'Copyright 2022 The Noto Project Authors.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('NotoSerifCJKjp', '2.x', 'SIL-OFL-1.1', 'Noto CJK serif font with comprehensive Japanese character support for PDF generation', 'core', 'https://github.com/notofonts/noto-cjk',
			'Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name Noto.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, without their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.');

		$collector->addManualLibrary('Roboto', '3.x', 'Apache-2.0', "Google's default UI typeface, used across Android and web interfaces for clear on-screen readability", 'core', 'https://github.com/googlefonts/roboto',
			'Copyright (c) 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.');

		$collector->addManualLibrary('XB Niloofar', '2.x', 'GPL-2.0-or-later', 'Persian/Farsi serif font for right-to-left PDF document generation', 'core', 'https://wiki.ict.ir/XB_Font',
			'Copyright (c) 2004-2007 Behdad Esfahbod, Sharif FarsiWeb, Inc.
This Font Software is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or (at your option) any later version as published by the Free Software Foundation.
This Font Software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.');

		$collector->addManualLibrary('XB Zar', '3.x', 'GPL-2.0-or-later', 'Persian/Farsi serif font for right-to-left PDF document generation', 'core', 'https://wiki.ict.ir/XB_Font',
			'Copyright (c) 2004-2007 Behdad Esfahbod, Sharif FarsiWeb, Inc.
This Font Software is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or (at your option) any later version as published by the Free Software Foundation.
This Font Software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.');



	}

}
